@applitools/dom-snapshot 4.11.2 → 4.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/pollResult.js +1 -1
- package/dist/pollResultCjs.js +1 -1
- package/dist/processPage.js +3 -3
- package/dist/processPagePoll.js +3 -3
- package/dist/processPagePollCjs.js +3 -3
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.11.
|
|
2
|
-
"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t=function(){const e=function(e){return function(){function t(e,t=0){const n=e.charCodeAt(t);return n>=55296&&n<56320?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(e,n){const r=[];let i=0;for(let o=0;o<e.length;++o){const a=t(e,o);let s=0;a>0&&(s=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),i+s>n?(r.push(o),i=s):i+=s}return r};const r=n,i="WIP",o="SUCCESS",a="SUCCESS_CHUNKED",s="ERROR";var l=function(e,t,n={}){const l=function(e,{chunkByteLength:t=0}={}){if(e){if(e.value){if(t){if(!e.chunks)try{const n=JSON.stringify(e.value);e.chunks=r(n,t),e.chunks.length>0&&(e.from=0,e.value=n)}catch(e){return{status:s,error:e.message}}if(e.from>=0)return{status:a,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from}}return{status:o,value:e.value}}return e.error?{status:s,error:e.error}:{status:i}}return{status:s,error:"unexpected poll request received - cannot find state of current operation"}}((e=e||{})[t],n);return(l.status===o||l.status===s||l.status===a&&l.done)&&(e[t]=null),l};const c=l;var u={chunkify:n,pollify:function(e,t,n){return r=>function(){return t[n]||(t[n]={},Promise.resolve().then((()=>e.apply(null,arguments))).then((e=>t[n].value=e)).catch((e=>t[n].error=e.message))),c(t,n,r)}},poll:l,absolutizeUrl:function(e,t){if(function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return e;let n=!0;try{n=e!==decodeURI(e)}catch(e){n=!0}try{const r=new URL(e,t).href;return n?r:decodeURI(r)}catch(t){return n?e:decodeURI(e)}},isInlineFrame:function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)},isAccessibleFrame:function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}}},h={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"},d=function(e){if(!function(e){try{const t=new URL(e);return Boolean(t.username||t.password)}catch(e){return!1}}(e))return e;let t=!0;try{t=e!==decodeURI(e)}catch(e){t=!0}const n=new URL(e);return n.username="",n.password="",t?n.href:decodeURI(n.href)},p={},m={},f={AtKeyword:3,BadString:6,BadUrl:8,CDC:15,CDO:14,Colon:16,Comma:18,Comment:25,Delim:9,Dimension:12,EOF:0,Function:2,Hash:4,Ident:1,LeftCurlyBracket:23,LeftParenthesis:21,LeftSquareBracket:19,Number:10,Percentage:11,RightCurlyBracket:24,RightParenthesis:22,RightSquareBracket:20,Semicolon:17,String:5,Url:7,WhiteSpace:13},g={};function b(e){return e>=48&&e<=57}function y(e){return e>=65&&e<=90}function k(e){return e>=97&&e<=122}function w(e){return y(e)||k(e)}function v(e){return e>=128}function x(e){return w(e)||v(e)||95===e}function S(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function C(e){return 10===e||13===e||12===e}function _(e){return C(e)||32===e||9===e}function A(e,t){return 92===e&&!C(t)&&0!==t}const z=new Array(128);for(let e=0;e<z.length;e++)z[e]=(_(e)?130:b(e)&&131)||x(e)&&132||S(e)&&133||e||128;g.DigitCategory=131,g.EofCategory=128,g.NameStartCategory=132,g.NonPrintableCategory=133,g.WhiteSpaceCategory=130,g.charCodeCategory=function(e){return e<128?z[e]:132},g.isBOM=function(e){return 65279===e||65534===e?1:0},g.isDigit=b,g.isHexDigit=function(e){return b(e)||e>=65&&e<=70||e>=97&&e<=102},g.isIdentifierStart=function(e,t,n){return 45===e?x(t)||45===t||A(t,n):!!x(e)||92===e&&A(e,t)},g.isLetter=w,g.isLowercaseLetter=k,g.isName=function(e){return x(e)||b(e)||45===e},g.isNameStart=x,g.isNewline=C,g.isNonAscii=v,g.isNonPrintable=S,g.isNumberStart=function(e,t,n){return 43===e||45===e?b(t)?2:46===t&&b(n)?3:0:46===e?b(t)?2:0:b(e)?1:0},g.isUppercaseLetter=y,g.isValidEscape=A,g.isWhiteSpace=_;var L={};const T=g;function E(e,t){return t<e.length?e.charCodeAt(t):0}function N(e,t,n){return 13===n&&10===E(e,t+1)?2:1}function R(e,t,n){let r=e.charCodeAt(t);return T.isUppercaseLetter(r)&&(r|=32),r===n}function D(e,t){for(;t<e.length&&T.isDigit(e.charCodeAt(t));t++);return t}function P(e,t){if(t+=2,T.isHexDigit(E(e,t-1))){for(const n=Math.min(e.length,t+5);t<n&&T.isHexDigit(E(e,t));t++);const n=E(e,t);T.isWhiteSpace(n)&&(t+=N(e,t,n))}return t}L.cmpChar=R,L.cmpStr=function(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(let i=t;i<n;i++){const n=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(T.isUppercaseLetter(o)&&(o|=32),o!==n)return!1}return!0},L.consumeBadUrlRemnants=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(41===n){t++;break}T.isValidEscape(n,E(e,t+1))&&(t=P(e,t))}return t},L.consumeEscaped=P,L.consumeName=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!T.isName(n)){if(!T.isValidEscape(n,E(e,t+1)))break;t=P(e,t)-1}}return t},L.consumeNumber=function(e,t){let n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),T.isDigit(n)&&(t=D(e,t+1),n=e.charCodeAt(t)),46===n&&T.isDigit(e.charCodeAt(t+1))&&(t=D(e,t+=2)),R(e,t,101)){let r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),T.isDigit(n)&&(t=D(e,t+1+r+1))}return t},L.decodeEscaped=function(e){if(1===e.length&&!T.isHexDigit(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)},L.findDecimalNumberEnd=D,L.findWhiteSpaceEnd=function(e,t){for(;t<e.length&&T.isWhiteSpace(e.charCodeAt(t));t++);return t},L.findWhiteSpaceStart=function(e,t){for(;t>=0&&T.isWhiteSpace(e.charCodeAt(t));t--);return t+1},L.getNewlineLength=N;var I=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],O={},B={adoptBuffer:function(e=null,t){return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}};const F=B,U=g;function M(e){const t=e.source,n=t.length,r=t.length>0?U.isBOM(t.charCodeAt(0)):0,i=F.adoptBuffer(e.lines,n),o=F.adoptBuffer(e.columns,n);let a=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){const r=t.charCodeAt(e);i[e]=a,o[e]=s++,10!==r&&13!==r&&12!==r||(13===r&&e+1<n&&10===t.charCodeAt(e+1)&&(e++,i[e]=a,o[e]=s),a++,s=1)}i[n]=a,o[n]=s,e.lines=i,e.columns=o,e.computed=!0}O.OffsetToLocation=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||M(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||M(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}};var j={};const q=B,W=L,H=I,$=f,V=16777215,K=24,Z=new Map([[$.Function,$.RightParenthesis],[$.LeftParenthesis,$.RightParenthesis],[$.LeftSquareBracket,$.RightSquareBracket],[$.LeftCurlyBracket,$.RightCurlyBracket]]);j.TokenStream=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){const n=(e=String(e||"")).length,r=q.adoptBuffer(this.offsetAndType,e.length+1),i=q.adoptBuffer(this.balance,e.length+1);let o=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:i[o]=n;break;case a:{let e=s&V;for(s=i[e],a=s>>K,i[o]=e,i[e++]=o;e<o;e++)i[e]===n&&(i[e]=o);break}case $.LeftParenthesis:case $.Function:case $.LeftSquareBracket:case $.LeftCurlyBracket:i[o]=s,a=Z.get(e),s=a<<K|o}r[o++]=e<<K|c,-1===l&&(l=t)})),r[o]=$.EOF<<K|n,i[o]=n,i[n]=n;0!==s;){const e=s&V;s=i[e],i[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=o,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>K:$.EOF}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>K;if(n!==$.WhiteSpace&&n!==$.Comment&&0==e--)return n}return $.EOF}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&V:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>K;if(n!==$.WhiteSpace&&n!==$.Comment&&0==e--)return t-this.tokenIndex}return $.EOF}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&W.cmpStr(this.source,this.offsetAndType[e-1]&V,this.offsetAndType[e]&V,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&V:this.offsetAndType[this.tokenCount]&V:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===$.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===$.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&V,t=this.offsetAndType[t],this.tokenType=t>>K,this.tokenEnd=t&V):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>K,this.tokenEnd=e&V):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=$.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===$.WhiteSpace||this.tokenType===$.Comment;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i<this.tokenCount&&(n=this.balance[i],!(n<e));i++)switch(r=i>0?this.offsetAndType[i-1]&V:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){const r=n,i=this.offsetAndType[t],o=i&V;n=o,e(i>>K,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:H[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}};const G=f,Y=g,Q=L,X=I,J=O,ee=j;m.AtKeyword=G.AtKeyword,m.BadString=G.BadString,m.BadUrl=G.BadUrl,m.CDC=G.CDC,m.CDO=G.CDO,m.Colon=G.Colon,m.Comma=G.Comma,m.Comment=G.Comment,m.Delim=G.Delim,m.Dimension=G.Dimension,m.EOF=G.EOF,m.Function=G.Function,m.Hash=G.Hash,m.Ident=G.Ident,m.LeftCurlyBracket=G.LeftCurlyBracket,m.LeftParenthesis=G.LeftParenthesis,m.LeftSquareBracket=G.LeftSquareBracket,m.Number=G.Number,m.Percentage=G.Percentage,m.RightCurlyBracket=G.RightCurlyBracket,m.RightParenthesis=G.RightParenthesis,m.RightSquareBracket=G.RightSquareBracket,m.Semicolon=G.Semicolon,m.String=G.String,m.Url=G.Url,m.WhiteSpace=G.WhiteSpace,m.tokenTypes=G,m.DigitCategory=Y.DigitCategory,m.EofCategory=Y.EofCategory,m.NameStartCategory=Y.NameStartCategory,m.NonPrintableCategory=Y.NonPrintableCategory,m.WhiteSpaceCategory=Y.WhiteSpaceCategory,m.charCodeCategory=Y.charCodeCategory,m.isBOM=Y.isBOM,m.isDigit=Y.isDigit,m.isHexDigit=Y.isHexDigit,m.isIdentifierStart=Y.isIdentifierStart,m.isLetter=Y.isLetter,m.isLowercaseLetter=Y.isLowercaseLetter,m.isName=Y.isName,m.isNameStart=Y.isNameStart,m.isNewline=Y.isNewline,m.isNonAscii=Y.isNonAscii,m.isNonPrintable=Y.isNonPrintable,m.isNumberStart=Y.isNumberStart,m.isUppercaseLetter=Y.isUppercaseLetter,m.isValidEscape=Y.isValidEscape,m.isWhiteSpace=Y.isWhiteSpace,m.cmpChar=Q.cmpChar,m.cmpStr=Q.cmpStr,m.consumeBadUrlRemnants=Q.consumeBadUrlRemnants,m.consumeEscaped=Q.consumeEscaped,m.consumeName=Q.consumeName,m.consumeNumber=Q.consumeNumber,m.decodeEscaped=Q.decodeEscaped,m.findDecimalNumberEnd=Q.findDecimalNumberEnd,m.findWhiteSpaceEnd=Q.findWhiteSpaceEnd,m.findWhiteSpaceStart=Q.findWhiteSpaceStart,m.getNewlineLength=Q.getNewlineLength,m.tokenNames=X,m.OffsetToLocation=J.OffsetToLocation,m.TokenStream=ee.TokenStream,m.tokenize=function(e,t){function n(t){return t<a?e.charCodeAt(t):0}function r(){return c=Q.consumeNumber(e,c),Y.isIdentifierStart(n(c),n(c+1),n(c+2))?(s=G.Dimension,void(c=Q.consumeName(e,c))):37===n(c)?(s=G.Percentage,void c++):void(s=G.Number)}function i(){const t=c;return c=Q.consumeName(e,c),Q.cmpStr(e,t,c,"url")&&40===n(c)?(c=Q.findWhiteSpaceEnd(e,c+1),34===n(c)||39===n(c)?(s=G.Function,void(c=t+4)):void function(){for(s=G.Url,c=Q.findWhiteSpaceEnd(e,c);c<e.length;c++){const t=e.charCodeAt(c);switch(Y.charCodeCategory(t)){case 41:return void c++;case Y.WhiteSpaceCategory:return c=Q.findWhiteSpaceEnd(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl));case 34:case 39:case 40:case Y.NonPrintableCategory:return c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl);case 92:if(Y.isValidEscape(t,n(c+1))){c=Q.consumeEscaped(e,c)-1;break}return c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl)}}}()):40===n(c)?(s=G.Function,void c++):void(s=G.Ident)}function o(t){for(t||(t=n(c++)),s=G.String;c<e.length;c++){const r=e.charCodeAt(c);switch(Y.charCodeCategory(r)){case t:return void c++;case Y.WhiteSpaceCategory:if(Y.isNewline(r))return c+=Q.getNewlineLength(e,c,r),void(s=G.BadString);break;case 92:if(c===e.length-1)break;const i=n(c+1);Y.isNewline(i)?c+=Q.getNewlineLength(e,c+1,i):Y.isValidEscape(r,i)&&(c=Q.consumeEscaped(e,c)-1)}}}const a=(e=String(e||"")).length;let s,l=Y.isBOM(n(0)),c=l;for(;c<a;){const a=e.charCodeAt(c);switch(Y.charCodeCategory(a)){case Y.WhiteSpaceCategory:s=G.WhiteSpace,c=Q.findWhiteSpaceEnd(e,c+1);break;case 34:o();break;case 35:Y.isName(n(c+1))||Y.isValidEscape(n(c+1),n(c+2))?(s=G.Hash,c=Q.consumeName(e,c+1)):(s=G.Delim,c++);break;case 39:o();break;case 40:s=G.LeftParenthesis,c++;break;case 41:s=G.RightParenthesis,c++;break;case 43:Y.isNumberStart(a,n(c+1),n(c+2))?r():(s=G.Delim,c++);break;case 44:s=G.Comma,c++;break;case 45:Y.isNumberStart(a,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(s=G.CDC,c+=3):Y.isIdentifierStart(a,n(c+1),n(c+2))?i():(s=G.Delim,c++);break;case 46:Y.isNumberStart(a,n(c+1),n(c+2))?r():(s=G.Delim,c++);break;case 47:42===n(c+1)?(s=G.Comment,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(s=G.Delim,c++);break;case 58:s=G.Colon,c++;break;case 59:s=G.Semicolon,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(s=G.CDO,c+=4):(s=G.Delim,c++);break;case 64:Y.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(s=G.AtKeyword,c=Q.consumeName(e,c+1)):(s=G.Delim,c++);break;case 91:s=G.LeftSquareBracket,c++;break;case 92:Y.isValidEscape(a,n(c+1))?i():(s=G.Delim,c++);break;case 93:s=G.RightSquareBracket,c++;break;case 123:s=G.LeftCurlyBracket,c++;break;case 125:s=G.RightCurlyBracket,c++;break;case Y.DigitCategory:r();break;case Y.NameStartCategory:i();break;default:s=G.Delim,c++}t(s,l,l=c)}};var te={},ne={};let re=null,ie=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return null!==re?(n=re,re=re.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=re,re=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;null!==i;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const t=e.createItem(r);null!==n?n.next=t:this.head=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)r=i.next,i.next=r.next,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)r=i.prev,i.prev=r.prev,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(t){this.prepend(e.createItem(t))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ne.List=ie;var oe={},ae={createCustomError:function(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}};const se=ae,le=" ";function ce({source:e,line:t,column:n,baseLine:r,baseColumn:i},o){function a(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+" |"+t)).join("\n")}const s=("\n".repeat(Math.max(r-1,0))+" ".repeat(Math.max(i-1,0))+e).split(/\r\n?|\n|\f/),l=Math.max(1,t-o)-1,c=Math.min(t+o,s.length+1),u=Math.max(4,String(c).length)+1;let h=0;(n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length)>100&&(h=n-60+3,n=58);for(let e=l;e<=c;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,le),s[e]=(h>0&&s[e].length>h?"…":"")+s[e].substr(h,98)+(s[e].length>h+100-1?"…":""));return[a(l,t),new Array(n+u+2).join("-")+"^",a(t,c)].filter(Boolean).join("\n").replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}oe.SyntaxError=function(e,t,n,r,i,o=1,a=1){return Object.assign(se.createCustomError("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>ce({source:t,line:r,column:i,baseLine:o,baseColumn:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+ce({source:t,line:r,column:i,baseLine:o,baseColumn:a},2)}})};var ue={};const he=f;ue.readSequence=function(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case he.Comment:this.next();continue;case he.WhiteSpace:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t};const de=ne,pe=oe,me=m,fe=ue,ge=O,be=j,ye=L,ke=f,we=I,ve=()=>{};function xe(e){return function(){return this[e]()}}function Se(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}te.createParser=function(e){let t="",n="<unknown>",r=!1,i=ve,o=!1;const a=new ge.OffsetToLocation,s=Object.assign(new be.TokenStream,function(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Se(e.atrule),pseudo:Se(e.pseudo),node:Se(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=xe(r)}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:fe.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new de.List,createSingleNodeList:e=>(new de.List).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(e){if(o)throw e;this.skip(n-this.tokenIndex);const r=t.call(this);return o=!0,i(e,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==ke.WhiteSpace&&t!==ke.Comment)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>ye.cmpChar(t,e,n),cmpStr:(e,n,r)=>ye.cmpStr(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(ke.Function),e},consumeNumber(e){const n=t.substring(this.tokenStart,ye.consumeNumber(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=we[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case ke.Ident:this.tokenType===ke.Function||this.tokenType===ke.Url?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case ke.Hash:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case ke.Percentage:this.tokenType===ke.Number&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===ke.Ident&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?a.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==r?r.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(e,n){const r=void 0!==n&&n<t.length?a.getLocation(n):this.eof?a.getLocation(ye.findWhiteSpaceStart(t,t.length-1)):a.getLocation(this.tokenStart);throw new pe.SyntaxError(e||"Unexpected input",t,r.offset,r.line,r.column,a.startLine,a.startColumn)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,me.tokenize),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),i="function"==typeof l.onParseError?l.onParseError:ve,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in s.context==0)throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(e===ke.Comment){const e=s.getLocation(n,r),i=ye.cmpStr(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));const h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:pe.SyntaxError,config:s.config})};var Ce={},_e={},Ae={},ze={},Le={},Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Le.encode=function(e){if(0<=e&&e<Te.length)return Te[e];throw new TypeError("Must be between 0 and 63: "+e)},Le.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Ee=Le;ze.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=Ee.encode(t)}while(r>0);return n},ze.decode=function(e,t,n){var r,i,o,a,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Ee.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),l+=(i&=31)<<c,c+=5}while(r);n.value=(a=(o=l)>>1,1==(1&o)?-a:a),n.rest=t};var Ne={};!function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=i;var o,a,s=(o=function(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var a=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var u,h=0;for(c=s.length-1;c>=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=a?"/":"."),o?(o.path=n,i(o)):n},a=[],function(e){for(var t=0;t<a.length;t++)if(a[t].input===e){var n=a[0];return a[0]=a[t],a[t]=n,a[0].result}var r=o(e);return a.unshift({input:e,result:r}),a.length>32&&a.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),a=r(e);if(a&&(e=a.path||"/"),o&&!o.scheme)return a&&(o.scheme=a.scheme),i(o);if(o||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,i(a)):l}e.normalize=s,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var a=o.path.lastIndexOf("/");a>=0&&(o.path=o.path.substring(0,a+1))}t=l(i(o),t)}return s(t)}}(Ne);var Re={},De=Ne,Pe=Object.prototype.hasOwnProperty,Ie="undefined"!=typeof Map;function Oe(){this._array=[],this._set=Ie?new Map:Object.create(null)}Oe.fromArray=function(e,t){for(var n=new Oe,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},Oe.prototype.size=function(){return Ie?this._set.size:Object.getOwnPropertyNames(this._set).length},Oe.prototype.add=function(e,t){var n=Ie?e:De.toSetString(e),r=Ie?this.has(e):Pe.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(Ie?this._set.set(e,i):this._set[n]=i)},Oe.prototype.has=function(e){if(Ie)return this._set.has(e);var t=De.toSetString(e);return Pe.call(this._set,t)},Oe.prototype.indexOf=function(e){if(Ie){var t=this._set.get(e);if(t>=0)return t}else{var n=De.toSetString(e);if(Pe.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},Oe.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Oe.prototype.toArray=function(){return this._array.slice()},Re.ArraySet=Oe;var Be={},Fe=Ne;function Ue(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ue.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Ue.prototype.add=function(e){var t,n,r,i,o,a;n=e,r=(t=this._last).generatedLine,i=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,i>r||i==r&&a>=o||Fe.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Ue.prototype.toArray=function(){return this._sorted||(this._array.sort(Fe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Be.MappingList=Ue;var Me=ze,je=Ne,qe=Re.ArraySet,We=Be.MappingList;function He(e){e||(e={}),this._file=je.getArg(e,"file",null),this._sourceRoot=je.getArg(e,"sourceRoot",null),this._skipValidation=je.getArg(e,"skipValidation",!1),this._sources=new qe,this._names=new qe,this._mappings=new We,this._sourcesContents=null}He.prototype._version=3,He.fromSourceMap=function(e){var t=e.sourceRoot,n=new He({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=je.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=je.relative(t,r)),n._sources.has(i)||n._sources.add(i);var o=e.sourceContentFor(r);null!=o&&n.setSourceContent(r,o)})),n},He.prototype.addMapping=function(e){var t=je.getArg(e,"generated"),n=je.getArg(e,"original",null),r=je.getArg(e,"source",null),i=je.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},He.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=je.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[je.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[je.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},He.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=je.relative(i,r));var o=new qe,a=new qe;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=je.join(n,t.source)),null!=i&&(t.source=je.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||o.has(l)||o.add(l);var c=t.name;null==c||a.has(c)||a.add(c)}),this),this._sources=o,this._names=a,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=je.join(n,t)),null!=i&&(t=je.relative(i,t)),this.setSourceContent(t,r))}),this)},He.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},He.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,o=1,a=0,s=0,l=0,c=0,u="",h=this._mappings.toArray(),d=0,p=h.length;d<p;d++){if(e="",(t=h[d]).generatedLine!==o)for(i=0;t.generatedLine!==o;)e+=";",o++;else if(d>0){if(!je.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=Me.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=Me.encode(r-c),c=r,e+=Me.encode(t.originalLine-1-s),s=t.originalLine-1,e+=Me.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=Me.encode(n-l),l=n)),u+=e}return u},He.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=je.relative(t,e));var n=je.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},He.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},He.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ae.SourceMapGenerator=He;const $e=Ae,Ve=new Set(["Atrule","Selector","Declaration"]);_e.generateSourceMap=function(e){const t=new $e.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let a=1,s=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ve.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=a,n.column=s,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Ve.has(e.type)&&(i.line=a,i.column=s)};const u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)10===e.charCodeAt(t)?(a++,s=0):s++;u(e,t,n)};const h=e.result;return e.result=function(){return l&&t.addMapping(o),{css:h(),map:t}},e};var Ke={};const Ze=f,Ge=(e,t)=>{if(e===Ze.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Ye=[[Ze.Ident,Ze.Ident],[Ze.Ident,Ze.Function],[Ze.Ident,Ze.Url],[Ze.Ident,Ze.BadUrl],[Ze.Ident,"-"],[Ze.Ident,Ze.Number],[Ze.Ident,Ze.Percentage],[Ze.Ident,Ze.Dimension],[Ze.Ident,Ze.CDC],[Ze.Ident,Ze.LeftParenthesis],[Ze.AtKeyword,Ze.Ident],[Ze.AtKeyword,Ze.Function],[Ze.AtKeyword,Ze.Url],[Ze.AtKeyword,Ze.BadUrl],[Ze.AtKeyword,"-"],[Ze.AtKeyword,Ze.Number],[Ze.AtKeyword,Ze.Percentage],[Ze.AtKeyword,Ze.Dimension],[Ze.AtKeyword,Ze.CDC],[Ze.Hash,Ze.Ident],[Ze.Hash,Ze.Function],[Ze.Hash,Ze.Url],[Ze.Hash,Ze.BadUrl],[Ze.Hash,"-"],[Ze.Hash,Ze.Number],[Ze.Hash,Ze.Percentage],[Ze.Hash,Ze.Dimension],[Ze.Hash,Ze.CDC],[Ze.Dimension,Ze.Ident],[Ze.Dimension,Ze.Function],[Ze.Dimension,Ze.Url],[Ze.Dimension,Ze.BadUrl],[Ze.Dimension,"-"],[Ze.Dimension,Ze.Number],[Ze.Dimension,Ze.Percentage],[Ze.Dimension,Ze.Dimension],[Ze.Dimension,Ze.CDC],["#",Ze.Ident],["#",Ze.Function],["#",Ze.Url],["#",Ze.BadUrl],["#","-"],["#",Ze.Number],["#",Ze.Percentage],["#",Ze.Dimension],["#",Ze.CDC],["-",Ze.Ident],["-",Ze.Function],["-",Ze.Url],["-",Ze.BadUrl],["-","-"],["-",Ze.Number],["-",Ze.Percentage],["-",Ze.Dimension],["-",Ze.CDC],[Ze.Number,Ze.Ident],[Ze.Number,Ze.Function],[Ze.Number,Ze.Url],[Ze.Number,Ze.BadUrl],[Ze.Number,Ze.Number],[Ze.Number,Ze.Percentage],[Ze.Number,Ze.Dimension],[Ze.Number,"%"],[Ze.Number,Ze.CDC],["@",Ze.Ident],["@",Ze.Function],["@",Ze.Url],["@",Ze.BadUrl],["@","-"],["@",Ze.CDC],[".",Ze.Number],[".",Ze.Percentage],[".",Ze.Dimension],["+",Ze.Number],["+",Ze.Percentage],["+",Ze.Dimension],["/","*"]],Qe=Ye.concat([[Ze.Ident,Ze.Hash],[Ze.Dimension,Ze.Hash],[Ze.Hash,Ze.Hash],[Ze.AtKeyword,Ze.LeftParenthesis],[Ze.AtKeyword,Ze.String],[Ze.AtKeyword,Ze.Colon],[Ze.Percentage,Ze.Percentage],[Ze.Percentage,Ze.Dimension],[Ze.Percentage,Ze.Function],[Ze.Percentage,"-"],[Ze.RightParenthesis,Ze.Ident],[Ze.RightParenthesis,Ze.Function],[Ze.RightParenthesis,Ze.Percentage],[Ze.RightParenthesis,Ze.Dimension],[Ze.RightParenthesis,Ze.Hash],[Ze.RightParenthesis,"-"]]);function Xe(e){const t=new Set(e.map((([e,t])=>Ge(e)<<16|Ge(t))));return function(e,n,r){const i=Ge(n,r),o=r.charCodeAt(0);return(45===o&&n!==Ze.Ident&&n!==Ze.Function&&n!==Ze.CDC||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Ze.WhiteSpace,!0),i}}const Je=Xe(Ye),et=Xe(Qe);Ke.safe=et,Ke.spec=Je;const tt=m,nt=_e,rt=Ke,it=f;function ot(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function at(e){tt.tokenize(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}Ce.createGenerator=function(e){const t=new Map;for(let[n,r]of Object.entries(e.node))"function"==typeof(r.generate||r)&&t.set(n,r.generate||r);return function(e,n){let r="",i=0,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:rt.safe,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===it.Delim&&92===t.charCodeAt(0)&&this.emit("\n",it.WhiteSpace,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=nt.generateSourceMap(o)),n.mode in rt&&(o.tokenBefore=rt[n.mode]));const a={node:e=>o.node(e),children:ot,token:(e,t)=>o.token(e,t),tokenize:at};return o.node(e),o.result()}};var st={};const lt=ne;st.createConvertor=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof lt.List==0&&(e.children=(new lt.List).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof lt.List&&(e.children=e.children.toArray())}}),t)}};var ct={};const{hasOwnProperty:ut}=Object.prototype,ht=function(){};function dt(e){return"function"==typeof e?e:ht}function pt(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function mt(e,t){const n=t.structure,r=[];for(const e in n){if(!1===ut.call(n,e))continue;let t=n[e];const i={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?i.nullable=!0:"string"==typeof e?i.type="node":Array.isArray(e)&&(i.type="list");i.type&&r.push(i)}return r.length?{context:t.walkContext,fields:r}:null}function ft(e,t){const n=e.fields.slice(),r=e.context,i="string"==typeof r;return t&&n.reverse(),function(e,o,a,s){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(a(n))return!0}i&&(o[r]=l)}}function gt({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}ct.createWalker=function(e){const t=function(e){const t={};for(const n in e.node)if(ut.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=mt(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const e in t)ut.call(t,e)&&null!==t[e]&&(n[e]=ft(t[e],!1),r[e]=ft(t[e],!0));const a=gt(n),s=gt(r),l=function(e,l){function c(e,t,n){const r=u.call(m,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,m,c,p))||h.call(m,e,t,n)===i)}let u=ht,h=ht,d=n,p=(e,t,n,r)=>e||c(t,n,r);const m={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof l)u=l;else if(l&&(u=dt(l.enter),h=dt(l.leave),l.reverse&&(d=r),l.visit)){if(a.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:a[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=pt(u,l.visit),h=pt(h,l.visit)}if(u===ht&&h===ht)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l};var bt={},yt={},kt={};function wt(e){return e}function vt(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>vt(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return vt(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}kt.generate=function(e,t){let n=wt,r=!1,i=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),vt(e,n,r,i)};const xt=ae,St=kt,Ct={offset:0,line:1,column:1};function _t(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?At(n):n:null}function At({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const e=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=e.length-1,i.column=1===e.length?i.column+r.length:e.pop().length+1}return i}yt.SyntaxMatchError=function(e,t,n,r){const i=xt.createCustomError("SyntaxMatchError",e),{css:o,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,o=i!==t?i:null;let a,s,l=0,c=0,u=0,h="";for(let e=0;e<n.length;e++){const t=n[e].value;e===r&&(c=t.length,l=h.length),null!==o&&n[e].node===o&&(e<=r?u++:u=0),h+=t}return r===n.length||u>1?(a=_t(o||t,"end")||At(Ct,h),s=At(a)):(a=_t(o,"start")||At(_t(t,"start")||Ct,h.slice(0,l)),s=_t(o,"end")||At(a,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:a,end:s}}(r,n);return i.rawMessage=e,i.syntax=t?St.generate(t):"<generic>",i.css=o,i.mismatchOffset=a,i.mismatchLength=s,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"<empty string>")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},i},yt.SyntaxReferenceError=function(e,t){const n=xt.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n};var zt={};const Lt=new Map,Tt=new Map,Et=Rt;function Nt(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Rt(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}zt.isCustomProperty=Nt,zt.keyword=function(e){if(Lt.has(e))return Lt.get(e);const t=e.toLowerCase();let n=Lt.get(t);if(void 0===n){const e=Nt(t,0),r=e?"":Rt(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Lt.set(e,n),n},zt.property=function(e){if(Tt.has(e))return Tt.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Nt(t,n.length);if(!r&&(t=t.toLowerCase(),Tt.has(t))){const n=Tt.get(t);return Tt.set(e,n),n}const i=r?"":Rt(t,n.length),o=t.substr(0,n.length+i.length),a=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return Tt.set(e,a),a},zt.vendorPrefix=Et;var Dt={cssWideKeywords:["initial","inherit","unset","revert","revert-layer"]},Pt={};const It=g,Ot=f,Bt=L,Ft=43,Ut=45,Mt=!0;function jt(e,t){return null!==e&&e.type===Ot.Delim&&e.value.charCodeAt(0)===t}function qt(e,t,n){for(;null!==e&&(e.type===Ot.WhiteSpace||e.type===Ot.Comment);)e=n(++t);return t}function Wt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Ft||i===Ut){if(n)return 0;t++}for(;t<e.value.length;t++)if(!It.isDigit(e.value.charCodeAt(t)))return 0;return r+1}function Ht(e,t,n){let r=!1,i=qt(e,t,n);if(null===(e=n(i)))return t;if(e.type!==Ot.Number){if(!jt(e,Ft)&&!jt(e,Ut))return t;if(r=!0,i=qt(n(++i),i,n),null===(e=n(i))||e.type!==Ot.Number)return 0}if(!r){const t=e.value.charCodeAt(0);if(t!==Ft&&t!==Ut)return 0}return Wt(e,r?0:1,r,i)}const $t=g,Vt=f,Kt=L;function Zt(e,t){return null!==e&&e.type===Vt.Delim&&e.value.charCodeAt(0)===t}function Gt(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const o=e.value.charCodeAt(i);if(45===o&&n&&0!==r)return Gt(e,t+r+1,!1),6;if(!$t.isHexDigit(o))return 0;if(++r>6)return 0}return r}function Yt(e,t,n){if(!e)return 0;for(;Zt(n(t),63);){if(++e>6)return 0;t++}return t}const Qt=Dt,Xt=function(e,t){let n=0;if(!e)return 0;if(e.type===Ot.Number)return Wt(e,0,!1,n);if(e.type===Ot.Ident&&e.value.charCodeAt(0)===Ut){if(!Bt.cmpChar(e.value,1,110))return 0;switch(e.value.length){case 2:return Ht(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ut?0:(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n));default:return e.value.charCodeAt(2)!==Ut?0:Wt(e,3,Mt,n)}}else if(e.type===Ot.Ident||jt(e,Ft)&&t(n+1).type===Ot.Ident){if(e.type!==Ot.Ident&&(e=t(++n)),null===e||!Bt.cmpChar(e.value,0,110))return 0;switch(e.value.length){case 1:return Ht(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ut?0:(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n));default:return e.value.charCodeAt(1)!==Ut?0:Wt(e,2,Mt,n)}}else if(e.type===Ot.Dimension){let r=e.value.charCodeAt(0),i=r===Ft||r===Ut?1:0,o=i;for(;o<e.value.length&&It.isDigit(e.value.charCodeAt(o));o++);return o===i?0:Bt.cmpChar(e.value,o,110)?o+1===e.value.length?Ht(t(++n),n,t):e.value.charCodeAt(o+1)!==Ut?0:o+2===e.value.length?(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n)):Wt(e,o+2,Mt,n):0}return 0},Jt=function(e,t){let n=0;if(null===e||e.type!==Vt.Ident||!Kt.cmpChar(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(Zt(e,43))return null===(e=t(++n))?0:e.type===Vt.Ident?Yt(Gt(e,0,!0),++n,t):Zt(e,63)?Yt(1,++n,t):0;if(e.type===Vt.Number){const r=Gt(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Vt.Dimension||e.type===Vt.Number?function(e,t){return 45===e.value.charCodeAt(0)}(e)&&Gt(e,1,!1)?n+1:0:Yt(r,n,t)}return e.type===Vt.Dimension?Yt(Gt(e,1,!0),++n,t):0},en=f,tn=g,nn=L,rn=["calc(","-moz-calc(","-webkit-calc("],on=new Map([[en.Function,en.RightParenthesis],[en.LeftParenthesis,en.RightParenthesis],[en.LeftSquareBracket,en.RightSquareBracket],[en.LeftCurlyBracket,en.RightCurlyBracket]]);function an(e,t){return t<e.length?e.charCodeAt(t):0}function sn(e,t){return nn.cmpStr(e,0,e.length,t)}function ln(e,t){for(let n=0;n<t.length;n++)if(sn(e,t[n]))return!0;return!1}function cn(e,t){return t===e.length-2&&92===an(e,t)&&tn.isDigit(an(e,t+1))}function un(e,t,n){if(e&&"Range"===e.type){const r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min&&"string"!=typeof e.min)return!0;if(null!==e.max&&r>e.max&&"string"!=typeof e.max)return!0}return!1}function hn(e){return function(t,n,r){return null===t?0:t.type===en.Function&&ln(t.value,rn)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function dn(e){return function(t){return null===t||t.type!==e?0:1}}function pn(e){return null===e||e.type!==en.Ident||45!==an(e.value,0)||45!==an(e.value,1)?0:1}function mn(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==en.Dimension)return 0;const i=nn.consumeNumber(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&cn(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return un(r,t.value,i)?0:1}}function fn(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===en.Number&&0===Number(t.value)?1:e(t,n,r)}}const gn={"ident-token":dn(en.Ident),"function-token":dn(en.Function),"at-keyword-token":dn(en.AtKeyword),"hash-token":dn(en.Hash),"string-token":dn(en.String),"bad-string-token":dn(en.BadString),"url-token":dn(en.Url),"bad-url-token":dn(en.BadUrl),"delim-token":dn(en.Delim),"number-token":dn(en.Number),"percentage-token":dn(en.Percentage),"dimension-token":dn(en.Dimension),"whitespace-token":dn(en.WhiteSpace),"CDO-token":dn(en.CDO),"CDC-token":dn(en.CDC),"colon-token":dn(en.Colon),"semicolon-token":dn(en.Semicolon),"comma-token":dn(en.Comma),"[-token":dn(en.LeftSquareBracket),"]-token":dn(en.RightSquareBracket),"(-token":dn(en.LeftParenthesis),")-token":dn(en.RightParenthesis),"{-token":dn(en.LeftCurlyBracket),"}-token":dn(en.RightCurlyBracket)},bn={string:dn(en.String),ident:dn(en.Ident),percentage:hn((function(e,t,n){return null===e||e.type!==en.Percentage||un(n,e.value,e.value.length-1)?0:1})),zero:fn(),number:hn((function(e,t,n){if(null===e)return 0;const r=nn.consumeNumber(e.value,0);return r===e.value.length||cn(e.value,r)?un(n,e.value,r)?0:1:0})),integer:hn((function(e,t,n){if(null===e||e.type!==en.Number)return 0;let r=43===an(e.value,0)||45===an(e.value,0)?1:0;for(;r<e.value.length;r++)if(!tn.isDigit(an(e.value,r)))return 0;return un(n,e.value,r)?0:1})),"custom-ident":function(e){if(null===e||e.type!==en.Ident)return 0;const t=e.value.toLowerCase();return ln(t,Qt.cssWideKeywords)||sn(t,"default")?0:1},"dashed-ident":pn,"custom-property-name":function(e){return pn(e)?"--"===e.value?0:1:0},"hex-color":function(e){if(null===e||e.type!==en.Hash)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!tn.isHexDigit(an(e.value,n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==en.Hash?0:tn.isIdentifierStart(an(e.value,1),an(e.value,2),an(e.value,3))?1:0},"an-plus-b":Xt,urange:Jt,"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case en.BadString:case en.BadUrl:break e;case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case en.Semicolon:if(0===n)break e;break;case en.Delim:if(0===n&&"!"===e.value)break e;break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case en.BadString:case en.BadUrl:break e;case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i}};function yn(e){const{angle:t,decibel:n,frequency:r,flex:i,length:o,resolution:a,semitones:s,time:l}=e||{};return{dimension:hn(mn(null)),angle:hn(mn(t)),decibel:hn(mn(n)),frequency:hn(mn(r)),flex:hn(mn(i)),length:hn(fn(mn(o))),resolution:hn(mn(a)),semitones:hn(mn(s)),time:hn(mn(l))}}Pt.createDemensionTypes=yn,Pt.createGenericTypes=function(e){return{...gn,...bn,...yn(e)}},Pt.productionTypes=bn,Pt.tokenTypes=gn;var kn={angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]};const wn=m,vn={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};var xn={},Sn={},Cn={},_n={};const An=ae;_n.SyntaxError=function(e,t,n){return Object.assign(An.createCustomError("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})};const zn=_n;Cn.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new zn.SyntaxError(e,this.str,this.pos)}};const Ln=Cn,Tn=9,En=10,Nn=12,Rn=13,Dn=32,Pn=33,In=35,On=38,Bn=39,Fn=40,Un=41,Mn=42,jn=43,qn=44,Wn=45,Hn=60,$n=62,Vn=63,Kn=64,Zn=91,Gn=93,Yn=123,Qn=124,Xn=125,Jn=8734,er=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),tr={" ":1,"&&":2,"||":3,"|":4};function nr(e){return e.substringToPos(e.findWsEnd(e.pos))}function rr(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||0===er[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function ir(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function or(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function ar(e){let t=null,n=null;return e.eat(Yn),t=ir(e),e.charCode()===qn?(e.pos++,e.charCode()!==Xn&&(n=ir(e))):n=t,e.eat(Xn),{min:Number(t),max:n?Number(n):0}}function sr(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case Mn:e.pos++,t={min:0,max:0};break;case jn:e.pos++,t={min:1,max:0};break;case Vn:e.pos++,t={min:0,max:1};break;case In:e.pos++,n=!0,e.charCode()===Yn?t=ar(e):e.charCode()===Vn?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Yn:t=ar(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===In&&e.charCodeAt(e.pos-1)===jn?sr(e,n):n):t}function lr(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function cr(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>tr[e]-tr[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;i<e.length;i++){const t=e[i];"Combinator"===t.type&&(t.value===r?(-1===o&&(o=i-1),e.splice(i,1),i--):(-1!==o&&i-o>1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function ur(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=hr(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:cr(t,n)||" ",disallowEmpty:!1,explicit:!1}}function hr(e){let t=e.charCode();if(t<128&&1===er[t])return function(e){const t=rr(e);return e.charCode()===Fn?(e.pos++,{type:"Function",name:t}):sr(e,{type:"Keyword",name:t})}(e);switch(t){case Gn:break;case Zn:return sr(e,function(e){let t;return e.eat(Zn),t=ur(e),e.eat(Gn),t.explicit=!0,e.charCode()===Pn&&(e.pos++,t.disallowEmpty=!0),t}(e));case Hn:return e.nextCharCode()===Bn?function(e){let t;return e.eat(Hn),e.eat(Bn),t=rr(e),e.eat(Bn),e.eat($n),sr(e,{type:"Property",name:t})}(e):function(e){let t,n=null;return e.eat(Hn),t=rr(e),e.charCode()===Fn&&e.nextCharCode()===Un&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Zn&&(nr(e),n=function(e){let t=null,n=null,r=1;return e.eat(Zn),e.charCode()===Wn&&(e.peek(),r=-1),-1==r&&e.charCode()===Jn?e.peek():(t=r*Number(ir(e)),0!==er[e.charCode()]&&(t+=rr(e))),nr(e),e.eat(qn),nr(e),e.charCode()===Jn?e.peek():(r=1,e.charCode()===Wn&&(e.peek(),r=-1),n=r*Number(ir(e)),0!==er[e.charCode()]&&(n+=rr(e))),e.eat(Gn),{type:"Range",min:t,max:n}}(e)),e.eat($n),sr(e,{type:"Type",name:t,opts:n})}(e);case Qn:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Qn?2:1))};case On:return e.pos++,e.eat(On),{type:"Combinator",value:"&&"};case qn:return e.pos++,{type:"Comma"};case Bn:return sr(e,{type:"String",value:or(e)});case Dn:case Tn:case En:case Rn:case Nn:return{type:"Spaces",value:nr(e)};case Kn:return t=e.nextCharCode(),t<128&&1===er[t]?(e.pos++,{type:"AtKeyword",name:rr(e)}):lr(e);case Mn:case jn:case Vn:case In:case Pn:break;case Yn:if(t=e.nextCharCode(),t<48||t>57)return lr(e);break;default:return lr(e)}}Sn.parse=function(e){const t=new Ln.Tokenizer(e),n=ur(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n};const dr=Sn,pr={type:"Match"},mr={type:"Mismatch"},fr={type:"DisallowEmpty"},gr=40,br=41;function yr(e,t,n){return t===pr&&n===mr||e===pr&&t===pr&&n===pr?e:("If"===e.type&&e.else===mr&&t===pr&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function kr(e){return e.length>2&&e.charCodeAt(e.length-2)===gr&&e.charCodeAt(e.length-1)===br}function wr(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&kr(e.name)}function vr(e,t,n){switch(e){case" ":{let e=pr;for(let n=t.length-1;n>=0;n--)e=yr(t[n],e,mr);return e}case"|":{let e=mr,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(wr(i)&&(null===n&&r>0&&wr(t[r-1])&&(n=Object.create(null),e=yr({type:"Enum",map:n},pr,e)),null!==n)){const e=(kr(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n==0){n[e]=i;continue}}n=null,e=yr(i,pr,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=mr;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?vr(e,t.filter((function(e){return e!==i})),!1):pr,n=yr(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?pr:mr;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?vr(e,t.filter((function(e){return e!==i})),!0):pr,r=yr(i,o,r)}return r}}}function xr(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=vr(e.combinator,e.terms.map(xr),!1);return e.disallowEmpty&&(t=yr(t,fr,mr)),t}case"Multiplier":return function(e){let t=pr,n=xr(e.term);if(0===e.max)n=yr(n,fr,mr),t=yr(n,null,mr),t.then=yr(pr,pr,t),e.comma&&(t.then.else=yr({type:"Comma",syntax:e},t,mr));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==pr&&(t=yr({type:"Comma",syntax:e},t,mr)),t=yr(n,yr(pr,pr,t),mr);if(0===e.min)t=yr(pr,pr,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==pr&&(t=yr({type:"Comma",syntax:e},t,mr)),t=yr(n,t,mr);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}xn.DISALLOW_EMPTY=fr,xn.MATCH=pr,xn.MISMATCH=mr,xn.buildMatchGraph=function(e,t){return"string"==typeof e&&(e=dr.parse(e)),{type:"MatchGraph",match:xr(e),syntax:t||null,source:e}};var Sr={};const Cr=xn,_r=f,{hasOwnProperty:Ar}=Object.prototype,zr="Match";function Lr(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function Tr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function Er(e){return null===e||e.type===_r.Comma||e.type===_r.Function||e.type===_r.LeftParenthesis||e.type===_r.LeftSquareBracket||e.type===_r.LeftCurlyBracket||function(e){return e.type===_r.Delim&&"?"!==e.value}(e)}function Nr(e){return null===e||e.type===_r.RightParenthesis||e.type===_r.RightSquareBracket||e.type===_r.RightCurlyBracket||e.type===_r.Delim&&"/"===e.value}function Rr(e,t,n){function r(){do{b++,g=b<e.length?e[b]:null}while(null!==g&&(g.type===_r.WhiteSpace||g.type===_r.Comment))}function i(t){const n=b+t;return n<e.length?e[n]:null}function o(e,t){return{nextState:e,matchStack:k,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function a(e){h={nextState:e,matchStack:k,syntaxStack:u,prev:h}}function s(e){d=o(e,d)}function l(){k={type:1,syntax:t.syntax,token:g,prev:k},r(),p=null,b>y&&(y=b)}function c(){k=2===k.type?k.prev:{type:3,syntax:u.syntax,token:k.token,prev:k},u=u.prev}let u=null,h=null,d=null,p=null,m=0,f=null,g=null,b=-1,y=0,k={type:0,syntax:null,token:null,prev:null};for(r();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=Cr.MISMATCH;break}f=zr;break}if((t=h.nextState)===Cr.DISALLOW_EMPTY){if(h.matchStack===k){t=Cr.MISMATCH;break}t=Cr.MATCH}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>d.tokenIndex)&&(d=p,p=!1);else if(null===d){f="Mismatch";break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,k=d.matchStack,b=d.tokenIndex,g=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Cr.MISMATCH&&s(t.else),t.then!==Cr.MATCH&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=Cr.MISMATCH;break}t=Cr.MATCH;break}if(t.mask===(1<<e.length)-1){t=Cr.MATCH;break}for(;t.index<e.length;t.index++){const n=1<<t.index;if(0==(t.mask&n)){s(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g){let e=g.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),Ar.call(t.map,e)){t=t.map[e];break}}t=Cr.MISMATCH;break;case"Generic":{const e=null!==u?u.opts:null,n=b+Math.floor(t.fn(g,i,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=Cr.MATCH}else t=Cr.MISMATCH;break}case"Type":case"Property":{const e="Type"===t.type?"types":"properties",r=Ar.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&g.type===_r.Ident||"length"===t.name&&"0"===g.value)){null===p&&(p=o(t,d)),t=Cr.MISMATCH;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},k={type:2,syntax:t.syntax,token:k.token,prev:k},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Tr(n,e)){l(),t=Cr.MATCH;break}}t=Cr.MISMATCH;break}case"AtKeyword":case"Function":if(null!==g&&Tr(g.value,t.name)){l(),t=Cr.MATCH;break}t=Cr.MISMATCH;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Cr.MATCH;break}t=Cr.MISMATCH;break;case"Comma":null!==g&&g.type===_r.Comma?Er(k.token)?t=Cr.MISMATCH:(l(),t=Nr(g)?Cr.MISMATCH:Cr.MATCH):t=Er(k.token)||Nr(g)?Cr.MATCH:Cr.MISMATCH;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(Tr(r,t.value)){for(;b<m;)l();t=Cr.MATCH}else t=Cr.MISMATCH;break;default:throw new Error("Unknown node type: "+t.type)}switch(f){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),f="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",k=null;break;case zr:for(;null!==u;)c();break;default:k=null}return{tokens:e,reason:f,iterations:m,match:k,longestMatch:y}}Sr.matchAsList=function(e,t,n){const r=Rr(e,t,n||{});if(null!==r.match){let e=Lr(r.match).prev;for(r.match=[];null!==e;){switch(e.type){case 2:case 3:r.match.push({type:e.type,syntax:e.syntax});break;default:r.match.push({token:e.token.value,node:e.token.node})}e=e.prev}}return r},Sr.matchAsTree=function(e,t,n){const r=Rr(e,t,n||{});if(null===r.match)return r;let i=r.match,o=r.match={syntax:t.syntax||null,match:[]};const a=[o];for(i=Lr(i).prev;null!==i;){switch(i.type){case 2:o.match.push(o={syntax:i.syntax,match:[]}),a.push(o);break;case 3:a.pop(),o=a[a.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r};var Dr={};function Pr(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(i){if(Array.isArray(i.match)){for(let e=0;e<i.match.length;e++)if(r(i.match[e]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}(this.matched),n}function Ir(e,t,n){const r=Pr.call(e,t);return null!==r&&r.some(n)}Dr.getTrace=Pr,Dr.isKeyword=function(e){return Ir(this,e,(e=>"Keyword"===e.type))},Dr.isProperty=function(e,t){return Ir(this,e,(e=>"Property"===e.type&&e.name===t))},Dr.isType=function(e,t){return Ir(this,e,(e=>"Type"===e.type&&e.name===t))};var Or={};const Br=ne;function Fr(e){return"node"in e?e.node:Fr(e.match[0])}function Ur(e){return"node"in e?e.node:Ur(e.match[e.match.length-1])}Or.matchFragments=function(e,t,n,r,i){const o=[];return null!==n.matched&&function n(a){if(null!==a.syntax&&a.syntax.type===r&&a.syntax.name===i){const n=Fr(a),r=Ur(a);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new Br.List;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(n)}(n.matched),o};var Mr={};const jr=ne,{hasOwnProperty:qr}=Object.prototype;function Wr(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Hr(e){return Boolean(e)&&Wr(e.offset)&&Wr(e.line)&&Wr(e.column)}function $r(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==qr.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)i+=".source";else if(Hr(n.loc.start)){if(Hr(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e<t[i].length;e++){const r=t[i][e];switch(r){case String:o="string"==typeof n[i];break;case Boolean:o="boolean"==typeof n[i];break;case null:o=null===n[i];break;default:"string"==typeof r?o=n[i]&&n[i].type===r:Array.isArray(r)&&(o=n[i]instanceof jr.List)}}}else r(n,"Unknown field `"+i+"` for "+e+" node type");o||r(n,"Bad value for `"+e+"."+i+"`")}}for(const i in t)qr.call(t,i)&&!1===qr.call(n,i)&&r(n,"Field `"+e+"."+i+"` is missed")}}function Vr(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const t in n){if(!1===qr.call(n,t))continue;const o=[],a=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<a.length;n++){const r=a[n];if(r===String||r===Boolean)o.push(r.name);else if(null===r)o.push("null");else if("string"==typeof r)o.push("<"+r+">");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");o.push("List")}}i[t]=o.join(" | ")}return{docs:i,check:$r(e,r)}}Mr.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(qr.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Vr(n,r)}return t};var Kr={};const Zr=function(){};function Gr(e){return"function"==typeof e?e:Zr}Kr.walk=function(e,t,n){let r=Zr,i=Zr;if("function"==typeof t?r=t:t&&(r=Gr(t.enter),i=Gr(t.leave)),r===Zr&&i===Zr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)};const Yr=yt,Qr=zt,Xr=Dt,Jr=Pt,ei=kn,ti=function(e,t){return"string"==typeof e?function(e){const t=[];return wn.tokenize(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,vn)},ni=xn,ri=Sr,ii=Dr,oi=Or,ai=Mr,si=Sn,li=kt,ci=Kr,ui=ni.buildMatchGraph(Xr.cssWideKeywords.join(" | "));function hi(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:li.generate(e[i].syntax,{compact:t}));return r}function di(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:li.generate(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&hi(o.descriptors,t,n)};return r}function pi(e,t,n){return{matched:e,iterations:n,error:t,...ii}}function mi(e,t,n,r){const i=ti(n,e.syntax);let o;return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(i)?pi(null,new Error("Matching for a tree with var() is not supported")):(r&&(o=ri.matchAsTree(i,e.cssWideKeywordsSyntax,e)),r&&o.match||(o=ri.matchAsTree(i,t.match,e),o.match)?pi(o.match,null,o.iterations):pi(null,new Yr.SyntaxMatchError(o.reason,t.syntax,n,o),o.iterations))}function fi(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function gi(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}bt.Lexer=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=ui,this.syntax=t,this.generic=!1,this.units={...ei},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||ai.getStructureFromConfig(e),e){if(e.units)for(const t of Object.keys(ei))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(const[t,n]of Object.entries(e.types))this.addType_(t,n);if(e.generic){this.generic=!0;for(const[e,t]of Object.entries(Jr.createGenericTypes(this.units)))this.addType_(e,t)}if(e.atrules)for(const[t,n]of Object.entries(e.atrules))this.addAtrule_(t,n);if(e.properties)for(const[t,n]of Object.entries(e.properties))this.addProperty_(t,n)}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}const n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){const i={type:t,name:n},o={type:t,name:n,parent:r,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?o.match=ni.buildMatchGraph(e,i):("string"==typeof e?Object.defineProperty(o,"syntax",{get:()=>(Object.defineProperty(o,"syntax",{value:si.parse(e)}),o.syntax)}):o.syntax=e,Object.defineProperty(o,"match",{get:()=>(Object.defineProperty(o,"match",{value:ni.buildMatchGraph(o.syntax,i)}),o.match)})),o}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Yr.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||mi(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=Qr.keyword(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new Yr.SyntaxReferenceError("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Yr.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return pi(null,n);const r=this.getAtrule(e);return r.prelude?mi(this,r.prelude,t||"",!1):pi(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return pi(null,r);const i=this.getAtrule(e),o=Qr.keyword(t);return mi(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?pi(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Qr.property(e).custom)return pi(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?pi(null,n):mi(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?mi(this,n,t,!1):pi(null,new Yr.SyntaxReferenceError("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),mi(this,e,t,!1)):pi(null,new Yr.SyntaxReferenceError("Bad syntax"))}findValueFragments(e,t,n,r){return oi.matchFragments(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return oi.matchFragments(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){const n=Qr.keyword(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const n=Qr.property(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,a){if(o.has(i))return o.get(i);o.set(i,!1),null!==a.syntax&&ci.walk(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;const s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,s[a.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:hi(this.types,!t,e),properties:hi(this.properties,!t,e),atrules:di(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};const bi=m,yi=te,ki=Ce,wi=st,vi=ct,xi=bt,Si=function(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?fi(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?fi(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=fi(n[r][e],t);break;case"scope":case"features":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...gi(i,["parse"])};break;case"node":n[r]={...e[r],...gi(i,["name","structure","parse","generate","walkContext"])}}return n};function Ci(e){const t=yi.createParser(e),n=vi.createWalker(e),r=ki.createGenerator(e),{fromPlainObject:i,toPlainObject:o}=wi.createConvertor(n),a={lexer:null,createLexer:e=>new xi.Lexer(e,a,a.lexer.structure),tokenize:bi.tokenize,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=Si({},e);return Ci("function"==typeof t?t(n,Object.assign):Si(n,t))}};return a.lexer=new xi.Lexer({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var _i=e=>Ci(Si({},e)),Ai={},zi={};const Li=f,Ti=g,Ei=43,Ni=45,Ri=110,Di=!0;function Pi(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==Ei&&r!==Ni||(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ti.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ii(e){return Pi.call(this,0,e)}function Oi(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Ri:n="N is expected";break;case Ni:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function Bi(){let e=0,t=0,n=this.tokenType;for(;n===Li.WhiteSpace||n===Li.Comment;)n=this.lookupType(++e);if(n!==Li.Number){if(!this.isDelim(Ei,e)&&!this.isDelim(Ni,e))return null;t=this.isDelim(Ei,e)?Ei:Ni;do{n=this.lookupType(++e)}while(n===Li.WhiteSpace||n===Li.Comment);n!==Li.Number&&(this.skip(e),Ii.call(this,Di))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==Ei&&n!==Ni&&this.error("Number sign is expected")),Ii.call(this,0!==t),t===Ni?"-"+this.consume(Li.Number):this.consume(Li.Number)}const Fi={a:[String,null],b:[String,null]};zi.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)},zi.name="AnPlusB",zi.parse=function(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===Li.Number)Ii.call(this,!1),n=this.consume(Li.Number);else if(this.tokenType===Li.Ident&&this.cmpChar(this.tokenStart,Ni))switch(t="-1",Oi.call(this,1,Ri),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Bi.call(this);break;case 3:Oi.call(this,2,Ni),this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number);break;default:Oi.call(this,2,Ni),Pi.call(this,3,Di),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===Li.Ident||this.isDelim(Ei)&&this.lookupType(1)===Li.Ident){let r=0;switch(t="1",this.isDelim(Ei)&&(r=1,this.next()),Oi.call(this,0,Ri),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Bi.call(this);break;case 2:Oi.call(this,1,Ni),this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number);break;default:Oi.call(this,1,Ni),Pi.call(this,2,Di),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Li.Dimension){const r=this.charCodeAt(this.tokenStart),i=r===Ei||r===Ni;let o=this.tokenStart+i;for(;o<this.tokenEnd&&Ti.isDigit(this.charCodeAt(o));o++);o===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Oi.call(this,o-this.tokenStart,Ri),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),n=Bi.call(this)):(Oi.call(this,o-this.tokenStart+1,Ni),o+2===this.tokenEnd?(this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number)):(Pi.call(this,o-this.tokenStart+2,Di),this.next(),n=this.substrToCursor(o+1)))}else this.error();return null!==t&&t.charCodeAt(0)===Ei&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===Ei&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}},zi.structure=Fi;var Ui={};const Mi=f;function ji(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function qi(){for(let e,t=1;e=this.lookupType(t);t++){if(e===Mi.RightCurlyBracket)return!0;if(e===Mi.LeftCurlyBracket||e===Mi.AtKeyword)return!1}return!1}const Wi={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Ui.generate=function(e){this.token(Mi.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?(this.token(Mi.LeftCurlyBracket,"{"),this.node(e.block),this.token(Mi.RightCurlyBracket,"}")):this.token(Mi.Semicolon,";")},Ui.name="Atrule",Ui.parse=function(e=!1){const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(Mi.AtKeyword),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Mi.LeftCurlyBracket&&this.tokenType!==Mi.Semicolon&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),ji):ji.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Mi.Semicolon:this.next();break;case Mi.LeftCurlyBracket:this.eat(Mi.LeftCurlyBracket),o=hasOwnProperty.call(this.atrule,r)&&"function"==typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(qi.call(this)),this.eof||this.eat(Mi.RightCurlyBracket)}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}},Ui.structure=Wi,Ui.walkContext="atrule";var Hi={};const $i=f;Hi.generate=function(e){this.children(e)},Hi.name="AtrulePrelude",Hi.parse=function(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==$i.LeftCurlyBracket&&this.tokenType!==$i.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},Hi.structure={children:[[]]},Hi.walkContext="atrulePrelude";var Vi={};const Ki=f;function Zi(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(Ki.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(Ki.Ident)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Gi(){const e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Yi={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Vi.generate=function(e){this.token(Ki.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(Ki.Ident,e.flags),this.token(Ki.Delim,"]")},Vi.name="AttributeSelector",Vi.parse=function(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Ki.LeftSquareBracket),this.skipSC(),t=Zi.call(this),this.skipSC(),this.tokenType!==Ki.RightSquareBracket&&(this.tokenType!==Ki.Ident&&(n=Gi.call(this),this.skipSC(),r=this.tokenType===Ki.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Ki.Ident&&(i=this.consume(Ki.Ident),this.skipSC())),this.eat(Ki.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}},Vi.structure=Yi;var Qi={};const Xi=f;function Ji(){return this.Raw(null,!0)}function eo(){return this.parseWithFallback(this.Rule,Ji)}function to(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function no(){if(this.tokenType===Xi.Semicolon)return to.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,to);return this.tokenType===Xi.Semicolon&&this.next(),e}Qi.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Xi.Semicolon,";")}))},Qi.name="Block",Qi.parse=function(e){const t=e?no:eo,n=this.tokenStart;let r=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Xi.RightCurlyBracket:break e;case Xi.WhiteSpace:case Xi.Comment:this.next();break;case Xi.AtKeyword:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Ji));break;default:e&&this.isDelim(38)?r.push(eo.call(this)):r.push(t.call(this))}return{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}},Qi.structure={children:[["Atrule","Rule","Declaration"]]},Qi.walkContext="block";var ro={};const io=f;ro.generate=function(e){this.token(io.Delim,"["),this.children(e),this.token(io.Delim,"]")},ro.name="Brackets",ro.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(io.LeftSquareBracket),r=e.call(this,t),this.eof||this.eat(io.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}},ro.structure={children:[[]]};var oo={};const ao=f;oo.generate=function(){this.token(ao.CDC,"--\x3e")},oo.name="CDC",oo.parse=function(){const e=this.tokenStart;return this.eat(ao.CDC),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}},oo.structure=[];var so={};const lo=f;so.generate=function(){this.token(lo.CDO,"\x3c!--")},so.name="CDO",so.parse=function(){const e=this.tokenStart;return this.eat(lo.CDO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}},so.structure=[];var co={};const uo=f,ho={name:String};co.generate=function(e){this.token(uo.Delim,"."),this.token(uo.Ident,e.name)},co.name="ClassSelector",co.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(uo.Ident)}},co.structure=ho;var po={};const mo=f,fo={name:String};po.generate=function(e){this.tokenize(e.name)},po.name="Combinator",po.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case mo.WhiteSpace:t=" ";break;case mo.Delim:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}},po.structure=fo;var go={};const bo=f,yo={value:String};go.generate=function(e){this.token(bo.Comment,"/*"+e.value+"*/")},go.name="Comment",go.parse=function(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(bo.Comment),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}},go.structure=yo;var ko={};const wo=f,vo=new Set([wo.Colon,wo.RightParenthesis,wo.EOF]),xo={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function So(e){return this.lookupTypeNonSC(1)===wo.Ident&&vo.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const Co={media:So,container:So,supports(){return this.SupportsDeclaration()}};ko.generate=function(e){e.children.forEach((e=>{"Condition"===e.type?(this.token(wo.LeftParenthesis,"("),this.node(e),this.token(wo.RightParenthesis,")")):this.node(e)}))},ko.name="Condition",ko.parse=function(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case wo.Comment:case wo.WhiteSpace:this.next();continue;case wo.Ident:t.push(this.Identifier());break;case wo.LeftParenthesis:{let n=this.parseWithFallback((()=>Co[e].call(this,e)),(()=>null));n||(n=this.parseWithFallback((()=>{this.eat(wo.LeftParenthesis);const t=this.Condition(e);return this.eat(wo.RightParenthesis),t}),(()=>this.GeneralEnclosed(e)))),t.push(n);break}case wo.Function:{let n=this.parseWithFallback((()=>this.FeatureFunction(e)),(()=>null));n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}},ko.structure=xo;var _o={};const Ao=zt,zo=f;function Lo(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function To(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Eo(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==zo.Semicolon&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}const No={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ro(){const e=this.tokenStart;if(this.tokenType===zo.Delim)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return this.tokenType===zo.Hash?this.eat(zo.Hash):this.eat(zo.Ident),this.substrToCursor(e)}function Do(){this.eat(zo.Delim),this.skipSC();const e=this.consume(zo.Ident);return"important"===e||e}_o.generate=function(e){this.token(zo.Ident,e.property),this.token(zo.Colon,":"),this.node(e.value),e.important&&(this.token(zo.Delim,"!"),this.token(zo.Ident,!0===e.important?"important":e.important))},_o.name="Declaration",_o.parse=function(){const e=this.tokenStart,t=this.tokenIndex,n=Ro.call(this),r=Ao.isCustomProperty(n),i=r?this.parseCustomProperty:this.parseValue,o=r?To:Lo;let a,s=!1;this.skipSC(),this.eat(zo.Colon);const l=this.tokenIndex;if(r||this.skipSC(),a=i?this.parseWithFallback(Eo,o):o.call(this,this.tokenIndex),r&&"Value"===a.type&&a.children.isEmpty)for(let e=l-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===zo.WhiteSpace){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=Do.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==zo.Semicolon&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}},_o.structure=No,_o.walkContext="declaration";var Po={};const Io=f;function Oo(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}Po.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Io.Semicolon,";")}))},Po.name="DeclarationList",Po.parse=function(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Io.WhiteSpace:case Io.Comment:case Io.Semicolon:this.next();break;case Io.AtKeyword:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Oo));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,Oo)):e.push(this.parseWithFallback(this.Declaration,Oo))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},Po.structure={children:[["Declaration","Atrule","Rule"]]};var Bo={};const Fo=f,Uo={value:String,unit:String};Bo.generate=function(e){this.token(Fo.Dimension,e.value+e.unit)},Bo.name="Dimension",Bo.parse=function(){const e=this.tokenStart,t=this.consumeNumber(Fo.Dimension);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}},Bo.structure=Uo;var Mo={};const jo=f,qo={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};Mo.generate=function(e){this.token(jo.LeftParenthesis,"("),this.token(jo.Ident,e.name),null!==e.value&&(this.token(jo.Colon,":"),this.node(e.value)),this.token(jo.RightParenthesis,")")},Mo.name="Feature",Mo.parse=function(e){const t=this.tokenStart;let n,r=null;if(this.eat(jo.LeftParenthesis),this.skipSC(),n=this.consume(jo.Ident),this.skipSC(),this.tokenType!==jo.RightParenthesis){switch(this.eat(jo.Colon),this.skipSC(),this.tokenType){case jo.Number:r=this.lookupNonWSType(1)===jo.Delim?this.Ratio():this.Number();break;case jo.Dimension:r=this.Dimension();break;case jo.Ident:r=this.Identifier();break;case jo.Function:r=this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(jo.RightParenthesis),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}},Mo.structure=qo;var Wo={};const Ho=f,$o={kind:String,feature:String,value:["Declaration","Selector"]};function Vo(e,t){const n=(this.features[e]||{})[t];return"function"!=typeof n&&this.error(`Unknown feature ${t}()`),n}Wo.generate=function(e){this.token(Ho.Function,e.feature+"("),this.node(e.value),this.token(Ho.RightParenthesis,")")},Wo.name="FeatureFunction",Wo.parse=function(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=Vo.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback((()=>{const e=this.tokenIndex,t=r.call(this);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.Raw(null,!1)));return this.eof||this.eat(Ho.RightParenthesis),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}},Wo.structure=$o;var Ko={};const Zo=f,Go={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Yo(){switch(this.skipSC(),this.tokenType){case Zo.Number:return this.isDelim(47,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Zo.Dimension:return this.Dimension();case Zo.Ident:return this.Identifier();case Zo.Function:return this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));default:this.error("Number, dimension, ratio or identifier is expected")}}function Qo(e){if(this.skipSC(),this.isDelim(60)||this.isDelim(62)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(61)?(this.next(),e+"="):e}if(this.isDelim(61))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}Ko.generate=function(e){this.token(Zo.LeftParenthesis,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(Zo.RightParenthesis,")")},Ko.name="FeatureRange",Ko.parse=function(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Zo.LeftParenthesis);const n=Yo.call(this),r=Qo.call(this,"Identifier"===n.type),i=Yo.call(this);let o=null,a=null;return this.lookupNonWSType(0)!==Zo.RightParenthesis&&(o=Qo.call(this),a=Yo.call(this)),this.skipSC(),this.eat(Zo.RightParenthesis),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:o,right:a}},Ko.structure=Go;var Xo={};const Jo=f,ea={name:String,children:[[]]};Xo.generate=function(e){this.token(Jo.Function,e.name+"("),this.children(e),this.token(Jo.RightParenthesis,")")},Xo.name="Function",Xo.parse=function(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(Jo.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}},Xo.structure=ea,Xo.walkContext="function";var ta={};const na=f,ra={kind:String,function:[String,null],children:[[]]};ta.generate=function(e){e.function?this.token(na.Function,e.function+"("):this.token(na.LeftParenthesis,"("),this.children(e),this.token(na.RightParenthesis,")")},ta.name="GeneralEnclosed",ta.parse=function(e){const t=this.tokenStart;let n=null;this.tokenType===na.Function?n=this.consumeFunctionName():this.eat(na.LeftParenthesis);const r=this.parseWithFallback((()=>{const e=this.tokenIndex,t=this.readSequence(this.scope.Value);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(na.RightParenthesis),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}},ta.structure=ra;var ia={};const oa=f,aa={value:String};ia.generate=function(e){this.token(oa.Hash,"#"+e.value)},ia.name="Hash",ia.parse=function(){const e=this.tokenStart;return this.eat(oa.Hash),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}},ia.structure=aa,ia.xxx="XXX";var sa={};const la=f,ca={name:String};sa.generate=function(e){this.token(la.Ident,e.name)},sa.name="Identifier",sa.parse=function(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(la.Ident)}},sa.structure=ca;var ua={};const ha=f,da={name:String};ua.generate=function(e){this.token(ha.Delim,"#"+e.name)},ua.name="IdSelector",ua.parse=function(){const e=this.tokenStart;return this.eat(ha.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},ua.structure=da;var pa={};const ma=f,fa={name:String};pa.generate=function(e){this.tokenize(e.name)},pa.name="Layer",pa.parse=function(){let e=this.consume(ma.Ident);for(;this.isDelim(46);)this.eat(ma.Delim),e+="."+this.consume(ma.Ident);return{type:"Layer",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}},pa.structure=fa;var ga={};const ba=f;ga.generate=function(e){this.children(e,(()=>this.token(ba.Comma,",")))},ga.name="LayerList",ga.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.tokenType===ba.Comma);)this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}},ga.structure={children:[["MediaQuery"]]};var ya={};const ka=f,wa={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};ya.generate=function(e){e.mediaType?(e.modifier&&this.token(ka.Ident,e.modifier),this.token(ka.Ident,e.mediaType),e.condition&&(this.token(ka.Ident,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)},ya.name="MediaQuery",ya.parse=function(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===ka.Ident&&this.lookupTypeNonSC(1)!==ka.LeftParenthesis){const e=this.consume(ka.Ident),i=e.toLowerCase();switch("not"===i||"only"===i?(this.skipSC(),t=i,n=this.consume(ka.Ident)):n=e,this.lookupTypeNonSC(0)){case ka.Ident:this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break;case ka.LeftCurlyBracket:case ka.Semicolon:case ka.Comma:case ka.EOF:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case ka.Ident:case ka.LeftParenthesis:case ka.Function:r=this.Condition("media");break;case ka.LeftCurlyBracket:case ka.Semicolon:case ka.EOF:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}},ya.structure=wa;var va={};const xa=f;va.generate=function(e){this.children(e,(()=>this.token(xa.Comma,",")))},va.name="MediaQueryList",va.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===xa.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},va.structure={children:[["MediaQuery"]]};var Sa={};const Ca=f;Sa.generate=function(){this.token(Ca.Delim,"&")},Sa.name="NestingSelector",Sa.parse=function(){const e=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}},Sa.structure={};var _a={};const Aa=f;_a.generate=function(e){this.node(e.nth),null!==e.selector&&(this.token(Aa.Ident,"of"),this.node(e.selector))},_a.name="Nth",_a.parse=function(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}},_a.structure={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};var za={};const La=f,Ta={value:String};za.generate=function(e){this.token(La.Number,e.value)},za.name="Number",za.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(La.Number)}},za.structure=Ta;var Ea={};const Na={value:String};Ea.generate=function(e){this.tokenize(e.value)},Ea.name="Operator",Ea.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},Ea.structure=Na;var Ra={};const Da=f;Ra.generate=function(e){this.token(Da.LeftParenthesis,"("),this.children(e),this.token(Da.RightParenthesis,")")},Ra.name="Parentheses",Ra.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(Da.LeftParenthesis),r=e.call(this,t),this.eof||this.eat(Da.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}},Ra.structure={children:[[]]};var Pa={};const Ia=f,Oa={value:String};Pa.generate=function(e){this.token(Ia.Percentage,e.value+"%")},Pa.name="Percentage",Pa.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Ia.Percentage)}},Pa.structure=Oa;var Ba={};const Fa=f,Ua={name:String,children:[["Raw"],null]};Ba.generate=function(e){this.token(Fa.Colon,":"),null===e.children?this.token(Fa.Ident,e.name):(this.token(Fa.Function,e.name+"("),this.children(e),this.token(Fa.RightParenthesis,")"))},Ba.name="PseudoClassSelector",Ba.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(Fa.Colon),this.tokenType===Fa.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==Fa.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(Fa.RightParenthesis)):t=this.consume(Fa.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ba.structure=Ua,Ba.walkContext="function";var Ma={};const ja=f,qa={name:String,children:[["Raw"],null]};Ma.generate=function(e){this.token(ja.Colon,":"),this.token(ja.Colon,":"),null===e.children?this.token(ja.Ident,e.name):(this.token(ja.Function,e.name+"("),this.children(e),this.token(ja.RightParenthesis,")"))},Ma.name="PseudoElementSelector",Ma.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(ja.Colon),this.eat(ja.Colon),this.tokenType===ja.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==ja.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(ja.RightParenthesis)):t=this.consume(ja.Ident),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ma.structure=qa,Ma.walkContext="function";var Wa={};const Ha=f;function $a(){switch(this.skipSC(),this.tokenType){case Ha.Number:return this.Number();case Ha.Function:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}Wa.generate=function(e){this.node(e.left),this.token(Ha.Delim,"/"),e.right?this.node(e.right):this.node(Ha.Number,1)},Wa.name="Ratio",Wa.parse=function(){const e=this.tokenStart,t=$a.call(this);let n=null;return this.skipSC(),this.isDelim(47)&&(this.eatDelim(47),n=$a.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}},Wa.structure={left:["Number","Function"],right:["Number","Function",null]};var Va={};const Ka=f;function Za(){return this.tokenIndex>0&&this.lookupType(-1)===Ka.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Ga={value:String};Va.generate=function(e){this.tokenize(e.value)},Va.name="Raw",Va.parse=function(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?Za.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}},Va.structure=Ga;var Ya={};const Qa=f;function Xa(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Ja(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Qa.LeftCurlyBracket&&this.error(),e}Ya.generate=function(e){this.node(e.prelude),this.token(Qa.LeftCurlyBracket,"{"),this.node(e.block),this.token(Qa.RightCurlyBracket,"}")},Ya.name="Rule",Ya.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(Ja,Xa):Xa.call(this,e),this.skipSC(),this.eat(Qa.LeftCurlyBracket),r=this.Block(!0),this.eof||this.eat(Qa.RightCurlyBracket),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}},Ya.structure={prelude:["SelectorList","Raw"],block:["Block"]},Ya.walkContext="rule";var es={};const ts=f;es.generate=function(e){e.root&&(this.token(ts.LeftParenthesis,"("),this.node(e.root),this.token(ts.RightParenthesis,")")),e.limit&&(this.token(ts.Ident,"to"),this.token(ts.LeftParenthesis,"("),this.node(e.limit),this.token(ts.RightParenthesis,")"))},es.name="Scope",es.parse=function(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===ts.LeftParenthesis&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(ts.RightParenthesis)),this.lookupNonWSType(0)===ts.Ident&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(ts.LeftParenthesis),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(ts.RightParenthesis)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}},es.structure={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};var ns={generate:function(e){this.children(e)},name:"Selector",parse:function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]}},rs={};const is=f;rs.generate=function(e){this.children(e,(()=>this.token(is.Comma,",")))},rs.name="SelectorList",rs.parse=function(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===is.Comma);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},rs.structure={children:[["Selector","Raw"]]},rs.walkContext="selector";var os={},as={};const ss=g,ls=L;as.decode=function(e){const t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let n=r;n<=i;n++){let r=e.charCodeAt(n);if(92===r){if(n===i){n!==t-1&&(o=e.substr(n+1));break}if(r=e.charCodeAt(++n),ss.isValidEscape(92,r)){const t=n-1,r=ls.consumeEscaped(e,t);n=r-1,o+=ls.decodeEscaped(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else o+=e[n]}return o},as.encode=function(e,t){const n=t?"'":'"',r=t?39:34;let i="",o=!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);0!==n?n<=31||127===n?(i+="\\"+n.toString(16),o=!0):n===r||92===n?(i+="\\"+e.charAt(t),o=!1):(o&&(ss.isHexDigit(n)||ss.isWhiteSpace(n))&&(i+=" "),i+=e.charAt(t),o=!1):i+="�"}return n+i+n};const cs=as,us=f,hs={value:String};os.generate=function(e){this.token(us.String,cs.encode(e.value))},os.name="String",os.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:cs.decode(this.consume(us.String))}},os.structure=hs;var ds={};const ps=f;function ms(){return this.Raw(null,!1)}ds.generate=function(e){this.children(e)},ds.name="StyleSheet",ds.parse=function(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case ps.WhiteSpace:this.next();continue;case ps.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}n=this.Comment();break;case ps.CDO:n=this.CDO();break;case ps.CDC:n=this.CDC();break;case ps.AtKeyword:n=this.parseWithFallback(this.Atrule,ms);break;default:n=this.parseWithFallback(this.Rule,ms)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},ds.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},ds.walkContext="stylesheet";var fs={};const gs=f;fs.generate=function(e){this.token(gs.LeftParenthesis,"("),this.node(e.declaration),this.token(gs.RightParenthesis,")")},fs.name="SupportsDeclaration",fs.parse=function(){const e=this.tokenStart;this.eat(gs.LeftParenthesis),this.skipSC();const t=this.Declaration();return this.eof||this.eat(gs.RightParenthesis),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}},fs.structure={declaration:"Declaration"};var bs={};const ys=f;function ks(){this.tokenType!==ys.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const ws={name:String};bs.generate=function(e){this.tokenize(e.name)},bs.name="TypeSelector",bs.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),ks.call(this)):(ks.call(this),this.isDelim(124)&&(this.next(),ks.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},bs.structure=ws;var vs={};const xs=f,Ss=g,Cs=43,_s=45,As=63;function zs(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===_s&&t&&0!==n)return zs.call(this,e+n+1,!1),-1;Ss.isHexDigit(i)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Ls(e){let t=0;for(;this.isDelim(As);)++t>e&&this.error("Too many question marks"),this.next()}function Ts(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Cs?"Plus sign":"Hyphen minus")+" is expected")}function Es(){let e=0;switch(this.tokenType){case xs.Number:if(e=zs.call(this,1,!0),this.isDelim(As)){Ls.call(this,6-e);break}if(this.tokenType===xs.Dimension||this.tokenType===xs.Number){Ts.call(this,_s),zs.call(this,1,!1);break}break;case xs.Dimension:e=zs.call(this,1,!0),e>0&&Ls.call(this,6-e);break;default:if(this.eatDelim(Cs),this.tokenType===xs.Ident){e=zs.call(this,0,!0),e>0&&Ls.call(this,6-e);break}if(this.isDelim(As)){this.next(),Ls.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Ns={value:String};vs.generate=function(e){this.tokenize(e.value)},vs.name="UnicodeRange",vs.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),Es.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},vs.structure=Ns;var Rs={},Ds={};const Ps=g,Is=L;Ds.decode=function(e){const t=e.length;let n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,i="";for(;n<r&&Ps.isWhiteSpace(e.charCodeAt(n));)n++;for(;n<r&&Ps.isWhiteSpace(e.charCodeAt(r));)r--;for(let o=n;o<=r;o++){let n=e.charCodeAt(o);if(92===n){if(o===r){o!==t-1&&(i=e.substr(o+1));break}if(n=e.charCodeAt(++o),Ps.isValidEscape(92,n)){const t=o-1,n=Is.consumeEscaped(e,t);o=n-1,i+=Is.decodeEscaped(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(o+1)&&o++}else i+=e[o]}return i},Ds.encode=function(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);0!==i?i<=31||127===i?(t+="\\"+i.toString(16),n=!0):32===i||92===i||34===i||39===i||40===i||41===i?(t+="\\"+e.charAt(r),n=!1):(n&&Ps.isHexDigit(i)&&(t+=" "),t+=e.charAt(r),n=!1):t+="�"}return"url("+t+")"};const Os=Ds,Bs=as,Fs=f,Us={value:String};Rs.generate=function(e){this.token(Fs.Url,Os.encode(e.value))},Rs.name="Url",Rs.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case Fs.Url:t=Os.decode(this.consume(Fs.Url));break;case Fs.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Fs.Function),this.skipSC(),t=Bs.decode(this.consume(Fs.String)),this.skipSC(),this.eof||this.eat(Fs.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}},Rs.structure=Us;var Ms={generate:function(e){this.children(e)},name:"Value",parse:function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},structure:{children:[[]]}},js={};const qs=f,Ws=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Hs={value:String};js.generate=function(e){this.token(qs.WhiteSpace,e.value)},js.name="WhiteSpace",js.parse=function(){return this.eat(qs.WhiteSpace),Ws},js.structure=Hs;const $s=zi,Vs=Ui,Ks=Hi,Zs=Vi,Gs=Qi,Ys=ro,Qs=oo,Xs=so,Js=co,el=po,tl=go,nl=ko,rl=_o,il=Po,ol=Bo,al=Mo,sl=Wo,ll=Ko,cl=Xo,ul=ta,hl=ia,dl=sa,pl=ua,ml=pa,fl=ga,gl=ya,bl=va,yl=Sa,kl=_a,wl=za,vl=Ea,xl=Ra,Sl=Pa,Cl=Ba,_l=Ma,Al=Wa,zl=Va,Ll=Ya,Tl=es,El=ns,Nl=rs,Rl=os,Dl=ds,Pl=fs,Il=bs,Ol=vs,Bl=Rs,Fl=Ms,Ul=js;Ai.AnPlusB=$s,Ai.Atrule=Vs,Ai.AtrulePrelude=Ks,Ai.AttributeSelector=Zs,Ai.Block=Gs,Ai.Brackets=Ys,Ai.CDC=Qs,Ai.CDO=Xs,Ai.ClassSelector=Js,Ai.Combinator=el,Ai.Comment=tl,Ai.Condition=nl,Ai.Declaration=rl,Ai.DeclarationList=il,Ai.Dimension=ol,Ai.Feature=al,Ai.FeatureFunction=sl,Ai.FeatureRange=ll,Ai.Function=cl,Ai.GeneralEnclosed=ul,Ai.Hash=hl,Ai.Identifier=dl,Ai.IdSelector=pl,Ai.Layer=ml,Ai.LayerList=fl,Ai.MediaQuery=gl,Ai.MediaQueryList=bl,Ai.NestingSelector=yl,Ai.Nth=kl,Ai.Number=wl,Ai.Operator=vl,Ai.Parentheses=xl,Ai.Percentage=Sl,Ai.PseudoClassSelector=Cl,Ai.PseudoElementSelector=_l,Ai.Ratio=Al,Ai.Raw=zl,Ai.Rule=Ll,Ai.Scope=Tl,Ai.Selector=El,Ai.SelectorList=Nl,Ai.String=Rl,Ai.StyleSheet=Dl,Ai.SupportsDeclaration=Pl,Ai.TypeSelector=Il,Ai.UnicodeRange=Ol,Ai.Url=Bl,Ai.Value=Fl,Ai.WhiteSpace=Ul;var Ml={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>|<-non-standard-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>|<timeline-range-name> <percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"rgb( ) >|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#","scroll-timeline-axis":"[block|inline|vertical|horizontal]#","scroll-timeline-name":"none|<custom-ident>#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"wrap|nowrap|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces","white-space-trim":"none|discard-before||discard-after||discard-inner",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null}},node:Ai},jl={};const ql=f;var Wl=function(e){switch(this.tokenType){case ql.Hash:return this.Hash();case ql.Comma:return this.Operator();case ql.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case ql.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case ql.String:return this.String();case ql.Dimension:return this.Dimension();case ql.Percentage:return this.Percentage();case ql.Number:return this.Number();case ql.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case ql.Url:return this.Url();case ql.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case ql.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}};const Hl=f,$l=f;function Vl(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const Kl={getNode:Wl},Zl={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case Hl.LeftSquareBracket:return this.AttributeSelector();case Hl.Hash:return this.IdSelector();case Hl.Colon:return this.lookupType(1)===Hl.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Hl.Ident:return this.TypeSelector();case Hl.Number:case Hl.Percentage:return this.Percentage();case Hl.Dimension:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case Hl.Delim:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}},Gl={getNode:Wl,onWhiteSpace(e,t){Vl(e)&&(e.value=" "+e.value),Vl(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(null,!1))},var:function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===$l.Comma){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===$l.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}};jl.AtrulePrelude=Kl,jl.Selector=Zl,jl.Value=Gl;const Yl=f,Ql=new Set(["none","and","not","or"]),Xl={parse:{prelude(){const e=this.createList();if(this.tokenType===Yl.Ident){const t=this.substring(this.tokenStart,this.tokenEnd);Ql.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},Jl=f;function ec(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==Jl.RightParenthesis&&this.error()}}),t||(()=>this.Raw(null,!0)))}const tc={layer(){this.skipSC();const e=this.createList(),t=ec.call(this,this.Layer);return"Raw"===t.type&&""===t.value||e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=ec.call(this,this.Declaration,(()=>ec.call(this,(()=>this.Condition("supports")))));return"Raw"===t.type&&""===t.value||e.push(t),e}};var nc={container:Xl,"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case Jl.String:e.push(this.String());break;case Jl.Url:case Jl.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===Jl.Ident&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===Jl.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,tc)),this.skipSC(),this.tokenType===Jl.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,tc)),this.lookupNonWSType(0)!==Jl.Ident&&this.lookupNonWSType(0)!==Jl.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};const rc={parse(){return this.createSingleNodeList(this.SelectorList())}},ic={parse(){return this.createSingleNodeList(this.Selector())}},oc={parse(){return this.createSingleNodeList(this.Identifier())}},ac={parse(){return this.createSingleNodeList(this.Nth())}};var sc={dir:oc,has:rc,lang:oc,matches:rc,is:rc,"-moz-any":rc,"-webkit-any":rc,where:rc,not:rc,"nth-child":ac,"nth-last-child":ac,"nth-last-of-type":ac,"nth-of-type":ac,slotted:ic,host:ic,"host-context":ic},lc={};const cc=zi,uc=Ui,hc=Hi,dc=Vi,pc=Qi,mc=ro,fc=oo,gc=so,bc=co,yc=po,kc=go,wc=ko,vc=_o,xc=Po,Sc=Bo,Cc=Mo,_c=Wo,Ac=Ko,zc=Xo,Lc=ta,Tc=ia,Ec=sa,Nc=ua,Rc=pa,Dc=ga,Pc=ya,Ic=va,Oc=Sa,Bc=_a,Fc=za,Uc=Ea,Mc=Ra,jc=Pa,qc=Ba,Wc=Ma,Hc=Wa,$c=Va,Vc=Ya,Kc=es,Zc=ns,Gc=rs,Yc=os,Qc=ds,Xc=fs,Jc=bs,eu=vs,tu=Rs,nu=Ms,ru=js;lc.AnPlusB=cc.parse,lc.Atrule=uc.parse,lc.AtrulePrelude=hc.parse,lc.AttributeSelector=dc.parse,lc.Block=pc.parse,lc.Brackets=mc.parse,lc.CDC=fc.parse,lc.CDO=gc.parse,lc.ClassSelector=bc.parse,lc.Combinator=yc.parse,lc.Comment=kc.parse,lc.Condition=wc.parse,lc.Declaration=vc.parse,lc.DeclarationList=xc.parse,lc.Dimension=Sc.parse,lc.Feature=Cc.parse,lc.FeatureFunction=_c.parse,lc.FeatureRange=Ac.parse,lc.Function=zc.parse,lc.GeneralEnclosed=Lc.parse,lc.Hash=Tc.parse,lc.Identifier=Ec.parse,lc.IdSelector=Nc.parse,lc.Layer=Rc.parse,lc.LayerList=Dc.parse,lc.MediaQuery=Pc.parse,lc.MediaQueryList=Ic.parse,lc.NestingSelector=Oc.parse,lc.Nth=Bc.parse,lc.Number=Fc.parse,lc.Operator=Uc.parse,lc.Parentheses=Mc.parse,lc.Percentage=jc.parse,lc.PseudoClassSelector=qc.parse,lc.PseudoElementSelector=Wc.parse,lc.Ratio=Hc.parse,lc.Raw=$c.parse,lc.Rule=Vc.parse,lc.Scope=Kc.parse,lc.Selector=Zc.parse,lc.SelectorList=Gc.parse,lc.String=Yc.parse,lc.StyleSheet=Qc.parse,lc.SupportsDeclaration=Xc.parse,lc.TypeSelector=Jc.parse,lc.UnicodeRange=eu.parse,lc.Url=tu.parse,lc.Value=nu.parse,lc.WhiteSpace=ru.parse;var iu=_i({...Ml,parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:jl,atrule:nc,pseudo:sc,node:lc,node:Ai}),ou={};const au=_n,su=kt,lu=Sn,cu=Kr;ou.SyntaxError=au.SyntaxError,ou.generate=su.generate,ou.parse=lu.parse,ou.walk=cu.walk;var uu={};const hu=ne;uu.clone=function e(t){const n={};for(const r of Object.keys(t)){let i=t[r];i&&(Array.isArray(i)||i instanceof hu.List?i=i.map(e):i.constructor===Object&&(i=e(i))),n[r]=i}return n};var du={};const pu=g,mu=L;du.decode=function(e){const t=e.length-1;let n="";for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(92===i){if(r===t)break;if(i=e.charCodeAt(++r),pu.isValidEscape(92,i)){const t=r-1,i=mu.consumeEscaped(e,t);r=i-1,n+=mu.decodeEscaped(e.substring(t+1,i))}else 13===i&&10===e.charCodeAt(r+1)&&r++}else n+=e[r]}return n},du.encode=function(e){let t="";if(1===e.length&&45===e.charCodeAt(0))return"\\-";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);0!==r?r<=31||127===r||r>=48&&r<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":pu.isName(r)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t};const fu=iu,gu=_i,bu=ne,yu=bt,ku=ou,wu=uu,vu=zt,xu=du,Su=as,Cu=Ds,_u=f,Au=I,zu=j,{tokenize:Lu,parse:Tu,generate:Eu,lexer:Nu,createLexer:Ru,walk:Du,find:Pu,findLast:Iu,findAll:Ou,toPlainObject:Bu,fromPlainObject:Fu,fork:Uu}=fu;p.version="1.1.3".version,p.createSyntax=gu,p.List=bu.List,p.Lexer=yu.Lexer,p.definitionSyntax=ku,p.clone=wu.clone,p.isCustomProperty=vu.isCustomProperty,p.keyword=vu.keyword,p.property=vu.property,p.vendorPrefix=vu.vendorPrefix,p.ident=xu,p.string=Su,p.url=Cu,p.tokenTypes=_u,p.tokenNames=Au,p.TokenStream=zu.TokenStream,p.createLexer=Ru,p.find=Pu,p.findAll=Ou,p.findLast=Iu,p.fork=Uu,p.fromPlainObject=Fu,p.generate=Eu,p.lexer=Nu,p.parse=Tu,p.toPlainObject=Bu,p.tokenize=Lu,p.walk=Du;var Mu={};const ju=new Map([["background",new Set(["background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"])],["background-position",new Set(["background-position-x","background-position-y"])],["background-repeat",new Set(["background-repeat-x","background-repeat-y"])],["font",new Set(["font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"])],["font-variant",new Set(["font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"])],["outline",new Set(["outline-width","outline-style","outline-color"])],["border",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-width",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width"])],["border-style",new Set(["border-top-style","border-right-style","border-bottom-style","border-left-style"])],["border-color",new Set(["border-top-color","border-right-color","border-bottom-color","border-left-color"])],["border-block",new Set(["border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-inline",new Set(["border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-radius",new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"])],["padding",new Set(["padding-top","padding-right","padding-bottom","padding-left"])],["padding-block",new Set(["padding-block-start","padding-block-end"])],["padding-inline",new Set(["padding-inline-start","padding-inline-end"])],["margin",new Set(["margin-top","margin-right","margin-bottom","margin-left"])],["margin-block",new Set(["margin-block-start","margin-block-end"])],["margin-inline",new Set(["margin-inline-start","margin-inline-end"])],["inset",new Set(["top","right","bottom","left"])],["inset-block",new Set(["inset-block-start","inset-block-end"])],["inset-inline",new Set(["inset-inline-start","inset-inline-end"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["gap",new Set(["row-gap","column-gap"])],["transition",new Set(["transition-duration","transition-timing-function","transition-delay","transition-property"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"])],["grid-template",new Set(["grid-template-rows","grid-template-columns","grid-template-areas"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap","row-gap","column-gap"])],["place-content",new Set(["align-content","justify-content"])],["place-items",new Set(["align-items","justify-items"])],["place-self",new Set(["align-self","justify-self"])],["columns",new Set(["column-width","column-count"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["offset",new Set(["offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"])],["overflow",new Set(["overflow-x","overflow-y"])],["overscroll-behavior",new Set(["overscroll-behavior-x","overscroll-behavior-y"])],["scroll-margin",new Set(["scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"])],["scroll-padding",new Set(["scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"])],["text-decoration",new Set(["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"])],["text-stroke",new Set(["text-stroke-color","text-stroke-width"])],["animation",new Set(["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","animation-timeline","animation-range-start","animation-range-end"])],["mask",new Set(["mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"])],["mask-repeat",new Set(["mask-repeat-x","mask-repeat-y"])],["mask-position",new Set(["mask-position-x","mask-position-y"])],["perspective-origin",new Set(["perspective-origin-x","perspective-origin-y"])],["transform-origin",new Set(["transform-origin-x","transform-origin-y","transform-origin-z"])],["white-space",new Set(["white-space-collapse","text-wrap"])]]),qu=new Map([Vu("animation","moz"),Vu("border-image","moz"),Vu("mask","moz"),Vu("transition","moz"),Vu("columns","moz"),Vu("text-stroke","moz"),Vu("column-rule","moz"),["-moz-border-end",new Set(["-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"])],["-moz-border-start",new Set(["-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"])],["-moz-outline-radius",new Set(["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"])]]),Wu=new Map([Vu("animation","webkit"),Vu("border-radius","webkit"),Vu("column-rule","webkit"),Vu("columns","webkit"),Vu("flex","webkit"),Vu("flex-flow","webkit"),Vu("mask","webkit"),Vu("text-stroke","webkit"),Vu("perspective-origin","webkit"),Vu("transform-origin","webkit"),Vu("transition","webkit"),["-webkit-border-start",new Set(["-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"])],["-webkit-border-before",new Set(["-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"])],["-webkit-border-end",new Set(["-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"])],["-webkit-border-after",new Set(["-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"])]]),Hu=["background-position","background-repeat","text-decoration"];qu.forEach(((e,t)=>ju.set(t,e))),Wu.forEach(((e,t)=>ju.set(t,e)));const $u=new Map;function Vu(e,t){const n=ju.get(e);if(n)return[`-${t}-${e}`,new Set(Array.from(n,(e=>`-${t}-${e}`)))]}function Ku(e,t){const n=ju.get(e);return!!n&&n.has(t)}ju.forEach(((e,t)=>{e.forEach((e=>{$u.get(e)||$u.set(e,new Set),$u.get(e).add(t)}))})),Mu.isShorthand=function(e){return ju.has(e)},Mu.isShorthandFor=Ku,Mu.hasShorthand=function(e){return $u.has(e)},Mu.hasShorthandWithin=function(e,t){return t.some((t=>Ku(t,e)))},Mu.getShorthands=function(e){return $u.get(e)},Mu.preferredShorthand=function(e){return Hu.find((t=>ju.get(t).has(e)))};const{preferredShorthand:Zu,getShorthands:Gu}=Mu;function Yu(e,t){return{type:"Declaration",important:Boolean(e.getPropertyPriority(t)),property:t,value:{type:"Raw",value:e.getPropertyValue(t)}}}var Qu=function(e){const t=Array.from(e).reduce(((t,n)=>{const r=Zu(n)||n;t.set(r,Yu(e,r));const i=Gu(n);return i&&i.forEach((n=>{e.getPropertyValue(n)&&(t.delete(n),t.set(n,Yu(e,n)))})),t}),new Map);return Array.from(t.values())};const Xu=p,Ju=Qu,eh={2:{atrule:"charset",prelude:"charset"},CSSImportRule:{atrule:"import",prelude:"import"},CSSNamespaceRule:{atrule:"namespace",prelude:"namespace"},CSSStyleRule:{prelude:"selector",block:"style"},CSSKeyframeRule:{prelude:"key",block:"style"},CSSPageRule:{atrule:"page",prelude:"selector",block:"style"},CSSFontFaceRule:{atrule:"font-face",block:"style"},CSSMediaRule:{atrule:"media",prelude:"condition",block:"nested"},CSSSupportsRule:{atrule:"supports",prelude:"condition",block:"nested"},13:{atrule:"document",prelude:"condition",block:"nested"},CSSKeyframesRule:{atrule:"keyframes",prelude:"name",block:"nested"},CSSContainerRule:{atrule:"container",prelude:"condition",block:"nested"},CSSLayerStatementRule:{atrule:"layer",prelude:"nameList"},CSSLayerBlockRule:{atrule:"layer",prelude:"name",block:"nested"}};var th=function e(t){return Array.from(t,(t=>{const n=eh[t.type]??eh[t.constructor.name];if(!n)throw new Error(`Unknown CSS object model rule ${t}`);const r={};if(n.atrule){r.type="Atrule";const[e,i]=t.cssText.match(new RegExp(`^@(-\\w+-)?${n.atrule}`));r.name=i?i+n.atrule:n.atrule}else r.type="Rule";let i;if("selector"===n.prelude?i=t.selectorText:"key"===n.prelude?i=t.keyText:"condition"===n.prelude?i=t.conditionText:"name"===n.prelude?i=t.name:"import"===n.prelude?i=`url("${t.href}") ${t.media.mediaText}`:"namespace"===n.prelude?i=`${t.prefix} url("${t.namespaceURI}")`:"charset"===n.prelude?i=`"${t.encoding}"`:"nameList"===n.prelude&&(i=t.nameList),i){const e=n.atrule?{context:"atrulePrelude",atrule:n.atrule}:{context:"selectorList"};r.prelude=Xu.toPlainObject(Xu.parse(i,e))}else r.prelude=null;return"style"===n.block?r.block={type:"Block",children:Ju(t.style)}:"nested"===n.block?r.block={type:"Block",children:e(t.cssRules)}:r.block=null,r}))};const nh=p,rh=new Set(["before","after","first-line","first-letter"]);const{isShorthand:ih,isShorthandFor:oh,hasShorthandWithin:ah}=Mu,sh={"word-wrap":"overflow-wrap",clip:"clip-path"};function lh(e,t){let n=[];return e.forEach((e=>{"Declaration"===e.type&&n.push(e)})),t.forEach((e=>{if("Declaration"!==e.type)return;if(ah(e.property,n.map((e=>e.property))))return;const t=n.filter((t=>t.property===e.property));if(0===t.length)n.push(e);else{const r=t.findLast((t=>t.value.value===e.value.value));if(r)r.important!==e.important&&t.forEach((t=>t.important=e.important));else{if(ih(e.property))return;n=n.filter((t=>t.property!==e.property)),n.push(e)}}})),n}function ch(e,t){return!Array.isArray(e)&&!Array.isArray(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>{const r=t[n];return e.type===r.type&&((a=e.name)===(s=r.name)||a&&s&&a.name&&a.name===s.name)&&((i=e.value)===(o=r.value)||i.type===o.type&&i.value===o.value)&&ch(e.children,r.children);var i,o,a,s}))}function uh(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function hh(e,t,n,r){for(let i=t;i<n;++i)r(e[i],i,e)}var dh=()=>{},ph=function(e){const t=Array.from(e.attributes).map((t=>"id"===t.name?`#${t.value}`:"class"===t.name?Array.from(e.classList).map((e=>`.${e}`)).join(""):`[${t.name}="${t.value}"]`)).join("");return`${e.nodeName}${t}`};const mh=p,fh=th,gh=function(e){const t=nh.parse(e,{context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1});return nh.walk(t,{visit:"TypeSelector",enter(e,t){"from"===e.name?t.data={type:"Percentage",value:"0"}:"to"===e.name&&(t.data={type:"Percentage",value:"100"})}}),nh.walk(t,{visit:"AtrulePrelude",enter(e){if(["import","namespace"].includes(this.atrule.name)){const t=e.children.toArray(),n="import"===e.name?0:t.length-1,r=t[n];"String"===r.type&&(t[n]={type:"Url",value:r.value},e.children.fromArray(t))}}}),nh.walk(t,{visit:"PseudoClassSelector",enter(e){rh.has(e.name)&&(e.type="PseudoElementSelector")}}),nh.walk(t,{visit:"Selector",enter(e){const t=e.children.toArray();if(t.length>1){const n=t.filter(((e,n)=>{const r=t[n+1],i=r?"PseudoClassSelector"===r.type||"PseudoElementSelector"===r.type:void 0;return!("*"===e.name&&"TypeSelector"===e.type&&i)}));e.children.fromArray(n.length?n:null)}}}),nh.walk(t,{visit:"AttributeSelector",enter(e){e.value&&"Identifier"===e.value.type&&(e.value={type:"String",value:e.value.name})}}),nh.toPlainObject(t)},bh=function e(t,n){let r=0;const i=[];return t.forEach((t=>{const o={};o.type=t.type,o.name=t.name,o.prelude=t.prelude,o.block=t.block;const a=function(e,t,n){return function(e,t,n){for(let r=t;r<e.length;++r)if(n(e[r]))return r;return-1}(e,t,(e=>{return e.type===n.type&&e.name===n.name&&(i=e.prelude,o=n.prelude,!i&&!o||i.type===o.type&&ch(i.children,o.children))&&(!uh(n)||(t=e.block.children,(r=n.block.children).reduce(((e,n)=>{const r="Declaration"===n.type&&(function(e){return/^(-\w+-)/.test(e)}(n.property)||t.some((e=>function(e,t){const n=sh[e]||e,r=sh[t]||t;return n===r||oh(r,n)||oh(n,r)}(e.property,n.property))));return e+(r?1:0)}),0)>=r.length));var t,r,i,o}))}(n,r,t);a>r&&hh(n,r,a,(e=>i.push(e))),a>=0&&(r=a+1,function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?o.block={type:"Block",children:e(t.block.children,n[a].block.children)}:uh(t)&&(o.block={type:"Block",children:lh(t.block.children,n[a].block.children)})),i.push(o)}),[]),r<n.length&&hh(n,r,n.length,(e=>i.push(e))),i},yh=dh,kh=ph;function wh(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=xh(n,r,i,o,t[0],7,-680876936),o=xh(o,n,r,i,t[1],12,-389564586),i=xh(i,o,n,r,t[2],17,606105819),r=xh(r,i,o,n,t[3],22,-1044525330),n=xh(n,r,i,o,t[4],7,-176418897),o=xh(o,n,r,i,t[5],12,1200080426),i=xh(i,o,n,r,t[6],17,-1473231341),r=xh(r,i,o,n,t[7],22,-45705983),n=xh(n,r,i,o,t[8],7,1770035416),o=xh(o,n,r,i,t[9],12,-1958414417),i=xh(i,o,n,r,t[10],17,-42063),r=xh(r,i,o,n,t[11],22,-1990404162),n=xh(n,r,i,o,t[12],7,1804603682),o=xh(o,n,r,i,t[13],12,-40341101),i=xh(i,o,n,r,t[14],17,-1502002290),n=Sh(n,r=xh(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=Sh(o,n,r,i,t[6],9,-1069501632),i=Sh(i,o,n,r,t[11],14,643717713),r=Sh(r,i,o,n,t[0],20,-373897302),n=Sh(n,r,i,o,t[5],5,-701558691),o=Sh(o,n,r,i,t[10],9,38016083),i=Sh(i,o,n,r,t[15],14,-660478335),r=Sh(r,i,o,n,t[4],20,-405537848),n=Sh(n,r,i,o,t[9],5,568446438),o=Sh(o,n,r,i,t[14],9,-1019803690),i=Sh(i,o,n,r,t[3],14,-187363961),r=Sh(r,i,o,n,t[8],20,1163531501),n=Sh(n,r,i,o,t[13],5,-1444681467),o=Sh(o,n,r,i,t[2],9,-51403784),i=Sh(i,o,n,r,t[7],14,1735328473),n=Ch(n,r=Sh(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=Ch(o,n,r,i,t[8],11,-2022574463),i=Ch(i,o,n,r,t[11],16,1839030562),r=Ch(r,i,o,n,t[14],23,-35309556),n=Ch(n,r,i,o,t[1],4,-1530992060),o=Ch(o,n,r,i,t[4],11,1272893353),i=Ch(i,o,n,r,t[7],16,-155497632),r=Ch(r,i,o,n,t[10],23,-1094730640),n=Ch(n,r,i,o,t[13],4,681279174),o=Ch(o,n,r,i,t[0],11,-358537222),i=Ch(i,o,n,r,t[3],16,-722521979),r=Ch(r,i,o,n,t[6],23,76029189),n=Ch(n,r,i,o,t[9],4,-640364487),o=Ch(o,n,r,i,t[12],11,-421815835),i=Ch(i,o,n,r,t[15],16,530742520),n=_h(n,r=Ch(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=_h(o,n,r,i,t[7],10,1126891415),i=_h(i,o,n,r,t[14],15,-1416354905),r=_h(r,i,o,n,t[5],21,-57434055),n=_h(n,r,i,o,t[12],6,1700485571),o=_h(o,n,r,i,t[3],10,-1894986606),i=_h(i,o,n,r,t[10],15,-1051523),r=_h(r,i,o,n,t[1],21,-2054922799),n=_h(n,r,i,o,t[8],6,1873313359),o=_h(o,n,r,i,t[15],10,-30611744),i=_h(i,o,n,r,t[6],15,-1560198380),r=_h(r,i,o,n,t[13],21,1309151649),n=_h(n,r,i,o,t[4],6,-145523070),o=_h(o,n,r,i,t[11],10,-1120210379),i=_h(i,o,n,r,t[2],15,718787259),r=_h(r,i,o,n,t[9],21,-343485551),e[0]=Th(n,e[0]),e[1]=Th(r,e[1]),e[2]=Th(i,e[2]),e[3]=Th(o,e[3])}function vh(e,t,n,r,i,o){return t=Th(Th(t,e),Th(r,o)),Th(t<<i|t>>>32-i,n)}function xh(e,t,n,r,i,o,a){return vh(t&n|~t&r,e,t,i,o,a)}function Sh(e,t,n,r,i,o,a){return vh(t&r|n&~r,e,t,i,o,a)}function Ch(e,t,n,r,i,o,a){return vh(t^n^r,e,t,i,o,a)}function _h(e,t,n,r,i,o,a){return vh(n^(t|~r),e,t,i,o,a)}function Ah(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var zh="0123456789abcdef".split("");function Lh(e){for(var t="",n=0;n<4;n++)t+=zh[e>>8*n+4&15]+zh[e>>8*n&15];return t}function Th(e,t){return e+t&4294967295}var Eh=function(e,{removeReverseProxyURLPrefixes:t}={}){const n=[];return[/url\((?!['"]?:)'([^']*)'\)/g,/url\((?!['"]?:)"([^"]*)"\)/g,/url\((?!['"]?:)([^()'"]*)\)/g].forEach((t=>{let r;for(;null!==(r=t.exec(e));)n.push(r[1])})),t?n.map((e=>{const t=e.match(/\/http(.*)$/);return t&&t.length?t[0].substring(1):e})):n};const Nh=Eh;var Rh=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];let i=e.getPropertyValue(r);(/^\s*var\s*\(/.test(i)||/^--/.test(r))&&(i=i.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16)))).replace(/\\([^0-9a-fA-F])/g,"$1"));const o=Nh(i);t=t.concat(o)}return t};const Dh=Rh,Ph=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;const Ih=p,Oh=th;const Bh=p,Fh=Qu;const Uh=p;const Mh=Symbol("raw");function jh(e){const t=function(e){if("undefined"==typeof window)return null;const t=window.Node.prototype.toString.apply(e).replace(/\[object (.*)]/,"$1");return window[t]}(e);return t?(n=e,r=t.prototype,new Proxy(Object.create(n),{get(e,t,i){if(t===Mh)return n;const o=Reflect.get(r,t,n);return"function"==typeof o?function(){return o.apply(this===i?n:this,arguments)}:o}})):e;var n,r}jh.unwrap=function(e){return e[Mh]||e};var qh=jh;const{absolutizeUrl:Wh,isInlineFrame:Hh,isAccessibleFrame:$h}=u,Vh=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]},Kh=function(e,t=yh){t("[processInlineCss] processing inline css for",kh(e));try{const n=gh(e.textContent);t("[processInlineCss] created AST for textContent");const r=fh(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const i=bh(n.children,r);t("[processInlineCss] merged AST");const o=mh.generate(mh.fromPlainObject({type:"StyleSheet",children:i}));return t("[processInlineCss] generated cssText of length",o.length),o}catch(n){return t("[processInlineCss] error while processing inline css:",n.message,n),t("[processInlineCss] try to set fallback"),"string"==typeof e.textContent&&e.textContent.length>0?(t("[processInlineCss] set style from `styleNode.textContent`"),e.textContent):e.sheet&&e.sheet.cssRules?(t("[processInlineCss] set style from reduce `sheet.cssRules`"),Array.from(e.sheet.cssRules).reduce(((e,{cssText:t})=>e+t),"")):(t("[processInlineCss] could not set fallback to inline css"),"")}},Zh=function(e){const t=Array.prototype.map.call(e.sheet.cssRules,(e=>e.cssText)).join("");return function(e){return function(e){for(var t=0;t<e.length;t++)e[t]=Lh(e[t]);return e.join("")}(function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)wh(r,Ah(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(wh(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,wh(r,i),r}(e))}(t)},Gh=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let n=[];if(t("img[srcset],source[srcset]")&&(n=n.concat(function(e,t,n){const r=[],i=new RegExp(e.source,e.flags),o=i.global;let a;for(;(a=i.exec(t))&&(r.push(n(a)),o););return r}(Ph,e.getAttribute("srcset"),(e=>e[1])))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&n.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&!function(e,t){try{const n=new URL(t),r=new URL(e,t);return r.origin===n.origin&&r.pathname===n.pathname&&Boolean(r.hash)}catch(e){return!1}}(t,e.ownerDocument.location.href)&&n.push(t)}t("object")&&e.getAttribute("data")&&n.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&n.push(e.getAttribute("href")),t("video[poster]")&&n.push(e.getAttribute("poster")),t("embed[src]")&&n.push(e.getAttribute("src"));const r=function(e){if(e.hasAttribute("style"))return Dh(e.style)}(e);return r&&(n=n.concat(r)),n},Yh=function(e){const t=Oh(e.cssRules);return Ih.generate(Ih.fromPlainObject({type:"StyleSheet",children:t}))},Qh=function(e){const t={type:"DeclarationList",children:Fh(e)};return Bh.generate(t)},Xh=dh,Jh=function(e){const{ownerDocument:t}=e;if(!t)return!0;const{display:n}=t.defaultView.getComputedStyle(e),{width:r,height:i}=e.getBoundingClientRect();return"none"===n||0===r||0===i},ed=function(e){try{return Uh.toPlainObject(Uh.parse(e.toLowerCase(),{context:"mediaQueryList"})).children.some((e=>{const t=e.condition?.children.reduce(((e,t)=>("Identifier"===t.type&&"and"===t.name||e.push(t),e)),[])??[];return e.mediaType&&t.unshift(e),t.every((e=>!(e.modifier&&!["not","only"].includes(e.modifier))&&("Feature"===e.type||("Identifier"!==e.type&&"MediaQuery"!==e.type||!["all","screen"].includes(e.name??e.mediaType)?e.modifier&&"not"===e.modifier:!e.modifier||"not"!==e.modifier))))}))}catch{return!1}},td=qh,nd=ph,rd=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]),id=/^on[a-z]+$/;function od({attributes:e={}}){return Object.keys(e).filter((t=>e[t]&&e[t].name))}function ad(e,t,n){const r=e.find((e=>e.name===t));r?r.value=n:e.push({name:t,value:n})}function sd(e){return Array.from(e.adoptedStyleSheets).map(Yh)}var ld=function(e){const t=[];return new Set(e).forEach((e=>e&&t.push(e))),t};const cd=ld;var ud={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},i={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)}(ud);var hd={},dd={},pd={},md=ud;function fd(e){for(var t=e.length;--t>=0;)e[t]=0}var gd=256,bd=286,yd=30,kd=15,wd=16,vd=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],xd=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Sd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Cd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_d=new Array(576);fd(_d);var Ad=new Array(60);fd(Ad);var zd=new Array(512);fd(zd);var Ld=new Array(256);fd(Ld);var Td=new Array(29);fd(Td);var Ed,Nd,Rd,Dd=new Array(yd);function Pd(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Id(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Od(e){return e<256?zd[e]:zd[256+(e>>>7)]}function Bd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Fd(e,t,n){e.bi_valid>wd-n?(e.bi_buf|=t<<e.bi_valid&65535,Bd(e,e.bi_buf),e.bi_buf=t>>wd-e.bi_valid,e.bi_valid+=n-wd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Ud(e,t,n){Fd(e,n[2*t],n[2*t+1])}function Md(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function jd(e,t,n){var r,i,o=new Array(kd+1),a=0;for(r=1;r<=kd;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Md(o[s]++,s))}}function qd(e){var t;for(t=0;t<bd;t++)e.dyn_ltree[2*t]=0;for(t=0;t<yd;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Wd(e){e.bi_valid>8?Bd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Hd(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function $d(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&Hd(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Hd(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Vd(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Ud(e,i,t):(Ud(e,(o=Ld[i])+gd+1,t),0!==(a=vd[o])&&Fd(e,i-=Td[o],a),Ud(e,o=Od(--r),n),0!==(a=xd[o])&&Fd(e,r-=Dd[o],a))}while(s<e.last_lit);Ud(e,256,t)}function Kd(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)$d(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$d(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,$d(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,f=0;for(o=0;o<=kd;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>m&&(o=m,f++),l[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==f){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,f-=2}while(f>0);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),jd(o,c,e.bl_count)}function Zd(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function Gd(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{Ud(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ud(e,i,e.bl_tree),s--),Ud(e,16,e.bl_tree),Fd(e,s-3,2)):s<=10?(Ud(e,17,e.bl_tree),Fd(e,s-3,3)):(Ud(e,18,e.bl_tree),Fd(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}fd(Dd);var Yd=!1;function Qd(e,t,n,r){Fd(e,0+(r?1:0),3),function(e,t,n,r){Wd(e),Bd(e,n),Bd(e,~n),md.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}pd._tr_init=function(e){Yd||(function(){var e,t,n,r,i,o=new Array(kd+1);for(n=0,r=0;r<28;r++)for(Td[r]=n,e=0;e<1<<vd[r];e++)Ld[n++]=r;for(Ld[n-1]=r,i=0,r=0;r<16;r++)for(Dd[r]=i,e=0;e<1<<xd[r];e++)zd[i++]=r;for(i>>=7;r<yd;r++)for(Dd[r]=i<<7,e=0;e<1<<xd[r]-7;e++)zd[256+i++]=r;for(t=0;t<=kd;t++)o[t]=0;for(e=0;e<=143;)_d[2*e+1]=8,e++,o[8]++;for(;e<=255;)_d[2*e+1]=9,e++,o[9]++;for(;e<=279;)_d[2*e+1]=7,e++,o[7]++;for(;e<=287;)_d[2*e+1]=8,e++,o[8]++;for(jd(_d,287,o),e=0;e<yd;e++)Ad[2*e+1]=5,Ad[2*e]=Md(e,5);Ed=new Pd(_d,vd,257,bd,kd),Nd=new Pd(Ad,xd,0,yd,kd),Rd=new Pd(new Array(0),Sd,0,19,7)}(),Yd=!0),e.l_desc=new Id(e.dyn_ltree,Ed),e.d_desc=new Id(e.dyn_dtree,Nd),e.bl_desc=new Id(e.bl_tree,Rd),e.bi_buf=0,e.bi_valid=0,qd(e)},pd._tr_stored_block=Qd,pd._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<gd;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Kd(e,e.l_desc),Kd(e,e.d_desc),a=function(e){var t;for(Zd(e,e.dyn_ltree,e.l_desc.max_code),Zd(e,e.dyn_dtree,e.d_desc.max_code),Kd(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Cd[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?Qd(e,t,n,r):4===e.strategy||o===i?(Fd(e,2+(r?1:0),3),Vd(e,_d,Ad)):(Fd(e,4+(r?1:0),3),function(e,t,n,r){var i;for(Fd(e,t-257,5),Fd(e,n-1,5),Fd(e,r-4,4),i=0;i<r;i++)Fd(e,e.bl_tree[2*Cd[i]+1],3);Gd(e,e.dyn_ltree,t-1),Gd(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Vd(e,e.dyn_ltree,e.dyn_dtree)),qd(e),r&&Wd(e)},pd._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Ld[n]+gd+1)]++,e.dyn_dtree[2*Od(t)]++),e.last_lit===e.lit_bufsize-1},pd._tr_align=function(e){Fd(e,2,3),Ud(e,256,_d),function(e){16===e.bi_valid?(Bd(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var Xd,Jd=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ep=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),tp=function(e,t,n,r){var i=ep,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},np={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},rp=ud,ip=pd,op=Jd,ap=tp,sp=np,lp=0,cp=0,up=-2,hp=2,dp=8,pp=286,mp=30,fp=19,gp=2*pp+1,bp=15,yp=3,kp=258,wp=kp+yp+1,vp=42,xp=103,Sp=113,Cp=666;function _p(e,t){return e.msg=sp[t],t}function Ap(e){return(e<<1)-(e>4?9:0)}function zp(e){for(var t=e.length;--t>=0;)e[t]=0}function Lp(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(rp.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Tp(e,t){ip._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Lp(e.strm)}function Ep(e,t){e.pending_buf[e.pending++]=t}function Np(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Rp(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-wp?e.strstart-(e.w_size-wp):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+kp,p=c[o+a-1],m=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===m&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(r=kp-(d-o),o=d-kp,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[o+a-1],m=c[o+a]}}}while((t=h[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function Dp(e){var t,n,r,i,o,a,s,l,c,u,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-wp)){rp.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);i+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=i,u=void 0,(u=a.avail_in)>c&&(u=c),n=0===u?0:(a.avail_in-=u,rp.arraySet(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=op(a.adler,s,u,l):2===a.state.wrap&&(a.adler=ap(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=yp)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+yp-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<yp)););}while(e.lookahead<wp&&0!==e.strm.avail_in)}function Pp(e,t){for(var n,r;;){if(e.lookahead<wp){if(Dp(e),e.lookahead<wp&&t===lp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=yp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-wp&&(e.match_length=Rp(e,n)),e.match_length>=yp)if(r=ip._tr_tally(e,e.strstart-e.match_start,e.match_length-yp),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=yp){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<yp-1?e.strstart:yp-1,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}function Ip(e,t){for(var n,r,i;;){if(e.lookahead<wp){if(Dp(e),e.lookahead<wp&&t===lp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=yp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=yp-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-wp&&(e.match_length=Rp(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===yp&&e.strstart-e.match_start>4096)&&(e.match_length=yp-1)),e.prev_length>=yp&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-yp,r=ip._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-yp),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=yp-1,e.strstart++,r&&(Tp(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=ip._tr_tally(e,0,e.window[e.strstart-1]))&&Tp(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ip._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<yp-1?e.strstart:yp-1,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}function Op(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Bp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=dp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new rp.Buf16(2*gp),this.dyn_dtree=new rp.Buf16(2*(2*mp+1)),this.bl_tree=new rp.Buf16(2*(2*fp+1)),zp(this.dyn_ltree),zp(this.dyn_dtree),zp(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new rp.Buf16(bp+1),this.heap=new rp.Buf16(2*pp+1),zp(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new rp.Buf16(2*pp+1),zp(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Fp(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=hp,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?vp:Sp,e.adler=2===t.wrap?0:1,t.last_flush=lp,ip._tr_init(t),cp):_p(e,up)}function Up(e){var t,n=Fp(e);return n===cp&&((t=e.state).window_size=2*t.w_size,zp(t.head),t.max_lazy_match=Xd[t.level].max_lazy,t.good_match=Xd[t.level].good_length,t.nice_match=Xd[t.level].nice_length,t.max_chain_length=Xd[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=yp-1,t.match_available=0,t.ins_h=0),n}function Mp(e,t,n,r,i,o){if(!e)return up;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||n!==dp||r<8||r>15||t<0||t>9||o<0||o>4)return _p(e,up);8===r&&(r=9);var s=new Bp;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+yp-1)/yp),s.window=new rp.Buf8(2*s.w_size),s.head=new rp.Buf16(s.hash_size),s.prev=new rp.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new rp.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=n,Up(e)}Xd=[new Op(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Dp(e),0===e.lookahead&&t===lp)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Tp(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-wp&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Tp(e,!1),e.strm.avail_out),1)})),new Op(4,4,8,4,Pp),new Op(4,5,16,8,Pp),new Op(4,6,32,32,Pp),new Op(4,4,16,16,Ip),new Op(8,16,32,32,Ip),new Op(8,16,128,128,Ip),new Op(8,32,128,256,Ip),new Op(32,128,258,1024,Ip),new Op(32,258,258,4096,Ip)],dd.deflateInit=function(e,t){return Mp(e,t,dp,15,8,0)},dd.deflateInit2=Mp,dd.deflateReset=Up,dd.deflateResetKeep=Fp,dd.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?up:(e.state.gzhead=t,cp):up},dd.deflate=function(e,t){var n,r,i,o;if(!e||!e.state||t>5||t<0)return e?_p(e,up):up;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Cp&&4!==t)return _p(e,0===e.avail_out?-5:up);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===vp)if(2===r.wrap)e.adler=0,Ep(r,31),Ep(r,139),Ep(r,8),r.gzhead?(Ep(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ep(r,255&r.gzhead.time),Ep(r,r.gzhead.time>>8&255),Ep(r,r.gzhead.time>>16&255),Ep(r,r.gzhead.time>>24&255),Ep(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Ep(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ep(r,255&r.gzhead.extra.length),Ep(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ap(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Ep(r,3),r.status=Sp);else{var a=dp+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Sp,Np(r,a),0!==r.strstart&&(Np(r,e.adler>>>16),Np(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending!==r.pending_buf_size));)Ep(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ep(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ep(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=xp)}else r.status=xp;if(r.status===xp&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Lp(e),r.pending+2<=r.pending_buf_size&&(Ep(r,255&e.adler),Ep(r,e.adler>>8&255),e.adler=0,r.status=Sp)):r.status=Sp),0!==r.pending){if(Lp(e),0===e.avail_out)return r.last_flush=-1,cp}else if(0===e.avail_in&&Ap(t)<=Ap(n)&&4!==t)return _p(e,-5);if(r.status===Cp&&0!==e.avail_in)return _p(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==lp&&r.status!==Cp){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Dp(e),0===e.lookahead)){if(t===lp)return 1;break}if(e.match_length=0,n=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=kp){if(Dp(e),e.lookahead<=kp&&t===lp)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=yp&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+kp;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=kp-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=yp?(n=ip._tr_tally(e,1,e.match_length-yp),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}(r,t):Xd[r.level].func(r,t);if(3!==s&&4!==s||(r.status=Cp),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),cp;if(2===s&&(1===t?ip._tr_align(r):5!==t&&(ip._tr_stored_block(r,0,0,!1),3===t&&(zp(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Lp(e),0===e.avail_out))return r.last_flush=-1,cp}return 4!==t?cp:r.wrap<=0?1:(2===r.wrap?(Ep(r,255&e.adler),Ep(r,e.adler>>8&255),Ep(r,e.adler>>16&255),Ep(r,e.adler>>24&255),Ep(r,255&e.total_in),Ep(r,e.total_in>>8&255),Ep(r,e.total_in>>16&255),Ep(r,e.total_in>>24&255)):(Np(r,e.adler>>>16),Np(r,65535&e.adler)),Lp(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?cp:1)},dd.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==vp&&69!==t&&73!==t&&91!==t&&t!==xp&&t!==Sp&&t!==Cp?_p(e,up):(e.state=null,t===Sp?_p(e,-3):cp):up},dd.deflateSetDictionary=function(e,t){var n,r,i,o,a,s,l,c,u=t.length;if(!e||!e.state)return up;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==vp||n.lookahead)return up;for(1===o&&(e.adler=op(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(0===o&&(zp(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new rp.Buf8(n.w_size),rp.arraySet(c,t,u-n.w_size,n.w_size,0),t=c,u=n.w_size),a=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,Dp(n);n.lookahead>=yp;){r=n.strstart,i=n.lookahead-(yp-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+yp-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=yp-1,Dp(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=yp-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,n.wrap=o,cp},dd.deflateInfo="pako deflate (from Nodeca project)";var jp={},qp=ud,Wp=!0,Hp=!0;try{String.fromCharCode.apply(null,[0])}catch(e){Wp=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Hp=!1}for(var $p=new qp.Buf8(256),Vp=0;Vp<256;Vp++)$p[Vp]=Vp>=252?6:Vp>=248?5:Vp>=240?4:Vp>=224?3:Vp>=192?2:1;function Kp(e,t){if(t<65534&&(e.subarray&&Hp||!e.subarray&&Wp))return String.fromCharCode.apply(null,qp.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}$p[254]=$p[254]=1,jp.string2buf=function(e){var t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new qp.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},jp.buf2binstring=function(e){return Kp(e,e.length)},jp.binstring2buf=function(e){for(var t=new qp.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},jp.buf2string=function(e,t){var n,r,i,o,a=t||e.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=e[n++])<128)s[r++]=i;else if((o=$p[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&e[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return Kp(s,r)},jp.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+$p[e[n]]>t?n:t};var Zp=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Gp=dd,Yp=ud,Qp=jp,Xp=np,Jp=Zp,em=Object.prototype.toString,tm=0,nm=-1,rm=0,im=8;function om(e){if(!(this instanceof om))return new om(e);this.options=Yp.assign({level:nm,method:im,chunkSize:16384,windowBits:15,memLevel:8,strategy:rm,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Jp,this.strm.avail_out=0;var n=Gp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==tm)throw new Error(Xp[n]);if(t.header&&Gp.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?Qp.string2buf(t.dictionary):"[object ArrayBuffer]"===em.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Gp.deflateSetDictionary(this.strm,r))!==tm)throw new Error(Xp[n]);this._dict_set=!0}}function am(e,t){var n=new om(t);if(n.push(e,!0),n.err)throw n.msg||Xp[n.err];return n.result}om.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=Qp.string2buf(e):"[object ArrayBuffer]"===em.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Yp.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=Gp.deflate(i,r))&&n!==tm)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(Qp.buf2binstring(Yp.shrinkBuf(i.output,i.next_out))):this.onData(Yp.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=Gp.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===tm):2!==r||(this.onEnd(tm),i.avail_out=0,!0)},om.prototype.onData=function(e){this.chunks.push(e)},om.prototype.onEnd=function(e){e===tm&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Yp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},hd.Deflate=om,hd.deflate=am,hd.deflateRaw=function(e,t){return(t=t||{}).raw=!0,am(e,t)},hd.gzip=function(e,t){return(t=t||{}).gzip=!0,am(e,t)};var sm={},lm={},cm=ud,um=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hm=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dm=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],pm=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],mm=ud,fm=Jd,gm=tp,bm=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,C,_,A;n=e.state,r=e.next_in,_=e.input,i=r+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,m=n.bits,f=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=_[r++]<<m,m+=8,p+=_[r++]<<m,m+=8),k=f[p&b];t:for(;;){if(p>>>=w=k>>>24,m-=w,0==(w=k>>>16&255))A[o++]=65535&k;else{if(!(16&w)){if(0==(64&w)){k=f[(65535&k)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=65535&k,(w&=15)&&(m<w&&(p+=_[r++]<<m,m+=8),v+=p&(1<<w)-1,p>>>=w,m-=w),m<15&&(p+=_[r++]<<m,m+=8,p+=_[r++]<<m,m+=8),k=g[p&y];n:for(;;){if(p>>>=w=k>>>24,m-=w,!(16&(w=k>>>16&255))){if(0==(64&w)){k=g[(65535&k)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&k,m<(w&=15)&&(p+=_[r++]<<m,(m+=8)<w&&(p+=_[r++]<<m,m+=8)),(x+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,m-=w,x>(w=o-a)){if((w=x-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,C=d,0===h){if(S+=c-w,w<v){v-=w;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}}else if(h<w){if(S+=c+h-w,(w-=h)<v){v-=w;do{A[o++]=d[S++]}while(--w);if(S=0,h<v){v-=w=h;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}}}else if(S+=h-w,w<v){v-=w;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}for(;v>2;)A[o++]=C[S++],A[o++]=C[S++],A[o++]=C[S++],v-=3;v&&(A[o++]=C[S++],v>1&&(A[o++]=C[S++]))}else{S=o-x;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],v-=3}while(v>2);v&&(A[o++]=A[S++],v>1&&(A[o++]=A[S++]))}break}}break}}while(r<i&&o<s);r-=v=m>>3,p&=(1<<(m-=v<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=m},ym=function(e,t,n,r,i,o,a,s){var l,c,u,h,d,p,m,f,g,b=s.bits,y=0,k=0,w=0,v=0,x=0,S=0,C=0,_=0,A=0,z=0,L=null,T=0,E=new cm.Buf16(16),N=new cm.Buf16(16),R=null,D=0;for(y=0;y<=15;y++)E[y]=0;for(k=0;k<r;k++)E[t[n+k]]++;for(x=b,v=15;v>=1&&0===E[v];v--);if(x>v&&(x=v),0===v)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<v&&0===E[w];w++);for(x<w&&(x=w),_=1,y=1;y<=15;y++)if(_<<=1,(_-=E[y])<0)return-1;if(_>0&&(0===e||1!==v))return-1;for(N[1]=0,y=1;y<15;y++)N[y+1]=N[y]+E[y];for(k=0;k<r;k++)0!==t[n+k]&&(a[N[t[n+k]]++]=k);if(0===e?(L=R=a,p=19):1===e?(L=um,T-=257,R=hm,D-=257,p=256):(L=dm,R=pm,p=-1),z=0,k=0,y=w,d=o,S=x,C=0,u=-1,h=(A=1<<x)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){m=y-C,a[k]<p?(f=0,g=a[k]):a[k]>p?(f=R[D+a[k]],g=L[T+a[k]]):(f=96,g=0),l=1<<y-C,w=c=1<<S;do{i[d+(z>>C)+(c-=l)]=m<<24|f<<16|g|0}while(0!==c);for(l=1<<y-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,k++,0==--E[y]){if(y===v)break;y=t[n+a[k]]}if(y>x&&(z&h)!==u){for(0===C&&(C=x),d+=w,_=1<<(S=y-C);S+C<v&&!((_-=E[S+C])<=0);)S++,_<<=1;if(A+=1<<S,1===e&&A>852||2===e&&A>592)return 1;i[u=z&h]=x<<24|S<<16|d-o|0}}return 0!==z&&(i[d+z]=y-C<<24|64<<16|0),s.bits=x,0},km=0,wm=-2,vm=1,xm=12,Sm=30,Cm=852,_m=592;function Am(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function zm(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new mm.Buf16(320),this.work=new mm.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Lm(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=vm,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new mm.Buf32(Cm),t.distcode=t.distdyn=new mm.Buf32(_m),t.sane=1,t.back=-1,km):wm}function Tm(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Lm(e)):wm}function Em(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?wm:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Tm(e))):wm}function Nm(e,t){var n,r;return e?(r=new zm,e.state=r,r.window=null,(n=Em(e,t))!==km&&(e.state=null),n):wm}var Rm,Dm,Pm=!0;function Im(e){if(Pm){var t;for(Rm=new mm.Buf32(512),Dm=new mm.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ym(1,e.lens,0,288,Rm,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ym(2,e.lens,0,32,Dm,0,e.work,{bits:5}),Pm=!1}e.lencode=Rm,e.lenbits=9,e.distcode=Dm,e.distbits=5}function Om(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new mm.Buf8(o.wsize)),r>=o.wsize?(mm.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),mm.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(mm.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}lm.inflateReset=Tm,lm.inflateReset2=Em,lm.inflateResetKeep=Lm,lm.inflateInit=function(e){return Nm(e,15)},lm.inflateInit2=Nm,lm.inflate=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,C,_,A=0,z=new mm.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return wm;(n=e.state).mode===xm&&(n.mode=13),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,h=s,d=l,S=km;e:for(;;)switch(n.mode){case vm:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Sm;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=Sm;break}if(u-=4,x=8+(15&(c>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Sm;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&c?10:xm,c=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Sm;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Sm;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,z[2]=c>>>16&255,z[3]=c>>>24&255,n.check=gm(n.check,z,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),mm.arraySet(n.head.extra,r,o,p,x)),512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[o+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{x=r[o+p++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Sm;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=xm;break;case 10:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}e.adler=n.check=Am(c),c=0,u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,2;e.adler=n.check=1,n.mode=xm;case xm:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Im(n),n.mode=20,6===t){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Sm}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Sm;break}if(n.length=65535&c,c=0,u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;mm.arraySet(i,r,o,p,a),s-=p,o+=p,l-=p,a+=p,n.length-=p;break}n.mode=xm;break;case 17:for(;u<14;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Sm;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.lens[L[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},S=ym(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,S){e.msg="invalid code lengths set",n.mode=Sm;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){for(_=g+2;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Sm;break}x=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){for(_=g+3;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}u-=g,x=0,p=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(_=g+7;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}u-=g,x=0,p=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Sm;break}for(;p--;)n.lens[n.have++]=x}}if(n.mode===Sm)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Sm;break}if(n.lenbits=9,C={bits:n.lenbits},S=ym(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,S){e.msg="invalid literal/lengths set",n.mode=Sm;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},S=ym(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,S){e.msg="invalid distances set",n.mode=Sm;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,bm(e,d),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===xm&&(n.back=-1);break}for(n.back=0;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(b&&0==(240&b)){for(k=g,w=b,v=y;b=(A=n.lencode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=xm;break}if(64&b){e.msg="invalid literal/length code",n.mode=Sm;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(_=n.extra;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;b=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(0==(240&b)){for(k=g,w=b,v=y;b=(A=n.distcode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,64&b){e.msg="invalid distance code",n.mode=Sm;break}n.offset=y,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(_=n.extra;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Sm;break}n.mode=25;case 25:if(0===l)break e;if(p=d-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Sm;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),f=n.window}else f=i,m=a-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{i[a++]=f[m++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[o++]<<u,u+=8}if(d-=l,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?gm(n.check,i,d,a-d):fm(n.check,i,d,a-d)),d=l,(n.flags?c:Am(c))!==n.check){e.msg="incorrect data check",n.mode=Sm;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Sm;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case Sm:S=-3;break e;case 31:return-4;default:return wm}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==e.avail_out&&n.mode<Sm&&(n.mode<27||4!==t))&&Om(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?gm(n.check,i,d,e.next_out-d):fm(n.check,i,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===xm?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||4===t)&&S===km&&(S=-5),S},lm.inflateEnd=function(e){if(!e||!e.state)return wm;var t=e.state;return t.window&&(t.window=null),e.state=null,km},lm.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?wm:(n.head=t,t.done=!1,km):wm},lm.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?wm:11===n.mode&&fm(1,t,r,0)!==n.check?-3:Om(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,km):wm},lm.inflateInfo="pako inflate (from Nodeca project)";var Bm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Fm=lm,Um=ud,Mm=jp,jm=Bm,qm=np,Wm=Zp,Hm=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},$m=Object.prototype.toString;function Vm(e){if(!(this instanceof Vm))return new Vm(e);this.options=Um.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wm,this.strm.avail_out=0;var n=Fm.inflateInit2(this.strm,t.windowBits);if(n!==jm.Z_OK)throw new Error(qm[n]);if(this.header=new Hm,Fm.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Mm.string2buf(t.dictionary):"[object ArrayBuffer]"===$m.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Fm.inflateSetDictionary(this.strm,t.dictionary))!==jm.Z_OK))throw new Error(qm[n])}function Km(e,t){var n=new Vm(t);if(n.push(e,!0),n.err)throw n.msg||qm[n.err];return n.result}Vm.prototype.push=function(e,t){var n,r,i,o,a,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?jm.Z_FINISH:jm.Z_NO_FLUSH,"string"==typeof e?s.input=Mm.binstring2buf(e):"[object ArrayBuffer]"===$m.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Um.Buf8(l),s.next_out=0,s.avail_out=l),(n=Fm.inflate(s,jm.Z_NO_FLUSH))===jm.Z_NEED_DICT&&c&&(n=Fm.inflateSetDictionary(this.strm,c)),n===jm.Z_BUF_ERROR&&!0===u&&(n=jm.Z_OK,u=!1),n!==jm.Z_STREAM_END&&n!==jm.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==jm.Z_STREAM_END&&(0!==s.avail_in||r!==jm.Z_FINISH&&r!==jm.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Mm.utf8border(s.output,s.next_out),o=s.next_out-i,a=Mm.buf2string(s.output,i),s.next_out=o,s.avail_out=l-o,o&&Um.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(Um.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==jm.Z_STREAM_END);return n===jm.Z_STREAM_END&&(r=jm.Z_FINISH),r===jm.Z_FINISH?(n=Fm.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===jm.Z_OK):r!==jm.Z_SYNC_FLUSH||(this.onEnd(jm.Z_OK),s.avail_out=0,!0)},Vm.prototype.onData=function(e){this.chunks.push(e)},Vm.prototype.onEnd=function(e){e===jm.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Um.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},sm.Inflate=Vm,sm.inflate=Km,sm.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Km(e,t)},sm.ungzip=Km;var Zm={};(0,ud.assign)(Zm,hd,sm,Bm);var Gm=Zm;const{deflate:Ym}=Gm,Qm=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),n=new Uint8Array(e),r=n.length,i=r%3,o=[],a=16383;let s;for(let e=0,t=r-i;e<t;e+=a)o.push(l(e,e+a>t?t:e+a));return 1===i?(s=n[r-1],o.push(t[s>>2]+t[s<<4&63]+"==")):2===i&&(s=(n[r-2]<<8)+n[r-1],o.push(t[s>>10]+t[s>>4&63]+t[s<<2&63]+"=")),o.join("");function l(e,r){let i;const o=[];for(let s=e;s<r;s+=3)i=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(255&n[s+2]),o.push(t[(a=i)>>18&63]+t[a>>12&63]+t[a>>6&63]+t[63&a]);var a;return o.join("")}};var Xm=function({type:e,value:t,compress:n,serialize:r}){const i={type:e,value:t};return n&&(i.value=Ym(new Uint8Array(i.value)),i.compressed=!0),r&&(i.value=Qm(i.value)),i},Jm=function(e){return/^(blob|https?):/.test(e)},ef=function(e){const t=e&&e.match(/(^[^#]*)/),n=t&&t[1]||e;return n&&n.replace(/\?\s*$/,"?")||e},tf=function(e){return e.reduce(((e,t)=>e.concat(t)),[])};const{absolutizeUrl:nf}=u,rf=Xm,of=Jm,af=ef,sf=dh,lf=tf,cf=ld;const uf=Eh,hf=tf;const df=tf,pf=ef,mf=function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href};const ff=Eh,gf=Rh,bf=ld;const yf=ld;const kf=ld;const wf=function(t){const n=new TextDecoder("utf-8").decode(t),r=e.head||e.querySelectorAll("head")[0],i=e.createElement("style");return i.type="text/css",i.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),i.sheet},vf=dh;const xf=Xm;var Sf=function(e,{log:t,compress:n,serialize:r}){return e.reduce(((e,{url:i,element:o,cdtNode:a})=>{const s=new Promise((e=>{try{o.toBlob((t=>t?e(t.arrayBuffer()):n()),"image/png")}catch(e){n(e)}function n(n){var r;t("resetting canvas node",n?n.message:"",o&&o.attributes&&(r=o,JSON.stringify(Array(r.attributes).reduce(((e,t)=>Object.assign({[t.name]:t.value},e)),{})))),a.attributes.splice(a.attributes.findIndex((e=>"data-applitools-src"===e.name)),1),a.attributes.push({name:"data-applitools-tainted-canvas",value:"true"}),e()}}));return e.then((e=>s.then((t=>{if(t){const o=xf({type:"image/png",value:t,compress:n,serialize:r});o.url=i,e.push(o)}return e}))))}),Promise.resolve([]))};const Cf=tf,_f=Sf,Af=qh;const zf=tf,Lf=Xm;const Tf=d;const Ef="__process_resource";const{absolutizeUrl:Nf}=u,Rf=d,Df=function(e,t,n=Xh){const r=[{nodeType:Node.DOCUMENT_NODE}],i=[e],o=[],a=[],s=[],l=[];let c=[];const u=[],h=[];return r[0].childNodeIndexes=d(r,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(r[0].exp_adoptedStyleSheets=sd(e)),{cdt:r,docRoots:i,canvasElements:o,frames:s,inlineFrames:a,crossFrames:l,linkUrls:c,imageBlobs:u,videoBlobs:h};function d(e,t){if(!t||0===t.length)return null;const n=[];return Array.prototype.forEach.call(t,(t=>{const r=p(e,t);null!==r&&n.push(r)})),n}function p(e,r){const m=td(r);let f;if([Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(m.nodeType)){if(m.hasAttribute&&m.hasAttribute("data-applitools-skip"))return null;if(["LINK","STYLE","SOURCE"].includes(m.nodeName)&&m.media.trim()&&!ed(m.media))return null;if("SCRIPT"===m.nodeName)f=function(e){return{nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:od(e).map((t=>{const n=e.attributes[t].name;return{name:n,value:id.test(n)?"":e.attributes[t].value}})).filter((e=>"src"!==e.name)),childNodeIndexes:[]}}(m);else{const c=m.shadowRoot&&m.shadowRoot.childNodes.length&&"ShadowRoot"!==m.shadowRoot.constructor.name;if(f=function(e){const t={nodeType:e.nodeType,nodeName:e.nodeName,attributes:od(e).map((t=>{let n=e.attributes[t].value;const r=e.attributes[t].name;return n.includes("blob:")?n=n.replace(/blob:/g,""):id.test(r)?n="":"IFRAME"===e.nodeName&&$h(e)&&"src"===r&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==Wh(n,e.ownerDocument.location.href)?n=e.contentDocument.location.href:"style"===r&&(n=Qh(e.style)),{name:r,value:n}}))};if("INPUT"===e.tagName&&["checkbox","radio"].includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex((e=>"checked"===e.name));t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push({name:"checked"}),e.indeterminate&&t.attributes.push({name:"data-applitools-js-properties",value:JSON.stringify({indeterminate:!0})})}return"INPUT"===e.tagName&&rd.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&ad(t.attributes,"value",e.value),"OPTION"===e.tagName&&e.parentElement.selectedOptions&&Array.from(e.parentElement.selectedOptions).indexOf(td.unwrap(e))>-1&&ad(t.attributes,"selected",""),"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push({name:"data-applitools-disabled",value:""}),"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&ad(t.attributes,"disabled",""),t}(m),"STYLE"===m.nodeName&&m.sheet&&m.sheet.cssRules.length?(e.push(function(e,t,n){const r=Zh(e);return n.__dsNodeCache&&n.__dsNodeCache.key===r?t("[domNodesToCdt] using cache for inline css of",nd(e)):n.__dsNodeCache={key:r,value:Kh(e,t)},{nodeType:Node.TEXT_NODE,nodeValue:n.__dsNodeCache.value}}(m,n,r)),f.childNodeIndexes=[e.length-1]):"TEXTAREA"===m.tagName&&m.value!==m.textContent?(e.push(function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.value}}(m)),f.childNodeIndexes=[e.length-1]):f.childNodeIndexes=!c&&m.childNodes.length?d(e,m.childNodes):[],c&&"SLOT"===m.tagName&&"function"==typeof m.assignedNodes){const t=m.assignedNodes();f.childNodeIndexes=f.childNodeIndexes||[],f.childNodeIndexes=t.length?f.childNodeIndexes.concat(d(e,t)):f.childNodeIndexes}if(m.shadowRoot&&(c?f.childNodeIndexes=f.childNodeIndexes.concat(d(e,m.shadowRoot.childNodes)):(f.shadowRootIndex=p(e,m.shadowRoot),i.push(m.shadowRoot))),"CANVAS"===m.nodeName&&!Jh(r)){const e=Wh(`applitools-canvas-${Vh()}.png`,t);f.attributes.push({name:"data-applitools-src",value:e}),o.push({element:m,cdtNode:f,url:e})}if("IFRAME"===m.nodeName){const n=Vh();if(m.setAttribute("data-applitools-selector",n),Jh(r))f.attributes.forEach((e=>{"src"!==e.name&&"srcdoc"!==e.name||(f.attributes.push({name:`data-applitools-original-${e.name}`,value:e.value}),e.value="")}));else if($h(r))if(Hh(m)){const e=Wh(`?applitools-iframe=${Vh()}`,t);f.attributes.push({name:"data-applitools-src",value:e}),a.push({element:m,url:e})}else{const e=m.contentDocument.location.href,t=Wh(`?applitools-iframe=${Vh()}`,e);f.attributes.push({name:"data-applitools-src",value:t}),s.push({element:m,url:t})}else{const t=`[data-applitools-selector="${n}"]`;l.push({selector:t,index:e.length})}}m.adoptedStyleSheets&&m.adoptedStyleSheets.length>0&&(f.exp_adoptedStyleSheets=sd(m))}if(m.nodeType===Node.ELEMENT_NODE){const e=Gh(m);if(e.length>0&&(c=c.concat(e)),"IMG"===m.tagName&&/^blob:/.test(m.src)){const e=m.src.replace(/^blob:/,"");u.push({element:m,cdtNode:f,url:e})}if("VIDEO"===m.tagName&&(/^blob:/.test(m.src)||m.srcObject)){let e;m.src?e=m.src.replace(/^blob:/,""):(e=Wh(`applitools-video-${Vh()}.webm`,t),f.attributes.push({name:"data-applitools-src",value:e})),h.push({element:m,cdtNode:f,url:e})}}}else m.nodeType===Node.TEXT_NODE?f=function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue}}(m):m.nodeType===Node.DOCUMENT_TYPE_NODE&&(f=function(e){return{nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName}}(m));return f?(e.push(f),e.length-1):null}},Pf=function(e){return e.reduce((({resourceUrls:e,blobsObj:t},{resourceUrls:n,blobsObj:r})=>({resourceUrls:cd(e.concat(n)),blobsObj:Object.assign(t,r)})),{resourceUrls:[],blobsObj:{}})},If=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function n({documents:r,urls:i,forceCreateStyle:o=!1,skipResources:a}){return Promise.all(i.map((t=>e({url:t,documents:r,getResourceUrlsAndBlobs:n,forceCreateStyle:o,skipResources:a})))).then((e=>t(e)))}},Of=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:n,extractResourcesFromStyleSheet:r,extractResourcesFromSvg:i,sessionCache:o,cache:a={},compress:s,serialize:l,log:c=sf}){return function({url:u,documents:h,getResourceUrlsAndBlobs:d,forceCreateStyle:p=!1,skipResources:m}){if(!a[u])if(o&&o.getItem(u)){const e=function e(t){const n=o.getItem(t);return[t].concat(n?cf(lf(n.map(e))):[])}(u);c("doProcessResource from sessionStorage",u,"deps:",e.slice(1)),a[u]=Promise.resolve({resourceUrls:e})}else if(m&&m.indexOf(u)>-1||/https:\/\/fonts.googleapis.com/.test(u))c("not processing resource from skip list (or google font):",u),a[u]=Promise.resolve({resourceUrls:[u]});else{const g=Date.now();a[u]=function(a){c("fetching",a);const u=Date.now();return e(a).catch((e=>function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),n=e.name&&e.name.includes("TypeError");return t&&n}(e)?{probablyCORS:!0,url:a}:e.isTimeout?{isTimeout:!0,url:a}:(c(`error while fetching resource ${a} ${e?`message=${e.message} | name=${e.name}`:""}`,e),{errorStatusCode:599,url:a}))).then((({url:e,type:a,value:f,probablyCORS:g,errorStatusCode:b,isTimeout:y})=>{if(g)return c("not fetched due to CORS",`[${Date.now()-u}ms]`,e),o&&o.setItem(e,[]),{resourceUrls:[e]};if(b){const t={[e]:{errorStatusCode:b}};return o&&o.setItem(e,[]),{blobsObj:t}}if(y)return c("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),o&&o.setItem(e,[]),{blobsObj:{[e]:{errorStatusCode:504}}};let k;if(c(`fetched [${Date.now()-u}ms] ${e} bytes: ${f.byteLength}`),/text\/css/.test(a)){let i=t(e,h);if(i||p){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=n(f,i);k=r(e),t()}}else if(/image\/svg/.test(a))try{k=i(f),p=!!k}catch(e){c("could not parse svg content",e)}const w={[e]:rf({type:a,value:f,compress:s,serialize:l})};if(k){const t=k.map((t=>nf(t,e.replace(/^blob:/,"")))).map(af).filter(of);return t.length&&(w[e].dependencies=t),o&&o.setItem(e,t),d({documents:h,urls:t,forceCreateStyle:p,skipResources:m}).then((({resourceUrls:e,blobsObj:t})=>({resourceUrls:e,blobsObj:Object.assign(t,w)})))}return o&&o.setItem(e,[]),{blobsObj:w}})).catch((e=>(c("error while processing resource",a,e,e?`message=${e.message} | name=${e.name}`:""),o&&f(),{})))}(u).then((e=>(c("doProcessResource",`[${Date.now()-g}ms]`,u),e)))}return a[u];function f(){c("clearing from sessionStorage:",u),o.keys().forEach((e=>{const t=o.getItem(e);o.setItem(e,t.filter((e=>e!==u)))})),c("cleared from sessionStorage:",u)}}},Bf=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:n}){return function(r){const i=(t||new TextDecoder("utf-8")).decode(r),o=(e||new DOMParser).parseFromString(i,"image/svg+xml"),a=Array.from(o.querySelectorAll("img[srcset]")).map((e=>e.getAttribute("srcset").split(", ").map((e=>e.trim().split(/\s+/)[0])))).reduce(((e,t)=>e.concat(t)),[]),s=Array.from(o.querySelectorAll("img[src]")).map((e=>e.getAttribute("src"))),l=Array.from(o.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e=>e.getAttribute("href")||e.getAttribute("xlink:href"))),c=Array.from(o.getElementsByTagName("object")).map((e=>e.getAttribute("data"))),u=n(o,!1),h=function(e){return hf(Array.from(e.querySelectorAll("*[style]")).map((e=>e.style.cssText)).map(uf).filter(Boolean))}(o);return a.concat(s).concat(l).concat(c).concat(u).concat(h).filter((e=>"#"!==e[0]))}},Ff=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:n=1e4,mediaDownloadTimeout:r=3e4}){return function(i){return new Promise(((o,a)=>{const s=new t,l=()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,a(e),s.abort()},c=setTimeout(l,n);return e(i,{cache:"force-cache",credentials:"same-origin",signal:s.signal}).then((e=>{if(clearTimeout(c),200===e.status){const t=e.headers.get("Content-Type"),n=!e.headers.get("Content-Length")&&["audio/","video/"].some((n=>t&&e.headers.get("Content-Type").startsWith(n)))&&setTimeout(l,r);return e.arrayBuffer().then((e=>(n&&clearTimeout(n),{url:i,value:e,type:t})))}return{url:i,errorStatusCode:e.status}})).then(o).catch((e=>a(e)))}))}},Uf=function({styleSheetCache:e}){return function(t,n){const r=df(n.map((e=>{try{return Array.from(e.styleSheets)}catch(e){return[]}})));return e[t]||r.find((e=>{const n=e.href&&pf(e.href);return n&&mf(n)===t}))}},Mf=function({styleSheetCache:e,CSSRule:t=window.CSSRule,removeReverseProxyURLPrefixes:n}){return function r(i){return bf(Array.from(i.cssRules||[]).reduce(((i,o)=>{const a={[t.IMPORT_RULE]:()=>o.styleSheet&&(e[o.styleSheet.href]=o.styleSheet,o.styleSheet.href)?o.styleSheet.href:o.href,[t.FONT_FACE_RULE]:()=>ff(o.cssText,{removeReverseProxyURLPrefixes:n}),[t.SUPPORTS_RULE]:()=>r(o),[t.MEDIA_RULE]:()=>r(o),[t.STYLE_RULE]:()=>gf(o.style)}[o.type],s=a&&a()||[];return o?.cssRules&&s.push(...r(o)),i.concat(s)}),[])).filter((e=>"#"!==e[0]))}},jf=function(e){return function(t,n=!0){return yf(Array.from(t.querySelectorAll("style")).reduce(((r,i)=>{const o=n?Array.from(t.styleSheets).find((e=>e.ownerNode===i)):i.sheet;return o?r.concat(e(o)):r}),[]))}},qf=function(e){return function(t){return t.adoptedStyleSheets?kf(t.adoptedStyleSheets.reduce(((t,n)=>t.concat(e(n))),[])):[]}},Wf=function(e,t,n=vf){let r;if(t)try{t.cssRules,r=t}catch(i){n(`[dom-snapshot] could not access cssRules for ${t.href} ${i}\ncreating temp style for access.`),r=wf(e)}else r=wf(e);return{corsFreeStyleSheet:r,cleanStyleSheet:function(){r!==t&&r.ownerNode.parentNode.removeChild(r.ownerNode)}}},Hf=Sf,$f=function(e,{doc:t,fetchedBlobs:n,log:r,compress:i,serialize:o,sessionCache:a}){if(!t.body||0===e.length)return Promise.resolve([]);const s=new Set(Object.keys(n));let l=e.filter((({url:e})=>!(s.has("blob:"+e)||a&&a.getItem("blob:"+e))));const c=t.createElement("canvas");c.style.display="none";const u=Af(t.body);return u.appendChild(c),Promise.all(l.map((({element:e,url:t,cdtNode:n})=>(c.width=e.naturalWidth,c.height=e.naturalHeight,c.getContext("2d").drawImage(Af.unwrap(e),0,0),_f([{url:t,element:c,cdtNode:n}],{log:r,compress:i,serialize:o}))))).then((e=>(u.removeChild(c),Cf(e)))).catch((()=>{u.removeChild(c)}))},Vf=function(e,{doc:t,fetchedBlobs:n,compress:r,serialize:i,sessionCache:o}){if(!t.body)return Promise.resolve([]);const a=new Set(Object.keys(n));let s=e.filter((({url:e})=>!(a.has("blob:"+e)||o&&o.getItem("blob:"+e))));return Promise.all(s.map((({element:e,url:t})=>{const n=e.captureStream();return 0===n.getVideoTracks().length?[]:new Promise((o=>{const a=new MediaRecorder(n,{mimeType:"video/webm"});a.addEventListener("dataavailable",(n=>{a.stop(),e.pause(),n.data.arrayBuffer().then((e=>{const a=Lf({type:n.data.type,value:e,compress:r,serialize:i});a.url=t,o(a)}))}),{once:!0}),e.play(),a.start(),setTimeout((()=>a.requestData()),1e3)}))}))).then((e=>zf(e)))},Kf=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&function(e){return e&&!/^(about:blank|javascript:void|blob:)/.test(e)}(t))return Tf(t)},Zf=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>{const t=parseInt(e.substr(1).trim(),16);return t>1114111?e:String.fromCodePoint(t)}))||e},Gf=ef,Yf=ld,Qf=tf,Xf=Jm,Jf=function(e){return function(){const t=["[dom-snapshot]",`[+${Date.now()-e}ms]`].concat(Array.from(arguments));console.log.apply(console,t)}},eg=dh,tg=function({log:e,sessionStorage:t}){let n;try{const e=(t=t||window.sessionStorage).getItem(Ef);n=e?JSON.parse(e):{}}catch(t){e("error creating session cache",t)}return{getItem:function(e){if(n)return n[e]},setItem:function(t,r){n&&(e("saving to in-memory sessionStorage, key:",t,"value:",r),n[t]=r)},keys:function(){return n?Object.keys(n):[]},persist:function(){n&&t.setItem(Ef,JSON.stringify(n))}}};function ng(e){return e&&Xf(e)}const{pollify:rg}=u,{EYES_NAMESPACE:ig,DOM_SNAPSHOT_KEY:og}=h,ag=function({doc:t=e,showLogs:n,useSessionCache:r,dontFetchResources:i,fetchTimeout:o,skipResources:a,compressResources:s,serializeResources:l,removeReverseProxyURLPrefixes:c}={}){
|
|
1
|
+
/* @applitools/dom-snapshot@4.11.3 */
|
|
2
|
+
"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t=function(){const e=function(e){return function(){function t(e,t=0){const n=e.charCodeAt(t);return n>=55296&&n<56320?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(e,n){const r=[];let i=0;for(let o=0;o<e.length;++o){const a=t(e,o);let s=0;a>0&&(s=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),i+s>n?(r.push(o),i=s):i+=s}return r};const r=n,i="WIP",o="SUCCESS",a="SUCCESS_CHUNKED",s="ERROR";var l=function(e,t,n={}){const l=function(e,{chunkByteLength:t=0}={}){if(e){if(e.value){if(t){if(!e.chunks)try{const n=JSON.stringify(e.value);e.chunks=r(n,t),e.chunks.length>0&&(e.from=0,e.value=n)}catch(e){return{status:s,error:e.message}}if(e.from>=0)return{status:a,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from}}return{status:o,value:e.value}}return e.error?{status:s,error:e.error}:{status:i}}return{status:s,error:"unexpected poll request received - cannot find state of current operation"}}((e=e||{})[t],n);return(l.status===o||l.status===s||l.status===a&&l.done)&&(e[t]=null),l};const c=l;var u={chunkify:n,pollify:function(e,t,n){return r=>function(){return t[n]||(t[n]={},Promise.resolve().then((()=>e.apply(null,arguments))).then((e=>t[n].value=e)).catch((e=>t[n].error=e.message))),c(t,n,r)}},poll:l,absolutizeUrl:function(e,t){if(function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return e;let n=!0;try{n=e!==decodeURI(e)}catch(e){n=!0}try{const r=new URL(e,t).href;return n?r:decodeURI(r)}catch(t){return n?e:decodeURI(e)}},isInlineFrame:function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)},isAccessibleFrame:function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}}},h={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"},d=function(e){if(!function(e){try{const t=new URL(e);return Boolean(t.username||t.password)}catch(e){return!1}}(e))return e;let t=!0;try{t=e!==decodeURI(e)}catch(e){t=!0}const n=new URL(e);return n.username="",n.password="",t?n.href:decodeURI(n.href)},p={},m={},f={AtKeyword:3,BadString:6,BadUrl:8,CDC:15,CDO:14,Colon:16,Comma:18,Comment:25,Delim:9,Dimension:12,EOF:0,Function:2,Hash:4,Ident:1,LeftCurlyBracket:23,LeftParenthesis:21,LeftSquareBracket:19,Number:10,Percentage:11,RightCurlyBracket:24,RightParenthesis:22,RightSquareBracket:20,Semicolon:17,String:5,Url:7,WhiteSpace:13},g={};function b(e){return e>=48&&e<=57}function y(e){return e>=65&&e<=90}function k(e){return e>=97&&e<=122}function w(e){return y(e)||k(e)}function v(e){return e>=128}function x(e){return w(e)||v(e)||95===e}function S(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function C(e){return 10===e||13===e||12===e}function _(e){return C(e)||32===e||9===e}function A(e,t){return 92===e&&!C(t)&&0!==t}const z=new Array(128);for(let e=0;e<z.length;e++)z[e]=(_(e)?130:b(e)&&131)||x(e)&&132||S(e)&&133||e||128;g.DigitCategory=131,g.EofCategory=128,g.NameStartCategory=132,g.NonPrintableCategory=133,g.WhiteSpaceCategory=130,g.charCodeCategory=function(e){return e<128?z[e]:132},g.isBOM=function(e){return 65279===e||65534===e?1:0},g.isDigit=b,g.isHexDigit=function(e){return b(e)||e>=65&&e<=70||e>=97&&e<=102},g.isIdentifierStart=function(e,t,n){return 45===e?x(t)||45===t||A(t,n):!!x(e)||92===e&&A(e,t)},g.isLetter=w,g.isLowercaseLetter=k,g.isName=function(e){return x(e)||b(e)||45===e},g.isNameStart=x,g.isNewline=C,g.isNonAscii=v,g.isNonPrintable=S,g.isNumberStart=function(e,t,n){return 43===e||45===e?b(t)?2:46===t&&b(n)?3:0:46===e?b(t)?2:0:b(e)?1:0},g.isUppercaseLetter=y,g.isValidEscape=A,g.isWhiteSpace=_;var L={};const T=g;function E(e,t){return t<e.length?e.charCodeAt(t):0}function N(e,t,n){return 13===n&&10===E(e,t+1)?2:1}function R(e,t,n){let r=e.charCodeAt(t);return T.isUppercaseLetter(r)&&(r|=32),r===n}function D(e,t){for(;t<e.length&&T.isDigit(e.charCodeAt(t));t++);return t}function P(e,t){if(t+=2,T.isHexDigit(E(e,t-1))){for(const n=Math.min(e.length,t+5);t<n&&T.isHexDigit(E(e,t));t++);const n=E(e,t);T.isWhiteSpace(n)&&(t+=N(e,t,n))}return t}L.cmpChar=R,L.cmpStr=function(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(let i=t;i<n;i++){const n=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(T.isUppercaseLetter(o)&&(o|=32),o!==n)return!1}return!0},L.consumeBadUrlRemnants=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(41===n){t++;break}T.isValidEscape(n,E(e,t+1))&&(t=P(e,t))}return t},L.consumeEscaped=P,L.consumeName=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!T.isName(n)){if(!T.isValidEscape(n,E(e,t+1)))break;t=P(e,t)-1}}return t},L.consumeNumber=function(e,t){let n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),T.isDigit(n)&&(t=D(e,t+1),n=e.charCodeAt(t)),46===n&&T.isDigit(e.charCodeAt(t+1))&&(t=D(e,t+=2)),R(e,t,101)){let r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),T.isDigit(n)&&(t=D(e,t+1+r+1))}return t},L.decodeEscaped=function(e){if(1===e.length&&!T.isHexDigit(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)},L.findDecimalNumberEnd=D,L.findWhiteSpaceEnd=function(e,t){for(;t<e.length&&T.isWhiteSpace(e.charCodeAt(t));t++);return t},L.findWhiteSpaceStart=function(e,t){for(;t>=0&&T.isWhiteSpace(e.charCodeAt(t));t--);return t+1},L.getNewlineLength=N;var I=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],O={},B={adoptBuffer:function(e=null,t){return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}};const F=B,U=g;function M(e){const t=e.source,n=t.length,r=t.length>0?U.isBOM(t.charCodeAt(0)):0,i=F.adoptBuffer(e.lines,n),o=F.adoptBuffer(e.columns,n);let a=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){const r=t.charCodeAt(e);i[e]=a,o[e]=s++,10!==r&&13!==r&&12!==r||(13===r&&e+1<n&&10===t.charCodeAt(e+1)&&(e++,i[e]=a,o[e]=s),a++,s=1)}i[n]=a,o[n]=s,e.lines=i,e.columns=o,e.computed=!0}O.OffsetToLocation=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||M(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||M(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}};var j={};const q=B,W=L,H=I,$=f,V=16777215,K=24,Z=new Map([[$.Function,$.RightParenthesis],[$.LeftParenthesis,$.RightParenthesis],[$.LeftSquareBracket,$.RightSquareBracket],[$.LeftCurlyBracket,$.RightCurlyBracket]]);j.TokenStream=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){const n=(e=String(e||"")).length,r=q.adoptBuffer(this.offsetAndType,e.length+1),i=q.adoptBuffer(this.balance,e.length+1);let o=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:i[o]=n;break;case a:{let e=s&V;for(s=i[e],a=s>>K,i[o]=e,i[e++]=o;e<o;e++)i[e]===n&&(i[e]=o);break}case $.LeftParenthesis:case $.Function:case $.LeftSquareBracket:case $.LeftCurlyBracket:i[o]=s,a=Z.get(e),s=a<<K|o}r[o++]=e<<K|c,-1===l&&(l=t)})),r[o]=$.EOF<<K|n,i[o]=n,i[n]=n;0!==s;){const e=s&V;s=i[e],i[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=o,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>K:$.EOF}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>K;if(n!==$.WhiteSpace&&n!==$.Comment&&0==e--)return n}return $.EOF}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&V:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>K;if(n!==$.WhiteSpace&&n!==$.Comment&&0==e--)return t-this.tokenIndex}return $.EOF}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&W.cmpStr(this.source,this.offsetAndType[e-1]&V,this.offsetAndType[e]&V,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&V:this.offsetAndType[this.tokenCount]&V:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===$.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===$.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&V,t=this.offsetAndType[t],this.tokenType=t>>K,this.tokenEnd=t&V):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>K,this.tokenEnd=e&V):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=$.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===$.WhiteSpace||this.tokenType===$.Comment;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i<this.tokenCount&&(n=this.balance[i],!(n<e));i++)switch(r=i>0?this.offsetAndType[i-1]&V:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){const r=n,i=this.offsetAndType[t],o=i&V;n=o,e(i>>K,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:H[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}};const G=f,Y=g,Q=L,X=I,J=O,ee=j;m.AtKeyword=G.AtKeyword,m.BadString=G.BadString,m.BadUrl=G.BadUrl,m.CDC=G.CDC,m.CDO=G.CDO,m.Colon=G.Colon,m.Comma=G.Comma,m.Comment=G.Comment,m.Delim=G.Delim,m.Dimension=G.Dimension,m.EOF=G.EOF,m.Function=G.Function,m.Hash=G.Hash,m.Ident=G.Ident,m.LeftCurlyBracket=G.LeftCurlyBracket,m.LeftParenthesis=G.LeftParenthesis,m.LeftSquareBracket=G.LeftSquareBracket,m.Number=G.Number,m.Percentage=G.Percentage,m.RightCurlyBracket=G.RightCurlyBracket,m.RightParenthesis=G.RightParenthesis,m.RightSquareBracket=G.RightSquareBracket,m.Semicolon=G.Semicolon,m.String=G.String,m.Url=G.Url,m.WhiteSpace=G.WhiteSpace,m.tokenTypes=G,m.DigitCategory=Y.DigitCategory,m.EofCategory=Y.EofCategory,m.NameStartCategory=Y.NameStartCategory,m.NonPrintableCategory=Y.NonPrintableCategory,m.WhiteSpaceCategory=Y.WhiteSpaceCategory,m.charCodeCategory=Y.charCodeCategory,m.isBOM=Y.isBOM,m.isDigit=Y.isDigit,m.isHexDigit=Y.isHexDigit,m.isIdentifierStart=Y.isIdentifierStart,m.isLetter=Y.isLetter,m.isLowercaseLetter=Y.isLowercaseLetter,m.isName=Y.isName,m.isNameStart=Y.isNameStart,m.isNewline=Y.isNewline,m.isNonAscii=Y.isNonAscii,m.isNonPrintable=Y.isNonPrintable,m.isNumberStart=Y.isNumberStart,m.isUppercaseLetter=Y.isUppercaseLetter,m.isValidEscape=Y.isValidEscape,m.isWhiteSpace=Y.isWhiteSpace,m.cmpChar=Q.cmpChar,m.cmpStr=Q.cmpStr,m.consumeBadUrlRemnants=Q.consumeBadUrlRemnants,m.consumeEscaped=Q.consumeEscaped,m.consumeName=Q.consumeName,m.consumeNumber=Q.consumeNumber,m.decodeEscaped=Q.decodeEscaped,m.findDecimalNumberEnd=Q.findDecimalNumberEnd,m.findWhiteSpaceEnd=Q.findWhiteSpaceEnd,m.findWhiteSpaceStart=Q.findWhiteSpaceStart,m.getNewlineLength=Q.getNewlineLength,m.tokenNames=X,m.OffsetToLocation=J.OffsetToLocation,m.TokenStream=ee.TokenStream,m.tokenize=function(e,t){function n(t){return t<a?e.charCodeAt(t):0}function r(){return c=Q.consumeNumber(e,c),Y.isIdentifierStart(n(c),n(c+1),n(c+2))?(s=G.Dimension,void(c=Q.consumeName(e,c))):37===n(c)?(s=G.Percentage,void c++):void(s=G.Number)}function i(){const t=c;return c=Q.consumeName(e,c),Q.cmpStr(e,t,c,"url")&&40===n(c)?(c=Q.findWhiteSpaceEnd(e,c+1),34===n(c)||39===n(c)?(s=G.Function,void(c=t+4)):void function(){for(s=G.Url,c=Q.findWhiteSpaceEnd(e,c);c<e.length;c++){const t=e.charCodeAt(c);switch(Y.charCodeCategory(t)){case 41:return void c++;case Y.WhiteSpaceCategory:return c=Q.findWhiteSpaceEnd(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl));case 34:case 39:case 40:case Y.NonPrintableCategory:return c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl);case 92:if(Y.isValidEscape(t,n(c+1))){c=Q.consumeEscaped(e,c)-1;break}return c=Q.consumeBadUrlRemnants(e,c),void(s=G.BadUrl)}}}()):40===n(c)?(s=G.Function,void c++):void(s=G.Ident)}function o(t){for(t||(t=n(c++)),s=G.String;c<e.length;c++){const r=e.charCodeAt(c);switch(Y.charCodeCategory(r)){case t:return void c++;case Y.WhiteSpaceCategory:if(Y.isNewline(r))return c+=Q.getNewlineLength(e,c,r),void(s=G.BadString);break;case 92:if(c===e.length-1)break;const i=n(c+1);Y.isNewline(i)?c+=Q.getNewlineLength(e,c+1,i):Y.isValidEscape(r,i)&&(c=Q.consumeEscaped(e,c)-1)}}}const a=(e=String(e||"")).length;let s,l=Y.isBOM(n(0)),c=l;for(;c<a;){const a=e.charCodeAt(c);switch(Y.charCodeCategory(a)){case Y.WhiteSpaceCategory:s=G.WhiteSpace,c=Q.findWhiteSpaceEnd(e,c+1);break;case 34:o();break;case 35:Y.isName(n(c+1))||Y.isValidEscape(n(c+1),n(c+2))?(s=G.Hash,c=Q.consumeName(e,c+1)):(s=G.Delim,c++);break;case 39:o();break;case 40:s=G.LeftParenthesis,c++;break;case 41:s=G.RightParenthesis,c++;break;case 43:Y.isNumberStart(a,n(c+1),n(c+2))?r():(s=G.Delim,c++);break;case 44:s=G.Comma,c++;break;case 45:Y.isNumberStart(a,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(s=G.CDC,c+=3):Y.isIdentifierStart(a,n(c+1),n(c+2))?i():(s=G.Delim,c++);break;case 46:Y.isNumberStart(a,n(c+1),n(c+2))?r():(s=G.Delim,c++);break;case 47:42===n(c+1)?(s=G.Comment,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(s=G.Delim,c++);break;case 58:s=G.Colon,c++;break;case 59:s=G.Semicolon,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(s=G.CDO,c+=4):(s=G.Delim,c++);break;case 64:Y.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(s=G.AtKeyword,c=Q.consumeName(e,c+1)):(s=G.Delim,c++);break;case 91:s=G.LeftSquareBracket,c++;break;case 92:Y.isValidEscape(a,n(c+1))?i():(s=G.Delim,c++);break;case 93:s=G.RightSquareBracket,c++;break;case 123:s=G.LeftCurlyBracket,c++;break;case 125:s=G.RightCurlyBracket,c++;break;case Y.DigitCategory:r();break;case Y.NameStartCategory:i();break;default:s=G.Delim,c++}t(s,l,l=c)}};var te={},ne={};let re=null,ie=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return null!==re?(n=re,re=re.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=re,re=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;null!==i;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const t=e.createItem(r);null!==n?n.next=t:this.head=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)r=i.next,i.next=r.next,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)r=i.prev,i.prev=r.prev,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(t){this.prepend(e.createItem(t))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ne.List=ie;var oe={},ae={createCustomError:function(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}};const se=ae,le=" ";function ce({source:e,line:t,column:n,baseLine:r,baseColumn:i},o){function a(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+" |"+t)).join("\n")}const s=("\n".repeat(Math.max(r-1,0))+" ".repeat(Math.max(i-1,0))+e).split(/\r\n?|\n|\f/),l=Math.max(1,t-o)-1,c=Math.min(t+o,s.length+1),u=Math.max(4,String(c).length)+1;let h=0;(n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length)>100&&(h=n-60+3,n=58);for(let e=l;e<=c;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,le),s[e]=(h>0&&s[e].length>h?"…":"")+s[e].substr(h,98)+(s[e].length>h+100-1?"…":""));return[a(l,t),new Array(n+u+2).join("-")+"^",a(t,c)].filter(Boolean).join("\n").replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}oe.SyntaxError=function(e,t,n,r,i,o=1,a=1){return Object.assign(se.createCustomError("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>ce({source:t,line:r,column:i,baseLine:o,baseColumn:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+ce({source:t,line:r,column:i,baseLine:o,baseColumn:a},2)}})};var ue={};const he=f;ue.readSequence=function(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case he.Comment:this.next();continue;case he.WhiteSpace:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t};const de=ne,pe=oe,me=m,fe=ue,ge=O,be=j,ye=L,ke=f,we=I,ve=()=>{};function xe(e){return function(){return this[e]()}}function Se(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}te.createParser=function(e){let t="",n="<unknown>",r=!1,i=ve,o=!1;const a=new ge.OffsetToLocation,s=Object.assign(new be.TokenStream,function(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Se(e.atrule),pseudo:Se(e.pseudo),node:Se(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=xe(r)}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:fe.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new de.List,createSingleNodeList:e=>(new de.List).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(e){if(o)throw e;this.skip(n-this.tokenIndex);const r=t.call(this);return o=!0,i(e,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==ke.WhiteSpace&&t!==ke.Comment)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>ye.cmpChar(t,e,n),cmpStr:(e,n,r)=>ye.cmpStr(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(ke.Function),e},consumeNumber(e){const n=t.substring(this.tokenStart,ye.consumeNumber(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=we[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case ke.Ident:this.tokenType===ke.Function||this.tokenType===ke.Url?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case ke.Hash:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case ke.Percentage:this.tokenType===ke.Number&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===ke.Ident&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?a.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==r?r.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(e,n){const r=void 0!==n&&n<t.length?a.getLocation(n):this.eof?a.getLocation(ye.findWhiteSpaceStart(t,t.length-1)):a.getLocation(this.tokenStart);throw new pe.SyntaxError(e||"Unexpected input",t,r.offset,r.line,r.column,a.startLine,a.startColumn)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,me.tokenize),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),i="function"==typeof l.onParseError?l.onParseError:ve,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in s.context==0)throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(e===ke.Comment){const e=s.getLocation(n,r),i=ye.cmpStr(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));const h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:pe.SyntaxError,config:s.config})};var Ce={},_e={},Ae={},ze={},Le={},Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Le.encode=function(e){if(0<=e&&e<Te.length)return Te[e];throw new TypeError("Must be between 0 and 63: "+e)},Le.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Ee=Le;ze.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=Ee.encode(t)}while(r>0);return n},ze.decode=function(e,t,n){var r,i,o,a,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Ee.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),l+=(i&=31)<<c,c+=5}while(r);n.value=(a=(o=l)>>1,1==(1&o)?-a:a),n.rest=t};var Ne={};!function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=i;var o,a,s=(o=function(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var a=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var u,h=0;for(c=s.length-1;c>=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=a?"/":"."),o?(o.path=n,i(o)):n},a=[],function(e){for(var t=0;t<a.length;t++)if(a[t].input===e){var n=a[0];return a[0]=a[t],a[t]=n,a[0].result}var r=o(e);return a.unshift({input:e,result:r}),a.length>32&&a.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),a=r(e);if(a&&(e=a.path||"/"),o&&!o.scheme)return a&&(o.scheme=a.scheme),i(o);if(o||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,i(a)):l}e.normalize=s,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var a=o.path.lastIndexOf("/");a>=0&&(o.path=o.path.substring(0,a+1))}t=l(i(o),t)}return s(t)}}(Ne);var Re={},De=Ne,Pe=Object.prototype.hasOwnProperty,Ie="undefined"!=typeof Map;function Oe(){this._array=[],this._set=Ie?new Map:Object.create(null)}Oe.fromArray=function(e,t){for(var n=new Oe,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},Oe.prototype.size=function(){return Ie?this._set.size:Object.getOwnPropertyNames(this._set).length},Oe.prototype.add=function(e,t){var n=Ie?e:De.toSetString(e),r=Ie?this.has(e):Pe.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(Ie?this._set.set(e,i):this._set[n]=i)},Oe.prototype.has=function(e){if(Ie)return this._set.has(e);var t=De.toSetString(e);return Pe.call(this._set,t)},Oe.prototype.indexOf=function(e){if(Ie){var t=this._set.get(e);if(t>=0)return t}else{var n=De.toSetString(e);if(Pe.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},Oe.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Oe.prototype.toArray=function(){return this._array.slice()},Re.ArraySet=Oe;var Be={},Fe=Ne;function Ue(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ue.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Ue.prototype.add=function(e){var t,n,r,i,o,a;n=e,r=(t=this._last).generatedLine,i=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,i>r||i==r&&a>=o||Fe.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Ue.prototype.toArray=function(){return this._sorted||(this._array.sort(Fe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Be.MappingList=Ue;var Me=ze,je=Ne,qe=Re.ArraySet,We=Be.MappingList;function He(e){e||(e={}),this._file=je.getArg(e,"file",null),this._sourceRoot=je.getArg(e,"sourceRoot",null),this._skipValidation=je.getArg(e,"skipValidation",!1),this._sources=new qe,this._names=new qe,this._mappings=new We,this._sourcesContents=null}He.prototype._version=3,He.fromSourceMap=function(e){var t=e.sourceRoot,n=new He({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=je.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=je.relative(t,r)),n._sources.has(i)||n._sources.add(i);var o=e.sourceContentFor(r);null!=o&&n.setSourceContent(r,o)})),n},He.prototype.addMapping=function(e){var t=je.getArg(e,"generated"),n=je.getArg(e,"original",null),r=je.getArg(e,"source",null),i=je.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},He.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=je.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[je.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[je.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},He.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=je.relative(i,r));var o=new qe,a=new qe;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=je.join(n,t.source)),null!=i&&(t.source=je.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||o.has(l)||o.add(l);var c=t.name;null==c||a.has(c)||a.add(c)}),this),this._sources=o,this._names=a,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=je.join(n,t)),null!=i&&(t=je.relative(i,t)),this.setSourceContent(t,r))}),this)},He.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},He.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,o=1,a=0,s=0,l=0,c=0,u="",h=this._mappings.toArray(),d=0,p=h.length;d<p;d++){if(e="",(t=h[d]).generatedLine!==o)for(i=0;t.generatedLine!==o;)e+=";",o++;else if(d>0){if(!je.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=Me.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=Me.encode(r-c),c=r,e+=Me.encode(t.originalLine-1-s),s=t.originalLine-1,e+=Me.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=Me.encode(n-l),l=n)),u+=e}return u},He.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=je.relative(t,e));var n=je.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},He.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},He.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ae.SourceMapGenerator=He;const $e=Ae,Ve=new Set(["Atrule","Selector","Declaration"]);_e.generateSourceMap=function(e){const t=new $e.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let a=1,s=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ve.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=a,n.column=s,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Ve.has(e.type)&&(i.line=a,i.column=s)};const u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)10===e.charCodeAt(t)?(a++,s=0):s++;u(e,t,n)};const h=e.result;return e.result=function(){return l&&t.addMapping(o),{css:h(),map:t}},e};var Ke={};const Ze=f,Ge=(e,t)=>{if(e===Ze.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Ye=[[Ze.Ident,Ze.Ident],[Ze.Ident,Ze.Function],[Ze.Ident,Ze.Url],[Ze.Ident,Ze.BadUrl],[Ze.Ident,"-"],[Ze.Ident,Ze.Number],[Ze.Ident,Ze.Percentage],[Ze.Ident,Ze.Dimension],[Ze.Ident,Ze.CDC],[Ze.Ident,Ze.LeftParenthesis],[Ze.AtKeyword,Ze.Ident],[Ze.AtKeyword,Ze.Function],[Ze.AtKeyword,Ze.Url],[Ze.AtKeyword,Ze.BadUrl],[Ze.AtKeyword,"-"],[Ze.AtKeyword,Ze.Number],[Ze.AtKeyword,Ze.Percentage],[Ze.AtKeyword,Ze.Dimension],[Ze.AtKeyword,Ze.CDC],[Ze.Hash,Ze.Ident],[Ze.Hash,Ze.Function],[Ze.Hash,Ze.Url],[Ze.Hash,Ze.BadUrl],[Ze.Hash,"-"],[Ze.Hash,Ze.Number],[Ze.Hash,Ze.Percentage],[Ze.Hash,Ze.Dimension],[Ze.Hash,Ze.CDC],[Ze.Dimension,Ze.Ident],[Ze.Dimension,Ze.Function],[Ze.Dimension,Ze.Url],[Ze.Dimension,Ze.BadUrl],[Ze.Dimension,"-"],[Ze.Dimension,Ze.Number],[Ze.Dimension,Ze.Percentage],[Ze.Dimension,Ze.Dimension],[Ze.Dimension,Ze.CDC],["#",Ze.Ident],["#",Ze.Function],["#",Ze.Url],["#",Ze.BadUrl],["#","-"],["#",Ze.Number],["#",Ze.Percentage],["#",Ze.Dimension],["#",Ze.CDC],["-",Ze.Ident],["-",Ze.Function],["-",Ze.Url],["-",Ze.BadUrl],["-","-"],["-",Ze.Number],["-",Ze.Percentage],["-",Ze.Dimension],["-",Ze.CDC],[Ze.Number,Ze.Ident],[Ze.Number,Ze.Function],[Ze.Number,Ze.Url],[Ze.Number,Ze.BadUrl],[Ze.Number,Ze.Number],[Ze.Number,Ze.Percentage],[Ze.Number,Ze.Dimension],[Ze.Number,"%"],[Ze.Number,Ze.CDC],["@",Ze.Ident],["@",Ze.Function],["@",Ze.Url],["@",Ze.BadUrl],["@","-"],["@",Ze.CDC],[".",Ze.Number],[".",Ze.Percentage],[".",Ze.Dimension],["+",Ze.Number],["+",Ze.Percentage],["+",Ze.Dimension],["/","*"]],Qe=Ye.concat([[Ze.Ident,Ze.Hash],[Ze.Dimension,Ze.Hash],[Ze.Hash,Ze.Hash],[Ze.AtKeyword,Ze.LeftParenthesis],[Ze.AtKeyword,Ze.String],[Ze.AtKeyword,Ze.Colon],[Ze.Percentage,Ze.Percentage],[Ze.Percentage,Ze.Dimension],[Ze.Percentage,Ze.Function],[Ze.Percentage,"-"],[Ze.RightParenthesis,Ze.Ident],[Ze.RightParenthesis,Ze.Function],[Ze.RightParenthesis,Ze.Percentage],[Ze.RightParenthesis,Ze.Dimension],[Ze.RightParenthesis,Ze.Hash],[Ze.RightParenthesis,"-"]]);function Xe(e){const t=new Set(e.map((([e,t])=>Ge(e)<<16|Ge(t))));return function(e,n,r){const i=Ge(n,r),o=r.charCodeAt(0);return(45===o&&n!==Ze.Ident&&n!==Ze.Function&&n!==Ze.CDC||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Ze.WhiteSpace,!0),i}}const Je=Xe(Ye),et=Xe(Qe);Ke.safe=et,Ke.spec=Je;const tt=m,nt=_e,rt=Ke,it=f;function ot(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function at(e){tt.tokenize(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}Ce.createGenerator=function(e){const t=new Map;for(let[n,r]of Object.entries(e.node))"function"==typeof(r.generate||r)&&t.set(n,r.generate||r);return function(e,n){let r="",i=0,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:rt.safe,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===it.Delim&&92===t.charCodeAt(0)&&this.emit("\n",it.WhiteSpace,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=nt.generateSourceMap(o)),n.mode in rt&&(o.tokenBefore=rt[n.mode]));const a={node:e=>o.node(e),children:ot,token:(e,t)=>o.token(e,t),tokenize:at};return o.node(e),o.result()}};var st={};const lt=ne;st.createConvertor=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof lt.List==0&&(e.children=(new lt.List).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof lt.List&&(e.children=e.children.toArray())}}),t)}};var ct={};const{hasOwnProperty:ut}=Object.prototype,ht=function(){};function dt(e){return"function"==typeof e?e:ht}function pt(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function mt(e,t){const n=t.structure,r=[];for(const e in n){if(!1===ut.call(n,e))continue;let t=n[e];const i={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?i.nullable=!0:"string"==typeof e?i.type="node":Array.isArray(e)&&(i.type="list");i.type&&r.push(i)}return r.length?{context:t.walkContext,fields:r}:null}function ft(e,t){const n=e.fields.slice(),r=e.context,i="string"==typeof r;return t&&n.reverse(),function(e,o,a,s){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(a(n))return!0}i&&(o[r]=l)}}function gt({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}ct.createWalker=function(e){const t=function(e){const t={};for(const n in e.node)if(ut.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=mt(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const e in t)ut.call(t,e)&&null!==t[e]&&(n[e]=ft(t[e],!1),r[e]=ft(t[e],!0));const a=gt(n),s=gt(r),l=function(e,l){function c(e,t,n){const r=u.call(m,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,m,c,p))||h.call(m,e,t,n)===i)}let u=ht,h=ht,d=n,p=(e,t,n,r)=>e||c(t,n,r);const m={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof l)u=l;else if(l&&(u=dt(l.enter),h=dt(l.leave),l.reverse&&(d=r),l.visit)){if(a.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:a[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=pt(u,l.visit),h=pt(h,l.visit)}if(u===ht&&h===ht)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l};var bt={},yt={},kt={};function wt(e){return e}function vt(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>vt(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return vt(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}kt.generate=function(e,t){let n=wt,r=!1,i=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),vt(e,n,r,i)};const xt=ae,St=kt,Ct={offset:0,line:1,column:1};function _t(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?At(n):n:null}function At({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const e=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=e.length-1,i.column=1===e.length?i.column+r.length:e.pop().length+1}return i}yt.SyntaxMatchError=function(e,t,n,r){const i=xt.createCustomError("SyntaxMatchError",e),{css:o,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,o=i!==t?i:null;let a,s,l=0,c=0,u=0,h="";for(let e=0;e<n.length;e++){const t=n[e].value;e===r&&(c=t.length,l=h.length),null!==o&&n[e].node===o&&(e<=r?u++:u=0),h+=t}return r===n.length||u>1?(a=_t(o||t,"end")||At(Ct,h),s=At(a)):(a=_t(o,"start")||At(_t(t,"start")||Ct,h.slice(0,l)),s=_t(o,"end")||At(a,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:a,end:s}}(r,n);return i.rawMessage=e,i.syntax=t?St.generate(t):"<generic>",i.css=o,i.mismatchOffset=a,i.mismatchLength=s,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"<empty string>")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},i},yt.SyntaxReferenceError=function(e,t){const n=xt.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n};var zt={};const Lt=new Map,Tt=new Map,Et=Rt;function Nt(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Rt(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}zt.isCustomProperty=Nt,zt.keyword=function(e){if(Lt.has(e))return Lt.get(e);const t=e.toLowerCase();let n=Lt.get(t);if(void 0===n){const e=Nt(t,0),r=e?"":Rt(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Lt.set(e,n),n},zt.property=function(e){if(Tt.has(e))return Tt.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Nt(t,n.length);if(!r&&(t=t.toLowerCase(),Tt.has(t))){const n=Tt.get(t);return Tt.set(e,n),n}const i=r?"":Rt(t,n.length),o=t.substr(0,n.length+i.length),a=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return Tt.set(e,a),a},zt.vendorPrefix=Et;var Dt={cssWideKeywords:["initial","inherit","unset","revert","revert-layer"]},Pt={};const It=g,Ot=f,Bt=L,Ft=43,Ut=45,Mt=!0;function jt(e,t){return null!==e&&e.type===Ot.Delim&&e.value.charCodeAt(0)===t}function qt(e,t,n){for(;null!==e&&(e.type===Ot.WhiteSpace||e.type===Ot.Comment);)e=n(++t);return t}function Wt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Ft||i===Ut){if(n)return 0;t++}for(;t<e.value.length;t++)if(!It.isDigit(e.value.charCodeAt(t)))return 0;return r+1}function Ht(e,t,n){let r=!1,i=qt(e,t,n);if(null===(e=n(i)))return t;if(e.type!==Ot.Number){if(!jt(e,Ft)&&!jt(e,Ut))return t;if(r=!0,i=qt(n(++i),i,n),null===(e=n(i))||e.type!==Ot.Number)return 0}if(!r){const t=e.value.charCodeAt(0);if(t!==Ft&&t!==Ut)return 0}return Wt(e,r?0:1,r,i)}const $t=g,Vt=f,Kt=L;function Zt(e,t){return null!==e&&e.type===Vt.Delim&&e.value.charCodeAt(0)===t}function Gt(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const o=e.value.charCodeAt(i);if(45===o&&n&&0!==r)return Gt(e,t+r+1,!1),6;if(!$t.isHexDigit(o))return 0;if(++r>6)return 0}return r}function Yt(e,t,n){if(!e)return 0;for(;Zt(n(t),63);){if(++e>6)return 0;t++}return t}const Qt=Dt,Xt=function(e,t){let n=0;if(!e)return 0;if(e.type===Ot.Number)return Wt(e,0,!1,n);if(e.type===Ot.Ident&&e.value.charCodeAt(0)===Ut){if(!Bt.cmpChar(e.value,1,110))return 0;switch(e.value.length){case 2:return Ht(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ut?0:(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n));default:return e.value.charCodeAt(2)!==Ut?0:Wt(e,3,Mt,n)}}else if(e.type===Ot.Ident||jt(e,Ft)&&t(n+1).type===Ot.Ident){if(e.type!==Ot.Ident&&(e=t(++n)),null===e||!Bt.cmpChar(e.value,0,110))return 0;switch(e.value.length){case 1:return Ht(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ut?0:(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n));default:return e.value.charCodeAt(1)!==Ut?0:Wt(e,2,Mt,n)}}else if(e.type===Ot.Dimension){let r=e.value.charCodeAt(0),i=r===Ft||r===Ut?1:0,o=i;for(;o<e.value.length&&It.isDigit(e.value.charCodeAt(o));o++);return o===i?0:Bt.cmpChar(e.value,o,110)?o+1===e.value.length?Ht(t(++n),n,t):e.value.charCodeAt(o+1)!==Ut?0:o+2===e.value.length?(n=qt(t(++n),n,t),Wt(e=t(n),0,Mt,n)):Wt(e,o+2,Mt,n):0}return 0},Jt=function(e,t){let n=0;if(null===e||e.type!==Vt.Ident||!Kt.cmpChar(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(Zt(e,43))return null===(e=t(++n))?0:e.type===Vt.Ident?Yt(Gt(e,0,!0),++n,t):Zt(e,63)?Yt(1,++n,t):0;if(e.type===Vt.Number){const r=Gt(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Vt.Dimension||e.type===Vt.Number?function(e,t){return 45===e.value.charCodeAt(0)}(e)&&Gt(e,1,!1)?n+1:0:Yt(r,n,t)}return e.type===Vt.Dimension?Yt(Gt(e,1,!0),++n,t):0},en=f,tn=g,nn=L,rn=["calc(","-moz-calc(","-webkit-calc("],on=new Map([[en.Function,en.RightParenthesis],[en.LeftParenthesis,en.RightParenthesis],[en.LeftSquareBracket,en.RightSquareBracket],[en.LeftCurlyBracket,en.RightCurlyBracket]]);function an(e,t){return t<e.length?e.charCodeAt(t):0}function sn(e,t){return nn.cmpStr(e,0,e.length,t)}function ln(e,t){for(let n=0;n<t.length;n++)if(sn(e,t[n]))return!0;return!1}function cn(e,t){return t===e.length-2&&92===an(e,t)&&tn.isDigit(an(e,t+1))}function un(e,t,n){if(e&&"Range"===e.type){const r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min&&"string"!=typeof e.min)return!0;if(null!==e.max&&r>e.max&&"string"!=typeof e.max)return!0}return!1}function hn(e){return function(t,n,r){return null===t?0:t.type===en.Function&&ln(t.value,rn)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function dn(e){return function(t){return null===t||t.type!==e?0:1}}function pn(e){return null===e||e.type!==en.Ident||45!==an(e.value,0)||45!==an(e.value,1)?0:1}function mn(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==en.Dimension)return 0;const i=nn.consumeNumber(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&cn(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return un(r,t.value,i)?0:1}}function fn(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===en.Number&&0===Number(t.value)?1:e(t,n,r)}}const gn={"ident-token":dn(en.Ident),"function-token":dn(en.Function),"at-keyword-token":dn(en.AtKeyword),"hash-token":dn(en.Hash),"string-token":dn(en.String),"bad-string-token":dn(en.BadString),"url-token":dn(en.Url),"bad-url-token":dn(en.BadUrl),"delim-token":dn(en.Delim),"number-token":dn(en.Number),"percentage-token":dn(en.Percentage),"dimension-token":dn(en.Dimension),"whitespace-token":dn(en.WhiteSpace),"CDO-token":dn(en.CDO),"CDC-token":dn(en.CDC),"colon-token":dn(en.Colon),"semicolon-token":dn(en.Semicolon),"comma-token":dn(en.Comma),"[-token":dn(en.LeftSquareBracket),"]-token":dn(en.RightSquareBracket),"(-token":dn(en.LeftParenthesis),")-token":dn(en.RightParenthesis),"{-token":dn(en.LeftCurlyBracket),"}-token":dn(en.RightCurlyBracket)},bn={string:dn(en.String),ident:dn(en.Ident),percentage:hn((function(e,t,n){return null===e||e.type!==en.Percentage||un(n,e.value,e.value.length-1)?0:1})),zero:fn(),number:hn((function(e,t,n){if(null===e)return 0;const r=nn.consumeNumber(e.value,0);return r===e.value.length||cn(e.value,r)?un(n,e.value,r)?0:1:0})),integer:hn((function(e,t,n){if(null===e||e.type!==en.Number)return 0;let r=43===an(e.value,0)||45===an(e.value,0)?1:0;for(;r<e.value.length;r++)if(!tn.isDigit(an(e.value,r)))return 0;return un(n,e.value,r)?0:1})),"custom-ident":function(e){if(null===e||e.type!==en.Ident)return 0;const t=e.value.toLowerCase();return ln(t,Qt.cssWideKeywords)||sn(t,"default")?0:1},"dashed-ident":pn,"custom-property-name":function(e){return pn(e)?"--"===e.value?0:1:0},"hex-color":function(e){if(null===e||e.type!==en.Hash)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!tn.isHexDigit(an(e.value,n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==en.Hash?0:tn.isIdentifierStart(an(e.value,1),an(e.value,2),an(e.value,3))?1:0},"an-plus-b":Xt,urange:Jt,"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case en.BadString:case en.BadUrl:break e;case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case en.Semicolon:if(0===n)break e;break;case en.Delim:if(0===n&&"!"===e.value)break e;break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case en.BadString:case en.BadUrl:break e;case en.RightCurlyBracket:case en.RightParenthesis:case en.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case en.Function:case en.LeftParenthesis:case en.LeftSquareBracket:case en.LeftCurlyBracket:r.push(n),n=on.get(e.type)}i++}while(e=t(i));return i}};function yn(e){const{angle:t,decibel:n,frequency:r,flex:i,length:o,resolution:a,semitones:s,time:l}=e||{};return{dimension:hn(mn(null)),angle:hn(mn(t)),decibel:hn(mn(n)),frequency:hn(mn(r)),flex:hn(mn(i)),length:hn(fn(mn(o))),resolution:hn(mn(a)),semitones:hn(mn(s)),time:hn(mn(l))}}Pt.createDemensionTypes=yn,Pt.createGenericTypes=function(e){return{...gn,...bn,...yn(e)}},Pt.productionTypes=bn,Pt.tokenTypes=gn;var kn={angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]};const wn=m,vn={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};var xn={},Sn={},Cn={},_n={};const An=ae;_n.SyntaxError=function(e,t,n){return Object.assign(An.createCustomError("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})};const zn=_n;Cn.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new zn.SyntaxError(e,this.str,this.pos)}};const Ln=Cn,Tn=9,En=10,Nn=12,Rn=13,Dn=32,Pn=33,In=35,On=38,Bn=39,Fn=40,Un=41,Mn=42,jn=43,qn=44,Wn=45,Hn=60,$n=62,Vn=63,Kn=64,Zn=91,Gn=93,Yn=123,Qn=124,Xn=125,Jn=8734,er=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),tr={" ":1,"&&":2,"||":3,"|":4};function nr(e){return e.substringToPos(e.findWsEnd(e.pos))}function rr(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||0===er[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function ir(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function or(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function ar(e){let t=null,n=null;return e.eat(Yn),t=ir(e),e.charCode()===qn?(e.pos++,e.charCode()!==Xn&&(n=ir(e))):n=t,e.eat(Xn),{min:Number(t),max:n?Number(n):0}}function sr(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case Mn:e.pos++,t={min:0,max:0};break;case jn:e.pos++,t={min:1,max:0};break;case Vn:e.pos++,t={min:0,max:1};break;case In:e.pos++,n=!0,e.charCode()===Yn?t=ar(e):e.charCode()===Vn?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Yn:t=ar(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===In&&e.charCodeAt(e.pos-1)===jn?sr(e,n):n):t}function lr(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function cr(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>tr[e]-tr[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;i<e.length;i++){const t=e[i];"Combinator"===t.type&&(t.value===r?(-1===o&&(o=i-1),e.splice(i,1),i--):(-1!==o&&i-o>1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function ur(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=hr(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:cr(t,n)||" ",disallowEmpty:!1,explicit:!1}}function hr(e){let t=e.charCode();if(t<128&&1===er[t])return function(e){const t=rr(e);return e.charCode()===Fn?(e.pos++,{type:"Function",name:t}):sr(e,{type:"Keyword",name:t})}(e);switch(t){case Gn:break;case Zn:return sr(e,function(e){let t;return e.eat(Zn),t=ur(e),e.eat(Gn),t.explicit=!0,e.charCode()===Pn&&(e.pos++,t.disallowEmpty=!0),t}(e));case Hn:return e.nextCharCode()===Bn?function(e){let t;return e.eat(Hn),e.eat(Bn),t=rr(e),e.eat(Bn),e.eat($n),sr(e,{type:"Property",name:t})}(e):function(e){let t,n=null;return e.eat(Hn),t=rr(e),e.charCode()===Fn&&e.nextCharCode()===Un&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Zn&&(nr(e),n=function(e){let t=null,n=null,r=1;return e.eat(Zn),e.charCode()===Wn&&(e.peek(),r=-1),-1==r&&e.charCode()===Jn?e.peek():(t=r*Number(ir(e)),0!==er[e.charCode()]&&(t+=rr(e))),nr(e),e.eat(qn),nr(e),e.charCode()===Jn?e.peek():(r=1,e.charCode()===Wn&&(e.peek(),r=-1),n=r*Number(ir(e)),0!==er[e.charCode()]&&(n+=rr(e))),e.eat(Gn),{type:"Range",min:t,max:n}}(e)),e.eat($n),sr(e,{type:"Type",name:t,opts:n})}(e);case Qn:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Qn?2:1))};case On:return e.pos++,e.eat(On),{type:"Combinator",value:"&&"};case qn:return e.pos++,{type:"Comma"};case Bn:return sr(e,{type:"String",value:or(e)});case Dn:case Tn:case En:case Rn:case Nn:return{type:"Spaces",value:nr(e)};case Kn:return t=e.nextCharCode(),t<128&&1===er[t]?(e.pos++,{type:"AtKeyword",name:rr(e)}):lr(e);case Mn:case jn:case Vn:case In:case Pn:break;case Yn:if(t=e.nextCharCode(),t<48||t>57)return lr(e);break;default:return lr(e)}}Sn.parse=function(e){const t=new Ln.Tokenizer(e),n=ur(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n};const dr=Sn,pr={type:"Match"},mr={type:"Mismatch"},fr={type:"DisallowEmpty"},gr=40,br=41;function yr(e,t,n){return t===pr&&n===mr||e===pr&&t===pr&&n===pr?e:("If"===e.type&&e.else===mr&&t===pr&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function kr(e){return e.length>2&&e.charCodeAt(e.length-2)===gr&&e.charCodeAt(e.length-1)===br}function wr(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&kr(e.name)}function vr(e,t,n){switch(e){case" ":{let e=pr;for(let n=t.length-1;n>=0;n--)e=yr(t[n],e,mr);return e}case"|":{let e=mr,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(wr(i)&&(null===n&&r>0&&wr(t[r-1])&&(n=Object.create(null),e=yr({type:"Enum",map:n},pr,e)),null!==n)){const e=(kr(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n==0){n[e]=i;continue}}n=null,e=yr(i,pr,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=mr;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?vr(e,t.filter((function(e){return e!==i})),!1):pr,n=yr(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?pr:mr;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?vr(e,t.filter((function(e){return e!==i})),!0):pr,r=yr(i,o,r)}return r}}}function xr(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=vr(e.combinator,e.terms.map(xr),!1);return e.disallowEmpty&&(t=yr(t,fr,mr)),t}case"Multiplier":return function(e){let t=pr,n=xr(e.term);if(0===e.max)n=yr(n,fr,mr),t=yr(n,null,mr),t.then=yr(pr,pr,t),e.comma&&(t.then.else=yr({type:"Comma",syntax:e},t,mr));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==pr&&(t=yr({type:"Comma",syntax:e},t,mr)),t=yr(n,yr(pr,pr,t),mr);if(0===e.min)t=yr(pr,pr,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==pr&&(t=yr({type:"Comma",syntax:e},t,mr)),t=yr(n,t,mr);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}xn.DISALLOW_EMPTY=fr,xn.MATCH=pr,xn.MISMATCH=mr,xn.buildMatchGraph=function(e,t){return"string"==typeof e&&(e=dr.parse(e)),{type:"MatchGraph",match:xr(e),syntax:t||null,source:e}};var Sr={};const Cr=xn,_r=f,{hasOwnProperty:Ar}=Object.prototype,zr="Match";function Lr(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function Tr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function Er(e){return null===e||e.type===_r.Comma||e.type===_r.Function||e.type===_r.LeftParenthesis||e.type===_r.LeftSquareBracket||e.type===_r.LeftCurlyBracket||function(e){return e.type===_r.Delim&&"?"!==e.value}(e)}function Nr(e){return null===e||e.type===_r.RightParenthesis||e.type===_r.RightSquareBracket||e.type===_r.RightCurlyBracket||e.type===_r.Delim&&"/"===e.value}function Rr(e,t,n){function r(){do{b++,g=b<e.length?e[b]:null}while(null!==g&&(g.type===_r.WhiteSpace||g.type===_r.Comment))}function i(t){const n=b+t;return n<e.length?e[n]:null}function o(e,t){return{nextState:e,matchStack:k,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function a(e){h={nextState:e,matchStack:k,syntaxStack:u,prev:h}}function s(e){d=o(e,d)}function l(){k={type:1,syntax:t.syntax,token:g,prev:k},r(),p=null,b>y&&(y=b)}function c(){k=2===k.type?k.prev:{type:3,syntax:u.syntax,token:k.token,prev:k},u=u.prev}let u=null,h=null,d=null,p=null,m=0,f=null,g=null,b=-1,y=0,k={type:0,syntax:null,token:null,prev:null};for(r();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=Cr.MISMATCH;break}f=zr;break}if((t=h.nextState)===Cr.DISALLOW_EMPTY){if(h.matchStack===k){t=Cr.MISMATCH;break}t=Cr.MATCH}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>d.tokenIndex)&&(d=p,p=!1);else if(null===d){f="Mismatch";break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,k=d.matchStack,b=d.tokenIndex,g=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Cr.MISMATCH&&s(t.else),t.then!==Cr.MATCH&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=Cr.MISMATCH;break}t=Cr.MATCH;break}if(t.mask===(1<<e.length)-1){t=Cr.MATCH;break}for(;t.index<e.length;t.index++){const n=1<<t.index;if(0==(t.mask&n)){s(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g){let e=g.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),Ar.call(t.map,e)){t=t.map[e];break}}t=Cr.MISMATCH;break;case"Generic":{const e=null!==u?u.opts:null,n=b+Math.floor(t.fn(g,i,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=Cr.MATCH}else t=Cr.MISMATCH;break}case"Type":case"Property":{const e="Type"===t.type?"types":"properties",r=Ar.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&g.type===_r.Ident||"length"===t.name&&"0"===g.value)){null===p&&(p=o(t,d)),t=Cr.MISMATCH;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},k={type:2,syntax:t.syntax,token:k.token,prev:k},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Tr(n,e)){l(),t=Cr.MATCH;break}}t=Cr.MISMATCH;break}case"AtKeyword":case"Function":if(null!==g&&Tr(g.value,t.name)){l(),t=Cr.MATCH;break}t=Cr.MISMATCH;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Cr.MATCH;break}t=Cr.MISMATCH;break;case"Comma":null!==g&&g.type===_r.Comma?Er(k.token)?t=Cr.MISMATCH:(l(),t=Nr(g)?Cr.MISMATCH:Cr.MATCH):t=Er(k.token)||Nr(g)?Cr.MATCH:Cr.MISMATCH;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(Tr(r,t.value)){for(;b<m;)l();t=Cr.MATCH}else t=Cr.MISMATCH;break;default:throw new Error("Unknown node type: "+t.type)}switch(f){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),f="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",k=null;break;case zr:for(;null!==u;)c();break;default:k=null}return{tokens:e,reason:f,iterations:m,match:k,longestMatch:y}}Sr.matchAsList=function(e,t,n){const r=Rr(e,t,n||{});if(null!==r.match){let e=Lr(r.match).prev;for(r.match=[];null!==e;){switch(e.type){case 2:case 3:r.match.push({type:e.type,syntax:e.syntax});break;default:r.match.push({token:e.token.value,node:e.token.node})}e=e.prev}}return r},Sr.matchAsTree=function(e,t,n){const r=Rr(e,t,n||{});if(null===r.match)return r;let i=r.match,o=r.match={syntax:t.syntax||null,match:[]};const a=[o];for(i=Lr(i).prev;null!==i;){switch(i.type){case 2:o.match.push(o={syntax:i.syntax,match:[]}),a.push(o);break;case 3:a.pop(),o=a[a.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r};var Dr={};function Pr(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(i){if(Array.isArray(i.match)){for(let e=0;e<i.match.length;e++)if(r(i.match[e]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}(this.matched),n}function Ir(e,t,n){const r=Pr.call(e,t);return null!==r&&r.some(n)}Dr.getTrace=Pr,Dr.isKeyword=function(e){return Ir(this,e,(e=>"Keyword"===e.type))},Dr.isProperty=function(e,t){return Ir(this,e,(e=>"Property"===e.type&&e.name===t))},Dr.isType=function(e,t){return Ir(this,e,(e=>"Type"===e.type&&e.name===t))};var Or={};const Br=ne;function Fr(e){return"node"in e?e.node:Fr(e.match[0])}function Ur(e){return"node"in e?e.node:Ur(e.match[e.match.length-1])}Or.matchFragments=function(e,t,n,r,i){const o=[];return null!==n.matched&&function n(a){if(null!==a.syntax&&a.syntax.type===r&&a.syntax.name===i){const n=Fr(a),r=Ur(a);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new Br.List;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(n)}(n.matched),o};var Mr={};const jr=ne,{hasOwnProperty:qr}=Object.prototype;function Wr(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Hr(e){return Boolean(e)&&Wr(e.offset)&&Wr(e.line)&&Wr(e.column)}function $r(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==qr.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)i+=".source";else if(Hr(n.loc.start)){if(Hr(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e<t[i].length;e++){const r=t[i][e];switch(r){case String:o="string"==typeof n[i];break;case Boolean:o="boolean"==typeof n[i];break;case null:o=null===n[i];break;default:"string"==typeof r?o=n[i]&&n[i].type===r:Array.isArray(r)&&(o=n[i]instanceof jr.List)}}}else r(n,"Unknown field `"+i+"` for "+e+" node type");o||r(n,"Bad value for `"+e+"."+i+"`")}}for(const i in t)qr.call(t,i)&&!1===qr.call(n,i)&&r(n,"Field `"+e+"."+i+"` is missed")}}function Vr(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const t in n){if(!1===qr.call(n,t))continue;const o=[],a=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<a.length;n++){const r=a[n];if(r===String||r===Boolean)o.push(r.name);else if(null===r)o.push("null");else if("string"==typeof r)o.push("<"+r+">");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");o.push("List")}}i[t]=o.join(" | ")}return{docs:i,check:$r(e,r)}}Mr.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(qr.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Vr(n,r)}return t};var Kr={};const Zr=function(){};function Gr(e){return"function"==typeof e?e:Zr}Kr.walk=function(e,t,n){let r=Zr,i=Zr;if("function"==typeof t?r=t:t&&(r=Gr(t.enter),i=Gr(t.leave)),r===Zr&&i===Zr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)};const Yr=yt,Qr=zt,Xr=Dt,Jr=Pt,ei=kn,ti=function(e,t){return"string"==typeof e?function(e){const t=[];return wn.tokenize(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,vn)},ni=xn,ri=Sr,ii=Dr,oi=Or,ai=Mr,si=Sn,li=kt,ci=Kr,ui=ni.buildMatchGraph(Xr.cssWideKeywords.join(" | "));function hi(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:li.generate(e[i].syntax,{compact:t}));return r}function di(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:li.generate(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&hi(o.descriptors,t,n)};return r}function pi(e,t,n){return{matched:e,iterations:n,error:t,...ii}}function mi(e,t,n,r){const i=ti(n,e.syntax);let o;return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(i)?pi(null,new Error("Matching for a tree with var() is not supported")):(r&&(o=ri.matchAsTree(i,e.cssWideKeywordsSyntax,e)),r&&o.match||(o=ri.matchAsTree(i,t.match,e),o.match)?pi(o.match,null,o.iterations):pi(null,new Yr.SyntaxMatchError(o.reason,t.syntax,n,o),o.iterations))}function fi(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function gi(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}bt.Lexer=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=ui,this.syntax=t,this.generic=!1,this.units={...ei},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||ai.getStructureFromConfig(e),e){if(e.units)for(const t of Object.keys(ei))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(const[t,n]of Object.entries(e.types))this.addType_(t,n);if(e.generic){this.generic=!0;for(const[e,t]of Object.entries(Jr.createGenericTypes(this.units)))this.addType_(e,t)}if(e.atrules)for(const[t,n]of Object.entries(e.atrules))this.addAtrule_(t,n);if(e.properties)for(const[t,n]of Object.entries(e.properties))this.addProperty_(t,n)}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}const n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){const i={type:t,name:n},o={type:t,name:n,parent:r,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?o.match=ni.buildMatchGraph(e,i):("string"==typeof e?Object.defineProperty(o,"syntax",{get:()=>(Object.defineProperty(o,"syntax",{value:si.parse(e)}),o.syntax)}):o.syntax=e,Object.defineProperty(o,"match",{get:()=>(Object.defineProperty(o,"match",{value:ni.buildMatchGraph(o.syntax,i)}),o.match)})),o}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Yr.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||mi(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=Qr.keyword(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new Yr.SyntaxReferenceError("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Yr.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return pi(null,n);const r=this.getAtrule(e);return r.prelude?mi(this,r.prelude,t||"",!1):pi(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return pi(null,r);const i=this.getAtrule(e),o=Qr.keyword(t);return mi(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?pi(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Qr.property(e).custom)return pi(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?pi(null,n):mi(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?mi(this,n,t,!1):pi(null,new Yr.SyntaxReferenceError("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),mi(this,e,t,!1)):pi(null,new Yr.SyntaxReferenceError("Bad syntax"))}findValueFragments(e,t,n,r){return oi.matchFragments(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return oi.matchFragments(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){const n=Qr.keyword(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const n=Qr.property(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,a){if(o.has(i))return o.get(i);o.set(i,!1),null!==a.syntax&&ci.walk(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;const s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,s[a.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:hi(this.types,!t,e),properties:hi(this.properties,!t,e),atrules:di(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};const bi=m,yi=te,ki=Ce,wi=st,vi=ct,xi=bt,Si=function(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?fi(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?fi(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=fi(n[r][e],t);break;case"scope":case"features":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...gi(i,["parse"])};break;case"node":n[r]={...e[r],...gi(i,["name","structure","parse","generate","walkContext"])}}return n};function Ci(e){const t=yi.createParser(e),n=vi.createWalker(e),r=ki.createGenerator(e),{fromPlainObject:i,toPlainObject:o}=wi.createConvertor(n),a={lexer:null,createLexer:e=>new xi.Lexer(e,a,a.lexer.structure),tokenize:bi.tokenize,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=Si({},e);return Ci("function"==typeof t?t(n,Object.assign):Si(n,t))}};return a.lexer=new xi.Lexer({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var _i=e=>Ci(Si({},e)),Ai={},zi={};const Li=f,Ti=g,Ei=43,Ni=45,Ri=110,Di=!0;function Pi(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==Ei&&r!==Ni||(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ti.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ii(e){return Pi.call(this,0,e)}function Oi(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Ri:n="N is expected";break;case Ni:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function Bi(){let e=0,t=0,n=this.tokenType;for(;n===Li.WhiteSpace||n===Li.Comment;)n=this.lookupType(++e);if(n!==Li.Number){if(!this.isDelim(Ei,e)&&!this.isDelim(Ni,e))return null;t=this.isDelim(Ei,e)?Ei:Ni;do{n=this.lookupType(++e)}while(n===Li.WhiteSpace||n===Li.Comment);n!==Li.Number&&(this.skip(e),Ii.call(this,Di))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==Ei&&n!==Ni&&this.error("Number sign is expected")),Ii.call(this,0!==t),t===Ni?"-"+this.consume(Li.Number):this.consume(Li.Number)}const Fi={a:[String,null],b:[String,null]};zi.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)},zi.name="AnPlusB",zi.parse=function(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===Li.Number)Ii.call(this,!1),n=this.consume(Li.Number);else if(this.tokenType===Li.Ident&&this.cmpChar(this.tokenStart,Ni))switch(t="-1",Oi.call(this,1,Ri),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Bi.call(this);break;case 3:Oi.call(this,2,Ni),this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number);break;default:Oi.call(this,2,Ni),Pi.call(this,3,Di),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===Li.Ident||this.isDelim(Ei)&&this.lookupType(1)===Li.Ident){let r=0;switch(t="1",this.isDelim(Ei)&&(r=1,this.next()),Oi.call(this,0,Ri),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Bi.call(this);break;case 2:Oi.call(this,1,Ni),this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number);break;default:Oi.call(this,1,Ni),Pi.call(this,2,Di),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Li.Dimension){const r=this.charCodeAt(this.tokenStart),i=r===Ei||r===Ni;let o=this.tokenStart+i;for(;o<this.tokenEnd&&Ti.isDigit(this.charCodeAt(o));o++);o===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Oi.call(this,o-this.tokenStart,Ri),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),n=Bi.call(this)):(Oi.call(this,o-this.tokenStart+1,Ni),o+2===this.tokenEnd?(this.next(),this.skipSC(),Ii.call(this,Di),n="-"+this.consume(Li.Number)):(Pi.call(this,o-this.tokenStart+2,Di),this.next(),n=this.substrToCursor(o+1)))}else this.error();return null!==t&&t.charCodeAt(0)===Ei&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===Ei&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}},zi.structure=Fi;var Ui={};const Mi=f;function ji(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function qi(){for(let e,t=1;e=this.lookupType(t);t++){if(e===Mi.RightCurlyBracket)return!0;if(e===Mi.LeftCurlyBracket||e===Mi.AtKeyword)return!1}return!1}const Wi={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Ui.generate=function(e){this.token(Mi.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?(this.token(Mi.LeftCurlyBracket,"{"),this.node(e.block),this.token(Mi.RightCurlyBracket,"}")):this.token(Mi.Semicolon,";")},Ui.name="Atrule",Ui.parse=function(e=!1){const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(Mi.AtKeyword),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Mi.LeftCurlyBracket&&this.tokenType!==Mi.Semicolon&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),ji):ji.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Mi.Semicolon:this.next();break;case Mi.LeftCurlyBracket:this.eat(Mi.LeftCurlyBracket),o=hasOwnProperty.call(this.atrule,r)&&"function"==typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(qi.call(this)),this.eof||this.eat(Mi.RightCurlyBracket)}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}},Ui.structure=Wi,Ui.walkContext="atrule";var Hi={};const $i=f;Hi.generate=function(e){this.children(e)},Hi.name="AtrulePrelude",Hi.parse=function(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==$i.LeftCurlyBracket&&this.tokenType!==$i.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},Hi.structure={children:[[]]},Hi.walkContext="atrulePrelude";var Vi={};const Ki=f;function Zi(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(Ki.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(Ki.Ident)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Gi(){const e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Yi={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Vi.generate=function(e){this.token(Ki.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(Ki.Ident,e.flags),this.token(Ki.Delim,"]")},Vi.name="AttributeSelector",Vi.parse=function(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Ki.LeftSquareBracket),this.skipSC(),t=Zi.call(this),this.skipSC(),this.tokenType!==Ki.RightSquareBracket&&(this.tokenType!==Ki.Ident&&(n=Gi.call(this),this.skipSC(),r=this.tokenType===Ki.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Ki.Ident&&(i=this.consume(Ki.Ident),this.skipSC())),this.eat(Ki.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}},Vi.structure=Yi;var Qi={};const Xi=f;function Ji(){return this.Raw(null,!0)}function eo(){return this.parseWithFallback(this.Rule,Ji)}function to(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function no(){if(this.tokenType===Xi.Semicolon)return to.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,to);return this.tokenType===Xi.Semicolon&&this.next(),e}Qi.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Xi.Semicolon,";")}))},Qi.name="Block",Qi.parse=function(e){const t=e?no:eo,n=this.tokenStart;let r=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Xi.RightCurlyBracket:break e;case Xi.WhiteSpace:case Xi.Comment:this.next();break;case Xi.AtKeyword:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Ji));break;default:e&&this.isDelim(38)?r.push(eo.call(this)):r.push(t.call(this))}return{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}},Qi.structure={children:[["Atrule","Rule","Declaration"]]},Qi.walkContext="block";var ro={};const io=f;ro.generate=function(e){this.token(io.Delim,"["),this.children(e),this.token(io.Delim,"]")},ro.name="Brackets",ro.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(io.LeftSquareBracket),r=e.call(this,t),this.eof||this.eat(io.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}},ro.structure={children:[[]]};var oo={};const ao=f;oo.generate=function(){this.token(ao.CDC,"--\x3e")},oo.name="CDC",oo.parse=function(){const e=this.tokenStart;return this.eat(ao.CDC),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}},oo.structure=[];var so={};const lo=f;so.generate=function(){this.token(lo.CDO,"\x3c!--")},so.name="CDO",so.parse=function(){const e=this.tokenStart;return this.eat(lo.CDO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}},so.structure=[];var co={};const uo=f,ho={name:String};co.generate=function(e){this.token(uo.Delim,"."),this.token(uo.Ident,e.name)},co.name="ClassSelector",co.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(uo.Ident)}},co.structure=ho;var po={};const mo=f,fo={name:String};po.generate=function(e){this.tokenize(e.name)},po.name="Combinator",po.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case mo.WhiteSpace:t=" ";break;case mo.Delim:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}},po.structure=fo;var go={};const bo=f,yo={value:String};go.generate=function(e){this.token(bo.Comment,"/*"+e.value+"*/")},go.name="Comment",go.parse=function(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(bo.Comment),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}},go.structure=yo;var ko={};const wo=f,vo=new Set([wo.Colon,wo.RightParenthesis,wo.EOF]),xo={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function So(e){return this.lookupTypeNonSC(1)===wo.Ident&&vo.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const Co={media:So,container:So,supports(){return this.SupportsDeclaration()}};ko.generate=function(e){e.children.forEach((e=>{"Condition"===e.type?(this.token(wo.LeftParenthesis,"("),this.node(e),this.token(wo.RightParenthesis,")")):this.node(e)}))},ko.name="Condition",ko.parse=function(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case wo.Comment:case wo.WhiteSpace:this.next();continue;case wo.Ident:t.push(this.Identifier());break;case wo.LeftParenthesis:{let n=this.parseWithFallback((()=>Co[e].call(this,e)),(()=>null));n||(n=this.parseWithFallback((()=>{this.eat(wo.LeftParenthesis);const t=this.Condition(e);return this.eat(wo.RightParenthesis),t}),(()=>this.GeneralEnclosed(e)))),t.push(n);break}case wo.Function:{let n=this.parseWithFallback((()=>this.FeatureFunction(e)),(()=>null));n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}},ko.structure=xo;var _o={};const Ao=zt,zo=f;function Lo(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function To(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Eo(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==zo.Semicolon&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}const No={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ro(){const e=this.tokenStart;if(this.tokenType===zo.Delim)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return this.tokenType===zo.Hash?this.eat(zo.Hash):this.eat(zo.Ident),this.substrToCursor(e)}function Do(){this.eat(zo.Delim),this.skipSC();const e=this.consume(zo.Ident);return"important"===e||e}_o.generate=function(e){this.token(zo.Ident,e.property),this.token(zo.Colon,":"),this.node(e.value),e.important&&(this.token(zo.Delim,"!"),this.token(zo.Ident,!0===e.important?"important":e.important))},_o.name="Declaration",_o.parse=function(){const e=this.tokenStart,t=this.tokenIndex,n=Ro.call(this),r=Ao.isCustomProperty(n),i=r?this.parseCustomProperty:this.parseValue,o=r?To:Lo;let a,s=!1;this.skipSC(),this.eat(zo.Colon);const l=this.tokenIndex;if(r||this.skipSC(),a=i?this.parseWithFallback(Eo,o):o.call(this,this.tokenIndex),r&&"Value"===a.type&&a.children.isEmpty)for(let e=l-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===zo.WhiteSpace){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=Do.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==zo.Semicolon&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}},_o.structure=No,_o.walkContext="declaration";var Po={};const Io=f;function Oo(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}Po.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Io.Semicolon,";")}))},Po.name="DeclarationList",Po.parse=function(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Io.WhiteSpace:case Io.Comment:case Io.Semicolon:this.next();break;case Io.AtKeyword:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Oo));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,Oo)):e.push(this.parseWithFallback(this.Declaration,Oo))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},Po.structure={children:[["Declaration","Atrule","Rule"]]};var Bo={};const Fo=f,Uo={value:String,unit:String};Bo.generate=function(e){this.token(Fo.Dimension,e.value+e.unit)},Bo.name="Dimension",Bo.parse=function(){const e=this.tokenStart,t=this.consumeNumber(Fo.Dimension);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}},Bo.structure=Uo;var Mo={};const jo=f,qo={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};Mo.generate=function(e){this.token(jo.LeftParenthesis,"("),this.token(jo.Ident,e.name),null!==e.value&&(this.token(jo.Colon,":"),this.node(e.value)),this.token(jo.RightParenthesis,")")},Mo.name="Feature",Mo.parse=function(e){const t=this.tokenStart;let n,r=null;if(this.eat(jo.LeftParenthesis),this.skipSC(),n=this.consume(jo.Ident),this.skipSC(),this.tokenType!==jo.RightParenthesis){switch(this.eat(jo.Colon),this.skipSC(),this.tokenType){case jo.Number:r=this.lookupNonWSType(1)===jo.Delim?this.Ratio():this.Number();break;case jo.Dimension:r=this.Dimension();break;case jo.Ident:r=this.Identifier();break;case jo.Function:r=this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(jo.RightParenthesis),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}},Mo.structure=qo;var Wo={};const Ho=f,$o={kind:String,feature:String,value:["Declaration","Selector"]};function Vo(e,t){const n=(this.features[e]||{})[t];return"function"!=typeof n&&this.error(`Unknown feature ${t}()`),n}Wo.generate=function(e){this.token(Ho.Function,e.feature+"("),this.node(e.value),this.token(Ho.RightParenthesis,")")},Wo.name="FeatureFunction",Wo.parse=function(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=Vo.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback((()=>{const e=this.tokenIndex,t=r.call(this);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.Raw(null,!1)));return this.eof||this.eat(Ho.RightParenthesis),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}},Wo.structure=$o;var Ko={};const Zo=f,Go={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Yo(){switch(this.skipSC(),this.tokenType){case Zo.Number:return this.isDelim(47,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Zo.Dimension:return this.Dimension();case Zo.Ident:return this.Identifier();case Zo.Function:return this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));default:this.error("Number, dimension, ratio or identifier is expected")}}function Qo(e){if(this.skipSC(),this.isDelim(60)||this.isDelim(62)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(61)?(this.next(),e+"="):e}if(this.isDelim(61))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}Ko.generate=function(e){this.token(Zo.LeftParenthesis,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(Zo.RightParenthesis,")")},Ko.name="FeatureRange",Ko.parse=function(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Zo.LeftParenthesis);const n=Yo.call(this),r=Qo.call(this,"Identifier"===n.type),i=Yo.call(this);let o=null,a=null;return this.lookupNonWSType(0)!==Zo.RightParenthesis&&(o=Qo.call(this),a=Yo.call(this)),this.skipSC(),this.eat(Zo.RightParenthesis),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:o,right:a}},Ko.structure=Go;var Xo={};const Jo=f,ea={name:String,children:[[]]};Xo.generate=function(e){this.token(Jo.Function,e.name+"("),this.children(e),this.token(Jo.RightParenthesis,")")},Xo.name="Function",Xo.parse=function(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(Jo.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}},Xo.structure=ea,Xo.walkContext="function";var ta={};const na=f,ra={kind:String,function:[String,null],children:[[]]};ta.generate=function(e){e.function?this.token(na.Function,e.function+"("):this.token(na.LeftParenthesis,"("),this.children(e),this.token(na.RightParenthesis,")")},ta.name="GeneralEnclosed",ta.parse=function(e){const t=this.tokenStart;let n=null;this.tokenType===na.Function?n=this.consumeFunctionName():this.eat(na.LeftParenthesis);const r=this.parseWithFallback((()=>{const e=this.tokenIndex,t=this.readSequence(this.scope.Value);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(na.RightParenthesis),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}},ta.structure=ra;var ia={};const oa=f,aa={value:String};ia.generate=function(e){this.token(oa.Hash,"#"+e.value)},ia.name="Hash",ia.parse=function(){const e=this.tokenStart;return this.eat(oa.Hash),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}},ia.structure=aa,ia.xxx="XXX";var sa={};const la=f,ca={name:String};sa.generate=function(e){this.token(la.Ident,e.name)},sa.name="Identifier",sa.parse=function(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(la.Ident)}},sa.structure=ca;var ua={};const ha=f,da={name:String};ua.generate=function(e){this.token(ha.Delim,"#"+e.name)},ua.name="IdSelector",ua.parse=function(){const e=this.tokenStart;return this.eat(ha.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},ua.structure=da;var pa={};const ma=f,fa={name:String};pa.generate=function(e){this.tokenize(e.name)},pa.name="Layer",pa.parse=function(){let e=this.consume(ma.Ident);for(;this.isDelim(46);)this.eat(ma.Delim),e+="."+this.consume(ma.Ident);return{type:"Layer",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}},pa.structure=fa;var ga={};const ba=f;ga.generate=function(e){this.children(e,(()=>this.token(ba.Comma,",")))},ga.name="LayerList",ga.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.tokenType===ba.Comma);)this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}},ga.structure={children:[["MediaQuery"]]};var ya={};const ka=f,wa={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};ya.generate=function(e){e.mediaType?(e.modifier&&this.token(ka.Ident,e.modifier),this.token(ka.Ident,e.mediaType),e.condition&&(this.token(ka.Ident,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)},ya.name="MediaQuery",ya.parse=function(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===ka.Ident&&this.lookupTypeNonSC(1)!==ka.LeftParenthesis){const e=this.consume(ka.Ident),i=e.toLowerCase();switch("not"===i||"only"===i?(this.skipSC(),t=i,n=this.consume(ka.Ident)):n=e,this.lookupTypeNonSC(0)){case ka.Ident:this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break;case ka.LeftCurlyBracket:case ka.Semicolon:case ka.Comma:case ka.EOF:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case ka.Ident:case ka.LeftParenthesis:case ka.Function:r=this.Condition("media");break;case ka.LeftCurlyBracket:case ka.Semicolon:case ka.EOF:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}},ya.structure=wa;var va={};const xa=f;va.generate=function(e){this.children(e,(()=>this.token(xa.Comma,",")))},va.name="MediaQueryList",va.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===xa.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},va.structure={children:[["MediaQuery"]]};var Sa={};const Ca=f;Sa.generate=function(){this.token(Ca.Delim,"&")},Sa.name="NestingSelector",Sa.parse=function(){const e=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}},Sa.structure={};var _a={};const Aa=f;_a.generate=function(e){this.node(e.nth),null!==e.selector&&(this.token(Aa.Ident,"of"),this.node(e.selector))},_a.name="Nth",_a.parse=function(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}},_a.structure={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};var za={};const La=f,Ta={value:String};za.generate=function(e){this.token(La.Number,e.value)},za.name="Number",za.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(La.Number)}},za.structure=Ta;var Ea={};const Na={value:String};Ea.generate=function(e){this.tokenize(e.value)},Ea.name="Operator",Ea.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},Ea.structure=Na;var Ra={};const Da=f;Ra.generate=function(e){this.token(Da.LeftParenthesis,"("),this.children(e),this.token(Da.RightParenthesis,")")},Ra.name="Parentheses",Ra.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(Da.LeftParenthesis),r=e.call(this,t),this.eof||this.eat(Da.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}},Ra.structure={children:[[]]};var Pa={};const Ia=f,Oa={value:String};Pa.generate=function(e){this.token(Ia.Percentage,e.value+"%")},Pa.name="Percentage",Pa.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Ia.Percentage)}},Pa.structure=Oa;var Ba={};const Fa=f,Ua={name:String,children:[["Raw"],null]};Ba.generate=function(e){this.token(Fa.Colon,":"),null===e.children?this.token(Fa.Ident,e.name):(this.token(Fa.Function,e.name+"("),this.children(e),this.token(Fa.RightParenthesis,")"))},Ba.name="PseudoClassSelector",Ba.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(Fa.Colon),this.tokenType===Fa.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==Fa.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(Fa.RightParenthesis)):t=this.consume(Fa.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ba.structure=Ua,Ba.walkContext="function";var Ma={};const ja=f,qa={name:String,children:[["Raw"],null]};Ma.generate=function(e){this.token(ja.Colon,":"),this.token(ja.Colon,":"),null===e.children?this.token(ja.Ident,e.name):(this.token(ja.Function,e.name+"("),this.children(e),this.token(ja.RightParenthesis,")"))},Ma.name="PseudoElementSelector",Ma.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(ja.Colon),this.eat(ja.Colon),this.tokenType===ja.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==ja.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(ja.RightParenthesis)):t=this.consume(ja.Ident),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ma.structure=qa,Ma.walkContext="function";var Wa={};const Ha=f;function $a(){switch(this.skipSC(),this.tokenType){case Ha.Number:return this.Number();case Ha.Function:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}Wa.generate=function(e){this.node(e.left),this.token(Ha.Delim,"/"),e.right?this.node(e.right):this.node(Ha.Number,1)},Wa.name="Ratio",Wa.parse=function(){const e=this.tokenStart,t=$a.call(this);let n=null;return this.skipSC(),this.isDelim(47)&&(this.eatDelim(47),n=$a.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}},Wa.structure={left:["Number","Function"],right:["Number","Function",null]};var Va={};const Ka=f;function Za(){return this.tokenIndex>0&&this.lookupType(-1)===Ka.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Ga={value:String};Va.generate=function(e){this.tokenize(e.value)},Va.name="Raw",Va.parse=function(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?Za.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}},Va.structure=Ga;var Ya={};const Qa=f;function Xa(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Ja(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Qa.LeftCurlyBracket&&this.error(),e}Ya.generate=function(e){this.node(e.prelude),this.token(Qa.LeftCurlyBracket,"{"),this.node(e.block),this.token(Qa.RightCurlyBracket,"}")},Ya.name="Rule",Ya.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(Ja,Xa):Xa.call(this,e),this.skipSC(),this.eat(Qa.LeftCurlyBracket),r=this.Block(!0),this.eof||this.eat(Qa.RightCurlyBracket),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}},Ya.structure={prelude:["SelectorList","Raw"],block:["Block"]},Ya.walkContext="rule";var es={};const ts=f;es.generate=function(e){e.root&&(this.token(ts.LeftParenthesis,"("),this.node(e.root),this.token(ts.RightParenthesis,")")),e.limit&&(this.token(ts.Ident,"to"),this.token(ts.LeftParenthesis,"("),this.node(e.limit),this.token(ts.RightParenthesis,")"))},es.name="Scope",es.parse=function(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===ts.LeftParenthesis&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(ts.RightParenthesis)),this.lookupNonWSType(0)===ts.Ident&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(ts.LeftParenthesis),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(ts.RightParenthesis)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}},es.structure={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};var ns={generate:function(e){this.children(e)},name:"Selector",parse:function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]}},rs={};const is=f;rs.generate=function(e){this.children(e,(()=>this.token(is.Comma,",")))},rs.name="SelectorList",rs.parse=function(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===is.Comma);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},rs.structure={children:[["Selector","Raw"]]},rs.walkContext="selector";var os={},as={};const ss=g,ls=L;as.decode=function(e){const t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let n=r;n<=i;n++){let r=e.charCodeAt(n);if(92===r){if(n===i){n!==t-1&&(o=e.substr(n+1));break}if(r=e.charCodeAt(++n),ss.isValidEscape(92,r)){const t=n-1,r=ls.consumeEscaped(e,t);n=r-1,o+=ls.decodeEscaped(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else o+=e[n]}return o},as.encode=function(e,t){const n=t?"'":'"',r=t?39:34;let i="",o=!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);0!==n?n<=31||127===n?(i+="\\"+n.toString(16),o=!0):n===r||92===n?(i+="\\"+e.charAt(t),o=!1):(o&&(ss.isHexDigit(n)||ss.isWhiteSpace(n))&&(i+=" "),i+=e.charAt(t),o=!1):i+="�"}return n+i+n};const cs=as,us=f,hs={value:String};os.generate=function(e){this.token(us.String,cs.encode(e.value))},os.name="String",os.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:cs.decode(this.consume(us.String))}},os.structure=hs;var ds={};const ps=f;function ms(){return this.Raw(null,!1)}ds.generate=function(e){this.children(e)},ds.name="StyleSheet",ds.parse=function(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case ps.WhiteSpace:this.next();continue;case ps.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}n=this.Comment();break;case ps.CDO:n=this.CDO();break;case ps.CDC:n=this.CDC();break;case ps.AtKeyword:n=this.parseWithFallback(this.Atrule,ms);break;default:n=this.parseWithFallback(this.Rule,ms)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},ds.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},ds.walkContext="stylesheet";var fs={};const gs=f;fs.generate=function(e){this.token(gs.LeftParenthesis,"("),this.node(e.declaration),this.token(gs.RightParenthesis,")")},fs.name="SupportsDeclaration",fs.parse=function(){const e=this.tokenStart;this.eat(gs.LeftParenthesis),this.skipSC();const t=this.Declaration();return this.eof||this.eat(gs.RightParenthesis),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}},fs.structure={declaration:"Declaration"};var bs={};const ys=f;function ks(){this.tokenType!==ys.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const ws={name:String};bs.generate=function(e){this.tokenize(e.name)},bs.name="TypeSelector",bs.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),ks.call(this)):(ks.call(this),this.isDelim(124)&&(this.next(),ks.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},bs.structure=ws;var vs={};const xs=f,Ss=g,Cs=43,_s=45,As=63;function zs(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===_s&&t&&0!==n)return zs.call(this,e+n+1,!1),-1;Ss.isHexDigit(i)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Ls(e){let t=0;for(;this.isDelim(As);)++t>e&&this.error("Too many question marks"),this.next()}function Ts(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Cs?"Plus sign":"Hyphen minus")+" is expected")}function Es(){let e=0;switch(this.tokenType){case xs.Number:if(e=zs.call(this,1,!0),this.isDelim(As)){Ls.call(this,6-e);break}if(this.tokenType===xs.Dimension||this.tokenType===xs.Number){Ts.call(this,_s),zs.call(this,1,!1);break}break;case xs.Dimension:e=zs.call(this,1,!0),e>0&&Ls.call(this,6-e);break;default:if(this.eatDelim(Cs),this.tokenType===xs.Ident){e=zs.call(this,0,!0),e>0&&Ls.call(this,6-e);break}if(this.isDelim(As)){this.next(),Ls.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Ns={value:String};vs.generate=function(e){this.tokenize(e.value)},vs.name="UnicodeRange",vs.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),Es.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},vs.structure=Ns;var Rs={},Ds={};const Ps=g,Is=L;Ds.decode=function(e){const t=e.length;let n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,i="";for(;n<r&&Ps.isWhiteSpace(e.charCodeAt(n));)n++;for(;n<r&&Ps.isWhiteSpace(e.charCodeAt(r));)r--;for(let o=n;o<=r;o++){let n=e.charCodeAt(o);if(92===n){if(o===r){o!==t-1&&(i=e.substr(o+1));break}if(n=e.charCodeAt(++o),Ps.isValidEscape(92,n)){const t=o-1,n=Is.consumeEscaped(e,t);o=n-1,i+=Is.decodeEscaped(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(o+1)&&o++}else i+=e[o]}return i},Ds.encode=function(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);0!==i?i<=31||127===i?(t+="\\"+i.toString(16),n=!0):32===i||92===i||34===i||39===i||40===i||41===i?(t+="\\"+e.charAt(r),n=!1):(n&&Ps.isHexDigit(i)&&(t+=" "),t+=e.charAt(r),n=!1):t+="�"}return"url("+t+")"};const Os=Ds,Bs=as,Fs=f,Us={value:String};Rs.generate=function(e){this.token(Fs.Url,Os.encode(e.value))},Rs.name="Url",Rs.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case Fs.Url:t=Os.decode(this.consume(Fs.Url));break;case Fs.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Fs.Function),this.skipSC(),t=Bs.decode(this.consume(Fs.String)),this.skipSC(),this.eof||this.eat(Fs.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}},Rs.structure=Us;var Ms={generate:function(e){this.children(e)},name:"Value",parse:function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},structure:{children:[[]]}},js={};const qs=f,Ws=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Hs={value:String};js.generate=function(e){this.token(qs.WhiteSpace,e.value)},js.name="WhiteSpace",js.parse=function(){return this.eat(qs.WhiteSpace),Ws},js.structure=Hs;const $s=zi,Vs=Ui,Ks=Hi,Zs=Vi,Gs=Qi,Ys=ro,Qs=oo,Xs=so,Js=co,el=po,tl=go,nl=ko,rl=_o,il=Po,ol=Bo,al=Mo,sl=Wo,ll=Ko,cl=Xo,ul=ta,hl=ia,dl=sa,pl=ua,ml=pa,fl=ga,gl=ya,bl=va,yl=Sa,kl=_a,wl=za,vl=Ea,xl=Ra,Sl=Pa,Cl=Ba,_l=Ma,Al=Wa,zl=Va,Ll=Ya,Tl=es,El=ns,Nl=rs,Rl=os,Dl=ds,Pl=fs,Il=bs,Ol=vs,Bl=Rs,Fl=Ms,Ul=js;Ai.AnPlusB=$s,Ai.Atrule=Vs,Ai.AtrulePrelude=Ks,Ai.AttributeSelector=Zs,Ai.Block=Gs,Ai.Brackets=Ys,Ai.CDC=Qs,Ai.CDO=Xs,Ai.ClassSelector=Js,Ai.Combinator=el,Ai.Comment=tl,Ai.Condition=nl,Ai.Declaration=rl,Ai.DeclarationList=il,Ai.Dimension=ol,Ai.Feature=al,Ai.FeatureFunction=sl,Ai.FeatureRange=ll,Ai.Function=cl,Ai.GeneralEnclosed=ul,Ai.Hash=hl,Ai.Identifier=dl,Ai.IdSelector=pl,Ai.Layer=ml,Ai.LayerList=fl,Ai.MediaQuery=gl,Ai.MediaQueryList=bl,Ai.NestingSelector=yl,Ai.Nth=kl,Ai.Number=wl,Ai.Operator=vl,Ai.Parentheses=xl,Ai.Percentage=Sl,Ai.PseudoClassSelector=Cl,Ai.PseudoElementSelector=_l,Ai.Ratio=Al,Ai.Raw=zl,Ai.Rule=Ll,Ai.Scope=Tl,Ai.Selector=El,Ai.SelectorList=Nl,Ai.String=Rl,Ai.StyleSheet=Dl,Ai.SupportsDeclaration=Pl,Ai.TypeSelector=Il,Ai.UnicodeRange=Ol,Ai.Url=Bl,Ai.Value=Fl,Ai.WhiteSpace=Ul;var Ml={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>|<-non-standard-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>|<timeline-range-name> <percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"rgb( ) >|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#","scroll-timeline-axis":"[block|inline|vertical|horizontal]#","scroll-timeline-name":"none|<custom-ident>#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"wrap|nowrap|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces","white-space-trim":"none|discard-before||discard-after||discard-inner",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null}},node:Ai},jl={};const ql=f;var Wl=function(e){switch(this.tokenType){case ql.Hash:return this.Hash();case ql.Comma:return this.Operator();case ql.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case ql.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case ql.String:return this.String();case ql.Dimension:return this.Dimension();case ql.Percentage:return this.Percentage();case ql.Number:return this.Number();case ql.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case ql.Url:return this.Url();case ql.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case ql.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}};const Hl=f,$l=f;function Vl(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const Kl={getNode:Wl},Zl={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case Hl.LeftSquareBracket:return this.AttributeSelector();case Hl.Hash:return this.IdSelector();case Hl.Colon:return this.lookupType(1)===Hl.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Hl.Ident:return this.TypeSelector();case Hl.Number:case Hl.Percentage:return this.Percentage();case Hl.Dimension:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case Hl.Delim:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}},Gl={getNode:Wl,onWhiteSpace(e,t){Vl(e)&&(e.value=" "+e.value),Vl(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(null,!1))},var:function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===$l.Comma){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===$l.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}};jl.AtrulePrelude=Kl,jl.Selector=Zl,jl.Value=Gl;const Yl=f,Ql=new Set(["none","and","not","or"]),Xl={parse:{prelude(){const e=this.createList();if(this.tokenType===Yl.Ident){const t=this.substring(this.tokenStart,this.tokenEnd);Ql.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},Jl=f;function ec(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==Jl.RightParenthesis&&this.error()}}),t||(()=>this.Raw(null,!0)))}const tc={layer(){this.skipSC();const e=this.createList(),t=ec.call(this,this.Layer);return"Raw"===t.type&&""===t.value||e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=ec.call(this,this.Declaration,(()=>ec.call(this,(()=>this.Condition("supports")))));return"Raw"===t.type&&""===t.value||e.push(t),e}};var nc={container:Xl,"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case Jl.String:e.push(this.String());break;case Jl.Url:case Jl.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===Jl.Ident&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===Jl.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,tc)),this.skipSC(),this.tokenType===Jl.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,tc)),this.lookupNonWSType(0)!==Jl.Ident&&this.lookupNonWSType(0)!==Jl.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};const rc={parse(){return this.createSingleNodeList(this.SelectorList())}},ic={parse(){return this.createSingleNodeList(this.Selector())}},oc={parse(){return this.createSingleNodeList(this.Identifier())}},ac={parse(){return this.createSingleNodeList(this.Nth())}};var sc={dir:oc,has:rc,lang:oc,matches:rc,is:rc,"-moz-any":rc,"-webkit-any":rc,where:rc,not:rc,"nth-child":ac,"nth-last-child":ac,"nth-last-of-type":ac,"nth-of-type":ac,slotted:ic,host:ic,"host-context":ic},lc={};const cc=zi,uc=Ui,hc=Hi,dc=Vi,pc=Qi,mc=ro,fc=oo,gc=so,bc=co,yc=po,kc=go,wc=ko,vc=_o,xc=Po,Sc=Bo,Cc=Mo,_c=Wo,Ac=Ko,zc=Xo,Lc=ta,Tc=ia,Ec=sa,Nc=ua,Rc=pa,Dc=ga,Pc=ya,Ic=va,Oc=Sa,Bc=_a,Fc=za,Uc=Ea,Mc=Ra,jc=Pa,qc=Ba,Wc=Ma,Hc=Wa,$c=Va,Vc=Ya,Kc=es,Zc=ns,Gc=rs,Yc=os,Qc=ds,Xc=fs,Jc=bs,eu=vs,tu=Rs,nu=Ms,ru=js;lc.AnPlusB=cc.parse,lc.Atrule=uc.parse,lc.AtrulePrelude=hc.parse,lc.AttributeSelector=dc.parse,lc.Block=pc.parse,lc.Brackets=mc.parse,lc.CDC=fc.parse,lc.CDO=gc.parse,lc.ClassSelector=bc.parse,lc.Combinator=yc.parse,lc.Comment=kc.parse,lc.Condition=wc.parse,lc.Declaration=vc.parse,lc.DeclarationList=xc.parse,lc.Dimension=Sc.parse,lc.Feature=Cc.parse,lc.FeatureFunction=_c.parse,lc.FeatureRange=Ac.parse,lc.Function=zc.parse,lc.GeneralEnclosed=Lc.parse,lc.Hash=Tc.parse,lc.Identifier=Ec.parse,lc.IdSelector=Nc.parse,lc.Layer=Rc.parse,lc.LayerList=Dc.parse,lc.MediaQuery=Pc.parse,lc.MediaQueryList=Ic.parse,lc.NestingSelector=Oc.parse,lc.Nth=Bc.parse,lc.Number=Fc.parse,lc.Operator=Uc.parse,lc.Parentheses=Mc.parse,lc.Percentage=jc.parse,lc.PseudoClassSelector=qc.parse,lc.PseudoElementSelector=Wc.parse,lc.Ratio=Hc.parse,lc.Raw=$c.parse,lc.Rule=Vc.parse,lc.Scope=Kc.parse,lc.Selector=Zc.parse,lc.SelectorList=Gc.parse,lc.String=Yc.parse,lc.StyleSheet=Qc.parse,lc.SupportsDeclaration=Xc.parse,lc.TypeSelector=Jc.parse,lc.UnicodeRange=eu.parse,lc.Url=tu.parse,lc.Value=nu.parse,lc.WhiteSpace=ru.parse;var iu=_i({...Ml,parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:jl,atrule:nc,pseudo:sc,node:lc,node:Ai}),ou={};const au=_n,su=kt,lu=Sn,cu=Kr;ou.SyntaxError=au.SyntaxError,ou.generate=su.generate,ou.parse=lu.parse,ou.walk=cu.walk;var uu={};const hu=ne;uu.clone=function e(t){const n={};for(const r of Object.keys(t)){let i=t[r];i&&(Array.isArray(i)||i instanceof hu.List?i=i.map(e):i.constructor===Object&&(i=e(i))),n[r]=i}return n};var du={};const pu=g,mu=L;du.decode=function(e){const t=e.length-1;let n="";for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(92===i){if(r===t)break;if(i=e.charCodeAt(++r),pu.isValidEscape(92,i)){const t=r-1,i=mu.consumeEscaped(e,t);r=i-1,n+=mu.decodeEscaped(e.substring(t+1,i))}else 13===i&&10===e.charCodeAt(r+1)&&r++}else n+=e[r]}return n},du.encode=function(e){let t="";if(1===e.length&&45===e.charCodeAt(0))return"\\-";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);0!==r?r<=31||127===r||r>=48&&r<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":pu.isName(r)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t};const fu=iu,gu=_i,bu=ne,yu=bt,ku=ou,wu=uu,vu=zt,xu=du,Su=as,Cu=Ds,_u=f,Au=I,zu=j,{tokenize:Lu,parse:Tu,generate:Eu,lexer:Nu,createLexer:Ru,walk:Du,find:Pu,findLast:Iu,findAll:Ou,toPlainObject:Bu,fromPlainObject:Fu,fork:Uu}=fu;p.version="1.1.4".version,p.createSyntax=gu,p.List=bu.List,p.Lexer=yu.Lexer,p.definitionSyntax=ku,p.clone=wu.clone,p.isCustomProperty=vu.isCustomProperty,p.keyword=vu.keyword,p.property=vu.property,p.vendorPrefix=vu.vendorPrefix,p.ident=xu,p.string=Su,p.url=Cu,p.tokenTypes=_u,p.tokenNames=Au,p.TokenStream=zu.TokenStream,p.createLexer=Ru,p.find=Pu,p.findAll=Ou,p.findLast=Iu,p.fork=Uu,p.fromPlainObject=Fu,p.generate=Eu,p.lexer=Nu,p.parse=Tu,p.toPlainObject=Bu,p.tokenize=Lu,p.walk=Du;var Mu={};const ju=new Map([["background",new Set(["background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"])],["background-position",new Set(["background-position-x","background-position-y"])],["background-repeat",new Set(["background-repeat-x","background-repeat-y"])],["font",new Set(["font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"])],["font-variant",new Set(["font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"])],["outline",new Set(["outline-width","outline-style","outline-color"])],["border",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-width",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width"])],["border-style",new Set(["border-top-style","border-right-style","border-bottom-style","border-left-style"])],["border-color",new Set(["border-top-color","border-right-color","border-bottom-color","border-left-color"])],["border-block",new Set(["border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-inline",new Set(["border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-radius",new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"])],["padding",new Set(["padding-top","padding-right","padding-bottom","padding-left"])],["padding-block",new Set(["padding-block-start","padding-block-end"])],["padding-inline",new Set(["padding-inline-start","padding-inline-end"])],["margin",new Set(["margin-top","margin-right","margin-bottom","margin-left"])],["margin-block",new Set(["margin-block-start","margin-block-end"])],["margin-inline",new Set(["margin-inline-start","margin-inline-end"])],["inset",new Set(["top","right","bottom","left"])],["inset-block",new Set(["inset-block-start","inset-block-end"])],["inset-inline",new Set(["inset-inline-start","inset-inline-end"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["gap",new Set(["row-gap","column-gap"])],["transition",new Set(["transition-duration","transition-timing-function","transition-delay","transition-property"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"])],["grid-template",new Set(["grid-template-rows","grid-template-columns","grid-template-areas"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap","row-gap","column-gap"])],["place-content",new Set(["align-content","justify-content"])],["place-items",new Set(["align-items","justify-items"])],["place-self",new Set(["align-self","justify-self"])],["columns",new Set(["column-width","column-count"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["offset",new Set(["offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"])],["overflow",new Set(["overflow-x","overflow-y"])],["overscroll-behavior",new Set(["overscroll-behavior-x","overscroll-behavior-y"])],["scroll-margin",new Set(["scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"])],["scroll-padding",new Set(["scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"])],["text-decoration",new Set(["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"])],["text-stroke",new Set(["text-stroke-color","text-stroke-width"])],["animation",new Set(["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","animation-timeline","animation-range-start","animation-range-end"])],["mask",new Set(["mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"])],["mask-repeat",new Set(["mask-repeat-x","mask-repeat-y"])],["mask-position",new Set(["mask-position-x","mask-position-y"])],["perspective-origin",new Set(["perspective-origin-x","perspective-origin-y"])],["transform-origin",new Set(["transform-origin-x","transform-origin-y","transform-origin-z"])],["white-space",new Set(["white-space-collapse","text-wrap"])]]),qu=new Map([Vu("animation","moz"),Vu("border-image","moz"),Vu("mask","moz"),Vu("transition","moz"),Vu("columns","moz"),Vu("text-stroke","moz"),Vu("column-rule","moz"),["-moz-border-end",new Set(["-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"])],["-moz-border-start",new Set(["-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"])],["-moz-outline-radius",new Set(["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"])]]),Wu=new Map([Vu("animation","webkit"),Vu("border-radius","webkit"),Vu("column-rule","webkit"),Vu("columns","webkit"),Vu("flex","webkit"),Vu("flex-flow","webkit"),Vu("mask","webkit"),Vu("text-stroke","webkit"),Vu("perspective-origin","webkit"),Vu("transform-origin","webkit"),Vu("transition","webkit"),["-webkit-border-start",new Set(["-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"])],["-webkit-border-before",new Set(["-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"])],["-webkit-border-end",new Set(["-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"])],["-webkit-border-after",new Set(["-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"])]]),Hu=["background-position","background-repeat","text-decoration"];qu.forEach(((e,t)=>ju.set(t,e))),Wu.forEach(((e,t)=>ju.set(t,e)));const $u=new Map;function Vu(e,t){const n=ju.get(e);if(n)return[`-${t}-${e}`,new Set(Array.from(n,(e=>`-${t}-${e}`)))]}function Ku(e,t){const n=ju.get(e);return!!n&&n.has(t)}ju.forEach(((e,t)=>{e.forEach((e=>{$u.get(e)||$u.set(e,new Set),$u.get(e).add(t)}))})),Mu.isShorthand=function(e){return ju.has(e)},Mu.isShorthandFor=Ku,Mu.hasShorthand=function(e){return $u.has(e)},Mu.hasShorthandWithin=function(e,t){return t.some((t=>Ku(t,e)))},Mu.getShorthands=function(e){return $u.get(e)},Mu.preferredShorthand=function(e){return Hu.find((t=>ju.get(t).has(e)))};const{preferredShorthand:Zu,getShorthands:Gu}=Mu;function Yu(e,t){return{type:"Declaration",important:Boolean(e.getPropertyPriority(t)),property:t,value:{type:"Raw",value:e.getPropertyValue(t)}}}var Qu=function(e){const t=Array.from(e).reduce(((t,n)=>{const r=Zu(n)||n;t.set(r,Yu(e,r));const i=Gu(n);return i&&i.forEach((n=>{e.getPropertyValue(n)&&(t.delete(n),t.set(n,Yu(e,n)))})),t}),new Map);return Array.from(t.values())};const Xu=p,Ju=Qu,eh={2:{atrule:"charset",prelude:"charset"},CSSImportRule:{atrule:"import",prelude:"import"},CSSNamespaceRule:{atrule:"namespace",prelude:"namespace"},CSSStyleRule:{prelude:"selector",block:"style"},CSSKeyframeRule:{prelude:"key",block:"style"},CSSPageRule:{atrule:"page",prelude:"selector",block:"style"},CSSFontFaceRule:{atrule:"font-face",block:"style"},CSSMediaRule:{atrule:"media",prelude:"condition",block:"nested"},CSSSupportsRule:{atrule:"supports",prelude:"condition",block:"nested"},13:{atrule:"document",prelude:"condition",block:"nested"},CSSKeyframesRule:{atrule:"keyframes",prelude:"name",block:"nested"},CSSContainerRule:{atrule:"container",prelude:"condition",block:"nested"},CSSLayerStatementRule:{atrule:"layer",prelude:"nameList"},CSSLayerBlockRule:{atrule:"layer",prelude:"name",block:"nested"}};var th=function e(t){return Array.from(t,(t=>{const n=eh[t.type]??eh[t.constructor.name];if(!n)throw new Error(`Unknown CSS object model rule ${t}`);const r={};if(n.atrule){r.type="Atrule";const[e,i]=t.cssText.match(new RegExp(`^@(-\\w+-)?${n.atrule}`));r.name=i?i+n.atrule:n.atrule}else r.type="Rule";let i;if("selector"===n.prelude?i=t.selectorText:"key"===n.prelude?i=t.keyText:"condition"===n.prelude?i=t.conditionText:"name"===n.prelude?i=t.name:"import"===n.prelude?i=`url("${t.href}") ${t.media.mediaText}`:"namespace"===n.prelude?i=`${t.prefix} url("${t.namespaceURI}")`:"charset"===n.prelude?i=`"${t.encoding}"`:"nameList"===n.prelude&&(i=t.nameList),i){const e=n.atrule?{context:"atrulePrelude",atrule:n.atrule}:{context:"selectorList"};r.prelude=Xu.toPlainObject(Xu.parse(i,e))}else r.prelude=null;return"style"===n.block?r.block={type:"Block",children:Ju(t.style)}:"nested"===n.block?r.block={type:"Block",children:e(t.cssRules)}:r.block=null,r}))};const nh=p,rh=new Set(["before","after","first-line","first-letter"]);const{isShorthand:ih,isShorthandFor:oh,hasShorthandWithin:ah}=Mu,sh={"word-wrap":"overflow-wrap",clip:"clip-path"};function lh(e,t){let n=[];return e.forEach((e=>{"Declaration"===e.type&&n.push(e)})),t.forEach((e=>{if("Declaration"!==e.type)return;if(ah(e.property,n.map((e=>e.property))))return;const t=n.filter((t=>t.property===e.property));if(0===t.length)n.push(e);else{const r=t.findLast((t=>t.value.value===e.value.value));if(r)r.important!==e.important&&t.forEach((t=>t.important=e.important));else{if(ih(e.property))return;n=n.filter((t=>t.property!==e.property)),n.push(e)}}})),n}function ch(e,t){return!Array.isArray(e)&&!Array.isArray(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>{const r=t[n];return e.type===r.type&&((a=e.name)===(s=r.name)||a&&s&&a.name&&a.name===s.name)&&((i=e.value)===(o=r.value)||i.type===o.type&&i.value===o.value)&&ch(e.children,r.children);var i,o,a,s}))}function uh(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function hh(e,t,n,r){for(let i=t;i<n;++i)r(e[i],i,e)}var dh=()=>{},ph=function(e){const t=Array.from(e.attributes).map((t=>"id"===t.name?`#${t.value}`:"class"===t.name?Array.from(e.classList).map((e=>`.${e}`)).join(""):`[${t.name}="${t.value}"]`)).join("");return`${e.nodeName}${t}`};const mh=p,fh=th,gh=function(e){const t=nh.parse(e,{context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1});return nh.walk(t,{visit:"TypeSelector",enter(e,t){"from"===e.name?t.data={type:"Percentage",value:"0"}:"to"===e.name&&(t.data={type:"Percentage",value:"100"})}}),nh.walk(t,{visit:"AtrulePrelude",enter(e){if(["import","namespace"].includes(this.atrule.name)){const t=e.children.toArray(),n="import"===e.name?0:t.length-1,r=t[n];"String"===r.type&&(t[n]={type:"Url",value:r.value},e.children.fromArray(t))}}}),nh.walk(t,{visit:"PseudoClassSelector",enter(e){rh.has(e.name)&&(e.type="PseudoElementSelector")}}),nh.walk(t,{visit:"Selector",enter(e){const t=e.children.toArray();if(t.length>1){const n=t.filter(((e,n)=>{const r=t[n+1],i=r?"PseudoClassSelector"===r.type||"PseudoElementSelector"===r.type:void 0;return!("*"===e.name&&"TypeSelector"===e.type&&i)}));e.children.fromArray(n.length?n:null)}}}),nh.walk(t,{visit:"AttributeSelector",enter(e){e.value&&"Identifier"===e.value.type&&(e.value={type:"String",value:e.value.name})}}),nh.toPlainObject(t)},bh=function e(t,n){let r=0;const i=[];return t.forEach((t=>{const o={};o.type=t.type,o.name=t.name,o.prelude=t.prelude,o.block=t.block;const a=function(e,t,n){return function(e,t,n){for(let r=t;r<e.length;++r)if(n(e[r]))return r;return-1}(e,t,(e=>{return e.type===n.type&&e.name===n.name&&(i=e.prelude,o=n.prelude,!i&&!o||i.type===o.type&&ch(i.children,o.children))&&(!uh(n)||(t=e.block.children,(r=n.block.children).reduce(((e,n)=>{const r="Declaration"===n.type&&(function(e){return/^(-\w+-)/.test(e)}(n.property)||t.some((e=>function(e,t){const n=sh[e]||e,r=sh[t]||t;return n===r||oh(r,n)||oh(n,r)}(e.property,n.property))));return e+(r?1:0)}),0)>=r.length));var t,r,i,o}))}(n,r,t);a>r&&hh(n,r,a,(e=>i.push(e))),a>=0&&(r=a+1,function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?o.block={type:"Block",children:e(t.block.children,n[a].block.children)}:uh(t)&&(o.block={type:"Block",children:lh(t.block.children,n[a].block.children)})),i.push(o)}),[]),r<n.length&&hh(n,r,n.length,(e=>i.push(e))),i},yh=dh,kh=ph;function wh(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=xh(n,r,i,o,t[0],7,-680876936),o=xh(o,n,r,i,t[1],12,-389564586),i=xh(i,o,n,r,t[2],17,606105819),r=xh(r,i,o,n,t[3],22,-1044525330),n=xh(n,r,i,o,t[4],7,-176418897),o=xh(o,n,r,i,t[5],12,1200080426),i=xh(i,o,n,r,t[6],17,-1473231341),r=xh(r,i,o,n,t[7],22,-45705983),n=xh(n,r,i,o,t[8],7,1770035416),o=xh(o,n,r,i,t[9],12,-1958414417),i=xh(i,o,n,r,t[10],17,-42063),r=xh(r,i,o,n,t[11],22,-1990404162),n=xh(n,r,i,o,t[12],7,1804603682),o=xh(o,n,r,i,t[13],12,-40341101),i=xh(i,o,n,r,t[14],17,-1502002290),n=Sh(n,r=xh(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=Sh(o,n,r,i,t[6],9,-1069501632),i=Sh(i,o,n,r,t[11],14,643717713),r=Sh(r,i,o,n,t[0],20,-373897302),n=Sh(n,r,i,o,t[5],5,-701558691),o=Sh(o,n,r,i,t[10],9,38016083),i=Sh(i,o,n,r,t[15],14,-660478335),r=Sh(r,i,o,n,t[4],20,-405537848),n=Sh(n,r,i,o,t[9],5,568446438),o=Sh(o,n,r,i,t[14],9,-1019803690),i=Sh(i,o,n,r,t[3],14,-187363961),r=Sh(r,i,o,n,t[8],20,1163531501),n=Sh(n,r,i,o,t[13],5,-1444681467),o=Sh(o,n,r,i,t[2],9,-51403784),i=Sh(i,o,n,r,t[7],14,1735328473),n=Ch(n,r=Sh(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=Ch(o,n,r,i,t[8],11,-2022574463),i=Ch(i,o,n,r,t[11],16,1839030562),r=Ch(r,i,o,n,t[14],23,-35309556),n=Ch(n,r,i,o,t[1],4,-1530992060),o=Ch(o,n,r,i,t[4],11,1272893353),i=Ch(i,o,n,r,t[7],16,-155497632),r=Ch(r,i,o,n,t[10],23,-1094730640),n=Ch(n,r,i,o,t[13],4,681279174),o=Ch(o,n,r,i,t[0],11,-358537222),i=Ch(i,o,n,r,t[3],16,-722521979),r=Ch(r,i,o,n,t[6],23,76029189),n=Ch(n,r,i,o,t[9],4,-640364487),o=Ch(o,n,r,i,t[12],11,-421815835),i=Ch(i,o,n,r,t[15],16,530742520),n=_h(n,r=Ch(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=_h(o,n,r,i,t[7],10,1126891415),i=_h(i,o,n,r,t[14],15,-1416354905),r=_h(r,i,o,n,t[5],21,-57434055),n=_h(n,r,i,o,t[12],6,1700485571),o=_h(o,n,r,i,t[3],10,-1894986606),i=_h(i,o,n,r,t[10],15,-1051523),r=_h(r,i,o,n,t[1],21,-2054922799),n=_h(n,r,i,o,t[8],6,1873313359),o=_h(o,n,r,i,t[15],10,-30611744),i=_h(i,o,n,r,t[6],15,-1560198380),r=_h(r,i,o,n,t[13],21,1309151649),n=_h(n,r,i,o,t[4],6,-145523070),o=_h(o,n,r,i,t[11],10,-1120210379),i=_h(i,o,n,r,t[2],15,718787259),r=_h(r,i,o,n,t[9],21,-343485551),e[0]=Th(n,e[0]),e[1]=Th(r,e[1]),e[2]=Th(i,e[2]),e[3]=Th(o,e[3])}function vh(e,t,n,r,i,o){return t=Th(Th(t,e),Th(r,o)),Th(t<<i|t>>>32-i,n)}function xh(e,t,n,r,i,o,a){return vh(t&n|~t&r,e,t,i,o,a)}function Sh(e,t,n,r,i,o,a){return vh(t&r|n&~r,e,t,i,o,a)}function Ch(e,t,n,r,i,o,a){return vh(t^n^r,e,t,i,o,a)}function _h(e,t,n,r,i,o,a){return vh(n^(t|~r),e,t,i,o,a)}function Ah(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var zh="0123456789abcdef".split("");function Lh(e){for(var t="",n=0;n<4;n++)t+=zh[e>>8*n+4&15]+zh[e>>8*n&15];return t}function Th(e,t){return e+t&4294967295}var Eh=function(e,{removeReverseProxyURLPrefixes:t}={}){const n=[];return[/url\((?!['"]?:)'([^']*)'\)/g,/url\((?!['"]?:)"([^"]*)"\)/g,/url\((?!['"]?:)([^()'"]*)\)/g].forEach((t=>{let r;for(;null!==(r=t.exec(e));)n.push(r[1])})),t?n.map((e=>{const t=e.match(/\/http(.*)$/);return t&&t.length?t[0].substring(1):e})):n};const Nh=Eh;var Rh=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];let i=e.getPropertyValue(r);(/^\s*var\s*\(/.test(i)||/^--/.test(r))&&(i=i.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16)))).replace(/\\([^0-9a-fA-F])/g,"$1"));const o=Nh(i);t=t.concat(o)}return t};const Dh=Rh,Ph=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;const Ih=p,Oh=th;const Bh=p,Fh=Qu;const Uh=p;const Mh=Symbol("raw");function jh(e){const t=function(e){if("undefined"==typeof window)return null;const t=window.Node.prototype.toString.apply(e).replace(/\[object (.*)]/,"$1");return window[t]}(e);return t?(n=e,r=t.prototype,new Proxy(Object.create(n),{get(e,t,i){if(t===Mh)return n;const o=Reflect.get(r,t,n);return"function"==typeof o?function(){return o.apply(this===i?n:this,arguments)}:o}})):e;var n,r}jh.unwrap=function(e){return e[Mh]||e};var qh=jh;const{absolutizeUrl:Wh,isInlineFrame:Hh,isAccessibleFrame:$h}=u,Vh=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]},Kh=function(e,t=yh){t("[processInlineCss] processing inline css for",kh(e));try{const n=gh(e.textContent);t("[processInlineCss] created AST for textContent");const r=fh(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const i=bh(n.children,r);t("[processInlineCss] merged AST");const o=mh.generate(mh.fromPlainObject({type:"StyleSheet",children:i}));return t("[processInlineCss] generated cssText of length",o.length),o}catch(n){return t("[processInlineCss] error while processing inline css:",n.message,n),t("[processInlineCss] try to set fallback"),"string"==typeof e.textContent&&e.textContent.length>0?(t("[processInlineCss] set style from `styleNode.textContent`"),e.textContent):e.sheet&&e.sheet.cssRules?(t("[processInlineCss] set style from reduce `sheet.cssRules`"),Array.from(e.sheet.cssRules).reduce(((e,{cssText:t})=>e+t),"")):(t("[processInlineCss] could not set fallback to inline css"),"")}},Zh=function(e){const t=Array.prototype.map.call(e.sheet.cssRules,(e=>e.cssText)).join("");return function(e){return function(e){for(var t=0;t<e.length;t++)e[t]=Lh(e[t]);return e.join("")}(function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)wh(r,Ah(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(wh(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,wh(r,i),r}(e))}(t)},Gh=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let n=[];if(t("img[srcset],source[srcset]")&&(n=n.concat(function(e,t,n){const r=[],i=new RegExp(e.source,e.flags),o=i.global;let a;for(;(a=i.exec(t))&&(r.push(n(a)),o););return r}(Ph,e.getAttribute("srcset"),(e=>e[1])))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&n.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&!function(e,t){try{const n=new URL(t),r=new URL(e,t);return r.origin===n.origin&&r.pathname===n.pathname&&Boolean(r.hash)}catch(e){return!1}}(t,e.ownerDocument.location.href)&&n.push(t)}t("object")&&e.getAttribute("data")&&n.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&n.push(e.getAttribute("href")),t("video[poster]")&&n.push(e.getAttribute("poster")),t("embed[src]")&&n.push(e.getAttribute("src"));const r=function(e){if(e.hasAttribute("style"))return Dh(e.style)}(e);return r&&(n=n.concat(r)),n},Yh=function(e){const t=Oh(e.cssRules);return Ih.generate(Ih.fromPlainObject({type:"StyleSheet",children:t}))},Qh=function(e){const t={type:"DeclarationList",children:Fh(e)};return Bh.generate(t)},Xh=dh,Jh=function(e){const{ownerDocument:t}=e;if(!t)return!0;const{display:n}=t.defaultView.getComputedStyle(e),{width:r,height:i}=e.getBoundingClientRect();return"none"===n||0===r||0===i},ed=function(e){try{return Uh.toPlainObject(Uh.parse(e.toLowerCase(),{context:"mediaQueryList"})).children.some((e=>{const t=e.condition?.children.reduce(((e,t)=>("Identifier"===t.type&&"and"===t.name||e.push(t),e)),[])??[];return e.mediaType&&t.unshift(e),t.every((e=>!(e.modifier&&!["not","only"].includes(e.modifier))&&("Feature"===e.type||("Identifier"!==e.type&&"MediaQuery"!==e.type||!["all","screen"].includes(e.name??e.mediaType)?e.modifier&&"not"===e.modifier:!e.modifier||"not"!==e.modifier))))}))}catch{return!1}},td=qh,nd=ph,rd=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]),id=/^on[a-z]+$/;function od({attributes:e={}}){return Object.keys(e).filter((t=>e[t]&&e[t].name))}function ad(e,t,n){const r=e.find((e=>e.name===t));r?r.value=n:e.push({name:t,value:n})}function sd(e){return Array.from(e.adoptedStyleSheets).map(Yh)}var ld=function(e){const t=[];return new Set(e).forEach((e=>e&&t.push(e))),t};const cd=ld;var ud={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},i={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)}(ud);var hd={},dd={},pd={},md=ud;function fd(e){for(var t=e.length;--t>=0;)e[t]=0}var gd=256,bd=286,yd=30,kd=15,wd=16,vd=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],xd=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Sd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Cd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_d=new Array(576);fd(_d);var Ad=new Array(60);fd(Ad);var zd=new Array(512);fd(zd);var Ld=new Array(256);fd(Ld);var Td=new Array(29);fd(Td);var Ed,Nd,Rd,Dd=new Array(yd);function Pd(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Id(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Od(e){return e<256?zd[e]:zd[256+(e>>>7)]}function Bd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Fd(e,t,n){e.bi_valid>wd-n?(e.bi_buf|=t<<e.bi_valid&65535,Bd(e,e.bi_buf),e.bi_buf=t>>wd-e.bi_valid,e.bi_valid+=n-wd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Ud(e,t,n){Fd(e,n[2*t],n[2*t+1])}function Md(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function jd(e,t,n){var r,i,o=new Array(kd+1),a=0;for(r=1;r<=kd;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Md(o[s]++,s))}}function qd(e){var t;for(t=0;t<bd;t++)e.dyn_ltree[2*t]=0;for(t=0;t<yd;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Wd(e){e.bi_valid>8?Bd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Hd(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function $d(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&Hd(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Hd(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Vd(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Ud(e,i,t):(Ud(e,(o=Ld[i])+gd+1,t),0!==(a=vd[o])&&Fd(e,i-=Td[o],a),Ud(e,o=Od(--r),n),0!==(a=xd[o])&&Fd(e,r-=Dd[o],a))}while(s<e.last_lit);Ud(e,256,t)}function Kd(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)$d(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$d(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,$d(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,f=0;for(o=0;o<=kd;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>m&&(o=m,f++),l[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==f){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,f-=2}while(f>0);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),jd(o,c,e.bl_count)}function Zd(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function Gd(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{Ud(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ud(e,i,e.bl_tree),s--),Ud(e,16,e.bl_tree),Fd(e,s-3,2)):s<=10?(Ud(e,17,e.bl_tree),Fd(e,s-3,3)):(Ud(e,18,e.bl_tree),Fd(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}fd(Dd);var Yd=!1;function Qd(e,t,n,r){Fd(e,0+(r?1:0),3),function(e,t,n,r){Wd(e),Bd(e,n),Bd(e,~n),md.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}pd._tr_init=function(e){Yd||(function(){var e,t,n,r,i,o=new Array(kd+1);for(n=0,r=0;r<28;r++)for(Td[r]=n,e=0;e<1<<vd[r];e++)Ld[n++]=r;for(Ld[n-1]=r,i=0,r=0;r<16;r++)for(Dd[r]=i,e=0;e<1<<xd[r];e++)zd[i++]=r;for(i>>=7;r<yd;r++)for(Dd[r]=i<<7,e=0;e<1<<xd[r]-7;e++)zd[256+i++]=r;for(t=0;t<=kd;t++)o[t]=0;for(e=0;e<=143;)_d[2*e+1]=8,e++,o[8]++;for(;e<=255;)_d[2*e+1]=9,e++,o[9]++;for(;e<=279;)_d[2*e+1]=7,e++,o[7]++;for(;e<=287;)_d[2*e+1]=8,e++,o[8]++;for(jd(_d,287,o),e=0;e<yd;e++)Ad[2*e+1]=5,Ad[2*e]=Md(e,5);Ed=new Pd(_d,vd,257,bd,kd),Nd=new Pd(Ad,xd,0,yd,kd),Rd=new Pd(new Array(0),Sd,0,19,7)}(),Yd=!0),e.l_desc=new Id(e.dyn_ltree,Ed),e.d_desc=new Id(e.dyn_dtree,Nd),e.bl_desc=new Id(e.bl_tree,Rd),e.bi_buf=0,e.bi_valid=0,qd(e)},pd._tr_stored_block=Qd,pd._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<gd;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Kd(e,e.l_desc),Kd(e,e.d_desc),a=function(e){var t;for(Zd(e,e.dyn_ltree,e.l_desc.max_code),Zd(e,e.dyn_dtree,e.d_desc.max_code),Kd(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Cd[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?Qd(e,t,n,r):4===e.strategy||o===i?(Fd(e,2+(r?1:0),3),Vd(e,_d,Ad)):(Fd(e,4+(r?1:0),3),function(e,t,n,r){var i;for(Fd(e,t-257,5),Fd(e,n-1,5),Fd(e,r-4,4),i=0;i<r;i++)Fd(e,e.bl_tree[2*Cd[i]+1],3);Gd(e,e.dyn_ltree,t-1),Gd(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Vd(e,e.dyn_ltree,e.dyn_dtree)),qd(e),r&&Wd(e)},pd._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Ld[n]+gd+1)]++,e.dyn_dtree[2*Od(t)]++),e.last_lit===e.lit_bufsize-1},pd._tr_align=function(e){Fd(e,2,3),Ud(e,256,_d),function(e){16===e.bi_valid?(Bd(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var Xd,Jd=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ep=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),tp=function(e,t,n,r){var i=ep,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},np={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},rp=ud,ip=pd,op=Jd,ap=tp,sp=np,lp=0,cp=0,up=-2,hp=2,dp=8,pp=286,mp=30,fp=19,gp=2*pp+1,bp=15,yp=3,kp=258,wp=kp+yp+1,vp=42,xp=103,Sp=113,Cp=666;function _p(e,t){return e.msg=sp[t],t}function Ap(e){return(e<<1)-(e>4?9:0)}function zp(e){for(var t=e.length;--t>=0;)e[t]=0}function Lp(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(rp.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Tp(e,t){ip._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Lp(e.strm)}function Ep(e,t){e.pending_buf[e.pending++]=t}function Np(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Rp(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-wp?e.strstart-(e.w_size-wp):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+kp,p=c[o+a-1],m=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===m&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(r=kp-(d-o),o=d-kp,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[o+a-1],m=c[o+a]}}}while((t=h[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function Dp(e){var t,n,r,i,o,a,s,l,c,u,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-wp)){rp.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);i+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=i,u=void 0,(u=a.avail_in)>c&&(u=c),n=0===u?0:(a.avail_in-=u,rp.arraySet(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=op(a.adler,s,u,l):2===a.state.wrap&&(a.adler=ap(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=yp)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+yp-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<yp)););}while(e.lookahead<wp&&0!==e.strm.avail_in)}function Pp(e,t){for(var n,r;;){if(e.lookahead<wp){if(Dp(e),e.lookahead<wp&&t===lp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=yp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-wp&&(e.match_length=Rp(e,n)),e.match_length>=yp)if(r=ip._tr_tally(e,e.strstart-e.match_start,e.match_length-yp),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=yp){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<yp-1?e.strstart:yp-1,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}function Ip(e,t){for(var n,r,i;;){if(e.lookahead<wp){if(Dp(e),e.lookahead<wp&&t===lp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=yp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=yp-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-wp&&(e.match_length=Rp(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===yp&&e.strstart-e.match_start>4096)&&(e.match_length=yp-1)),e.prev_length>=yp&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-yp,r=ip._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-yp),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+yp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=yp-1,e.strstart++,r&&(Tp(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=ip._tr_tally(e,0,e.window[e.strstart-1]))&&Tp(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ip._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<yp-1?e.strstart:yp-1,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}function Op(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Bp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=dp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new rp.Buf16(2*gp),this.dyn_dtree=new rp.Buf16(2*(2*mp+1)),this.bl_tree=new rp.Buf16(2*(2*fp+1)),zp(this.dyn_ltree),zp(this.dyn_dtree),zp(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new rp.Buf16(bp+1),this.heap=new rp.Buf16(2*pp+1),zp(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new rp.Buf16(2*pp+1),zp(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Fp(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=hp,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?vp:Sp,e.adler=2===t.wrap?0:1,t.last_flush=lp,ip._tr_init(t),cp):_p(e,up)}function Up(e){var t,n=Fp(e);return n===cp&&((t=e.state).window_size=2*t.w_size,zp(t.head),t.max_lazy_match=Xd[t.level].max_lazy,t.good_match=Xd[t.level].good_length,t.nice_match=Xd[t.level].nice_length,t.max_chain_length=Xd[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=yp-1,t.match_available=0,t.ins_h=0),n}function Mp(e,t,n,r,i,o){if(!e)return up;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||n!==dp||r<8||r>15||t<0||t>9||o<0||o>4)return _p(e,up);8===r&&(r=9);var s=new Bp;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+yp-1)/yp),s.window=new rp.Buf8(2*s.w_size),s.head=new rp.Buf16(s.hash_size),s.prev=new rp.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new rp.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=n,Up(e)}Xd=[new Op(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Dp(e),0===e.lookahead&&t===lp)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Tp(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-wp&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Tp(e,!1),e.strm.avail_out),1)})),new Op(4,4,8,4,Pp),new Op(4,5,16,8,Pp),new Op(4,6,32,32,Pp),new Op(4,4,16,16,Ip),new Op(8,16,32,32,Ip),new Op(8,16,128,128,Ip),new Op(8,32,128,256,Ip),new Op(32,128,258,1024,Ip),new Op(32,258,258,4096,Ip)],dd.deflateInit=function(e,t){return Mp(e,t,dp,15,8,0)},dd.deflateInit2=Mp,dd.deflateReset=Up,dd.deflateResetKeep=Fp,dd.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?up:(e.state.gzhead=t,cp):up},dd.deflate=function(e,t){var n,r,i,o;if(!e||!e.state||t>5||t<0)return e?_p(e,up):up;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Cp&&4!==t)return _p(e,0===e.avail_out?-5:up);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===vp)if(2===r.wrap)e.adler=0,Ep(r,31),Ep(r,139),Ep(r,8),r.gzhead?(Ep(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ep(r,255&r.gzhead.time),Ep(r,r.gzhead.time>>8&255),Ep(r,r.gzhead.time>>16&255),Ep(r,r.gzhead.time>>24&255),Ep(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Ep(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ep(r,255&r.gzhead.extra.length),Ep(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ap(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,0),Ep(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Ep(r,3),r.status=Sp);else{var a=dp+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Sp,Np(r,a),0!==r.strstart&&(Np(r,e.adler>>>16),Np(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending!==r.pending_buf_size));)Ep(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ep(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),Lp(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ep(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=ap(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=xp)}else r.status=xp;if(r.status===xp&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Lp(e),r.pending+2<=r.pending_buf_size&&(Ep(r,255&e.adler),Ep(r,e.adler>>8&255),e.adler=0,r.status=Sp)):r.status=Sp),0!==r.pending){if(Lp(e),0===e.avail_out)return r.last_flush=-1,cp}else if(0===e.avail_in&&Ap(t)<=Ap(n)&&4!==t)return _p(e,-5);if(r.status===Cp&&0!==e.avail_in)return _p(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==lp&&r.status!==Cp){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Dp(e),0===e.lookahead)){if(t===lp)return 1;break}if(e.match_length=0,n=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=kp){if(Dp(e),e.lookahead<=kp&&t===lp)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=yp&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+kp;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=kp-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=yp?(n=ip._tr_tally(e,1,e.match_length-yp),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ip._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Tp(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Tp(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Tp(e,!1),0===e.strm.avail_out)?1:2}(r,t):Xd[r.level].func(r,t);if(3!==s&&4!==s||(r.status=Cp),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),cp;if(2===s&&(1===t?ip._tr_align(r):5!==t&&(ip._tr_stored_block(r,0,0,!1),3===t&&(zp(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Lp(e),0===e.avail_out))return r.last_flush=-1,cp}return 4!==t?cp:r.wrap<=0?1:(2===r.wrap?(Ep(r,255&e.adler),Ep(r,e.adler>>8&255),Ep(r,e.adler>>16&255),Ep(r,e.adler>>24&255),Ep(r,255&e.total_in),Ep(r,e.total_in>>8&255),Ep(r,e.total_in>>16&255),Ep(r,e.total_in>>24&255)):(Np(r,e.adler>>>16),Np(r,65535&e.adler)),Lp(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?cp:1)},dd.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==vp&&69!==t&&73!==t&&91!==t&&t!==xp&&t!==Sp&&t!==Cp?_p(e,up):(e.state=null,t===Sp?_p(e,-3):cp):up},dd.deflateSetDictionary=function(e,t){var n,r,i,o,a,s,l,c,u=t.length;if(!e||!e.state)return up;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==vp||n.lookahead)return up;for(1===o&&(e.adler=op(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(0===o&&(zp(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new rp.Buf8(n.w_size),rp.arraySet(c,t,u-n.w_size,n.w_size,0),t=c,u=n.w_size),a=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,Dp(n);n.lookahead>=yp;){r=n.strstart,i=n.lookahead-(yp-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+yp-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=yp-1,Dp(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=yp-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,n.wrap=o,cp},dd.deflateInfo="pako deflate (from Nodeca project)";var jp={},qp=ud,Wp=!0,Hp=!0;try{String.fromCharCode.apply(null,[0])}catch(e){Wp=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Hp=!1}for(var $p=new qp.Buf8(256),Vp=0;Vp<256;Vp++)$p[Vp]=Vp>=252?6:Vp>=248?5:Vp>=240?4:Vp>=224?3:Vp>=192?2:1;function Kp(e,t){if(t<65534&&(e.subarray&&Hp||!e.subarray&&Wp))return String.fromCharCode.apply(null,qp.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}$p[254]=$p[254]=1,jp.string2buf=function(e){var t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new qp.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},jp.buf2binstring=function(e){return Kp(e,e.length)},jp.binstring2buf=function(e){for(var t=new qp.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},jp.buf2string=function(e,t){var n,r,i,o,a=t||e.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=e[n++])<128)s[r++]=i;else if((o=$p[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&e[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return Kp(s,r)},jp.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+$p[e[n]]>t?n:t};var Zp=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Gp=dd,Yp=ud,Qp=jp,Xp=np,Jp=Zp,em=Object.prototype.toString,tm=0,nm=-1,rm=0,im=8;function om(e){if(!(this instanceof om))return new om(e);this.options=Yp.assign({level:nm,method:im,chunkSize:16384,windowBits:15,memLevel:8,strategy:rm,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Jp,this.strm.avail_out=0;var n=Gp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==tm)throw new Error(Xp[n]);if(t.header&&Gp.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?Qp.string2buf(t.dictionary):"[object ArrayBuffer]"===em.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Gp.deflateSetDictionary(this.strm,r))!==tm)throw new Error(Xp[n]);this._dict_set=!0}}function am(e,t){var n=new om(t);if(n.push(e,!0),n.err)throw n.msg||Xp[n.err];return n.result}om.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=Qp.string2buf(e):"[object ArrayBuffer]"===em.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Yp.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=Gp.deflate(i,r))&&n!==tm)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(Qp.buf2binstring(Yp.shrinkBuf(i.output,i.next_out))):this.onData(Yp.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=Gp.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===tm):2!==r||(this.onEnd(tm),i.avail_out=0,!0)},om.prototype.onData=function(e){this.chunks.push(e)},om.prototype.onEnd=function(e){e===tm&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Yp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},hd.Deflate=om,hd.deflate=am,hd.deflateRaw=function(e,t){return(t=t||{}).raw=!0,am(e,t)},hd.gzip=function(e,t){return(t=t||{}).gzip=!0,am(e,t)};var sm={},lm={},cm=ud,um=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hm=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dm=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],pm=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],mm=ud,fm=Jd,gm=tp,bm=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,C,_,A;n=e.state,r=e.next_in,_=e.input,i=r+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,m=n.bits,f=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=_[r++]<<m,m+=8,p+=_[r++]<<m,m+=8),k=f[p&b];t:for(;;){if(p>>>=w=k>>>24,m-=w,0==(w=k>>>16&255))A[o++]=65535&k;else{if(!(16&w)){if(0==(64&w)){k=f[(65535&k)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=65535&k,(w&=15)&&(m<w&&(p+=_[r++]<<m,m+=8),v+=p&(1<<w)-1,p>>>=w,m-=w),m<15&&(p+=_[r++]<<m,m+=8,p+=_[r++]<<m,m+=8),k=g[p&y];n:for(;;){if(p>>>=w=k>>>24,m-=w,!(16&(w=k>>>16&255))){if(0==(64&w)){k=g[(65535&k)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&k,m<(w&=15)&&(p+=_[r++]<<m,(m+=8)<w&&(p+=_[r++]<<m,m+=8)),(x+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,m-=w,x>(w=o-a)){if((w=x-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,C=d,0===h){if(S+=c-w,w<v){v-=w;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}}else if(h<w){if(S+=c+h-w,(w-=h)<v){v-=w;do{A[o++]=d[S++]}while(--w);if(S=0,h<v){v-=w=h;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}}}else if(S+=h-w,w<v){v-=w;do{A[o++]=d[S++]}while(--w);S=o-x,C=A}for(;v>2;)A[o++]=C[S++],A[o++]=C[S++],A[o++]=C[S++],v-=3;v&&(A[o++]=C[S++],v>1&&(A[o++]=C[S++]))}else{S=o-x;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],v-=3}while(v>2);v&&(A[o++]=A[S++],v>1&&(A[o++]=A[S++]))}break}}break}}while(r<i&&o<s);r-=v=m>>3,p&=(1<<(m-=v<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=m},ym=function(e,t,n,r,i,o,a,s){var l,c,u,h,d,p,m,f,g,b=s.bits,y=0,k=0,w=0,v=0,x=0,S=0,C=0,_=0,A=0,z=0,L=null,T=0,E=new cm.Buf16(16),N=new cm.Buf16(16),R=null,D=0;for(y=0;y<=15;y++)E[y]=0;for(k=0;k<r;k++)E[t[n+k]]++;for(x=b,v=15;v>=1&&0===E[v];v--);if(x>v&&(x=v),0===v)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<v&&0===E[w];w++);for(x<w&&(x=w),_=1,y=1;y<=15;y++)if(_<<=1,(_-=E[y])<0)return-1;if(_>0&&(0===e||1!==v))return-1;for(N[1]=0,y=1;y<15;y++)N[y+1]=N[y]+E[y];for(k=0;k<r;k++)0!==t[n+k]&&(a[N[t[n+k]]++]=k);if(0===e?(L=R=a,p=19):1===e?(L=um,T-=257,R=hm,D-=257,p=256):(L=dm,R=pm,p=-1),z=0,k=0,y=w,d=o,S=x,C=0,u=-1,h=(A=1<<x)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){m=y-C,a[k]<p?(f=0,g=a[k]):a[k]>p?(f=R[D+a[k]],g=L[T+a[k]]):(f=96,g=0),l=1<<y-C,w=c=1<<S;do{i[d+(z>>C)+(c-=l)]=m<<24|f<<16|g|0}while(0!==c);for(l=1<<y-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,k++,0==--E[y]){if(y===v)break;y=t[n+a[k]]}if(y>x&&(z&h)!==u){for(0===C&&(C=x),d+=w,_=1<<(S=y-C);S+C<v&&!((_-=E[S+C])<=0);)S++,_<<=1;if(A+=1<<S,1===e&&A>852||2===e&&A>592)return 1;i[u=z&h]=x<<24|S<<16|d-o|0}}return 0!==z&&(i[d+z]=y-C<<24|64<<16|0),s.bits=x,0},km=0,wm=-2,vm=1,xm=12,Sm=30,Cm=852,_m=592;function Am(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function zm(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new mm.Buf16(320),this.work=new mm.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Lm(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=vm,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new mm.Buf32(Cm),t.distcode=t.distdyn=new mm.Buf32(_m),t.sane=1,t.back=-1,km):wm}function Tm(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Lm(e)):wm}function Em(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?wm:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Tm(e))):wm}function Nm(e,t){var n,r;return e?(r=new zm,e.state=r,r.window=null,(n=Em(e,t))!==km&&(e.state=null),n):wm}var Rm,Dm,Pm=!0;function Im(e){if(Pm){var t;for(Rm=new mm.Buf32(512),Dm=new mm.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ym(1,e.lens,0,288,Rm,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ym(2,e.lens,0,32,Dm,0,e.work,{bits:5}),Pm=!1}e.lencode=Rm,e.lenbits=9,e.distcode=Dm,e.distbits=5}function Om(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new mm.Buf8(o.wsize)),r>=o.wsize?(mm.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),mm.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(mm.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}lm.inflateReset=Tm,lm.inflateReset2=Em,lm.inflateResetKeep=Lm,lm.inflateInit=function(e){return Nm(e,15)},lm.inflateInit2=Nm,lm.inflate=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,C,_,A=0,z=new mm.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return wm;(n=e.state).mode===xm&&(n.mode=13),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,h=s,d=l,S=km;e:for(;;)switch(n.mode){case vm:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Sm;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=Sm;break}if(u-=4,x=8+(15&(c>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Sm;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&c?10:xm,c=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Sm;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Sm;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,z[2]=c>>>16&255,z[3]=c>>>24&255,n.check=gm(n.check,z,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=gm(n.check,z,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),mm.arraySet(n.head.extra,r,o,p,x)),512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[o+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{x=r[o+p++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=gm(n.check,r,p,o)),s-=p,o+=p,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Sm;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=xm;break;case 10:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}e.adler=n.check=Am(c),c=0,u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,2;e.adler=n.check=1,n.mode=xm;case xm:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Im(n),n.mode=20,6===t){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Sm}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Sm;break}if(n.length=65535&c,c=0,u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;mm.arraySet(i,r,o,p,a),s-=p,o+=p,l-=p,a+=p,n.length-=p;break}n.mode=xm;break;case 17:for(;u<14;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Sm;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.lens[L[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},S=ym(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,S){e.msg="invalid code lengths set",n.mode=Sm;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){for(_=g+2;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Sm;break}x=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){for(_=g+3;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}u-=g,x=0,p=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(_=g+7;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}u-=g,x=0,p=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Sm;break}for(;p--;)n.lens[n.have++]=x}}if(n.mode===Sm)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Sm;break}if(n.lenbits=9,C={bits:n.lenbits},S=ym(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,S){e.msg="invalid literal/lengths set",n.mode=Sm;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},S=ym(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,S){e.msg="invalid distances set",n.mode=Sm;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,bm(e,d),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===xm&&(n.back=-1);break}for(n.back=0;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(b&&0==(240&b)){for(k=g,w=b,v=y;b=(A=n.lencode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=xm;break}if(64&b){e.msg="invalid literal/length code",n.mode=Sm;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(_=n.extra;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;b=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(0==(240&b)){for(k=g,w=b,v=y;b=(A=n.distcode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,64&b){e.msg="invalid distance code",n.mode=Sm;break}n.offset=y,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(_=n.extra;u<_;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Sm;break}n.mode=25;case 25:if(0===l)break e;if(p=d-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Sm;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),f=n.window}else f=i,m=a-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{i[a++]=f[m++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[o++]<<u,u+=8}if(d-=l,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?gm(n.check,i,d,a-d):fm(n.check,i,d,a-d)),d=l,(n.flags?c:Am(c))!==n.check){e.msg="incorrect data check",n.mode=Sm;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Sm;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case Sm:S=-3;break e;case 31:return-4;default:return wm}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==e.avail_out&&n.mode<Sm&&(n.mode<27||4!==t))&&Om(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?gm(n.check,i,d,e.next_out-d):fm(n.check,i,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===xm?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||4===t)&&S===km&&(S=-5),S},lm.inflateEnd=function(e){if(!e||!e.state)return wm;var t=e.state;return t.window&&(t.window=null),e.state=null,km},lm.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?wm:(n.head=t,t.done=!1,km):wm},lm.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?wm:11===n.mode&&fm(1,t,r,0)!==n.check?-3:Om(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,km):wm},lm.inflateInfo="pako inflate (from Nodeca project)";var Bm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Fm=lm,Um=ud,Mm=jp,jm=Bm,qm=np,Wm=Zp,Hm=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},$m=Object.prototype.toString;function Vm(e){if(!(this instanceof Vm))return new Vm(e);this.options=Um.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wm,this.strm.avail_out=0;var n=Fm.inflateInit2(this.strm,t.windowBits);if(n!==jm.Z_OK)throw new Error(qm[n]);if(this.header=new Hm,Fm.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Mm.string2buf(t.dictionary):"[object ArrayBuffer]"===$m.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Fm.inflateSetDictionary(this.strm,t.dictionary))!==jm.Z_OK))throw new Error(qm[n])}function Km(e,t){var n=new Vm(t);if(n.push(e,!0),n.err)throw n.msg||qm[n.err];return n.result}Vm.prototype.push=function(e,t){var n,r,i,o,a,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?jm.Z_FINISH:jm.Z_NO_FLUSH,"string"==typeof e?s.input=Mm.binstring2buf(e):"[object ArrayBuffer]"===$m.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Um.Buf8(l),s.next_out=0,s.avail_out=l),(n=Fm.inflate(s,jm.Z_NO_FLUSH))===jm.Z_NEED_DICT&&c&&(n=Fm.inflateSetDictionary(this.strm,c)),n===jm.Z_BUF_ERROR&&!0===u&&(n=jm.Z_OK,u=!1),n!==jm.Z_STREAM_END&&n!==jm.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==jm.Z_STREAM_END&&(0!==s.avail_in||r!==jm.Z_FINISH&&r!==jm.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Mm.utf8border(s.output,s.next_out),o=s.next_out-i,a=Mm.buf2string(s.output,i),s.next_out=o,s.avail_out=l-o,o&&Um.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(Um.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==jm.Z_STREAM_END);return n===jm.Z_STREAM_END&&(r=jm.Z_FINISH),r===jm.Z_FINISH?(n=Fm.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===jm.Z_OK):r!==jm.Z_SYNC_FLUSH||(this.onEnd(jm.Z_OK),s.avail_out=0,!0)},Vm.prototype.onData=function(e){this.chunks.push(e)},Vm.prototype.onEnd=function(e){e===jm.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Um.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},sm.Inflate=Vm,sm.inflate=Km,sm.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Km(e,t)},sm.ungzip=Km;var Zm={};(0,ud.assign)(Zm,hd,sm,Bm);var Gm=Zm;const{deflate:Ym}=Gm,Qm=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),n=new Uint8Array(e),r=n.length,i=r%3,o=[],a=16383;let s;for(let e=0,t=r-i;e<t;e+=a)o.push(l(e,e+a>t?t:e+a));return 1===i?(s=n[r-1],o.push(t[s>>2]+t[s<<4&63]+"==")):2===i&&(s=(n[r-2]<<8)+n[r-1],o.push(t[s>>10]+t[s>>4&63]+t[s<<2&63]+"=")),o.join("");function l(e,r){let i;const o=[];for(let s=e;s<r;s+=3)i=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(255&n[s+2]),o.push(t[(a=i)>>18&63]+t[a>>12&63]+t[a>>6&63]+t[63&a]);var a;return o.join("")}};var Xm=function({type:e,value:t,compress:n,serialize:r}){const i={type:e,value:t};return n&&(i.value=Ym(new Uint8Array(i.value)),i.compressed=!0),r&&(i.value=Qm(i.value)),i},Jm=function(e){return/^(blob|https?):/.test(e)},ef=function(e){const t=e&&e.match(/(^[^#]*)/),n=t&&t[1]||e;return n&&n.replace(/\?\s*$/,"?")||e},tf=function(e){return e.reduce(((e,t)=>e.concat(t)),[])};const{absolutizeUrl:nf}=u,rf=Xm,of=Jm,af=ef,sf=dh,lf=tf,cf=ld;const uf=Eh,hf=tf;const df=tf,pf=ef,mf=function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href};const ff=Eh,gf=Rh,bf=ld;const yf=ld;const kf=ld;const wf=function(t){const n=new TextDecoder("utf-8").decode(t),r=e.head||e.querySelectorAll("head")[0],i=e.createElement("style");return i.type="text/css",i.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),i.sheet},vf=dh;const xf=Xm;var Sf=function(e,{log:t,compress:n,serialize:r}){return e.reduce(((e,{url:i,element:o,cdtNode:a})=>{const s=new Promise((e=>{try{o.toBlob((t=>t?e(t.arrayBuffer()):n()),"image/png")}catch(e){n(e)}function n(n){var r;t("resetting canvas node",n?n.message:"",o&&o.attributes&&(r=o,JSON.stringify(Array(r.attributes).reduce(((e,t)=>Object.assign({[t.name]:t.value},e)),{})))),a.attributes.splice(a.attributes.findIndex((e=>"data-applitools-src"===e.name)),1),a.attributes.push({name:"data-applitools-tainted-canvas",value:"true"}),e()}}));return e.then((e=>s.then((t=>{if(t){const o=xf({type:"image/png",value:t,compress:n,serialize:r});o.url=i,e.push(o)}return e}))))}),Promise.resolve([]))};const Cf=tf,_f=Sf,Af=qh;const zf=tf,Lf=Xm;const Tf=d;const Ef="__process_resource";const{absolutizeUrl:Nf}=u,Rf=d,Df=function(e,t,n=Xh){const r=[{nodeType:Node.DOCUMENT_NODE}],i=[e],o=[],a=[],s=[],l=[];let c=[];const u=[],h=[];return r[0].childNodeIndexes=d(r,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(r[0].exp_adoptedStyleSheets=sd(e)),{cdt:r,docRoots:i,canvasElements:o,frames:s,inlineFrames:a,crossFrames:l,linkUrls:c,imageBlobs:u,videoBlobs:h};function d(e,t){if(!t||0===t.length)return null;const n=[];return Array.prototype.forEach.call(t,(t=>{const r=p(e,t);null!==r&&n.push(r)})),n}function p(e,r){const m=td(r);let f;if([Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(m.nodeType)){if(m.hasAttribute&&m.hasAttribute("data-applitools-skip"))return null;if(["LINK","STYLE","SOURCE"].includes(m.nodeName)&&m.media.trim()&&!ed(m.media))return null;if("SCRIPT"===m.nodeName)f=function(e){return{nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:od(e).map((t=>{const n=e.attributes[t].name;return{name:n,value:id.test(n)?"":e.attributes[t].value}})).filter((e=>"src"!==e.name)),childNodeIndexes:[]}}(m);else{const c=m.shadowRoot&&m.shadowRoot.childNodes.length&&"ShadowRoot"!==m.shadowRoot.constructor.name;if(f=function(e){const t={nodeType:e.nodeType,nodeName:e.nodeName,attributes:od(e).map((t=>{let n=e.attributes[t].value;const r=e.attributes[t].name;return n.includes("blob:")?n=n.replace(/blob:/g,""):id.test(r)?n="":"IFRAME"===e.nodeName&&$h(e)&&"src"===r&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==Wh(n,e.ownerDocument.location.href)?n=e.contentDocument.location.href:"style"===r&&(n=Qh(e.style)),{name:r,value:n}}))};if("INPUT"===e.tagName&&["checkbox","radio"].includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex((e=>"checked"===e.name));t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push({name:"checked"}),e.indeterminate&&t.attributes.push({name:"data-applitools-js-properties",value:JSON.stringify({indeterminate:!0})})}return"INPUT"===e.tagName&&rd.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&ad(t.attributes,"value",e.value),"OPTION"===e.tagName&&e.parentElement.selectedOptions&&Array.from(e.parentElement.selectedOptions).indexOf(td.unwrap(e))>-1&&ad(t.attributes,"selected",""),"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push({name:"data-applitools-disabled",value:""}),"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&ad(t.attributes,"disabled",""),t}(m),"STYLE"===m.nodeName&&m.sheet&&m.sheet.cssRules.length?(e.push(function(e,t,n){const r=Zh(e);return n.__dsNodeCache&&n.__dsNodeCache.key===r?t("[domNodesToCdt] using cache for inline css of",nd(e)):n.__dsNodeCache={key:r,value:Kh(e,t)},{nodeType:Node.TEXT_NODE,nodeValue:n.__dsNodeCache.value}}(m,n,r)),f.childNodeIndexes=[e.length-1]):"TEXTAREA"===m.tagName&&m.value!==m.textContent?(e.push(function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.value}}(m)),f.childNodeIndexes=[e.length-1]):f.childNodeIndexes=!c&&m.childNodes.length?d(e,m.childNodes):[],c&&"SLOT"===m.tagName&&"function"==typeof m.assignedNodes){const t=m.assignedNodes();f.childNodeIndexes=f.childNodeIndexes||[],f.childNodeIndexes=t.length?f.childNodeIndexes.concat(d(e,t)):f.childNodeIndexes}if(m.shadowRoot&&(c?f.childNodeIndexes=f.childNodeIndexes.concat(d(e,m.shadowRoot.childNodes)):(f.shadowRootIndex=p(e,m.shadowRoot),i.push(m.shadowRoot))),"CANVAS"===m.nodeName&&!Jh(r)){const e=Wh(`applitools-canvas-${Vh()}.png`,t);f.attributes.push({name:"data-applitools-src",value:e}),o.push({element:m,cdtNode:f,url:e})}if("IFRAME"===m.nodeName){const n=Vh();if(m.setAttribute("data-applitools-selector",n),Jh(r))f.attributes.forEach((e=>{"src"!==e.name&&"srcdoc"!==e.name||(f.attributes.push({name:`data-applitools-original-${e.name}`,value:e.value}),e.value="")}));else if($h(r))if(Hh(m)){const e=Wh(`?applitools-iframe=${Vh()}`,t);f.attributes.push({name:"data-applitools-src",value:e}),a.push({element:m,url:e})}else{const e=m.contentDocument.location.href,t=Wh(`?applitools-iframe=${Vh()}`,e);f.attributes.push({name:"data-applitools-src",value:t}),s.push({element:m,url:t})}else{const t=`[data-applitools-selector="${n}"]`;l.push({selector:t,index:e.length})}}m.adoptedStyleSheets&&m.adoptedStyleSheets.length>0&&(f.exp_adoptedStyleSheets=sd(m))}if(m.nodeType===Node.ELEMENT_NODE){const e=Gh(m);if(e.length>0&&(c=c.concat(e)),"IMG"===m.tagName&&/^blob:/.test(m.src)){const e=m.src.replace(/^blob:/,"");u.push({element:m,cdtNode:f,url:e})}if("VIDEO"===m.tagName&&(/^blob:/.test(m.src)||m.srcObject)){let e;m.src?e=m.src.replace(/^blob:/,""):(e=Wh(`applitools-video-${Vh()}.webm`,t),f.attributes.push({name:"data-applitools-src",value:e})),h.push({element:m,cdtNode:f,url:e})}}}else m.nodeType===Node.TEXT_NODE?f=function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue}}(m):m.nodeType===Node.DOCUMENT_TYPE_NODE&&(f=function(e){return{nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName}}(m));return f?(e.push(f),e.length-1):null}},Pf=function(e){return e.reduce((({resourceUrls:e,blobsObj:t},{resourceUrls:n,blobsObj:r})=>({resourceUrls:cd(e.concat(n)),blobsObj:Object.assign(t,r)})),{resourceUrls:[],blobsObj:{}})},If=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function n({documents:r,urls:i,forceCreateStyle:o=!1,skipResources:a}){return Promise.all(i.map((t=>e({url:t,documents:r,getResourceUrlsAndBlobs:n,forceCreateStyle:o,skipResources:a})))).then((e=>t(e)))}},Of=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:n,extractResourcesFromStyleSheet:r,extractResourcesFromSvg:i,sessionCache:o,cache:a={},compress:s,serialize:l,log:c=sf}){return function({url:u,documents:h,getResourceUrlsAndBlobs:d,forceCreateStyle:p=!1,skipResources:m}){if(!a[u])if(o&&o.getItem(u)){const e=function e(t){const n=o.getItem(t);return[t].concat(n?cf(lf(n.map(e))):[])}(u);c("doProcessResource from sessionStorage",u,"deps:",e.slice(1)),a[u]=Promise.resolve({resourceUrls:e})}else if(m&&m.indexOf(u)>-1||/https:\/\/fonts.googleapis.com/.test(u))c("not processing resource from skip list (or google font):",u),a[u]=Promise.resolve({resourceUrls:[u]});else{const g=Date.now();a[u]=function(a){c("fetching",a);const u=Date.now();return e(a).catch((e=>function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),n=e.name&&e.name.includes("TypeError");return t&&n}(e)?{probablyCORS:!0,url:a}:e.isTimeout?{isTimeout:!0,url:a}:(c(`error while fetching resource ${a} ${e?`message=${e.message} | name=${e.name}`:""}`,e),{errorStatusCode:599,url:a}))).then((({url:e,type:a,value:f,probablyCORS:g,errorStatusCode:b,isTimeout:y})=>{if(g)return c("not fetched due to CORS",`[${Date.now()-u}ms]`,e),o&&o.setItem(e,[]),{resourceUrls:[e]};if(b){const t={[e]:{errorStatusCode:b}};return o&&o.setItem(e,[]),{blobsObj:t}}if(y)return c("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),o&&o.setItem(e,[]),{blobsObj:{[e]:{errorStatusCode:504}}};let k;if(c(`fetched [${Date.now()-u}ms] ${e} bytes: ${f.byteLength}`),/text\/css/.test(a)){let i=t(e,h);if(i||p){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=n(f,i);k=r(e),t()}}else if(/image\/svg/.test(a))try{k=i(f),p=!!k}catch(e){c("could not parse svg content",e)}const w={[e]:rf({type:a,value:f,compress:s,serialize:l})};if(k){const t=k.map((t=>nf(t,e.replace(/^blob:/,"")))).map(af).filter(of);return t.length&&(w[e].dependencies=t),o&&o.setItem(e,t),d({documents:h,urls:t,forceCreateStyle:p,skipResources:m}).then((({resourceUrls:e,blobsObj:t})=>({resourceUrls:e,blobsObj:Object.assign(t,w)})))}return o&&o.setItem(e,[]),{blobsObj:w}})).catch((e=>(c("error while processing resource",a,e,e?`message=${e.message} | name=${e.name}`:""),o&&f(),{})))}(u).then((e=>(c("doProcessResource",`[${Date.now()-g}ms]`,u),e)))}return a[u];function f(){c("clearing from sessionStorage:",u),o.keys().forEach((e=>{const t=o.getItem(e);o.setItem(e,t.filter((e=>e!==u)))})),c("cleared from sessionStorage:",u)}}},Bf=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:n}){return function(r){const i=(t||new TextDecoder("utf-8")).decode(r),o=(e||new DOMParser).parseFromString(i,"image/svg+xml"),a=Array.from(o.querySelectorAll("img[srcset]")).map((e=>e.getAttribute("srcset").split(", ").map((e=>e.trim().split(/\s+/)[0])))).reduce(((e,t)=>e.concat(t)),[]),s=Array.from(o.querySelectorAll("img[src]")).map((e=>e.getAttribute("src"))),l=Array.from(o.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e=>e.getAttribute("href")||e.getAttribute("xlink:href"))),c=Array.from(o.getElementsByTagName("object")).map((e=>e.getAttribute("data"))),u=n(o,!1),h=function(e){return hf(Array.from(e.querySelectorAll("*[style]")).map((e=>e.style.cssText)).map(uf).filter(Boolean))}(o);return a.concat(s).concat(l).concat(c).concat(u).concat(h).filter((e=>"#"!==e[0]))}},Ff=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:n=1e4,mediaDownloadTimeout:r=3e4}){return function(i){return new Promise(((o,a)=>{const s=new t,l=()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,a(e),s.abort()},c=setTimeout(l,n);return e(i,{cache:"force-cache",credentials:"same-origin",signal:s.signal}).then((e=>{if(clearTimeout(c),200===e.status){const t=e.headers.get("Content-Type"),n=!e.headers.get("Content-Length")&&["audio/","video/"].some((n=>t&&e.headers.get("Content-Type").startsWith(n)))&&setTimeout(l,r);return e.arrayBuffer().then((e=>(n&&clearTimeout(n),{url:i,value:e,type:t})))}return{url:i,errorStatusCode:e.status}})).then(o).catch((e=>a(e)))}))}},Uf=function({styleSheetCache:e}){return function(t,n){const r=df(n.map((e=>{try{return Array.from(e.styleSheets)}catch(e){return[]}})));return e[t]||r.find((e=>{const n=e.href&&pf(e.href);return n&&mf(n)===t}))}},Mf=function({styleSheetCache:e,CSSRule:t=window.CSSRule,removeReverseProxyURLPrefixes:n}){return function r(i){return bf(Array.from(i.cssRules||[]).reduce(((i,o)=>{const a={[t.IMPORT_RULE]:()=>o.styleSheet&&(e[o.styleSheet.href]=o.styleSheet,o.styleSheet.href)?o.styleSheet.href:o.href,[t.FONT_FACE_RULE]:()=>ff(o.cssText,{removeReverseProxyURLPrefixes:n}),[t.SUPPORTS_RULE]:()=>r(o),[t.MEDIA_RULE]:()=>r(o),[t.STYLE_RULE]:()=>gf(o.style)}[o.type],s=a&&a()||[];return o?.cssRules&&s.push(...r(o)),i.concat(s)}),[])).filter((e=>"#"!==e[0]))}},jf=function(e){return function(t,n=!0){return yf(Array.from(t.querySelectorAll("style")).reduce(((r,i)=>{const o=n?Array.from(t.styleSheets).find((e=>e.ownerNode===i)):i.sheet;return o?r.concat(e(o)):r}),[]))}},qf=function(e){return function(t){return t.adoptedStyleSheets?kf(t.adoptedStyleSheets.reduce(((t,n)=>t.concat(e(n))),[])):[]}},Wf=function(e,t,n=vf){let r;if(t)try{t.cssRules,r=t}catch(i){n(`[dom-snapshot] could not access cssRules for ${t.href} ${i}\ncreating temp style for access.`),r=wf(e)}else r=wf(e);return{corsFreeStyleSheet:r,cleanStyleSheet:function(){r!==t&&r.ownerNode.parentNode.removeChild(r.ownerNode)}}},Hf=Sf,$f=function(e,{doc:t,fetchedBlobs:n,log:r,compress:i,serialize:o,sessionCache:a}){if(!t.body||0===e.length)return Promise.resolve([]);const s=new Set(Object.keys(n));let l=e.filter((({url:e})=>!(s.has("blob:"+e)||a&&a.getItem("blob:"+e))));const c=t.createElement("canvas");c.style.display="none";const u=Af(t.body);return u.appendChild(c),Promise.all(l.map((({element:e,url:t,cdtNode:n})=>(c.width=e.naturalWidth,c.height=e.naturalHeight,c.getContext("2d").drawImage(Af.unwrap(e),0,0),_f([{url:t,element:c,cdtNode:n}],{log:r,compress:i,serialize:o}))))).then((e=>(u.removeChild(c),Cf(e)))).catch((()=>{u.removeChild(c)}))},Vf=function(e,{doc:t,fetchedBlobs:n,compress:r,serialize:i,sessionCache:o}){if(!t.body)return Promise.resolve([]);const a=new Set(Object.keys(n));let s=e.filter((({url:e})=>!(a.has("blob:"+e)||o&&o.getItem("blob:"+e))));return Promise.all(s.map((({element:e,url:t})=>{const n=e.captureStream();return 0===n.getVideoTracks().length?[]:new Promise((o=>{const a=new MediaRecorder(n,{mimeType:"video/webm"});a.addEventListener("dataavailable",(n=>{a.stop(),e.pause(),n.data.arrayBuffer().then((e=>{const a=Lf({type:n.data.type,value:e,compress:r,serialize:i});a.url=t,o(a)}))}),{once:!0}),e.play(),a.start(),setTimeout((()=>a.requestData()),1e3)}))}))).then((e=>zf(e)))},Kf=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&function(e){return e&&!/^(about:blank|javascript:void|blob:)/.test(e)}(t))return Tf(t)},Zf=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>{const t=parseInt(e.substr(1).trim(),16);return t>1114111?e:String.fromCodePoint(t)}))||e},Gf=ef,Yf=ld,Qf=tf,Xf=Jm,Jf=function(e){return function(){const t=["[dom-snapshot]",`[+${Date.now()-e}ms]`].concat(Array.from(arguments));console.log.apply(console,t)}},eg=dh,tg=function({log:e,sessionStorage:t}){let n;try{const e=(t=t||window.sessionStorage).getItem(Ef);n=e?JSON.parse(e):{}}catch(t){e("error creating session cache",t)}return{getItem:function(e){if(n)return n[e]},setItem:function(t,r){n&&(e("saving to in-memory sessionStorage, key:",t,"value:",r),n[t]=r)},keys:function(){return n?Object.keys(n):[]},persist:function(){n&&t.setItem(Ef,JSON.stringify(n))}}};function ng(e){return e&&Xf(e)}const{pollify:rg}=u,{EYES_NAMESPACE:ig,DOM_SNAPSHOT_KEY:og}=h,ag=function({doc:t=e,showLogs:n,useSessionCache:r,dontFetchResources:i,fetchTimeout:o,skipResources:a,compressResources:s,serializeResources:l,removeReverseProxyURLPrefixes:c}={}){
|
|
3
3
|
/* MARKER FOR TEST - DO NOT DELETE */
|
|
4
|
-
arguments[0]instanceof Document&&(t=arguments[0],n=arguments[1].showLogs,r=arguments[1].useSessionCache,i=arguments[1].dontFetchResources,o=arguments[1].fetchTimeout,a=arguments[1].skipResources,s=arguments[1].compressResources,l=arguments[1].serializeResources,c=arguments[1].removeReverseProxyURLPrefixes);const u=n?Jf(Date.now()):eg;u("processPage start"),u(`skipResources length: ${a&&a.length}`);const h=r&&tg({log:u}),d={},p=Mf({styleSheetCache:d,removeReverseProxyURLPrefixes:c}),m=Uf({styleSheetCache:d}),f=jf(p),g=qf(p),b=Bf({extractResourceUrlsFromStyleTags:f}),y=Ff({timeout:o}),k=Of({fetchUrl:y,findStyleSheetByUrl:m,getCorsFreeStyleSheet:Wf,extractResourcesFromStyleSheet:p,extractResourcesFromSvg:b,absolutizeUrl:Nf,log:u,sessionCache:h,compress:s,serialize:l}),w=If({processResource:k,aggregateResourceUrlsAndBlobs:Pf});return function e(t,n=t.location.href){const r=Kf(t)||n,{cdt:o,docRoots:c,canvasElements:d,frames:p,inlineFrames:m,crossFrames:b,linkUrls:y,imageBlobs:k,videoBlobs:v}=Df(t,r,u),x=Qf(c.map((e=>f(e)))),S=Qf(c.map((e=>g(e)))),C=function(e){return function(t){try{return Rf(Nf(t,e))}catch(e){}}}(r),_=Yf(Array.from(y).concat(Array.from(x)).concat(Array.from(S))).map((e=>e.trim())).reduce(((e,t)=>{e.push(t);const n=Zf(t);return n!==t&&e.push(n),e}),[]).map(C).map(Gf).filter(ng),A=i?Promise.resolve({resourceUrls:_,blobsObj:{}}):w({documents:c,urls:_,skipResources:a}).then((e=>(h&&h.persist(),e))),z=Hf(d,{log:u,compress:s,serialize:l}),L=A.then((e=>$f(k,{fetchedBlobs:e.blobsObj,doc:t,log:u,compress:s,serialize:l,sessionCache:h}))),T=A.then((e=>Vf(v,{fetchedBlobs:e.blobsObj,doc:t,log:u,compress:s,serialize:l,sessionCache:h}))),E=p.map((({element:t,url:n})=>e(t.contentDocument,n))),N=m.map((({element:t,url:n})=>e(t.contentDocument,n)));return Promise.all([A,z,L,T].concat(E).concat(N)).then((function(e){const{resourceUrls:t,blobsObj:i}=e[0],a=e[1],s=e[2],l=e[3],c=e.slice(4),u=R("src"),h=R("data-applitools-selector"),d=h?`[data-applitools-selector="${h}"]`:void 0,p=function(e){return Object.keys(e).map((t=>Object.assign({url:t.replace(/^blob:/,"")},e[t])))}(i).concat(a).concat(s).concat(l),m={cdt:o,url:n,srcAttr:u,resourceUrls:t.map((e=>e.replace(/^blob:/,""))),blobs:p,frames:c,crossFrames:b,selector:d};return r!==n&&(m.baseUri=r),m}));function R(e){return t.defaultView&&t.defaultView.frameElement&&t.defaultView.frameElement.getAttribute(e)}}(t).then((e=>(u("processPage end"),e.scriptVersion="4.11.
|
|
4
|
+
arguments[0]instanceof Document&&(t=arguments[0],n=arguments[1].showLogs,r=arguments[1].useSessionCache,i=arguments[1].dontFetchResources,o=arguments[1].fetchTimeout,a=arguments[1].skipResources,s=arguments[1].compressResources,l=arguments[1].serializeResources,c=arguments[1].removeReverseProxyURLPrefixes);const u=n?Jf(Date.now()):eg;u("processPage start"),u(`skipResources length: ${a&&a.length}`);const h=r&&tg({log:u}),d={},p=Mf({styleSheetCache:d,removeReverseProxyURLPrefixes:c}),m=Uf({styleSheetCache:d}),f=jf(p),g=qf(p),b=Bf({extractResourceUrlsFromStyleTags:f}),y=Ff({timeout:o}),k=Of({fetchUrl:y,findStyleSheetByUrl:m,getCorsFreeStyleSheet:Wf,extractResourcesFromStyleSheet:p,extractResourcesFromSvg:b,absolutizeUrl:Nf,log:u,sessionCache:h,compress:s,serialize:l}),w=If({processResource:k,aggregateResourceUrlsAndBlobs:Pf});return function e(t,n=t.location.href){const r=Kf(t)||n,{cdt:o,docRoots:c,canvasElements:d,frames:p,inlineFrames:m,crossFrames:b,linkUrls:y,imageBlobs:k,videoBlobs:v}=Df(t,r,u),x=Qf(c.map((e=>f(e)))),S=Qf(c.map((e=>g(e)))),C=function(e){return function(t){try{return Rf(Nf(t,e))}catch(e){}}}(r),_=Yf(Array.from(y).concat(Array.from(x)).concat(Array.from(S))).map((e=>e.trim())).reduce(((e,t)=>{e.push(t);const n=Zf(t);return n!==t&&e.push(n),e}),[]).map(C).map(Gf).filter(ng),A=i?Promise.resolve({resourceUrls:_,blobsObj:{}}):w({documents:c,urls:_,skipResources:a}).then((e=>(h&&h.persist(),e))),z=Hf(d,{log:u,compress:s,serialize:l}),L=A.then((e=>$f(k,{fetchedBlobs:e.blobsObj,doc:t,log:u,compress:s,serialize:l,sessionCache:h}))),T=A.then((e=>Vf(v,{fetchedBlobs:e.blobsObj,doc:t,log:u,compress:s,serialize:l,sessionCache:h}))),E=p.map((({element:t,url:n})=>e(t.contentDocument,n))),N=m.map((({element:t,url:n})=>e(t.contentDocument,n)));return Promise.all([A,z,L,T].concat(E).concat(N)).then((function(e){const{resourceUrls:t,blobsObj:i}=e[0],a=e[1],s=e[2],l=e[3],c=e.slice(4),u=R("src"),h=R("data-applitools-selector"),d=h?`[data-applitools-selector="${h}"]`:void 0,p=function(e){return Object.keys(e).map((t=>Object.assign({url:t.replace(/^blob:/,"")},e[t])))}(i).concat(a).concat(s).concat(l),m={cdt:o,url:n,srcAttr:u,resourceUrls:t.map((e=>e.replace(/^blob:/,""))),blobs:p,frames:c,crossFrames:b,selector:d};return r!==n&&(m.baseUri=r),m}));function R(e){return t.defaultView&&t.defaultView.frameElement&&t.defaultView.frameElement.getAttribute(e)}}(t).then((e=>(u("processPage end"),e.scriptVersion="4.11.3",e)))};window[ig]=window[ig]||{};const sg=rg(ag,window[ig],og);return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e){try{return JSON.stringify(sg(e)(e))}catch(e){return JSON.stringify({status:"ERROR",error:e.message})}}))}()};let t=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const r=window.crypto.getRandomValues(new Uint32Array(1))[0],i=n.contentDocument.createElement("script");i.textContent=`window['ctor-${r}'] = ${e.toString()};`,n.contentDocument.head.appendChild(i);const o=n.contentWindow[`ctor-${r}`];if("function"!=typeof o)throw new Error("Sandbox failed to extract function");return t=!1,o(document).apply(null,arguments)}catch(n){try{return e(document).apply(null,arguments)}catch(e){throw t?e:n}}},n=e(t);module.exports=n;
|