@redocly/realm 0.135.0-next.1 → 0.135.0-next.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 +29 -0
- package/dist/client/app/DevModeFloatingBar/index.js +1 -1
- package/dist/compiled/svgo/svgo-node.js +3 -3
- package/dist/server/esbuild/esbuild-logger.js +1 -1
- package/dist/server/providers/database/utils/retry-async-operation.js +1 -1
- package/dist/server/tools/notifiers/formatter.js +1 -1
- package/dist/server/utils/envs/load-env-variables.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-routes.js +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @redocly/realm
|
|
2
2
|
|
|
3
|
+
## 0.135.0-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3f9e1e20c7e: Fixed security vulnerability `CVE-2026-53550` by upgrading `js-yaml` to version `4.2.0`.
|
|
8
|
+
- 0ec04ec7f0c: Fixed security vulnerability `CVE-2026-54285` by upgrading `@opentelemetry/core` to version `2.8.0`.
|
|
9
|
+
- 6176c7a2a3b: Fixed security vulnerabilities `GHSA-gvmj-g25r-r7wr`, `CVE-2026-49978`, `GHSA-x4vx-rjvf-j5p4`, `GHSA-vxr8-fq34-vvx9`, `CVE-2026-49459`, `CVE-2026-49458`, `GHSA-76mc-f452-cxcm` by upgrading `dompurify` to version `3.4.10`.
|
|
10
|
+
- Updated dependencies [46970189d84]
|
|
11
|
+
- Updated dependencies [0ec04ec7f0c]
|
|
12
|
+
- Updated dependencies [6176c7a2a3b]
|
|
13
|
+
- @redocly/theme@0.67.0-next.2
|
|
14
|
+
- @redocly/openapi-docs@3.23.0-next.3
|
|
15
|
+
- @redocly/realm-asyncapi-sdk@0.13.0-next.1
|
|
16
|
+
- @redocly/asyncapi-docs@1.12.0-next.3
|
|
17
|
+
- @redocly/graphql-docs@1.12.0-next.3
|
|
18
|
+
- @redocly/portal-plugin-mock-server@0.20.0-next.3
|
|
19
|
+
|
|
20
|
+
## 0.135.0-next.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 058151b756: Updated `@redocly/openapi-core` to version `2.32.1`.
|
|
25
|
+
- 45709abfb3f: Fixed security vulnerability `GHSA-gv7w-rqvm-qjhr` by upgrading `esbuild` to version `0.28.1`.
|
|
26
|
+
- Updated dependencies [058151b756]
|
|
27
|
+
- @redocly/openapi-docs@3.23.0-next.2
|
|
28
|
+
- @redocly/portal-plugin-mock-server@0.20.0-next.2
|
|
29
|
+
- @redocly/asyncapi-docs@1.12.0-next.2
|
|
30
|
+
- @redocly/graphql-docs@1.12.0-next.2
|
|
31
|
+
|
|
3
32
|
## 0.135.0-next.1
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"react";import u from"styled-components";import{Tooltip as X}from"@redocly/theme/components/Tooltip/Tooltip";import{CheckmarkFilledIcon as H}from"@redocly/theme/icons/CheckmarkFilledIcon/CheckmarkFilledIcon";import{DraggableIcon as O}from"@redocly/theme/icons/DraggableIcon/DraggableIcon";import{ErrorFilledIcon as N}from"@redocly/theme/icons/ErrorFilledIcon/ErrorFilledIcon";import{Button as U}from"@redocly/theme/components/Button/Button";import{DetailedErrors as G}from"./DetailedErrors";import{useSocketMessages as T}from"../../runtime/useSocketMessages";const V="pages-updated",W="errors-updated",P=99,f=24,k="portal.dev-mode-floating-bar-slot",K=280,w="bottom-left",R=["bottom-left","middle","bottom-right"];function Y(t,a){const s=a/2;return{minX:s+f,maxX:t-s-f}}function j(t,a){switch(t){case"bottom-left":return a.minX;case"bottom-right":return a.maxX;
|
|
1
|
+
import e from"react";import u from"styled-components";import{Tooltip as X}from"@redocly/theme/components/Tooltip/Tooltip";import{CheckmarkFilledIcon as H}from"@redocly/theme/icons/CheckmarkFilledIcon/CheckmarkFilledIcon";import{DraggableIcon as O}from"@redocly/theme/icons/DraggableIcon/DraggableIcon";import{ErrorFilledIcon as N}from"@redocly/theme/icons/ErrorFilledIcon/ErrorFilledIcon";import{Button as U}from"@redocly/theme/components/Button/Button";import{DetailedErrors as G}from"./DetailedErrors";import{useSocketMessages as T}from"../../runtime/useSocketMessages";const V="pages-updated",W="errors-updated",P=99,f=24,k="portal.dev-mode-floating-bar-slot",K=280,w="bottom-left",R=["bottom-left","middle","bottom-right"];function Y(t,a){const s=a/2;return{minX:s+f,maxX:t-s-f}}function j(t,a){switch(t){case"bottom-left":return a.minX;case"bottom-right":return a.maxX;default:return(a.minX+a.maxX)/2}}function q(t){return typeof t=="string"&&R.includes(t)}function J(){if(typeof window>"u")return w;try{const t=localStorage.getItem(k);return q(t)?t:w}catch{return w}}function de(){const[t,a]=e.useState(0),[s,z]=e.useState([]),[B,E]=e.useState(!1),[l,v]=e.useState(!1),[c,L]=e.useState(J),[p,b]=e.useState(null),S=e.useRef(0),g=e.useRef(null),h=e.useRef(null);T(V,r=>a(r.pages)),T(W,r=>z(r.errors));const y=e.useCallback(()=>h.current?.getBoundingClientRect().width||K,[]),d=e.useCallback(()=>Y(window.innerWidth,y()),[y]),x=e.useCallback(r=>{const o=d();return Math.min(Math.max(o.minX,r),o.maxX)},[d]),D=e.useCallback(r=>{const o=d();return R.map(n=>{const i=j(n,o),$=Math.abs(i-r);return{slot:n,distance:$}}).sort((n,i)=>n.distance-i.distance)[0].slot},[d]);e.useEffect(()=>{if(!(typeof window>"u"))try{localStorage.setItem(k,c)}catch{return}},[c]),e.useEffect(()=>{if(!l)return;const r=n=>{const i=x(n.clientX-S.current);g.current=i,b(i)},o=()=>{v(!1);const n=g.current||0,i=D(n);L(i),b(null),g.current=null};return window.addEventListener("pointermove",r),window.addEventListener("pointerup",o),window.addEventListener("pointercancel",o),()=>{window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o)}},[x,D,l,c]);const M=r=>{if(r.button!==0)return;const o=h.current?.getBoundingClientRect();if(!o)return;const n=o.left+o.width/2;S.current=r.clientX-n,g.current=n,b(n),v(!0),r.preventDefault()},_=e.useMemo(()=>{if(l&&p!==null)return{left:`${p}px`,right:"auto",transform:"translateX(-50%)"};switch(c){case"middle":return{left:"50%",right:"auto",transform:"translateX(-50%)"};case"bottom-right":return{left:"auto",right:`${f}px`,transform:"none"};default:return{left:`${f}px`,right:"auto",transform:"none"}}},[p,l,c]);if(!t&&!s.length)return null;const A=s.length>P?`${P}+`:s.length,m=s.length>0,I=m?"Problems":"No problems",F=c==="bottom-left"?"left":c==="bottom-right"?"right":"center";return e.createElement(e.Fragment,null,e.createElement(Q,{ref:h,$isDragging:l,style:_},e.createElement(X,{tip:"Drag to move",placement:"top",arrowPosition:F,disabled:l},e.createElement(Z,{type:"button","aria-label":"Drag floating bar",onPointerDown:M,$isDragging:l},e.createElement(O,{size:"14px",color:"var(--color-warm-grey-5)"}))),e.createElement(ee,{"aria-label":"Total number of pages in documentation"},e.createElement(C,null,t),e.createElement(te,null,"pages")),e.createElement(X,{tip:I,placement:"top"},e.createElement(re,{type:"button",variant:"secondary",size:"small",icon:m?e.createElement(N,{size:"14px",color:"var(--color-raspberry-6)"}):e.createElement(H,{size:"14px",color:"var(--color-green-6)"}),"aria-label":m?"Show detailed error message":"No errors",onClick:()=>m&&E(!0)},e.createElement(C,null,A)))),B&&e.createElement(G,{onHide:()=>E(!1),problems:s}))}const Q=u.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var z=(e,t)=>()=>
|
|
1
|
+
"use strict";var z=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(d){throw t=0,d}},di=z(e=>{(function(t){t.parser=function(T,B){return new f(T,B)},t.SAXParser=f,t.SAXStream=p,t.createStream=i,t.MAX_BUFFER_LENGTH=65536;var d=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function f(T,B){if(!(this instanceof f))return new f(T,B);var G=this;c(G),G.q=G.c="",G.bufferCheckPosition=t.MAX_BUFFER_LENGTH,G.encoding=null,G.opt=B||{},G.opt.lowercase=G.opt.lowercase||G.opt.lowercasetags,G.looseCase=G.opt.lowercase?"toLowerCase":"toUpperCase",G.opt.maxEntityCount=G.opt.maxEntityCount||512,G.opt.maxEntityDepth=G.opt.maxEntityDepth||4,G.entityCount=G.entityDepth=0,G.tags=[],G.closed=G.closedRoot=G.sawRoot=!1,G.tag=G.error=null,G.strict=!!T,G.noscript=!!(T||G.opt.noscript),G.state=A.BEGIN,G.strictEntities=G.opt.strictEntities,G.ENTITIES=G.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),G.attribList=[],G.opt.xmlns&&(G.ns=Object.create(g)),G.opt.unquotedAttributeValues===void 0&&(G.opt.unquotedAttributeValues=!T),G.trackPosition=G.opt.position!==!1,G.trackPosition&&(G.position=G.line=G.column=0),D(G,"onready")}Object.create||(Object.create=function(T){function B(){}B.prototype=T;var G=new B;return G}),Object.keys||(Object.keys=function(T){var B=[];for(var G in T)T.hasOwnProperty(G)&&B.push(G);return B});function u(T){for(var B=Math.max(t.MAX_BUFFER_LENGTH,10),G=0,q=0,te=d.length;q<te;q++){var re=T[d[q]].length;if(re>B)switch(d[q]){case"textNode":M(T);break;case"cdata":_(T,"oncdata",T.cdata),T.cdata="";break;case"script":_(T,"onscript",T.script),T.script="";break;default:K(T,"Max buffer length exceeded: "+d[q])}G=Math.max(G,re)}var ne=t.MAX_BUFFER_LENGTH-G;T.bufferCheckPosition=ne+T.position}function c(T){for(var B=0,G=d.length;B<G;B++)T[d[B]]=""}function l(T){M(T),T.cdata!==""&&(_(T,"oncdata",T.cdata),T.cdata=""),T.script!==""&&(_(T,"onscript",T.script),T.script="")}f.prototype={end:function(){I(this)},write:P,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};var o;try{o=require("stream").Stream}catch{o=function(){}}o||(o=function(){});var r=t.EVENTS.filter(function(T){return T!=="error"&&T!=="end"});function i(T,B){return new p(T,B)}function s(T,B){if(T.length>=2){if(T[0]===255&&T[1]===254)return"utf-16le";if(T[0]===254&&T[1]===255)return"utf-16be"}return T.length>=3&&T[0]===239&&T[1]===187&&T[2]===191?"utf8":T.length>=4?T[0]===60&&T[1]===0&&T[2]===63&&T[3]===0?"utf-16le":T[0]===0&&T[1]===60&&T[2]===0&&T[3]===63?"utf-16be":"utf8":B?"utf8":null}function p(T,B){if(!(this instanceof p))return new p(T,B);o.apply(this),this._parser=new f(T,B),this.writable=!0,this.readable=!0;var G=this;this._parser.onend=function(){G.emit("end")},this._parser.onerror=function(q){G.emit("error",q),G._parser.error=null},this._decoder=null,this._decoderBuffer=null,r.forEach(function(q){Object.defineProperty(G,"on"+q,{get:function(){return G._parser["on"+q]},set:function(te){if(!te)return G.removeAllListeners(q),G._parser["on"+q]=te,te;G.on(q,te)},enumerable:!0,configurable:!1})})}p.prototype=Object.create(o.prototype,{constructor:{value:p}}),p.prototype._decodeBuffer=function(T,B){if(this._decoderBuffer&&(T=Buffer.concat([this._decoderBuffer,T]),this._decoderBuffer=null),!this._decoder){var G=s(T,B);if(!G)return this._decoderBuffer=T,"";this._parser.encoding=G,this._decoder=new TextDecoder(G)}return this._decoder.decode(T,{stream:!B})},p.prototype.write=function(T){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(T))T=this._decodeBuffer(T,!1);else if(this._decoderBuffer){var B=this._decodeBuffer(Buffer.alloc(0),!0);B&&(this._parser.write(B),this.emit("data",B))}return this._parser.write(T.toString()),this.emit("data",T),!0},p.prototype.end=function(T){if(T&&T.length&&this.write(T),this._decoderBuffer){var B=this._decodeBuffer(Buffer.alloc(0),!0);B&&(this._parser.write(B),this.emit("data",B))}else if(this._decoder){var G=this._decoder.decode();G&&(this._parser.write(G),this.emit("data",G))}return this._parser.end(),!0},p.prototype.on=function(T,B){var G=this;return!G._parser["on"+T]&&r.indexOf(T)!==-1&&(G._parser["on"+T]=function(){var q=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);q.splice(0,0,T),G.emit.apply(G,q)}),o.prototype.on.call(G,T,B)};var h="[CDATA[",y="DOCTYPE",n="http://www.w3.org/XML/1998/namespace",a="http://www.w3.org/2000/xmlns/",g={xml:n,xmlns:a},m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,C=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(T){return T===" "||T===`
|
|
2
2
|
`||T==="\r"||T===" "}function v(T){return T==='"'||T==="'"}function k(T){return T===">"||b(T)}function w(T,B){return T.test(B)}function E(T,B){return!w(T,B)}var A=0;t.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(T){var B=t.ENTITIES[T],G=typeof B=="number"?String.fromCharCode(B):B;t.ENTITIES[T]=G});for(var O in t.STATE)t.STATE[t.STATE[O]]=O;A=t.STATE;function D(T,B,G){T[B]&&T[B](G)}function W(T){var B=T&&T.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return B?B[2]:null}function U(T){return T?T.toLowerCase().replace(/[^a-z0-9]/g,""):null}function H(T,B){let G=U(T),q=U(B);return!G||!q?!0:q==="utf16"?G==="utf16le"||G==="utf16be":G===q}function R(T,B){if(!(!T.strict||!T.encoding||!B||B.name!=="xml")){var G=W(B.body);G&&!H(T.encoding,G)&&L(T,"XML declaration encoding "+G+" does not match detected stream encoding "+T.encoding.toUpperCase())}}function _(T,B,G){T.textNode&&M(T),D(T,B,G)}function M(T){T.textNode=j(T.opt,T.textNode),T.textNode&&D(T,"ontext",T.textNode),T.textNode=""}function j(T,B){return T.trim&&(B=B.trim()),T.normalize&&(B=B.replace(/\s+/g," ")),B}function K(T,B){return M(T),T.trackPosition&&(B+=`
|
|
3
3
|
Line: `+T.line+`
|
|
4
4
|
Column: `+T.column+`
|
|
@@ -35,7 +35,7 @@ plugins: [
|
|
|
35
35
|
`)}let h=o.split(/\r\n?|\n|\f/),y=Math.max(1,r-s)-1,n=Math.min(r+s,h.length+1),a=Math.max(4,String(n).length)+1,g=0;i+=(u.length-1)*(h[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>d&&(g=i-f+3,i=f-2);for(let m=y;m<=n;m++)m>=0&&m<h.length&&(h[m]=h[m].replace(/\t/g,u),h[m]=(g>0&&h[m].length>g?"\u2026":"")+h[m].substr(g,d-2)+(h[m].length>g+d-1?"\u2026":""));return[p(y,r),new Array(i+a+2).join("-")+"^",p(r,n)].filter(Boolean).join(`
|
|
36
36
|
`)}function l(o,r,i,s,p){return Object.assign(t.createCustomError("SyntaxError",o),{source:r,offset:i,line:s,column:p,sourceFragment(h){return c({source:r,line:s,column:p},isNaN(h)?0:h)},get formattedMessage(){return`Parse error: ${o}
|
|
37
37
|
`+c({source:r,line:s,column:p},2)}})}e.SyntaxError=l}),Mi=z(e=>{"use strict";var t=J();function d(f){let u=this.createList(),c=!1,l={recognizer:f};for(;!this.eof;){switch(this.tokenType){case t.Comment:this.next();continue;case t.WhiteSpace:c=!0,this.next();continue}let o=f.getNode.call(this,l);if(o===void 0)break;c&&(f.onWhiteSpace&&f.onWhiteSpace.call(this,o,u,l),c=!1),u.push(o)}return c&&f.onWhiteSpace&&f.onWhiteSpace.call(this,null,u,l),u}e.readSequence=d}),Ni=z(e=>{"use strict";var t=ze(),d=Pi(),f=Ge(),u=Mi(),c=_t(),l=Je(),o=xe(),r=J(),i=Ie(),s=()=>{},p=33,h=35,y=59,n=123,a=0;function g(C){return function(){return this[C]()}}function m(C){let b=Object.create(null);for(let v in C){let k=C[v],w=k.parse||k;w&&(b[v]=w)}return b}function S(C){let b={context:Object.create(null),scope:Object.assign(Object.create(null),C.scope),atrule:m(C.atrule),pseudo:m(C.pseudo),node:m(C.node)};for(let v in C.parseContext)switch(typeof C.parseContext[v]){case"function":b.context[v]=C.parseContext[v];break;case"string":b.context[v]=g(C.parseContext[v]);break}return{config:b,...b,...b.node}}function x(C){let b="",v="<unknown>",k=!1,w=s,E=!1,A=new c.OffsetToLocation,O=Object.assign(new l.TokenStream,S(C||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:u.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(D){return D===n?1:0},consumeUntilLeftCurlyBracketOrSemicolon(D){return D===n||D===y?1:0},consumeUntilExclamationMarkOrSemicolon(D){return D===p||D===y?1:0},consumeUntilSemicolonIncluded(D){return D===y?2:0},createList(){return new t.List},createSingleNodeList(D){return new t.List().appendData(D)},getFirstListNode(D){return D&&D.first},getLastListNode(D){return D&&D.last},parseWithFallback(D,W){let U=this.tokenIndex;try{return D.call(this)}catch(H){if(E)throw H;let R=W.call(this,U);return E=!0,w(H,R),E=!1,R}},lookupNonWSType(D){let W;do if(W=this.lookupType(D++),W!==r.WhiteSpace)return W;while(W!==a);return a},charCodeAt(D){return D>=0&&D<b.length?b.charCodeAt(D):0},substring(D,W){return b.substring(D,W)},substrToCursor(D){return this.source.substring(D,this.tokenStart)},cmpChar(D,W){return o.cmpChar(b,D,W)},cmpStr(D,W,U){return o.cmpStr(b,D,W,U)},consume(D){let W=this.tokenStart;return this.eat(D),this.substrToCursor(W)},consumeFunctionName(){let D=b.substring(this.tokenStart,this.tokenEnd-1);return this.eat(r.Function),D},consumeNumber(D){let W=b.substring(this.tokenStart,o.consumeNumber(b,this.tokenStart));return this.eat(D),W},eat(D){if(this.tokenType!==D){let W=i[D].slice(0,-6).replace(/-/g," ").replace(/^./,R=>R.toUpperCase()),U=`${/[[\](){}]/.test(W)?`"${W}"`:W} is expected`,H=this.tokenStart;switch(D){case r.Ident:this.tokenType===r.Function||this.tokenType===r.Url?(H=this.tokenEnd-1,U="Identifier is expected but function found"):U="Identifier is expected";break;case r.Hash:this.isDelim(h)&&(this.next(),H++,U="Name is expected");break;case r.Percentage:this.tokenType===r.Number&&(H=this.tokenEnd,U="Percent sign is expected");break}this.error(U,H)}this.next()},eatIdent(D){(this.tokenType!==r.Ident||this.lookupValue(0,D)===!1)&&this.error(`Identifier "${D}" is expected`),this.next()},eatDelim(D){this.isDelim(D)||this.error(`Delim "${String.fromCharCode(D)}" is expected`),this.next()},getLocation(D,W){return k?A.getLocationRange(D,W,v):null},getLocationFromList(D){if(k){let W=this.getFirstListNode(D),U=this.getLastListNode(D);return A.getLocationRange(W!==null?W.loc.start.offset-A.startOffset:this.tokenStart,U!==null?U.loc.end.offset-A.startOffset:this.tokenStart,v)}return null},error(D,W){let U=typeof W<"u"&&W<b.length?A.getLocation(W):this.eof?A.getLocation(o.findWhiteSpaceStart(b,b.length-1)):A.getLocation(this.tokenStart);throw new d.SyntaxError(D||"Unexpected input",b,U.offset,U.line,U.column)}});return Object.assign(function(D,W){b=D,W=W||{},O.setSource(b,f.tokenize),A.setSource(b,W.offset,W.line,W.column),v=W.filename||"<unknown>",k=!!W.positions,w=typeof W.onParseError=="function"?W.onParseError:s,E=!1,O.parseAtrulePrelude="parseAtrulePrelude"in W?!!W.parseAtrulePrelude:!0,O.parseRulePrelude="parseRulePrelude"in W?!!W.parseRulePrelude:!0,O.parseValue="parseValue"in W?!!W.parseValue:!0,O.parseCustomProperty="parseCustomProperty"in W?!!W.parseCustomProperty:!1;let{context:U="default",onComment:H}=W;if(!(U in O.context))throw new Error("Unknown context `"+U+"`");typeof H=="function"&&O.forEachToken((_,M,j)=>{if(_===r.Comment){let K=O.getLocation(M,j),I=o.cmpStr(b,j-2,j,"*/")?b.slice(M+2,j-2):b.slice(M+2,j);H(I,K)}});let R=O.context[U].call(O,W);return O.eof||O.error(),R},{SyntaxError:d.SyntaxError,config:O.config})}e.createParser=x}),Ri=z(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(d){if(0<=d&&d<t.length)return t[d];throw new TypeError("Must be between 0 and 63: "+d)},e.decode=function(d){var f=65,u=90,c=97,l=122,o=48,r=57,i=43,s=47,p=26,h=52;return f<=d&&d<=u?d-f:c<=d&&d<=l?d-c+p:o<=d&&d<=r?d-o+h:d==i?62:d==s?63:-1}}),Ii=z(e=>{var t=Ri(),d=5,f=1<<d,u=f-1,c=f;function l(r){return r<0?(-r<<1)+1:(r<<1)+0}function o(r){var i=(r&1)===1,s=r>>1;return i?-s:s}e.encode=function(r){var i="",s,p=l(r);do s=p&u,p>>>=d,p>0&&(s|=c),i+=t.encode(s);while(p>0);return i},e.decode=function(r,i,s){var p=r.length,h=0,y=0,n,a;do{if(i>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(a=t.decode(r.charCodeAt(i++)),a===-1)throw new Error("Invalid base64 digit: "+r.charAt(i-1));n=!!(a&c),a&=u,h=h+(a<<y),y+=d}while(n);s.value=o(h),s.rest=i}}),tt=z(e=>{function t(w,E,A){if(E in w)return w[E];if(arguments.length===3)return A;throw new Error('"'+E+'" is a required argument.')}e.getArg=t;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f=/^data:.+\,.+$/;function u(w){var E=w.match(d);return E?{scheme:E[1],auth:E[2],host:E[3],port:E[4],path:E[5]}:null}e.urlParse=u;function c(w){var E="";return w.scheme&&(E+=w.scheme+":"),E+="//",w.auth&&(E+=w.auth+"@"),w.host&&(E+=w.host),w.port&&(E+=":"+w.port),w.path&&(E+=w.path),E}e.urlGenerate=c;var l=32;function o(w){var E=[];return function(A){for(var O=0;O<E.length;O++)if(E[O].input===A){var D=E[0];return E[0]=E[O],E[O]=D,E[0].result}var W=w(A);return E.unshift({input:A,result:W}),E.length>l&&E.pop(),W}}var r=o(function(w){var E=w,A=u(w);if(A){if(!A.path)return w;E=A.path}for(var O=e.isAbsolute(E),D=[],W=0,U=0;;)if(W=U,U=E.indexOf("/",W),U===-1){D.push(E.slice(W));break}else for(D.push(E.slice(W,U));U<E.length&&E[U]==="/";)U++;for(var H,R=0,U=D.length-1;U>=0;U--)H=D[U],H==="."?D.splice(U,1):H===".."?R++:R>0&&(H===""?(D.splice(U+1,R),R=0):(D.splice(U,2),R--));return E=D.join("/"),E===""&&(E=O?"/":"."),A?(A.path=E,c(A)):E});e.normalize=r;function i(w,E){w===""&&(w="."),E===""&&(E=".");var A=u(E),O=u(w);if(O&&(w=O.path||"/"),A&&!A.scheme)return O&&(A.scheme=O.scheme),c(A);if(A||E.match(f))return E;if(O&&!O.host&&!O.path)return O.host=E,c(O);var D=E.charAt(0)==="/"?E:r(w.replace(/\/+$/,"")+"/"+E);return O?(O.path=D,c(O)):D}e.join=i,e.isAbsolute=function(w){return w.charAt(0)==="/"||d.test(w)};function s(w,E){w===""&&(w="."),w=w.replace(/\/$/,"");for(var A=0;E.indexOf(w+"/")!==0;){var O=w.lastIndexOf("/");if(O<0||(w=w.slice(0,O),w.match(/^([^\/]+:\/)?\/*$/)))return E;++A}return Array(A+1).join("../")+E.substr(w.length+1)}e.relative=s;var p=(function(){var w=Object.create(null);return!("__proto__"in w)})();function h(w){return w}function y(w){return a(w)?"$"+w:w}e.toSetString=p?h:y;function n(w){return a(w)?w.slice(1):w}e.fromSetString=p?h:n;function a(w){if(!w)return!1;var E=w.length;if(E<9||w.charCodeAt(E-1)!==95||w.charCodeAt(E-2)!==95||w.charCodeAt(E-3)!==111||w.charCodeAt(E-4)!==116||w.charCodeAt(E-5)!==111||w.charCodeAt(E-6)!==114||w.charCodeAt(E-7)!==112||w.charCodeAt(E-8)!==95||w.charCodeAt(E-9)!==95)return!1;for(var A=E-10;A>=0;A--)if(w.charCodeAt(A)!==36)return!1;return!0}function g(w,E,A){var O=C(w.source,E.source);return O!==0||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositions=g;function m(w,E,A){var O;return O=w.originalLine-E.originalLine,O!==0||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositionsNoSource=m;function S(w,E,A){var O=w.generatedLine-E.generatedLine;return O!==0||(O=w.generatedColumn-E.generatedColumn,O!==0||A)||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflated=S;function x(w,E,A){var O=w.generatedColumn-E.generatedColumn;return O!==0||A||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function C(w,E){return w===E?0:w===null?1:E===null?-1:w>E?1:-1}function b(w,E){var A=w.generatedLine-E.generatedLine;return A!==0||(A=w.generatedColumn-E.generatedColumn,A!==0)||(A=C(w.source,E.source),A!==0)||(A=w.originalLine-E.originalLine,A!==0)||(A=w.originalColumn-E.originalColumn,A!==0)?A:C(w.name,E.name)}e.compareByGeneratedPositionsInflated=b;function v(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function k(w,E,A){if(E=E||"",w&&(w[w.length-1]!=="/"&&E[0]!=="/"&&(w+="/"),E=w+E),A){var O=u(A);if(!O)throw new Error("sourceMapURL could not be parsed");if(O.path){var D=O.path.lastIndexOf("/");D>=0&&(O.path=O.path.substring(0,D+1))}E=i(c(O),E)}return r(E)}e.computeSourceURL=k}),Gi=z(e=>{var t=tt(),d=Object.prototype.hasOwnProperty,f=typeof Map<"u";function u(){this._array=[],this._set=f?new Map:Object.create(null)}u.fromArray=function(c,l){for(var o=new u,r=0,i=c.length;r<i;r++)o.add(c[r],l);return o},u.prototype.size=function(){return f?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(c,l){var o=f?c:t.toSetString(c),r=f?this.has(c):d.call(this._set,o),i=this._array.length;(!r||l)&&this._array.push(c),r||(f?this._set.set(c,i):this._set[o]=i)},u.prototype.has=function(c){if(f)return this._set.has(c);var l=t.toSetString(c);return d.call(this._set,l)},u.prototype.indexOf=function(c){if(f){var l=this._set.get(c);if(l>=0)return l}else{var o=t.toSetString(c);if(d.call(this._set,o))return this._set[o]}throw new Error('"'+c+'" is not in the set.')},u.prototype.at=function(c){if(c>=0&&c<this._array.length)return this._array[c];throw new Error("No element indexed by "+c)},u.prototype.toArray=function(){return this._array.slice()},e.ArraySet=u}),ji=z(e=>{var t=tt();function d(u,c){var l=u.generatedLine,o=c.generatedLine,r=u.generatedColumn,i=c.generatedColumn;return o>l||o==l&&i>=r||t.compareByGeneratedPositionsInflated(u,c)<=0}function f(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}f.prototype.unsortedForEach=function(u,c){this._array.forEach(u,c)},f.prototype.add=function(u){d(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))},f.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=f}),Lt=z(e=>{var t=Ii(),d=tt(),f=Gi().ArraySet,u=ji().MappingList;function c(l){l||(l={}),this._file=d.getArg(l,"file",null),this._sourceRoot=d.getArg(l,"sourceRoot",null),this._skipValidation=d.getArg(l,"skipValidation",!1),this._ignoreInvalidMapping=d.getArg(l,"ignoreInvalidMapping",!1),this._sources=new f,this._names=new f,this._mappings=new u,this._sourcesContents=null}c.prototype._version=3,c.fromSourceMap=function(l,o){var r=l.sourceRoot,i=new c(Object.assign(o||{},{file:l.file,sourceRoot:r}));return l.eachMapping(function(s){var p={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(p.source=s.source,r!=null&&(p.source=d.relative(r,p.source)),p.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(p.name=s.name)),i.addMapping(p)}),l.sources.forEach(function(s){var p=s;r!==null&&(p=d.relative(r,s)),i._sources.has(p)||i._sources.add(p);var h=l.sourceContentFor(s);h!=null&&i.setSourceContent(s,h)}),i},c.prototype.addMapping=function(l){var o=d.getArg(l,"generated"),r=d.getArg(l,"original",null),i=d.getArg(l,"source",null),s=d.getArg(l,"name",null);!this._skipValidation&&this._validateMapping(o,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:o.line,generatedColumn:o.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))},c.prototype.setSourceContent=function(l,o){var r=l;this._sourceRoot!=null&&(r=d.relative(this._sourceRoot,r)),o!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[d.toSetString(r)]=o):this._sourcesContents&&(delete this._sourcesContents[d.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(l,o,r){var i=o;if(o==null){if(l.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=l.file}var s=this._sourceRoot;s!=null&&(i=d.relative(s,i));var p=new f,h=new f;this._mappings.unsortedForEach(function(y){if(y.source===i&&y.originalLine!=null){var n=l.originalPositionFor({line:y.originalLine,column:y.originalColumn});n.source!=null&&(y.source=n.source,r!=null&&(y.source=d.join(r,y.source)),s!=null&&(y.source=d.relative(s,y.source)),y.originalLine=n.line,y.originalColumn=n.column,n.name!=null&&(y.name=n.name))}var a=y.source;a!=null&&!p.has(a)&&p.add(a);var g=y.name;g!=null&&!h.has(g)&&h.add(g)},this),this._sources=p,this._names=h,l.sources.forEach(function(y){var n=l.sourceContentFor(y);n!=null&&(r!=null&&(y=d.join(r,y)),s!=null&&(y=d.relative(s,y)),this.setSourceContent(y,n))},this)},c.prototype._validateMapping=function(l,o,r,i){if(o&&typeof o.line!="number"&&typeof o.column!="number"){var s="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(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(l&&"line"in l&&"column"in l&&l.line>0&&l.column>=0&&!o&&!r&&!i)){if(l&&"line"in l&&"column"in l&&o&&"line"in o&&"column"in o&&l.line>0&&l.column>=0&&o.line>0&&o.column>=0&&r)return;var s="Invalid mapping: "+JSON.stringify({generated:l,source:r,original:o,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}},c.prototype._serializeMappings=function(){for(var l=0,o=1,r=0,i=0,s=0,p=0,h="",y,n,a,g,m=this._mappings.toArray(),S=0,x=m.length;S<x;S++){if(n=m[S],y="",n.generatedLine!==o)for(l=0;n.generatedLine!==o;)y+=";",o++;else if(S>0){if(!d.compareByGeneratedPositionsInflated(n,m[S-1]))continue;y+=","}y+=t.encode(n.generatedColumn-l),l=n.generatedColumn,n.source!=null&&(g=this._sources.indexOf(n.source),y+=t.encode(g-p),p=g,y+=t.encode(n.originalLine-1-i),i=n.originalLine-1,y+=t.encode(n.originalColumn-r),r=n.originalColumn,n.name!=null&&(a=this._names.indexOf(n.name),y+=t.encode(a-s),s=a)),h+=y}return h},c.prototype._generateSourcesContent=function(l,o){return l.map(function(r){if(!this._sourcesContents)return null;o!=null&&(r=d.relative(o,r));var i=d.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},c.prototype.toJSON=function(){var l={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(l.file=this._file),this._sourceRoot!=null&&(l.sourceRoot=this._sourceRoot),this._sourcesContents&&(l.sourcesContent=this._generateSourcesContent(l.sources,l.sourceRoot)),l},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=c}),Ui=z(e=>{"use strict";var t=Lt(),d=new Set(["Atrule","Selector","Declaration"]);function f(u){let c=new t.SourceMapGenerator,l={line:1,column:0},o={line:0,column:0},r={line:1,column:0},i={generated:r},s=1,p=0,h=!1,y=u.node;u.node=function(g){if(g.loc&&g.loc.start&&d.has(g.type)){let m=g.loc.start.line,S=g.loc.start.column-1;(o.line!==m||o.column!==S)&&(o.line=m,o.column=S,l.line=s,l.column=p,h&&(h=!1,(l.line!==r.line||l.column!==r.column)&&c.addMapping(i)),h=!0,c.addMapping({source:g.loc.source,original:o,generated:l}))}y.call(this,g),h&&d.has(g.type)&&(r.line=s,r.column=p)};let n=u.emit;u.emit=function(g,m,S){for(let x=0;x<g.length;x++)g.charCodeAt(x)===10?(s++,p=0):p++;n(g,m,S)};let a=u.result;return u.result=function(){return h&&c.addMapping(i),{css:a(),map:c}},u}e.generateSourceMap=f}),Vi=z(e=>{"use strict";var t=J(),d=43,f=45,u=(s,p)=>{if(s===t.Delim&&(s=p),typeof s=="string"){let h=s.charCodeAt(0);return h>127?32768:h<<8}return s},c=[[t.Ident,t.Ident],[t.Ident,t.Function],[t.Ident,t.Url],[t.Ident,t.BadUrl],[t.Ident,"-"],[t.Ident,t.Number],[t.Ident,t.Percentage],[t.Ident,t.Dimension],[t.Ident,t.CDC],[t.Ident,t.LeftParenthesis],[t.AtKeyword,t.Ident],[t.AtKeyword,t.Function],[t.AtKeyword,t.Url],[t.AtKeyword,t.BadUrl],[t.AtKeyword,"-"],[t.AtKeyword,t.Number],[t.AtKeyword,t.Percentage],[t.AtKeyword,t.Dimension],[t.AtKeyword,t.CDC],[t.Hash,t.Ident],[t.Hash,t.Function],[t.Hash,t.Url],[t.Hash,t.BadUrl],[t.Hash,"-"],[t.Hash,t.Number],[t.Hash,t.Percentage],[t.Hash,t.Dimension],[t.Hash,t.CDC],[t.Dimension,t.Ident],[t.Dimension,t.Function],[t.Dimension,t.Url],[t.Dimension,t.BadUrl],[t.Dimension,"-"],[t.Dimension,t.Number],[t.Dimension,t.Percentage],[t.Dimension,t.Dimension],[t.Dimension,t.CDC],["#",t.Ident],["#",t.Function],["#",t.Url],["#",t.BadUrl],["#","-"],["#",t.Number],["#",t.Percentage],["#",t.Dimension],["#",t.CDC],["-",t.Ident],["-",t.Function],["-",t.Url],["-",t.BadUrl],["-","-"],["-",t.Number],["-",t.Percentage],["-",t.Dimension],["-",t.CDC],[t.Number,t.Ident],[t.Number,t.Function],[t.Number,t.Url],[t.Number,t.BadUrl],[t.Number,t.Number],[t.Number,t.Percentage],[t.Number,t.Dimension],[t.Number,"%"],[t.Number,t.CDC],["@",t.Ident],["@",t.Function],["@",t.Url],["@",t.BadUrl],["@","-"],["@",t.CDC],[".",t.Number],[".",t.Percentage],[".",t.Dimension],["+",t.Number],["+",t.Percentage],["+",t.Dimension],["/","*"]],l=c.concat([[t.Ident,t.Hash],[t.Dimension,t.Hash],[t.Hash,t.Hash],[t.AtKeyword,t.LeftParenthesis],[t.AtKeyword,t.String],[t.AtKeyword,t.Colon],[t.Percentage,t.Percentage],[t.Percentage,t.Dimension],[t.Percentage,t.Function],[t.Percentage,"-"],[t.RightParenthesis,t.Ident],[t.RightParenthesis,t.Function],[t.RightParenthesis,t.Percentage],[t.RightParenthesis,t.Dimension],[t.RightParenthesis,t.Hash],[t.RightParenthesis,"-"]]);function o(s){let p=new Set(s.map(([h,y])=>u(h)<<16|u(y)));return function(h,y,n){let a=u(y,n),g=n.charCodeAt(0);return(g===f&&y!==t.Ident&&y!==t.Function&&y!==t.CDC||g===d?p.has(h<<16|g<<8):p.has(h<<16|a))&&this.emit(" ",t.WhiteSpace,!0),a}}var r=o(c),i=o(l);e.safe=i,e.spec=r}),Hi=z(e=>{"use strict";var t=Ge(),d=Ui(),f=Vi(),u=J(),c=92;function l(i,s){if(typeof s=="function"){let p=null;i.children.forEach(h=>{p!==null&&s.call(this,p),this.node(h),p=h});return}i.children.forEach(this.node,this)}function o(i){t.tokenize(i,(s,p,h)=>{this.token(s,i.slice(p,h))})}function r(i){let s=new Map;for(let p in i.node){let h=i.node[p];typeof(h.generate||h)=="function"&&s.set(p,h.generate||h)}return function(p,h){let y="",n=0,a={node(m){if(s.has(m.type))s.get(m.type).call(g,m);else throw new Error("Unknown node type: "+m.type)},tokenBefore:f.safe,token(m,S){n=this.tokenBefore(n,m,S),this.emit(S,m,!1),m===u.Delim&&S.charCodeAt(0)===c&&this.emit(`
|
|
38
|
-
`,u.WhiteSpace,!0)},emit(m){y+=m},result(){return y}};h&&(typeof h.decorator=="function"&&(a=h.decorator(a)),h.sourceMap&&(a=d.generateSourceMap(a)),h.mode in f&&(a.tokenBefore=f[h.mode]));let g={node:m=>a.node(m),children:l,token:(m,S)=>a.token(m,S),tokenize:o};return a.node(p),a.result()}}e.createGenerator=r}),Ki=z(e=>{"use strict";var t=ze();function d(f){return{fromPlainObject(u){return f(u,{enter(c){c.children&&!(c.children instanceof t.List)&&(c.children=new t.List().fromArray(c.children))}}),u},toPlainObject(u){return f(u,{leave(c){c.children&&c.children instanceof t.List&&(c.children=c.children.toArray())}}),u}}}e.createConvertor=d}),Zi=z(e=>{"use strict";var{hasOwnProperty:t}=Object.prototype,d=function(){};function f(s){return typeof s=="function"?s:d}function u(s,p){return function(h,y,n){h.type===p&&s.call(this,h,y,n)}}function c(s,p){let h=p.structure,y=[];for(let n in h){if(t.call(h,n)===!1)continue;let a=h[n],g={name:n,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let m of a)m===null?g.nullable=!0:typeof m=="string"?g.type="node":Array.isArray(m)&&(g.type="list");g.type&&y.push(g)}return y.length?{context:p.walkContext,fields:y}:null}function l(s){let p={};for(let h in s.node)if(t.call(s.node,h)){let y=s.node[h];if(!y.structure)throw new Error("Missed `structure` field in `"+h+"` node type definition");p[h]=c(h,y)}return p}function o(s,p){let h=s.fields.slice(),y=s.context,n=typeof y=="string";return p&&h.reverse(),function(a,g,m,S){let x;n&&(x=g[y],g[y]=a);for(let C of h){let b=a[C.name];if(!C.nullable||b){if(C.type==="list"){if(p?b.reduceRight(S,!1):b.reduce(S,!1))return!0}else if(m(b))return!0}}n&&(g[y]=x)}}function r({StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}){return{Atrule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Rule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Declaration:{StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}}}function i(s){let p=l(s),h={},y={},n=Symbol("break-walk"),a=Symbol("skip-node");for(let x in p)t.call(p,x)&&p[x]!==null&&(h[x]=o(p[x],!1),y[x]=o(p[x],!0));let g=r(h),m=r(y),S=function(x,C){function b(O,D,W){let U=v.call(A,O,D,W);return U===n?!0:U===a?!1:!!(w.hasOwnProperty(O.type)&&w[O.type](O,A,b,E)||k.call(A,O,D,W)===n)}let v=d,k=d,w=h,E=(O,D,W,U)=>O||b(D,W,U),A={break:n,skip:a,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof C=="function")v=C;else if(C&&(v=f(C.enter),k=f(C.leave),C.reverse&&(w=y),C.visit)){if(g.hasOwnProperty(C.visit))w=C.reverse?m[C.visit]:g[C.visit];else if(!p.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(p).sort().join(", ")+")");v=u(v,C.visit),k=u(k,C.visit)}if(v===d&&k===d)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");b(x)};return S.break=n,S.skip=a,S.find=function(x,C){let b=null;return S(x,function(v,k,w){if(C.call(this,v,k,w))return b=v,n}),b},S.findLast=function(x,C){let b=null;return S(x,{reverse:!0,enter(v,k,w){if(C.call(this,v,k,w))return b=v,n}}),b},S.findAll=function(x,C){let b=[];return S(x,function(v,k,w){C.call(this,v,k,w)&&b.push(v)}),b},S}e.createWalker=i}),rt=z(e=>{"use strict";function t(o){return o}function d(o){let{min:r,max:i,comma:s}=o;return r===0&&i===0?s?"#?":"*":r===0&&i===1?"?":r===1&&i===0?s?"#":"+":r===1&&i===1?"":(s?"#":"")+(r===i?"{"+r+"}":"{"+r+","+(i!==0?i:"")+"}")}function f(o){
|
|
38
|
+
`,u.WhiteSpace,!0)},emit(m){y+=m},result(){return y}};h&&(typeof h.decorator=="function"&&(a=h.decorator(a)),h.sourceMap&&(a=d.generateSourceMap(a)),h.mode in f&&(a.tokenBefore=f[h.mode]));let g={node:m=>a.node(m),children:l,token:(m,S)=>a.token(m,S),tokenize:o};return a.node(p),a.result()}}e.createGenerator=r}),Ki=z(e=>{"use strict";var t=ze();function d(f){return{fromPlainObject(u){return f(u,{enter(c){c.children&&!(c.children instanceof t.List)&&(c.children=new t.List().fromArray(c.children))}}),u},toPlainObject(u){return f(u,{leave(c){c.children&&c.children instanceof t.List&&(c.children=c.children.toArray())}}),u}}}e.createConvertor=d}),Zi=z(e=>{"use strict";var{hasOwnProperty:t}=Object.prototype,d=function(){};function f(s){return typeof s=="function"?s:d}function u(s,p){return function(h,y,n){h.type===p&&s.call(this,h,y,n)}}function c(s,p){let h=p.structure,y=[];for(let n in h){if(t.call(h,n)===!1)continue;let a=h[n],g={name:n,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let m of a)m===null?g.nullable=!0:typeof m=="string"?g.type="node":Array.isArray(m)&&(g.type="list");g.type&&y.push(g)}return y.length?{context:p.walkContext,fields:y}:null}function l(s){let p={};for(let h in s.node)if(t.call(s.node,h)){let y=s.node[h];if(!y.structure)throw new Error("Missed `structure` field in `"+h+"` node type definition");p[h]=c(h,y)}return p}function o(s,p){let h=s.fields.slice(),y=s.context,n=typeof y=="string";return p&&h.reverse(),function(a,g,m,S){let x;n&&(x=g[y],g[y]=a);for(let C of h){let b=a[C.name];if(!C.nullable||b){if(C.type==="list"){if(p?b.reduceRight(S,!1):b.reduce(S,!1))return!0}else if(m(b))return!0}}n&&(g[y]=x)}}function r({StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}){return{Atrule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Rule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Declaration:{StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}}}function i(s){let p=l(s),h={},y={},n=Symbol("break-walk"),a=Symbol("skip-node");for(let x in p)t.call(p,x)&&p[x]!==null&&(h[x]=o(p[x],!1),y[x]=o(p[x],!0));let g=r(h),m=r(y),S=function(x,C){function b(O,D,W){let U=v.call(A,O,D,W);return U===n?!0:U===a?!1:!!(w.hasOwnProperty(O.type)&&w[O.type](O,A,b,E)||k.call(A,O,D,W)===n)}let v=d,k=d,w=h,E=(O,D,W,U)=>O||b(D,W,U),A={break:n,skip:a,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof C=="function")v=C;else if(C&&(v=f(C.enter),k=f(C.leave),C.reverse&&(w=y),C.visit)){if(g.hasOwnProperty(C.visit))w=C.reverse?m[C.visit]:g[C.visit];else if(!p.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(p).sort().join(", ")+")");v=u(v,C.visit),k=u(k,C.visit)}if(v===d&&k===d)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");b(x)};return S.break=n,S.skip=a,S.find=function(x,C){let b=null;return S(x,function(v,k,w){if(C.call(this,v,k,w))return b=v,n}),b},S.findLast=function(x,C){let b=null;return S(x,{reverse:!0,enter(v,k,w){if(C.call(this,v,k,w))return b=v,n}}),b},S.findAll=function(x,C){let b=[];return S(x,function(v,k,w){C.call(this,v,k,w)&&b.push(v)}),b},S}e.createWalker=i}),rt=z(e=>{"use strict";function t(o){return o}function d(o){let{min:r,max:i,comma:s}=o;return r===0&&i===0?s?"#?":"*":r===0&&i===1?"?":r===1&&i===0?s?"#":"+":r===1&&i===1?"":(s?"#":"")+(r===i?"{"+r+"}":"{"+r+","+(i!==0?i:"")+"}")}function f(o){if(o.type==="Range")return" ["+(o.min===null?"-\u221E":o.min)+","+(o.max===null?"\u221E":o.max)+"]";throw new Error("Unknown node type `"+o.type+"`")}function u(o,r,i,s){let p=o.combinator===" "||s?o.combinator:" "+o.combinator+" ",h=o.terms.map(y=>c(y,r,i,s)).join(p);return o.explicit||i?(s||h[0]===","?"[":"[ ")+h+(s?"]":" ]"):h}function c(o,r,i,s){let p;switch(o.type){case"Group":p=u(o,r,i,s)+(o.disallowEmpty?"!":"");break;case"Multiplier":return c(o.term,r,i,s)+r(d(o),o);case"Type":p="<"+o.name+(o.opts?r(f(o.opts),o.opts):"")+">";break;case"Property":p="<'"+o.name+"'>";break;case"Keyword":p=o.name;break;case"AtKeyword":p="@"+o.name;break;case"Function":p=o.name+"(";break;case"String":case"Token":p=o.value;break;case"Comma":p=",";break;default:throw new Error("Unknown node type `"+o.type+"`")}return r(p,o)}function l(o,r){let i=t,s=!1,p=!1;return typeof r=="function"?i=r:r&&(s=!!r.forceBraces,p=!!r.compact,typeof r.decorate=="function"&&(i=r.decorate)),c(o,i,s,p)}e.generate=l}),$i=z(e=>{"use strict";var t=et(),d=rt(),f={offset:0,line:1,column:1};function u(i,s){let p=i.tokens,h=i.longestMatch,y=h<p.length&&p[h].node||null,n=y!==s?y:null,a=0,g=0,m=0,S="",x,C;for(let b=0;b<p.length;b++){let v=p[b].value;b===h&&(g=v.length,a=S.length),n!==null&&p[b].node===n&&(b<=h?m++:m=0),S+=v}return h===p.length||m>1?(x=c(n||s,"end")||l(f,S),C=l(x)):(x=c(n,"start")||l(c(s,"start")||f,S.slice(0,a)),C=c(n,"end")||l(x,S.substr(a,g))),{css:S,mismatchOffset:a,mismatchLength:g,start:x,end:C}}function c(i,s){let p=i&&i.loc&&i.loc[s];return p?"line"in p?l(p):p:null}function l({offset:i,line:s,column:p},h){let y={offset:i,line:s,column:p};if(h){let n=h.split(/\n|\r\n?|\f/);y.offset+=h.length,y.line+=n.length-1,y.column=n.length===1?y.column+h.length:n.pop().length+1}return y}var o=function(i,s){let p=t.createCustomError("SyntaxReferenceError",i+(s?" `"+s+"`":""));return p.reference=s,p},r=function(i,s,p,h){let y=t.createCustomError("SyntaxMatchError",i),{css:n,mismatchOffset:a,mismatchLength:g,start:m,end:S}=u(h,p);return y.rawMessage=i,y.syntax=s?d.generate(s):"<generic>",y.css=n,y.mismatchOffset=a,y.mismatchLength=g,y.message=i+`
|
|
39
39
|
syntax: `+y.syntax+`
|
|
40
40
|
value: `+(n||"<empty string>")+`
|
|
41
41
|
--------`+new Array(y.mismatchOffset+1).join("-")+"^",Object.assign(y,m),y.loc={source:p&&p.loc&&p.loc.source||"<unknown>",start:m,end:S},y};e.SyntaxMatchError=r,e.SyntaxReferenceError=o}),nt=z(e=>{"use strict";var t=new Map,d=new Map,f=45,u=i,c=s,l=r;function o(p,h){return h=h||0,p.length-h>=2&&p.charCodeAt(h)===f&&p.charCodeAt(h+1)===f}function r(p,h){if(h=h||0,p.length-h>=3&&p.charCodeAt(h)===f&&p.charCodeAt(h+1)!==f){let y=p.indexOf("-",h+2);if(y!==-1)return p.substring(h,y+1)}return""}function i(p){if(t.has(p))return t.get(p);let h=p.toLowerCase(),y=t.get(h);if(y===void 0){let n=o(h,0),a=n?"":r(h,0);y=Object.freeze({basename:h.substr(a.length),name:h,prefix:a,vendor:a,custom:n})}return t.set(p,y),y}function s(p){if(d.has(p))return d.get(p);let h=p,y=p[0];y==="/"?y=p[1]==="/"?"//":"/":y!=="_"&&y!=="*"&&y!=="$"&&y!=="#"&&y!=="+"&&y!=="&"&&(y="");let n=o(h,y.length);if(!n&&(h=h.toLowerCase(),d.has(h))){let S=d.get(h);return d.set(p,S),S}let a=n?"":r(h,y.length),g=h.substr(0,y.length+a.length),m=Object.freeze({basename:h.substr(g.length),name:h.substr(y.length),hack:y,vendor:a,prefix:g,custom:n});return d.set(p,m),m}e.isCustomProperty=o,e.keyword=u,e.property=c,e.vendorPrefix=l}),qt=z(e=>{"use strict";var t=["initial","inherit","unset","revert","revert-layer"];e.cssWideKeywords=t}),Xi=z((e,t)=>{"use strict";var d=ge(),f=J(),u=xe(),c=43,l=45,o=110,r=!0,i=!1;function s(a,g){return a!==null&&a.type===f.Delim&&a.value.charCodeAt(0)===g}function p(a,g,m){for(;a!==null&&(a.type===f.WhiteSpace||a.type===f.Comment);)a=m(++g);return g}function h(a,g,m,S){if(!a)return 0;let x=a.value.charCodeAt(g);if(x===c||x===l){if(m)return 0;g++}for(;g<a.value.length;g++)if(!d.isDigit(a.value.charCodeAt(g)))return 0;return S+1}function y(a,g,m){let S=!1,x=p(a,g,m);if(a=m(x),a===null)return g;if(a.type!==f.Number)if(s(a,c)||s(a,l)){if(S=!0,x=p(m(++x),x,m),a=m(x),a===null||a.type!==f.Number)return 0}else return g;if(!S){let C=a.value.charCodeAt(0);if(C!==c&&C!==l)return 0}return h(a,S?0:1,S,x)}function n(a,g){let m=0;if(!a)return 0;if(a.type===f.Number)return h(a,0,i,m);if(a.type===f.Ident&&a.value.charCodeAt(0)===l){if(!u.cmpChar(a.value,1,o))return 0;switch(a.value.length){case 2:return y(g(++m),m,g);case 3:return a.value.charCodeAt(2)!==l?0:(m=p(g(++m),m,g),a=g(m),h(a,0,r,m));default:return a.value.charCodeAt(2)!==l?0:h(a,3,r,m)}}else if(a.type===f.Ident||s(a,c)&&g(m+1).type===f.Ident){if(a.type!==f.Ident&&(a=g(++m)),a===null||!u.cmpChar(a.value,0,o))return 0;switch(a.value.length){case 1:return y(g(++m),m,g);case 2:return a.value.charCodeAt(1)!==l?0:(m=p(g(++m),m,g),a=g(m),h(a,0,r,m));default:return a.value.charCodeAt(1)!==l?0:h(a,2,r,m)}}else if(a.type===f.Dimension){let S=a.value.charCodeAt(0),x=S===c||S===l?1:0,C=x;for(;C<a.value.length&&d.isDigit(a.value.charCodeAt(C));C++);return C===x||!u.cmpChar(a.value,C,o)?0:C+1===a.value.length?y(g(++m),m,g):a.value.charCodeAt(C+1)!==l?0:C+2===a.value.length?(m=p(g(++m),m,g),a=g(m),h(a,0,r,m)):h(a,C+2,r,m)}return 0}t.exports=n}),Yi=z((e,t)=>{"use strict";var d=ge(),f=J(),u=xe(),c=43,l=45,o=63,r=117;function i(n,a){return n!==null&&n.type===f.Delim&&n.value.charCodeAt(0)===a}function s(n,a){return n.value.charCodeAt(0)===a}function p(n,a,g){let m=0;for(let S=a;S<n.value.length;S++){let x=n.value.charCodeAt(S);if(x===l&&g&&m!==0)return p(n,a+m+1,!1),6;if(!d.isHexDigit(x)||++m>6)return 0}return m}function h(n,a,g){if(!n)return 0;for(;i(g(a),o);){if(++n>6)return 0;a++}return a}function y(n,a){let g=0;if(n===null||n.type!==f.Ident||!u.cmpChar(n.value,0,r)||(n=a(++g),n===null))return 0;if(i(n,c))return n=a(++g),n===null?0:n.type===f.Ident?h(p(n,0,!0),++g,a):i(n,o)?h(1,++g,a):0;if(n.type===f.Number){let m=p(n,1,!0);return m===0?0:(n=a(++g),n===null?g:n.type===f.Dimension||n.type===f.Number?!s(n,l)||!p(n,1,!1)?0:g+1:h(m,g,a))}return n.type===f.Dimension?h(p(n,1,!0),++g,a):0}t.exports=y}),Qi=z(e=>{"use strict";var t=qt(),d=Xi(),f=Yi(),u=J(),c=ge(),l=xe(),o=["calc(","-moz-calc(","-webkit-calc("],r=new Map([[u.Function,u.RightParenthesis],[u.LeftParenthesis,u.RightParenthesis],[u.LeftSquareBracket,u.RightSquareBracket],[u.LeftCurlyBracket,u.RightCurlyBracket]]);function i(R,_){return _<R.length?R.charCodeAt(_):0}function s(R,_){return l.cmpStr(R,0,R.length,_)}function p(R,_){for(let M=0;M<_.length;M++)if(s(R,_[M]))return!0;return!1}function h(R,_){return _!==R.length-2?!1:i(R,_)===92&&c.isDigit(i(R,_+1))}function y(R,_,M){if(R&&R.type==="Range"){let j=Number(M!==void 0&&M!==_.length?_.substr(0,M):_);if(isNaN(j)||R.min!==null&&j<R.min&&typeof R.min!="string"||R.max!==null&&j>R.max&&typeof R.max!="string")return!0}return!1}function n(R,_){let M=0,j=[],K=0;e:do{switch(R.type){case u.RightCurlyBracket:case u.RightParenthesis:case u.RightSquareBracket:if(R.type!==M)break e;if(M=j.pop(),j.length===0){K++;break e}break;case u.Function:case u.LeftParenthesis:case u.LeftSquareBracket:case u.LeftCurlyBracket:j.push(M),M=r.get(R.type);break}K++}while(R=_(K));return K}function a(R){return function(_,M,j){return _===null?0:_.type===u.Function&&p(_.value,o)?n(_,M):R(_,M,j)}}function g(R){return function(_){return _===null||_.type!==R?0:1}}function m(R){if(R===null||R.type!==u.Ident)return 0;let _=R.value.toLowerCase();return p(_,t.cssWideKeywords)||s(_,"default")?0:1}function S(R){return R===null||R.type!==u.Ident||i(R.value,0)!==45||i(R.value,1)!==45?0:1}function x(R){if(R===null||R.type!==u.Hash)return 0;let _=R.value.length;if(_!==4&&_!==5&&_!==7&&_!==9)return 0;for(let M=1;M<_;M++)if(!c.isHexDigit(i(R.value,M)))return 0;return 1}function C(R){return R===null||R.type!==u.Hash||!c.isIdentifierStart(i(R.value,1),i(R.value,2),i(R.value,3))?0:1}function b(R,_){if(!R)return 0;let M=0,j=[],K=0;e:do{switch(R.type){case u.BadString:case u.BadUrl:break e;case u.RightCurlyBracket:case u.RightParenthesis:case u.RightSquareBracket:if(R.type!==M)break e;M=j.pop();break;case u.Semicolon:if(M===0)break e;break;case u.Delim:if(M===0&&R.value==="!")break e;break;case u.Function:case u.LeftParenthesis:case u.LeftSquareBracket:case u.LeftCurlyBracket:j.push(M),M=r.get(R.type);break}K++}while(R=_(K));return K}function v(R,_){if(!R)return 0;let M=0,j=[],K=0;e:do{switch(R.type){case u.BadString:case u.BadUrl:break e;case u.RightCurlyBracket:case u.RightParenthesis:case u.RightSquareBracket:if(R.type!==M)break e;M=j.pop();break;case u.Function:case u.LeftParenthesis:case u.LeftSquareBracket:case u.LeftCurlyBracket:j.push(M),M=r.get(R.type);break}K++}while(R=_(K));return K}function k(R){return R&&(R=new Set(R)),function(_,M,j){if(_===null||_.type!==u.Dimension)return 0;let K=l.consumeNumber(_.value,0);if(R!==null){let I=_.value.indexOf("\\",K),L=I===-1||!h(_.value,I)?_.value.substr(K):_.value.substring(K,I);if(R.has(L.toLowerCase())===!1)return 0}return y(j,_.value,K)?0:1}}function w(R,_,M){return R===null||R.type!==u.Percentage||y(M,R.value,R.value.length-1)?0:1}function E(R){return typeof R!="function"&&(R=function(){return 0}),function(_,M,j){return _!==null&&_.type===u.Number&&Number(_.value)===0?1:R(_,M,j)}}function A(R,_,M){if(R===null)return 0;let j=l.consumeNumber(R.value,0);return j!==R.value.length&&!h(R.value,j)||y(M,R.value,j)?0:1}function O(R,_,M){if(R===null||R.type!==u.Number)return 0;let j=i(R.value,0)===43||i(R.value,0)===45?1:0;for(;j<R.value.length;j++)if(!c.isDigit(i(R.value,j)))return 0;return y(M,R.value,j)?0:1}var D={"ident-token":g(u.Ident),"function-token":g(u.Function),"at-keyword-token":g(u.AtKeyword),"hash-token":g(u.Hash),"string-token":g(u.String),"bad-string-token":g(u.BadString),"url-token":g(u.Url),"bad-url-token":g(u.BadUrl),"delim-token":g(u.Delim),"number-token":g(u.Number),"percentage-token":g(u.Percentage),"dimension-token":g(u.Dimension),"whitespace-token":g(u.WhiteSpace),"CDO-token":g(u.CDO),"CDC-token":g(u.CDC),"colon-token":g(u.Colon),"semicolon-token":g(u.Semicolon),"comma-token":g(u.Comma),"[-token":g(u.LeftSquareBracket),"]-token":g(u.RightSquareBracket),"(-token":g(u.LeftParenthesis),")-token":g(u.RightParenthesis),"{-token":g(u.LeftCurlyBracket),"}-token":g(u.RightCurlyBracket)},W={string:g(u.String),ident:g(u.Ident),percentage:a(w),zero:E(),number:a(A),integer:a(O),"custom-ident":m,"custom-property-name":S,"hex-color":x,"id-selector":C,"an-plus-b":d,urange:f,"declaration-value":b,"any-value":v};function U(R){let{angle:_,decibel:M,frequency:j,flex:K,length:I,resolution:L,semitones:V,time:N}=R||{};return{dimension:a(k(null)),angle:a(k(_)),decibel:a(k(M)),frequency:a(k(j)),flex:a(k(K)),length:a(E(k(I))),resolution:a(k(L)),semitones:a(k(V)),time:a(k(N))}}function H(R){return{...D,...W,...U(R)}}e.createDemensionTypes=U,e.createGenericTypes=H,e.productionTypes=W,e.tokenTypes=D}),Ji=z(e=>{"use strict";var t=["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"],d=["deg","grad","rad","turn"],f=["s","ms"],u=["hz","khz"],c=["dpi","dpcm","dppx","x"],l=["fr"],o=["db"],r=["st"];e.angle=d,e.decibel=o,e.flex=l,e.frequency=u,e.length=t,e.resolution=c,e.semitones=r,e.time=f}),ea=z((e,t)=>{"use strict";var d=Ge(),f={decorator(l){let o=[],r=null;return{...l,node(i){let s=r;r=i,l.node.call(this,i),r=s},emit(i,s,p){o.push({type:s,value:i,node:p?null:r})},result(){return o}}}};function u(l){let o=[];return d.tokenize(l,(r,i,s)=>o.push({type:r,value:l.slice(i,s),node:null})),o}function c(l,o){return typeof l=="string"?u(l):o.generate(l,f)}t.exports=c}),Pt=z(e=>{"use strict";var t=et();function d(f,u,c){return Object.assign(t.createCustomError("SyntaxError",f),{input:u,offset:c,rawMessage:f,message:f+`
|
|
@@ -97,7 +97,7 @@ plugins: [
|
|
|
97
97
|
`)}let h=o.split(/\r\n?|\n|\f/),y=Math.max(1,r-s)-1,n=Math.min(r+s,h.length+1),a=Math.max(4,String(n).length)+1,g=0;i+=(u.length-1)*(h[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>d&&(g=i-f+3,i=f-2);for(let m=y;m<=n;m++)m>=0&&m<h.length&&(h[m]=h[m].replace(/\t/g,u),h[m]=(g>0&&h[m].length>g?"\u2026":"")+h[m].substr(g,d-2)+(h[m].length>g+d-1?"\u2026":""));return[p(y,r),new Array(i+a+2).join("-")+"^",p(r,n)].filter(Boolean).join(`
|
|
98
98
|
`)}function l(o,r,i,s,p){return Object.assign(t.createCustomError("SyntaxError",o),{source:r,offset:i,line:s,column:p,sourceFragment(h){return c({source:r,line:s,column:p},isNaN(h)?0:h)},get formattedMessage(){return`Parse error: ${o}
|
|
99
99
|
`+c({source:r,line:s,column:p},2)}})}e.SyntaxError=l}),Ra=z(e=>{"use strict";var t=ee();function d(f){let u=this.createList(),c=!1,l={recognizer:f};for(;!this.eof;){switch(this.tokenType){case t.Comment:this.next();continue;case t.WhiteSpace:c=!0,this.next();continue}let o=f.getNode.call(this,l);if(o===void 0)break;c&&(f.onWhiteSpace&&f.onWhiteSpace.call(this,o,u,l),c=!1),u.push(o)}return c&&f.onWhiteSpace&&f.onWhiteSpace.call(this,null,u,l),u}e.readSequence=d}),Ia=z(e=>{"use strict";var t=De(),d=Na(),f=Ve(),u=Ra(),c=Fr(),l=ot(),o=Ce(),r=ee(),i=Ue(),s=()=>{},p=33,h=35,y=59,n=123,a=0;function g(C){return function(){return this[C]()}}function m(C){let b=Object.create(null);for(let v in C){let k=C[v],w=k.parse||k;w&&(b[v]=w)}return b}function S(C){let b={context:Object.create(null),scope:Object.assign(Object.create(null),C.scope),atrule:m(C.atrule),pseudo:m(C.pseudo),node:m(C.node)};for(let v in C.parseContext)switch(typeof C.parseContext[v]){case"function":b.context[v]=C.parseContext[v];break;case"string":b.context[v]=g(C.parseContext[v]);break}return{config:b,...b,...b.node}}function x(C){let b="",v="<unknown>",k=!1,w=s,E=!1,A=new c.OffsetToLocation,O=Object.assign(new l.TokenStream,S(C||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:u.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(D){return D===n?1:0},consumeUntilLeftCurlyBracketOrSemicolon(D){return D===n||D===y?1:0},consumeUntilExclamationMarkOrSemicolon(D){return D===p||D===y?1:0},consumeUntilSemicolonIncluded(D){return D===y?2:0},createList(){return new t.List},createSingleNodeList(D){return new t.List().appendData(D)},getFirstListNode(D){return D&&D.first},getLastListNode(D){return D&&D.last},parseWithFallback(D,W){let U=this.tokenIndex;try{return D.call(this)}catch(H){if(E)throw H;let R=W.call(this,U);return E=!0,w(H,R),E=!1,R}},lookupNonWSType(D){let W;do if(W=this.lookupType(D++),W!==r.WhiteSpace)return W;while(W!==a);return a},charCodeAt(D){return D>=0&&D<b.length?b.charCodeAt(D):0},substring(D,W){return b.substring(D,W)},substrToCursor(D){return this.source.substring(D,this.tokenStart)},cmpChar(D,W){return o.cmpChar(b,D,W)},cmpStr(D,W,U){return o.cmpStr(b,D,W,U)},consume(D){let W=this.tokenStart;return this.eat(D),this.substrToCursor(W)},consumeFunctionName(){let D=b.substring(this.tokenStart,this.tokenEnd-1);return this.eat(r.Function),D},consumeNumber(D){let W=b.substring(this.tokenStart,o.consumeNumber(b,this.tokenStart));return this.eat(D),W},eat(D){if(this.tokenType!==D){let W=i[D].slice(0,-6).replace(/-/g," ").replace(/^./,R=>R.toUpperCase()),U=`${/[[\](){}]/.test(W)?`"${W}"`:W} is expected`,H=this.tokenStart;switch(D){case r.Ident:this.tokenType===r.Function||this.tokenType===r.Url?(H=this.tokenEnd-1,U="Identifier is expected but function found"):U="Identifier is expected";break;case r.Hash:this.isDelim(h)&&(this.next(),H++,U="Name is expected");break;case r.Percentage:this.tokenType===r.Number&&(H=this.tokenEnd,U="Percent sign is expected");break}this.error(U,H)}this.next()},eatIdent(D){(this.tokenType!==r.Ident||this.lookupValue(0,D)===!1)&&this.error(`Identifier "${D}" is expected`),this.next()},eatDelim(D){this.isDelim(D)||this.error(`Delim "${String.fromCharCode(D)}" is expected`),this.next()},getLocation(D,W){return k?A.getLocationRange(D,W,v):null},getLocationFromList(D){if(k){let W=this.getFirstListNode(D),U=this.getLastListNode(D);return A.getLocationRange(W!==null?W.loc.start.offset-A.startOffset:this.tokenStart,U!==null?U.loc.end.offset-A.startOffset:this.tokenStart,v)}return null},error(D,W){let U=typeof W<"u"&&W<b.length?A.getLocation(W):this.eof?A.getLocation(o.findWhiteSpaceStart(b,b.length-1)):A.getLocation(this.tokenStart);throw new d.SyntaxError(D||"Unexpected input",b,U.offset,U.line,U.column)}});return Object.assign(function(D,W){b=D,W=W||{},O.setSource(b,f.tokenize),A.setSource(b,W.offset,W.line,W.column),v=W.filename||"<unknown>",k=!!W.positions,w=typeof W.onParseError=="function"?W.onParseError:s,E=!1,O.parseAtrulePrelude="parseAtrulePrelude"in W?!!W.parseAtrulePrelude:!0,O.parseRulePrelude="parseRulePrelude"in W?!!W.parseRulePrelude:!0,O.parseValue="parseValue"in W?!!W.parseValue:!0,O.parseCustomProperty="parseCustomProperty"in W?!!W.parseCustomProperty:!1;let{context:U="default",onComment:H}=W;if(!(U in O.context))throw new Error("Unknown context `"+U+"`");typeof H=="function"&&O.forEachToken((_,M,j)=>{if(_===r.Comment){let K=O.getLocation(M,j),I=o.cmpStr(b,j-2,j,"*/")?b.slice(M+2,j-2):b.slice(M+2,j);H(I,K)}});let R=O.context[U].call(O,W);return O.eof||O.error(),R},{SyntaxError:d.SyntaxError,config:O.config})}e.createParser=x}),Ga=z(e=>{"use strict";var t=Lt(),d=new Set(["Atrule","Selector","Declaration"]);function f(u){let c=new t.SourceMapGenerator,l={line:1,column:0},o={line:0,column:0},r={line:1,column:0},i={generated:r},s=1,p=0,h=!1,y=u.node;u.node=function(g){if(g.loc&&g.loc.start&&d.has(g.type)){let m=g.loc.start.line,S=g.loc.start.column-1;(o.line!==m||o.column!==S)&&(o.line=m,o.column=S,l.line=s,l.column=p,h&&(h=!1,(l.line!==r.line||l.column!==r.column)&&c.addMapping(i)),h=!0,c.addMapping({source:g.loc.source,original:o,generated:l}))}y.call(this,g),h&&d.has(g.type)&&(r.line=s,r.column=p)};let n=u.emit;u.emit=function(g,m,S){for(let x=0;x<g.length;x++)g.charCodeAt(x)===10?(s++,p=0):p++;n(g,m,S)};let a=u.result;return u.result=function(){return h&&c.addMapping(i),{css:a(),map:c}},u}e.generateSourceMap=f}),ja=z(e=>{"use strict";var t=ee(),d=43,f=45,u=(s,p)=>{if(s===t.Delim&&(s=p),typeof s=="string"){let h=s.charCodeAt(0);return h>127?32768:h<<8}return s},c=[[t.Ident,t.Ident],[t.Ident,t.Function],[t.Ident,t.Url],[t.Ident,t.BadUrl],[t.Ident,"-"],[t.Ident,t.Number],[t.Ident,t.Percentage],[t.Ident,t.Dimension],[t.Ident,t.CDC],[t.Ident,t.LeftParenthesis],[t.AtKeyword,t.Ident],[t.AtKeyword,t.Function],[t.AtKeyword,t.Url],[t.AtKeyword,t.BadUrl],[t.AtKeyword,"-"],[t.AtKeyword,t.Number],[t.AtKeyword,t.Percentage],[t.AtKeyword,t.Dimension],[t.AtKeyword,t.CDC],[t.Hash,t.Ident],[t.Hash,t.Function],[t.Hash,t.Url],[t.Hash,t.BadUrl],[t.Hash,"-"],[t.Hash,t.Number],[t.Hash,t.Percentage],[t.Hash,t.Dimension],[t.Hash,t.CDC],[t.Dimension,t.Ident],[t.Dimension,t.Function],[t.Dimension,t.Url],[t.Dimension,t.BadUrl],[t.Dimension,"-"],[t.Dimension,t.Number],[t.Dimension,t.Percentage],[t.Dimension,t.Dimension],[t.Dimension,t.CDC],["#",t.Ident],["#",t.Function],["#",t.Url],["#",t.BadUrl],["#","-"],["#",t.Number],["#",t.Percentage],["#",t.Dimension],["#",t.CDC],["-",t.Ident],["-",t.Function],["-",t.Url],["-",t.BadUrl],["-","-"],["-",t.Number],["-",t.Percentage],["-",t.Dimension],["-",t.CDC],[t.Number,t.Ident],[t.Number,t.Function],[t.Number,t.Url],[t.Number,t.BadUrl],[t.Number,t.Number],[t.Number,t.Percentage],[t.Number,t.Dimension],[t.Number,"%"],[t.Number,t.CDC],["@",t.Ident],["@",t.Function],["@",t.Url],["@",t.BadUrl],["@","-"],["@",t.CDC],[".",t.Number],[".",t.Percentage],[".",t.Dimension],["+",t.Number],["+",t.Percentage],["+",t.Dimension],["/","*"]],l=c.concat([[t.Ident,t.Hash],[t.Dimension,t.Hash],[t.Hash,t.Hash],[t.AtKeyword,t.LeftParenthesis],[t.AtKeyword,t.String],[t.AtKeyword,t.Colon],[t.Percentage,t.Percentage],[t.Percentage,t.Dimension],[t.Percentage,t.Function],[t.Percentage,"-"],[t.RightParenthesis,t.Ident],[t.RightParenthesis,t.Function],[t.RightParenthesis,t.Percentage],[t.RightParenthesis,t.Dimension],[t.RightParenthesis,t.Hash],[t.RightParenthesis,"-"]]);function o(s){let p=new Set(s.map(([h,y])=>u(h)<<16|u(y)));return function(h,y,n){let a=u(y,n),g=n.charCodeAt(0);return(g===f&&y!==t.Ident&&y!==t.Function&&y!==t.CDC||g===d?p.has(h<<16|g<<8):p.has(h<<16|a))&&this.emit(" ",t.WhiteSpace,!0),a}}var r=o(c),i=o(l);e.safe=i,e.spec=r}),Ua=z(e=>{"use strict";var t=Ve(),d=Ga(),f=ja(),u=ee(),c=92;function l(i,s){if(typeof s=="function"){let p=null;i.children.forEach(h=>{p!==null&&s.call(this,p),this.node(h),p=h});return}i.children.forEach(this.node,this)}function o(i){t.tokenize(i,(s,p,h)=>{this.token(s,i.slice(p,h))})}function r(i){let s=new Map;for(let p in i.node){let h=i.node[p];typeof(h.generate||h)=="function"&&s.set(p,h.generate||h)}return function(p,h){let y="",n=0,a={node(m){if(s.has(m.type))s.get(m.type).call(g,m);else throw new Error("Unknown node type: "+m.type)},tokenBefore:f.safe,token(m,S){n=this.tokenBefore(n,m,S),this.emit(S,m,!1),m===u.Delim&&S.charCodeAt(0)===c&&this.emit(`
|
|
100
|
-
`,u.WhiteSpace,!0)},emit(m){y+=m},result(){return y}};h&&(typeof h.decorator=="function"&&(a=h.decorator(a)),h.sourceMap&&(a=d.generateSourceMap(a)),h.mode in f&&(a.tokenBefore=f[h.mode]));let g={node:m=>a.node(m),children:l,token:(m,S)=>a.token(m,S),tokenize:o};return a.node(p),a.result()}}e.createGenerator=r}),Va=z(e=>{"use strict";var t=De();function d(f){return{fromPlainObject(u){return f(u,{enter(c){c.children&&!(c.children instanceof t.List)&&(c.children=new t.List().fromArray(c.children))}}),u},toPlainObject(u){return f(u,{leave(c){c.children&&c.children instanceof t.List&&(c.children=c.children.toArray())}}),u}}}e.createConvertor=d}),Ha=z(e=>{"use strict";var{hasOwnProperty:t}=Object.prototype,d=function(){};function f(s){return typeof s=="function"?s:d}function u(s,p){return function(h,y,n){h.type===p&&s.call(this,h,y,n)}}function c(s,p){let h=p.structure,y=[];for(let n in h){if(t.call(h,n)===!1)continue;let a=h[n],g={name:n,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let m of a)m===null?g.nullable=!0:typeof m=="string"?g.type="node":Array.isArray(m)&&(g.type="list");g.type&&y.push(g)}return y.length?{context:p.walkContext,fields:y}:null}function l(s){let p={};for(let h in s.node)if(t.call(s.node,h)){let y=s.node[h];if(!y.structure)throw new Error("Missed `structure` field in `"+h+"` node type definition");p[h]=c(h,y)}return p}function o(s,p){let h=s.fields.slice(),y=s.context,n=typeof y=="string";return p&&h.reverse(),function(a,g,m,S){let x;n&&(x=g[y],g[y]=a);for(let C of h){let b=a[C.name];if(!C.nullable||b){if(C.type==="list"){if(p?b.reduceRight(S,!1):b.reduce(S,!1))return!0}else if(m(b))return!0}}n&&(g[y]=x)}}function r({StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}){return{Atrule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Rule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Declaration:{StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}}}function i(s){let p=l(s),h={},y={},n=Symbol("break-walk"),a=Symbol("skip-node");for(let x in p)t.call(p,x)&&p[x]!==null&&(h[x]=o(p[x],!1),y[x]=o(p[x],!0));let g=r(h),m=r(y),S=function(x,C){function b(O,D,W){let U=v.call(A,O,D,W);return U===n?!0:U===a?!1:!!(w.hasOwnProperty(O.type)&&w[O.type](O,A,b,E)||k.call(A,O,D,W)===n)}let v=d,k=d,w=h,E=(O,D,W,U)=>O||b(D,W,U),A={break:n,skip:a,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof C=="function")v=C;else if(C&&(v=f(C.enter),k=f(C.leave),C.reverse&&(w=y),C.visit)){if(g.hasOwnProperty(C.visit))w=C.reverse?m[C.visit]:g[C.visit];else if(!p.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(p).sort().join(", ")+")");v=u(v,C.visit),k=u(k,C.visit)}if(v===d&&k===d)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");b(x)};return S.break=n,S.skip=a,S.find=function(x,C){let b=null;return S(x,function(v,k,w){if(C.call(this,v,k,w))return b=v,n}),b},S.findLast=function(x,C){let b=null;return S(x,{reverse:!0,enter(v,k,w){if(C.call(this,v,k,w))return b=v,n}}),b},S.findAll=function(x,C){let b=[];return S(x,function(v,k,w){C.call(this,v,k,w)&&b.push(v)}),b},S}e.createWalker=i}),lt=z(e=>{"use strict";function t(o){return o}function d(o){let{min:r,max:i,comma:s}=o;return r===0&&i===0?s?"#?":"*":r===0&&i===1?"?":r===1&&i===0?s?"#":"+":r===1&&i===1?"":(s?"#":"")+(r===i?"{"+r+"}":"{"+r+","+(i!==0?i:"")+"}")}function f(o){
|
|
100
|
+
`,u.WhiteSpace,!0)},emit(m){y+=m},result(){return y}};h&&(typeof h.decorator=="function"&&(a=h.decorator(a)),h.sourceMap&&(a=d.generateSourceMap(a)),h.mode in f&&(a.tokenBefore=f[h.mode]));let g={node:m=>a.node(m),children:l,token:(m,S)=>a.token(m,S),tokenize:o};return a.node(p),a.result()}}e.createGenerator=r}),Va=z(e=>{"use strict";var t=De();function d(f){return{fromPlainObject(u){return f(u,{enter(c){c.children&&!(c.children instanceof t.List)&&(c.children=new t.List().fromArray(c.children))}}),u},toPlainObject(u){return f(u,{leave(c){c.children&&c.children instanceof t.List&&(c.children=c.children.toArray())}}),u}}}e.createConvertor=d}),Ha=z(e=>{"use strict";var{hasOwnProperty:t}=Object.prototype,d=function(){};function f(s){return typeof s=="function"?s:d}function u(s,p){return function(h,y,n){h.type===p&&s.call(this,h,y,n)}}function c(s,p){let h=p.structure,y=[];for(let n in h){if(t.call(h,n)===!1)continue;let a=h[n],g={name:n,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let m of a)m===null?g.nullable=!0:typeof m=="string"?g.type="node":Array.isArray(m)&&(g.type="list");g.type&&y.push(g)}return y.length?{context:p.walkContext,fields:y}:null}function l(s){let p={};for(let h in s.node)if(t.call(s.node,h)){let y=s.node[h];if(!y.structure)throw new Error("Missed `structure` field in `"+h+"` node type definition");p[h]=c(h,y)}return p}function o(s,p){let h=s.fields.slice(),y=s.context,n=typeof y=="string";return p&&h.reverse(),function(a,g,m,S){let x;n&&(x=g[y],g[y]=a);for(let C of h){let b=a[C.name];if(!C.nullable||b){if(C.type==="list"){if(p?b.reduceRight(S,!1):b.reduce(S,!1))return!0}else if(m(b))return!0}}n&&(g[y]=x)}}function r({StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}){return{Atrule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Rule:{StyleSheet:s,Atrule:p,Rule:h,Block:y},Declaration:{StyleSheet:s,Atrule:p,Rule:h,Block:y,DeclarationList:n}}}function i(s){let p=l(s),h={},y={},n=Symbol("break-walk"),a=Symbol("skip-node");for(let x in p)t.call(p,x)&&p[x]!==null&&(h[x]=o(p[x],!1),y[x]=o(p[x],!0));let g=r(h),m=r(y),S=function(x,C){function b(O,D,W){let U=v.call(A,O,D,W);return U===n?!0:U===a?!1:!!(w.hasOwnProperty(O.type)&&w[O.type](O,A,b,E)||k.call(A,O,D,W)===n)}let v=d,k=d,w=h,E=(O,D,W,U)=>O||b(D,W,U),A={break:n,skip:a,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof C=="function")v=C;else if(C&&(v=f(C.enter),k=f(C.leave),C.reverse&&(w=y),C.visit)){if(g.hasOwnProperty(C.visit))w=C.reverse?m[C.visit]:g[C.visit];else if(!p.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(p).sort().join(", ")+")");v=u(v,C.visit),k=u(k,C.visit)}if(v===d&&k===d)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");b(x)};return S.break=n,S.skip=a,S.find=function(x,C){let b=null;return S(x,function(v,k,w){if(C.call(this,v,k,w))return b=v,n}),b},S.findLast=function(x,C){let b=null;return S(x,{reverse:!0,enter(v,k,w){if(C.call(this,v,k,w))return b=v,n}}),b},S.findAll=function(x,C){let b=[];return S(x,function(v,k,w){C.call(this,v,k,w)&&b.push(v)}),b},S}e.createWalker=i}),lt=z(e=>{"use strict";function t(o){return o}function d(o){let{min:r,max:i,comma:s}=o;return r===0&&i===0?s?"#?":"*":r===0&&i===1?"?":r===1&&i===0?s?"#":"+":r===1&&i===1?"":(s?"#":"")+(r===i?"{"+r+"}":"{"+r+","+(i!==0?i:"")+"}")}function f(o){if(o.type==="Range")return" ["+(o.min===null?"-\u221E":o.min)+","+(o.max===null?"\u221E":o.max)+"]";throw new Error("Unknown node type `"+o.type+"`")}function u(o,r,i,s){let p=o.combinator===" "||s?o.combinator:" "+o.combinator+" ",h=o.terms.map(y=>c(y,r,i,s)).join(p);return o.explicit||i?(s||h[0]===","?"[":"[ ")+h+(s?"]":" ]"):h}function c(o,r,i,s){let p;switch(o.type){case"Group":p=u(o,r,i,s)+(o.disallowEmpty?"!":"");break;case"Multiplier":return c(o.term,r,i,s)+r(d(o),o);case"Type":p="<"+o.name+(o.opts?r(f(o.opts),o.opts):"")+">";break;case"Property":p="<'"+o.name+"'>";break;case"Keyword":p=o.name;break;case"AtKeyword":p="@"+o.name;break;case"Function":p=o.name+"(";break;case"String":case"Token":p=o.value;break;case"Comma":p=",";break;default:throw new Error("Unknown node type `"+o.type+"`")}return r(p,o)}function l(o,r){let i=t,s=!1,p=!1;return typeof r=="function"?i=r:r&&(s=!!r.forceBraces,p=!!r.compact,typeof r.decorate=="function"&&(i=r.decorate)),c(o,i,s,p)}e.generate=l}),Ka=z(e=>{"use strict";var t=st(),d=lt(),f={offset:0,line:1,column:1};function u(i,s){let p=i.tokens,h=i.longestMatch,y=h<p.length&&p[h].node||null,n=y!==s?y:null,a=0,g=0,m=0,S="",x,C;for(let b=0;b<p.length;b++){let v=p[b].value;b===h&&(g=v.length,a=S.length),n!==null&&p[b].node===n&&(b<=h?m++:m=0),S+=v}return h===p.length||m>1?(x=c(n||s,"end")||l(f,S),C=l(x)):(x=c(n,"start")||l(c(s,"start")||f,S.slice(0,a)),C=c(n,"end")||l(x,S.substr(a,g))),{css:S,mismatchOffset:a,mismatchLength:g,start:x,end:C}}function c(i,s){let p=i&&i.loc&&i.loc[s];return p?"line"in p?l(p):p:null}function l({offset:i,line:s,column:p},h){let y={offset:i,line:s,column:p};if(h){let n=h.split(/\n|\r\n?|\f/);y.offset+=h.length,y.line+=n.length-1,y.column=n.length===1?y.column+h.length:n.pop().length+1}return y}var o=function(i,s){let p=t.createCustomError("SyntaxReferenceError",i+(s?" `"+s+"`":""));return p.reference=s,p},r=function(i,s,p,h){let y=t.createCustomError("SyntaxMatchError",i),{css:n,mismatchOffset:a,mismatchLength:g,start:m,end:S}=u(h,p);return y.rawMessage=i,y.syntax=s?d.generate(s):"<generic>",y.css=n,y.mismatchOffset=a,y.mismatchLength=g,y.message=i+`
|
|
101
101
|
syntax: `+y.syntax+`
|
|
102
102
|
value: `+(n||"<empty string>")+`
|
|
103
103
|
--------`+new Array(y.mismatchOffset+1).join("-")+"^",Object.assign(y,m),y.loc={source:p&&p.loc&&p.loc.source||"<unknown>",start:m,end:S},y};e.SyntaxMatchError=r,e.SyntaxReferenceError=o}),ut=z(e=>{"use strict";var t=new Map,d=new Map,f=45,u=i,c=s,l=r;function o(p,h){return h=h||0,p.length-h>=2&&p.charCodeAt(h)===f&&p.charCodeAt(h+1)===f}function r(p,h){if(h=h||0,p.length-h>=3&&p.charCodeAt(h)===f&&p.charCodeAt(h+1)!==f){let y=p.indexOf("-",h+2);if(y!==-1)return p.substring(h,y+1)}return""}function i(p){if(t.has(p))return t.get(p);let h=p.toLowerCase(),y=t.get(h);if(y===void 0){let n=o(h,0),a=n?"":r(h,0);y=Object.freeze({basename:h.substr(a.length),name:h,prefix:a,vendor:a,custom:n})}return t.set(p,y),y}function s(p){if(d.has(p))return d.get(p);let h=p,y=p[0];y==="/"?y=p[1]==="/"?"//":"/":y!=="_"&&y!=="*"&&y!=="$"&&y!=="#"&&y!=="+"&&y!=="&"&&(y="");let n=o(h,y.length);if(!n&&(h=h.toLowerCase(),d.has(h))){let S=d.get(h);return d.set(p,S),S}let a=n?"":r(h,y.length),g=h.substr(0,y.length+a.length),m=Object.freeze({basename:h.substr(g.length),name:h.substr(y.length),hack:y,vendor:a,prefix:g,custom:n});return d.set(p,m),m}e.isCustomProperty=o,e.keyword=u,e.property=c,e.vendorPrefix=l}),_r=z(e=>{"use strict";var t=["initial","inherit","unset","revert","revert-layer"];e.cssWideKeywords=t}),Za=z((e,t)=>{"use strict";var d=fe(),f=ee(),u=Ce(),c=43,l=45,o=110,r=!0,i=!1;function s(a,g){return a!==null&&a.type===f.Delim&&a.value.charCodeAt(0)===g}function p(a,g,m){for(;a!==null&&(a.type===f.WhiteSpace||a.type===f.Comment);)a=m(++g);return g}function h(a,g,m,S){if(!a)return 0;let x=a.value.charCodeAt(g);if(x===c||x===l){if(m)return 0;g++}for(;g<a.value.length;g++)if(!d.isDigit(a.value.charCodeAt(g)))return 0;return S+1}function y(a,g,m){let S=!1,x=p(a,g,m);if(a=m(x),a===null)return g;if(a.type!==f.Number)if(s(a,c)||s(a,l)){if(S=!0,x=p(m(++x),x,m),a=m(x),a===null||a.type!==f.Number)return 0}else return g;if(!S){let C=a.value.charCodeAt(0);if(C!==c&&C!==l)return 0}return h(a,S?0:1,S,x)}function n(a,g){let m=0;if(!a)return 0;if(a.type===f.Number)return h(a,0,i,m);if(a.type===f.Ident&&a.value.charCodeAt(0)===l){if(!u.cmpChar(a.value,1,o))return 0;switch(a.value.length){case 2:return y(g(++m),m,g);case 3:return a.value.charCodeAt(2)!==l?0:(m=p(g(++m),m,g),a=g(m),h(a,0,r,m));default:return a.value.charCodeAt(2)!==l?0:h(a,3,r,m)}}else if(a.type===f.Ident||s(a,c)&&g(m+1).type===f.Ident){if(a.type!==f.Ident&&(a=g(++m)),a===null||!u.cmpChar(a.value,0,o))return 0;switch(a.value.length){case 1:return y(g(++m),m,g);case 2:return a.value.charCodeAt(1)!==l?0:(m=p(g(++m),m,g),a=g(m),h(a,0,r,m));default:return a.value.charCodeAt(1)!==l?0:h(a,2,r,m)}}else if(a.type===f.Dimension){let S=a.value.charCodeAt(0),x=S===c||S===l?1:0,C=x;for(;C<a.value.length&&d.isDigit(a.value.charCodeAt(C));C++);return C===x||!u.cmpChar(a.value,C,o)?0:C+1===a.value.length?y(g(++m),m,g):a.value.charCodeAt(C+1)!==l?0:C+2===a.value.length?(m=p(g(++m),m,g),a=g(m),h(a,0,r,m)):h(a,C+2,r,m)}return 0}t.exports=n}),$a=z((e,t)=>{"use strict";var d=fe(),f=ee(),u=Ce(),c=43,l=45,o=63,r=117;function i(n,a){return n!==null&&n.type===f.Delim&&n.value.charCodeAt(0)===a}function s(n,a){return n.value.charCodeAt(0)===a}function p(n,a,g){let m=0;for(let S=a;S<n.value.length;S++){let x=n.value.charCodeAt(S);if(x===l&&g&&m!==0)return p(n,a+m+1,!1),6;if(!d.isHexDigit(x)||++m>6)return 0}return m}function h(n,a,g){if(!n)return 0;for(;i(g(a),o);){if(++n>6)return 0;a++}return a}function y(n,a){let g=0;if(n===null||n.type!==f.Ident||!u.cmpChar(n.value,0,r)||(n=a(++g),n===null))return 0;if(i(n,c))return n=a(++g),n===null?0:n.type===f.Ident?h(p(n,0,!0),++g,a):i(n,o)?h(1,++g,a):0;if(n.type===f.Number){let m=p(n,1,!0);return m===0?0:(n=a(++g),n===null?g:n.type===f.Dimension||n.type===f.Number?!s(n,l)||!p(n,1,!1)?0:g+1:h(m,g,a))}return n.type===f.Dimension?h(p(n,1,!0),++g,a):0}t.exports=y}),Xa=z((e,t)=>{"use strict";var d=_r(),f=Za(),u=$a(),c=ee(),l=fe(),o=Ce(),r=["calc(","-moz-calc(","-webkit-calc("],i=new Map([[c.Function,c.RightParenthesis],[c.LeftParenthesis,c.RightParenthesis],[c.LeftSquareBracket,c.RightSquareBracket],[c.LeftCurlyBracket,c.RightCurlyBracket]]),s=["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"],p=["deg","grad","rad","turn"],h=["s","ms"],y=["hz","khz"],n=["dpi","dpcm","dppx","x"],a=["fr"],g=["db"],m=["st"];function S(L,V){return V<L.length?L.charCodeAt(V):0}function x(L,V){return o.cmpStr(L,0,L.length,V)}function C(L,V){for(let N=0;N<V.length;N++)if(x(L,V[N]))return!0;return!1}function b(L,V){return V!==L.length-2?!1:S(L,V)===92&&l.isDigit(S(L,V+1))}function v(L,V,N){if(L&&L.type==="Range"){let Z=Number(N!==void 0&&N!==V.length?V.substr(0,N):V);if(isNaN(Z)||L.min!==null&&Z<L.min&&typeof L.min!="string"||L.max!==null&&Z>L.max&&typeof L.max!="string")return!0}return!1}function k(L,V){let N=0,Z=[],X=0;e:do{switch(L.type){case c.RightCurlyBracket:case c.RightParenthesis:case c.RightSquareBracket:if(L.type!==N)break e;if(N=Z.pop(),Z.length===0){X++;break e}break;case c.Function:case c.LeftParenthesis:case c.LeftSquareBracket:case c.LeftCurlyBracket:Z.push(N),N=i.get(L.type);break}X++}while(L=V(X));return X}function w(L){return function(V,N,Z){return V===null?0:V.type===c.Function&&C(V.value,r)?k(V,N):L(V,N,Z)}}function E(L){return function(V){return V===null||V.type!==L?0:1}}function A(L){if(L===null||L.type!==c.Ident)return 0;let V=L.value.toLowerCase();return C(V,d.cssWideKeywords)||x(V,"default")?0:1}function O(L){return L===null||L.type!==c.Ident||S(L.value,0)!==45||S(L.value,1)!==45?0:1}function D(L){if(L===null||L.type!==c.Hash)return 0;let V=L.value.length;if(V!==4&&V!==5&&V!==7&&V!==9)return 0;for(let N=1;N<V;N++)if(!l.isHexDigit(S(L.value,N)))return 0;return 1}function W(L){return L===null||L.type!==c.Hash||!l.isIdentifierStart(S(L.value,1),S(L.value,2),S(L.value,3))?0:1}function U(L,V){if(!L)return 0;let N=0,Z=[],X=0;e:do{switch(L.type){case c.BadString:case c.BadUrl:break e;case c.RightCurlyBracket:case c.RightParenthesis:case c.RightSquareBracket:if(L.type!==N)break e;N=Z.pop();break;case c.Semicolon:if(N===0)break e;break;case c.Delim:if(N===0&&L.value==="!")break e;break;case c.Function:case c.LeftParenthesis:case c.LeftSquareBracket:case c.LeftCurlyBracket:Z.push(N),N=i.get(L.type);break}X++}while(L=V(X));return X}function H(L,V){if(!L)return 0;let N=0,Z=[],X=0;e:do{switch(L.type){case c.BadString:case c.BadUrl:break e;case c.RightCurlyBracket:case c.RightParenthesis:case c.RightSquareBracket:if(L.type!==N)break e;N=Z.pop();break;case c.Function:case c.LeftParenthesis:case c.LeftSquareBracket:case c.LeftCurlyBracket:Z.push(N),N=i.get(L.type);break}X++}while(L=V(X));return X}function R(L){return L&&(L=new Set(L)),function(V,N,Z){if(V===null||V.type!==c.Dimension)return 0;let X=o.consumeNumber(V.value,0);if(L!==null){let $=V.value.indexOf("\\",X),Y=$===-1||!b(V.value,$)?V.value.substr(X):V.value.substring(X,$);if(L.has(Y.toLowerCase())===!1)return 0}return v(Z,V.value,X)?0:1}}function _(L,V,N){return L===null||L.type!==c.Percentage||v(N,L.value,L.value.length-1)?0:1}function M(L){return typeof L!="function"&&(L=function(){return 0}),function(V,N,Z){return V!==null&&V.type===c.Number&&Number(V.value)===0?1:L(V,N,Z)}}function j(L,V,N){if(L===null)return 0;let Z=o.consumeNumber(L.value,0);return Z!==L.value.length&&!b(L.value,Z)||v(N,L.value,Z)?0:1}function K(L,V,N){if(L===null||L.type!==c.Number)return 0;let Z=S(L.value,0)===43||S(L.value,0)===45?1:0;for(;Z<L.value.length;Z++)if(!l.isDigit(S(L.value,Z)))return 0;return v(N,L.value,Z)?0:1}var I={"ident-token":E(c.Ident),"function-token":E(c.Function),"at-keyword-token":E(c.AtKeyword),"hash-token":E(c.Hash),"string-token":E(c.String),"bad-string-token":E(c.BadString),"url-token":E(c.Url),"bad-url-token":E(c.BadUrl),"delim-token":E(c.Delim),"number-token":E(c.Number),"percentage-token":E(c.Percentage),"dimension-token":E(c.Dimension),"whitespace-token":E(c.WhiteSpace),"CDO-token":E(c.CDO),"CDC-token":E(c.CDC),"colon-token":E(c.Colon),"semicolon-token":E(c.Semicolon),"comma-token":E(c.Comma),"[-token":E(c.LeftSquareBracket),"]-token":E(c.RightSquareBracket),"(-token":E(c.LeftParenthesis),")-token":E(c.RightParenthesis),"{-token":E(c.LeftCurlyBracket),"}-token":E(c.RightCurlyBracket),string:E(c.String),ident:E(c.Ident),"custom-ident":A,"custom-property-name":O,"hex-color":D,"id-selector":W,"an-plus-b":f,urange:u,"declaration-value":U,"any-value":H,dimension:w(R(null)),angle:w(R(p)),decibel:w(R(g)),frequency:w(R(y)),flex:w(R(a)),length:w(M(R(s))),resolution:w(R(n)),semitones:w(R(m)),time:w(R(h)),percentage:w(_),zero:M(),number:w(j),integer:w(K)};t.exports=I}),Ya=z((e,t)=>{"use strict";var d=Ve(),f={decorator(l){let o=[],r=null;return{...l,node(i){let s=r;r=i,l.node.call(this,i),r=s},emit(i,s,p){o.push({type:s,value:i,node:p?null:r})},result(){return o}}}};function u(l){let o=[];return d.tokenize(l,(r,i,s)=>o.push({type:r,value:l.slice(i,s),node:null})),o}function c(l,o){return typeof l=="string"?u(l):o.generate(l,f)}t.exports=c}),Lr=z(e=>{"use strict";var t=st();function d(f,u,c){return Object.assign(t.createCustomError("SyntaxError",f),{input:u,offset:c,rawMessage:f,message:f+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as f}from"../tools/notifiers/reporter.js";import{envConfig as u}from"../config/env-config.js";import{telemetry as m}from"../../cli/telemetry/index.js";import{stopAllCompilers as C}from"./esbuild.js";import{getCodeframe as M}from"../utils/codeframes/codeframes.js";import{shutdowner as w}from"../tools/shutdowner.js";class S extends Error{errors;warnings;constructor({errors:e=[],warnings:r=[]}){super(),this.errors=e,this.warnings=r}}async function T({errors:n,warnings:e}){const r=await d(n,"error"),s=await d(e,"warning");e.forEach((t,o)=>{c.warn(s[o])}),n.forEach((t,o)=>{const i=t.location?.file||"";i&&i.includes("node_modules/")?(c.error(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t)})):(c.contentError(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t),scope:"content"}))}),n.length&&u.isBuildMode&&(await C(),await w.exitWithCode(1))}async function d(n,e){
|
|
1
|
+
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as f}from"../tools/notifiers/reporter.js";import{envConfig as u}from"../config/env-config.js";import{telemetry as m}from"../../cli/telemetry/index.js";import{stopAllCompilers as C}from"./esbuild.js";import{getCodeframe as M}from"../utils/codeframes/codeframes.js";import{shutdowner as w}from"../tools/shutdowner.js";class S extends Error{errors;warnings;constructor({errors:e=[],warnings:r=[]}){super(),this.errors=e,this.warnings=r}}async function T({errors:n,warnings:e}){const r=await d(n,"error"),s=await d(e,"warning");e.forEach((t,o)=>{c.warn(s[o])}),n.forEach((t,o)=>{const i=t.location?.file||"";i&&i.includes("node_modules/")?(c.error(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t)})):(c.contentError(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t),scope:"content"}))}),n.length&&u.isBuildMode&&(await C(),await w.exitWithCode(1))}async function d(n,e){return u.REDOCLY_LOG_FORMAT==="JSON"?n.map(r=>JSON.stringify(r)):await E.formatMessages(n,{kind:e,color:!1,terminalWidth:0})}function x(n,e){if(!e?.lineText)return{line:1,column:1,lines:n.split(`
|
|
2
2
|
`),hasMatched:!1};const r=n.split(`
|
|
3
3
|
`),{lineText:s}=e,t=i=>{const a=i.indexOf(s);return a===-1?null:a};if(e.line&&e.line<=r.length&&t(r[e.line-1]))return{line:e.line,column:e.column||1,lines:r,hasMatched:!0};const o=r.findIndex(i=>t(i)!==null);if(o>=0){const i=t(r[o]);return{line:o+1,column:(i??0)+1,lines:r,hasMatched:!0}}return{line:1,column:1,lines:r,hasMatched:!1}}function _(n,e,r,s){const{line:t,column:o,lines:i,hasMatched:a}=x(r,s),{frame:h,start:p}=M({start:{line:t,character:o},end:{line:t,character:o+(s?.lineText?.length||0)},lines:i},!0),g=`${n}::${e}::${t}`,l={message:n,sourceFileRelativePath:e,sourceFileLocation:p,codeframe:h,hasMatched:a};return f.getCompilationProblem(g)||f.reportCompilationError({type:"ERROR",severity:"ERROR",...l}),l}export{S as EsbuildError,T as esbuildLogger,_ as reportEsbuildError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const R=3,g=1e3;function w(a,t){switch(a){case"fixed":return async()=>{await new Promise(e=>setTimeout(e,t))};case"exponential":return async e=>{const s=t*Math.pow(2,e-1);await new Promise(n=>setTimeout(n,s))};
|
|
1
|
+
const R=3,g=1e3;function w(a,t){switch(a){case"fixed":return async()=>{await new Promise(e=>setTimeout(e,t))};case"exponential":return async e=>{const s=t*Math.pow(2,e-1);await new Promise(n=>setTimeout(n,s))};default:return async()=>{}}}const m=async(a,t={})=>{const{maxRetries:e=3,retryStrategy:s="exponential",delay:n=1e3,logger:r,messages:o={retry:"Operation failed. Retrying...",maxRetriesReached:"Max retries reached"}}=t,y=w(s,n);let i=0;for(;;)try{return await a()}catch(c){if(i++,r&&r.warn(`${o.retry}: ${c.message}`),i>e)throw r&&r.error(`${o.maxRetriesReached}: ${c.message}`),c;await y(i)}};export{m as retryAsyncOperation};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import*as g from"node:path";import{envConfig as R}from"../../config/env-config.js";import{maskEmail as E}from"./helpers/privacy/mask-email.js";import{maskSubject as T}from"./helpers/privacy/mask-subject.js";import{removePii as C}from"./helpers/privacy/remove-pii.js";import{removePiiFromUrl as $}from"./helpers/privacy/remove-pii-from-url.js";import{red as x,green as A,bold as j,blue as p,gray as i,yellow as P,cyan as w}from"./helpers/colors.js";var n;(function(e){e.INFO="INFO",e.WARN="WARN",e.ERROR="ERROR",e.SUCCESS="SUCCESS",e.VERBOSE="VERBOSE",e.HTTP="HTTP"})(n||(n={}));const b={[n.VERBOSE]:0,[n.HTTP]:1,[n.INFO]:2,[n.SUCCESS]:2,[n.WARN]:3,[n.ERROR]:4};function W(e,s){return b[e]>=b[s]}function L(e){if(!e)return;const s=e.toUpperCase();if(s in n)return s}const F={[n.INFO]:p,[n.SUCCESS]:A,[n.WARN]:P,[n.ERROR]:x,[n.HTTP]:w,[n.VERBOSE]:i},I={"%ap":e=>p(g.resolve(e)),"%rp":e=>p(g.relative(process.cwd(),e)),"%s":e=>e?.toString(),"%c":e=>p(e)},v={format(e){
|
|
1
|
+
import*as g from"node:path";import{envConfig as R}from"../../config/env-config.js";import{maskEmail as E}from"./helpers/privacy/mask-email.js";import{maskSubject as T}from"./helpers/privacy/mask-subject.js";import{removePii as C}from"./helpers/privacy/remove-pii.js";import{removePiiFromUrl as $}from"./helpers/privacy/remove-pii-from-url.js";import{red as x,green as A,bold as j,blue as p,gray as i,yellow as P,cyan as w}from"./helpers/colors.js";var n;(function(e){e.INFO="INFO",e.WARN="WARN",e.ERROR="ERROR",e.SUCCESS="SUCCESS",e.VERBOSE="VERBOSE",e.HTTP="HTTP"})(n||(n={}));const b={[n.VERBOSE]:0,[n.HTTP]:1,[n.INFO]:2,[n.SUCCESS]:2,[n.WARN]:3,[n.ERROR]:4};function W(e,s){return b[e]>=b[s]}function L(e){if(!e)return;const s=e.toUpperCase();if(s in n)return s}const F={[n.INFO]:p,[n.SUCCESS]:A,[n.WARN]:P,[n.ERROR]:x,[n.HTTP]:w,[n.VERBOSE]:i},I={"%ap":e=>p(g.resolve(e)),"%rp":e=>p(g.relative(process.cwd(),e)),"%s":e=>e?.toString(),"%c":e=>p(e)},v={format(e){return R.REDOCLY_LOG_FORMAT==="JSON"?M(e):H(e)},interpolate(e,...s){const a=Object.keys(I).map(t=>`(${t})`).join("|"),m=new RegExp(a,"g");let o,u=e;for(;(o=m.exec(e))!==null;){o.index===m.lastIndex&&m.lastIndex++;const t=s.shift();if(t===void 0)break;const r=o[0];u=u.replace(r,I[r](t))}return u}};var z=v;const H=e=>{const{level:s,message:a,duration:m,context:o}=e,u=R.isRuntimeMode,t=[F[s](j(`[${s.toLowerCase()}]`))];if(u&&t.push(i(`time="${N()}"`)),o){const{email:r,ipAddress:f,subject:l,method:d,pathname:c,statusCode:S,teams:h,apiFunction:O}=o;O&&t.push(p(`fn="${O}"`)),S&&t.push(U(S)),e.level===n.HTTP&&(d&&t.push(i(`method="${d}"`)),c&&t.push(i(`path="${$(c)}"`))),f&&t.push(i(`ip="${f}"`)),r&&t.push(i(`email="${E(r)}"`)),l&&t.push(i(`sub="${T(l)}"`)),h?.length&&t.push(i(`teams="${h.join(", ")}"`))}if(a){const r=u?`msg="${String(C(a)).replaceAll?.('"','\\"')}"`:String(a);t.push(r)}return e.level===n.HTTP&&o?.userAgent&&t.push(i(`agent="${o.userAgent}"`)),m&&t.push(y(m)),t.join(" ")+`
|
|
2
2
|
`},M=({context:e,message:s,...a})=>{const{method:m,pathname:o,statusCode:u,userAgent:t,subject:r,email:f,teams:l,apiFunction:d}=e||{},c={...a,email:f&&E(f),subject:r&&T(r),teams:l,apiFunction:d,...a.level===n.HTTP?{method:m,pathname:String($(o)),statusCode:u,userAgent:t}:{message:String(C(s))}};return R.isRuntimeMode&&(c.time=N()),JSON.stringify(c,["time","level","scope","message","duration","method","pathname","statusCode","userAgent","subject","ipAddress","email","apiFunction"])+`
|
|
3
3
|
`},U=e=>(e%500<100?x:e%400<100?P:A)(`status="${e}"`),N=()=>{let e=new Date().getTimezoneOffset()*6e4;return new Date(Date.now()-e).toISOString().slice(0,-1)},y=e=>i(`dur="${Math.round(e)}ms"`);export{n as LogLevel,z as default,L as parseLogLevel,W as shouldLog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"dotenv";import*as a from"path";import{simpleGit as v}from"simple-git";import{envConfig as i,reloadEnvConfig as o}from"../../config/env-config.js";import{sanitizeBranchName as p}from"../../utils/envs/sanitize-branch-name.js";async function m(e){try{return(await v(e??process.cwd()).revparse(["--abbrev-ref","HEAD"])).trim()}catch{return""}}async function d(e){n.config({path:a.resolve(e??"",".env")}),o();const t=i.PUBLIC_REDOCLY_BRANCH_NAME||await m(e);if(t){const s=p(t);n.config({path:a.resolve(e??"",`.env.branch.${s}`),override:!0}),o()}const c=i.REDOCLY_ENV;let r;switch(c){case"production":r=".env.production";break;case"preview":r=".env.preview";break;
|
|
1
|
+
import*as n from"dotenv";import*as a from"path";import{simpleGit as v}from"simple-git";import{envConfig as i,reloadEnvConfig as o}from"../../config/env-config.js";import{sanitizeBranchName as p}from"../../utils/envs/sanitize-branch-name.js";async function m(e){try{return(await v(e??process.cwd()).revparse(["--abbrev-ref","HEAD"])).trim()}catch{return""}}async function d(e){n.config({path:a.resolve(e??"",".env")}),o();const t=i.PUBLIC_REDOCLY_BRANCH_NAME||await m(e);if(t){const s=p(t);n.config({path:a.resolve(e??"",`.env.branch.${s}`),override:!0}),o()}const c=i.REDOCLY_ENV;let r;switch(c){case"production":r=".env.production";break;case"preview":r=".env.preview";break;default:r=".env.development";break}n.config({path:a.resolve(e??"",r),override:!0}),o()}export{d as loadEnvVariables};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ServerRoutes as e}from"../../../../constants/common.js";import{EntitlementsProvider as m}from"../../../entitlements/entitlements-provider.js";import{withPathPrefix as n}from"@redocly/theme/core/utils";import{mcpOAuthProtectedResourceHandler as p,mcpOAuthAuthorizationServerHandler as s,mcpDynamicClientRegistrationHandler as A,mcpAuthorizationHandler as C,mcpTokenPortalHandler as l,mcpCallbackHandler as i}from"./mcp-oauth.js";function d(t,o){const c=o.getConfig().mcp,a=m.instance().canAccessFeature("mcp");!c?.hide&&!c?.docs?.hide
|
|
1
|
+
import{ServerRoutes as e}from"../../../../constants/common.js";import{EntitlementsProvider as m}from"../../../entitlements/entitlements-provider.js";import{withPathPrefix as n}from"@redocly/theme/core/utils";import{mcpOAuthProtectedResourceHandler as p,mcpOAuthAuthorizationServerHandler as s,mcpDynamicClientRegistrationHandler as A,mcpAuthorizationHandler as C,mcpTokenPortalHandler as l,mcpCallbackHandler as i}from"./mcp-oauth.js";function d(t,o){const c=o.getConfig().mcp,a=m.instance().canAccessFeature("mcp");!c?.hide&&!c?.docs?.hide&&a&&(t.get(`${e.MCP_OAUTH_PROTECTED_RESOURCE}${n("/mcp")}`,p()),t.get(e.MCP_OAUTH_AUTHORIZATION_SERVER,s()),t.post(n(e.MCP_DYNAMIC_CLIENT_REGISTRATION),A()),t.get(n(e.MCP_AUTHORIZATION),C()),t.post(n(e.MCP_TOKEN_PORTAL),l()),t.get(n(e.MCP_CALLBACK),i()),t.get(n(`${e.MCP_CALLBACK}/*`),i()))}export{d as installMcpAuthRoutes};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/realm",
|
|
3
|
-
"version": "0.135.0-next.
|
|
3
|
+
"version": "0.135.0-next.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@markdoc/markdoc": "0.5.2",
|
|
22
22
|
"@opentelemetry/api": "1.9.0",
|
|
23
23
|
"@opentelemetry/context-zone": "2.0.1",
|
|
24
|
-
"@opentelemetry/core": "2.0
|
|
24
|
+
"@opentelemetry/core": "2.8.0",
|
|
25
25
|
"@opentelemetry/exporter-trace-otlp-http": "0.214.0",
|
|
26
|
-
"@opentelemetry/instrumentation": "0.
|
|
27
|
-
"@opentelemetry/instrumentation-http": "0.
|
|
28
|
-
"@opentelemetry/resources": "2.
|
|
29
|
-
"@opentelemetry/sdk-trace-node": "2.
|
|
30
|
-
"@opentelemetry/sdk-trace-web": "2.
|
|
26
|
+
"@opentelemetry/instrumentation": "0.219.0",
|
|
27
|
+
"@opentelemetry/instrumentation-http": "0.219.0",
|
|
28
|
+
"@opentelemetry/resources": "2.8.0",
|
|
29
|
+
"@opentelemetry/sdk-trace-node": "2.8.0",
|
|
30
|
+
"@opentelemetry/sdk-trace-web": "2.8.0",
|
|
31
31
|
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
32
32
|
"@redocly/ajv": "8.18.0",
|
|
33
|
-
"@redocly/openapi-core": "2.
|
|
33
|
+
"@redocly/openapi-core": "2.32.1",
|
|
34
34
|
"@shikijs/transformers": "3.21.0",
|
|
35
35
|
"@tanstack/react-query": "5.62.3",
|
|
36
36
|
"@tanstack/react-table": "8.21.3",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dotenv": "16.4.5",
|
|
48
48
|
"drizzle-orm": "^0.45.0",
|
|
49
49
|
"enquirer": "2.3.6",
|
|
50
|
-
"esbuild": "0.
|
|
50
|
+
"esbuild": "0.28.1",
|
|
51
51
|
"escape-carriage": "^1.3.1",
|
|
52
52
|
"fetch-to-node": "^2.1.0",
|
|
53
53
|
"fflate": "0.7.4",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"htmlparser2": "8.0.2",
|
|
59
59
|
"i18next": "22.4.15",
|
|
60
60
|
"is-glob": "4.0.3",
|
|
61
|
-
"js-yaml": "4.
|
|
61
|
+
"js-yaml": "4.2.0",
|
|
62
62
|
"lru-cache": "11.1.0",
|
|
63
63
|
"minimatch": "10.2.4",
|
|
64
64
|
"mri": "1.2.0",
|
|
@@ -86,19 +86,19 @@
|
|
|
86
86
|
"ulid": "^2.3.0",
|
|
87
87
|
"web-vitals": "3.3.1",
|
|
88
88
|
"workerpool": "9.2.0",
|
|
89
|
-
"ws": "^8.
|
|
89
|
+
"ws": "^8.21.0",
|
|
90
90
|
"xml-crypto": "6.1.0",
|
|
91
91
|
"xpath": "0.0.34",
|
|
92
92
|
"yaml-ast-parser": "0.0.43",
|
|
93
93
|
"zod": "^3.25.76",
|
|
94
|
-
"@redocly/asyncapi-docs": "1.12.0-next.
|
|
94
|
+
"@redocly/asyncapi-docs": "1.12.0-next.3",
|
|
95
95
|
"@redocly/config": "0.49.0",
|
|
96
|
-
"@redocly/graphql-docs": "1.12.0-next.
|
|
97
|
-
"@redocly/openapi-docs": "3.23.0-next.
|
|
96
|
+
"@redocly/graphql-docs": "1.12.0-next.3",
|
|
97
|
+
"@redocly/openapi-docs": "3.23.0-next.3",
|
|
98
98
|
"@redocly/portal-legacy-ui": "0.18.0-next.0",
|
|
99
|
-
"@redocly/portal-plugin-mock-server": "0.20.0-next.
|
|
100
|
-
"@redocly/realm-asyncapi-sdk": "0.13.0-next.
|
|
101
|
-
"@redocly/theme": "0.67.0-next.
|
|
99
|
+
"@redocly/portal-plugin-mock-server": "0.20.0-next.3",
|
|
100
|
+
"@redocly/realm-asyncapi-sdk": "0.13.0-next.1",
|
|
101
|
+
"@redocly/theme": "0.67.0-next.2"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"react": "^19.2.4",
|