efficient-storefront-blocks 0.123.2 → 0.123.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 +12 -0
- package/dist/chunks/{EditorPreviewCheckout-GKVO7FIF.js → EditorPreviewCheckout-NQFCOASP.js} +1 -1
- package/dist/chunks/SiteEditorProvider-D2OPKHNG.js +1 -0
- package/dist/chunks/chunk-2CQGGANM.js +342 -0
- package/dist/chunks/chunk-BVHE65VQ.js +96 -0
- package/dist/chunks/{chunk-JRGIFGZA.js → chunk-EMEK5XSJ.js} +1 -1
- package/dist/chunks/{chunk-A4GCH4L7.js → chunk-GUMG6SIC.js} +1 -1
- package/dist/chunks/{chunk-HG7XPHVS.js → chunk-K5OPN6GZ.js} +20 -20
- package/dist/chunks/{fitment-data-6YOZL3W4.js → fitment-data-32VKLJVO.js} +1 -1
- package/dist/chunks/{section-css-style-TIXCQNGX.js → section-css-style-J4DULHLY.js} +1 -1
- package/dist/index.js +27 -27
- package/dist/render/built-with.json +1 -1
- package/dist/routine-index.json +1 -0
- package/dist/value-index.json +1 -0
- package/dist/words.d.ts +11 -0
- package/dist/words.js +4 -4
- package/package.json +4 -2
- package/dist/chunks/SiteEditorProvider-INLF7RK2.js +0 -1
- package/dist/chunks/chunk-ABH43N7O.js +0 -96
- package/dist/chunks/chunk-MFXGST7A.js +0 -342
- /package/dist/chunks/{chunk-MFXGST7A.js.LEGAL.txt → chunk-2CQGGANM.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-HG7XPHVS.js.LEGAL.txt → chunk-K5OPN6GZ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-3UESM7IL.js → chunk-QL4PL74K.js} +0 -0
- /package/dist/chunks/{chunk-PGKDGGEE.js → chunk-ZROLUHOX.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import{d as
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Au(i,e){return Tu(i)||Eu(i,e)||Pu(i,e)||Ou()}function Pu(i,e){if(i){if(typeof i=="string")return os(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?os(i,e):void 0}}function vr(i){var e,t;function r(s,o){try{var l=i[s](o),a=l.value,f=a instanceof bu;Promise.resolve(f?a.v:a).then(function(h){if(f){var v=s==="return"&&a.k?s:"next";if(!a.k||h.done)return r(v,h);h=i[v](h).value}n(!!l.done,h)},function(h){r("throw",h)})}catch(h){n(2,h)}}function n(s,o){s===2?e.reject(o):e.resolve({value:o,done:s}),(e=e.next)?r(e.key,e.arg):t=null}this._invoke=function(s,o){return new Promise(function(l,a){var f={key:s,arg:o,resolve:l,reject:a,next:null};t?t=t.next=f:(e=t=f,r(s,o))})},typeof i.return!="function"&&(this.return=void 0)}vr.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},vr.prototype.next=function(i){return this._invoke("next",i)},vr.prototype.throw=function(i){return this._invoke("throw",i)},vr.prototype.return=function(i){return this._invoke("return",i)};var Ss=Object.entries,as=Object.setPrototypeOf,xu=Object.isFrozen,Cu=Object.getPrototypeOf,Iu=Object.getOwnPropertyDescriptor,J=Object.freeze,re=Object.seal,_t=Object.create,bs=typeof Reflect<"u"&&Reflect,gn=bs.apply,yn=bs.construct;J||(J=function(e){return e});re||(re=function(e){return e});gn||(gn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return e.apply(t,n)});yn||(yn=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});var He=X(Array.prototype.forEach);Array.prototype.indexOf;var Lu=X(Array.prototype.lastIndexOf),us=X(Array.prototype.pop),Nt=X(Array.prototype.push);Array.prototype.slice;var Du=X(Array.prototype.splice),vt=Array.isArray,Ft=X(String.prototype.toLowerCase),cn=X(String.prototype.toString),ls=X(String.prototype.match),kt=X(String.prototype.replace),cs=X(String.prototype.indexOf),Ru=X(String.prototype.trim),Nu=X(Number.prototype.toString),ku=X(Boolean.prototype.toString),fs=typeof BigInt>"u"?null:X(BigInt.prototype.toString),hs=typeof Symbol>"u"?null:X(Symbol.prototype.toString),ue=X(Object.prototype.hasOwnProperty),Mt=X(Object.prototype.toString),oe=X(RegExp.prototype.test),Ne=Mu(TypeError);function X(i){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return gn(i,e,r)}}function Mu(i){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yn(i,t)}}function D(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ft;if(as&&as(i,null),!vt(e))return i;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let s=t(n);s!==n&&(xu(e)||(e[r]=s),n=s)}i[n]=!0}return i}function Fu(i){for(let e=0;e<i.length;e++)ue(i,e)||(i[e]=null);return i}function he(i){let e=_t(null);for(let r of Ss(i)){var t=Au(r,2);let n=t[0],s=t[1];ue(i,n)&&(vt(s)?e[n]=Fu(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=he(s):e[n]=s)}return e}function qu(i){switch(typeof i){case"string":return i;case"number":return Nu(i);case"boolean":return ku(i);case"bigint":return fs?fs(i):"0";case"symbol":return hs?hs(i):"Symbol()";case"undefined":return Mt(i);case"function":case"object":{if(i===null)return Mt(i);let e=i,t=me(e,"toString");if(typeof t=="function"){let r=t(e);return typeof r=="string"?r:Mt(r)}return Mt(i)}default:return Mt(i)}}function me(i,e){for(;i!==null;){let r=Iu(i,e);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=Cu(i)}function t(){return null}return t}function ju(i){try{return oe(i,""),!0}catch{return!1}}var ps=J(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fn=J(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hn=J(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Uu=J(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pn=J(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Bu=J(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ds=J(["#text"]),ms=J(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),dn=J(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gs=J(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wr=J(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zu=re(/{{[\w\W]*|^[\w\W]*}}/g),Wu=re(/<%[\w\W]*|^[\w\W]*%>/g),Hu=re(/\${[\w\W]*/g),Gu=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yu=re(/^aria-[\-\w]+$/),ys=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$u=re(/^(?:\w+script|data):/i),Vu=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qu=re(/^html$/i),Xu=re(/^[a-z][.\w]*(-[.\w]+)+$/i),_s=re(/<[/\w!]/g),vs=re(/<[/\w]/g),Ku=re(/<\/no(script|embed|frames)/i),Ju=re(/\/>/i),fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ts=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Zu=J(D({},Ts)),el=(function(){let i={};return He(Ts,e=>{i[e]=re(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),J(i)})(),tl=function(){return typeof window>"u"?null:window},rl=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},ws=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ke=function(e,t,r,n){return ue(e,t)&&vt(e[t])?D(n.base?he(n.base):{},e[t],n.transform):r},mn=function(e,t,r){let n=ue(e,t)?e[t]:void 0;return n&&typeof n=="object"?he(n):r()};function Es(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tl(),e=y=>Es(y);if(e.version="3.4.16",e.removed=[],!i||!i.document||i.document.nodeType!==fe.document||!i.Element)return e.isSupported=!1,e;let t=i.document,r=t,n=r.currentScript;i.DocumentFragment;let s=i.HTMLTemplateElement,o=i.Node,l=i.Element,a=i.NodeFilter;i.NamedNodeMap===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let f=i.DOMParser,h=i.trustedTypes,v=l.prototype,p=me(v,"cloneNode"),g=me(v,"remove"),_=me(v,"removeAttributeNode"),x=me(v,"nextSibling"),E=me(v,"childNodes"),U=me(v,"parentNode"),Y=me(v,"shadowRoot"),K=me(v,"attributes"),k=o&&o.prototype?me(o.prototype,"nodeType"):null,V=o&&o.prototype?me(o.prototype,"nodeName"):null,Q=o&&o.prototype?me(o.prototype,"ownerDocument"):null,ee=function(u){return k?k(u):u.nodeType},Se=function(u){return V?V(u):u.nodeName};if(typeof s=="function"){let y=t.createElement("template");y.content&&y.content.ownerDocument&&(t=y.content.ownerDocument)}let te,pe="",It,ir=!1,Ue=0,xi=function(){if(Ue>0)throw Ne('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},lt=function(u){xi(),Ue++;try{return te.createHTML(u)}finally{Ue--}},Va=function(u){xi(),Ue++;try{return te.createScriptURL(u)}finally{Ue--}},Qa=function(){return ir||(It=rl(h,n),ir=!0),It},sr=t,$r=sr.implementation,Ci=sr.createNodeIterator,Xa=sr.createDocumentFragment,Ka=sr.getElementsByTagName,Ja=r.importNode,B=ws();e.isSupported=typeof Ss=="function"&&typeof U=="function"&&$r&&$r.createHTMLDocument!==void 0;let Za=zu,eu=Wu,tu=Hu,ru=Gu,nu=Yu,iu=$u,Ii=Vu,su=Xu,Li=ys,z=null,Vr=D({},[...ps,...fn,...hn,...pn,...ds]),W=null,Qr=D({},[...ms,...dn,...gs,...wr]),be=Object.seal(_t(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Lt=null,Di=null,Le=Object.seal(_t(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ri=!0,Xr=!0,Ni=!1,ki=!0,De=!1,Be=!0,ze=!1,Kr=!1,or=null,ar=null,Jr=!1,ct=!1,ur=!1,lr=!1,Mi=!0,Fi=!1,qi="user-content-",Zr=!0,en=!1,ft={},ht=null,ji=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ui=null,Bi=D({},["audio","video","img","source","image","track"]),zi=null,Wi=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cr="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",pt=Te,tn=!1,rn=null,ou=D({},[cr,fr,Te],cn),Hi=J(["mi","mo","mn","ms","mtext"]),nn=D({},Hi),Gi=J(["annotation-xml"]),sn=D({},Gi),au=D({},["title","style","font","a","script"]),Dt=null,uu=["application/xhtml+xml","text/html"],lu="text/html",$=null,dt=null,cu=t.createElement("form"),Yi=function(u){return u instanceof RegExp||u instanceof Function},on=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dt&&dt===u)return;(!u||typeof u!="object")&&(u={}),u=he(u),Dt=uu.indexOf(u.PARSER_MEDIA_TYPE)===-1?lu:u.PARSER_MEDIA_TYPE,$=Dt==="application/xhtml+xml"?cn:Ft,z=ke(u,"ALLOWED_TAGS",Vr,{transform:$}),W=ke(u,"ALLOWED_ATTR",Qr,{transform:$}),rn=ke(u,"ALLOWED_NAMESPACES",ou,{transform:cn}),zi=ke(u,"ADD_URI_SAFE_ATTR",Wi,{transform:$,base:Wi}),Ui=ke(u,"ADD_DATA_URI_TAGS",Bi,{transform:$,base:Bi}),ht=ke(u,"FORBID_CONTENTS",ji,{transform:$}),Lt=ke(u,"FORBID_TAGS",he({}),{transform:$}),Di=ke(u,"FORBID_ATTR",he({}),{transform:$}),ft=ue(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?he(u.USE_PROFILES):u.USE_PROFILES:!1,Ri=u.ALLOW_ARIA_ATTR!==!1,Xr=u.ALLOW_DATA_ATTR!==!1,Ni=u.ALLOW_UNKNOWN_PROTOCOLS||!1,ki=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=u.SAFE_FOR_TEMPLATES||!1,Be=u.SAFE_FOR_XML!==!1,ze=u.WHOLE_DOCUMENT||!1,ct=u.RETURN_DOM||!1,ur=u.RETURN_DOM_FRAGMENT||!1,lr=u.RETURN_TRUSTED_TYPE||!1,Jr=u.FORCE_BODY||!1,Mi=u.SANITIZE_DOM!==!1,Fi=u.SANITIZE_NAMED_PROPS||!1,Zr=u.KEEP_CONTENT!==!1,en=u.IN_PLACE||!1,Li=ju(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:ys,pt=typeof u.NAMESPACE=="string"?u.NAMESPACE:Te,nn=mn(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},Hi)),sn=mn(u,"HTML_INTEGRATION_POINTS",()=>D({},Gi));let c=mn(u,"CUSTOM_ELEMENT_HANDLING",()=>_t(null));if(be=_t(null),ue(c,"tagNameCheck")&&Yi(c.tagNameCheck)&&(be.tagNameCheck=c.tagNameCheck),ue(c,"attributeNameCheck")&&Yi(c.attributeNameCheck)&&(be.attributeNameCheck=c.attributeNameCheck),ue(c,"allowCustomizedBuiltInElements")&&typeof c.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=c.allowCustomizedBuiltInElements),re(be),De&&(Xr=!1),ur&&(ct=!0),ft&&(z=D({},ds),W=_t(null),ft.html===!0&&(D(z,ps),D(W,ms)),ft.svg===!0&&(D(z,fn),D(W,dn),D(W,wr)),ft.svgFilters===!0&&(D(z,hn),D(W,dn),D(W,wr)),ft.mathMl===!0&&(D(z,pn),D(W,gs),D(W,wr))),Le.tagCheck=null,Le.attributeCheck=null,ue(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?Le.tagCheck=u.ADD_TAGS:vt(u.ADD_TAGS)&&(z===Vr&&(z=he(z)),D(z,u.ADD_TAGS,$))),ue(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?Le.attributeCheck=u.ADD_ATTR:vt(u.ADD_ATTR)&&(W===Qr&&(W=he(W)),D(W,u.ADD_ATTR,$))),ue(u,"ADD_FORBID_CONTENTS")&&vt(u.ADD_FORBID_CONTENTS)&&(ht===ji&&(ht=he(ht)),D(ht,u.ADD_FORBID_CONTENTS,$)),Zr&&(z["#text"]=!0),ze&&D(z,["html","head","body"]),z.table&&(D(z,["tbody"]),delete Lt.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let m=te;te=u.TRUSTED_TYPES_POLICY;try{pe=lt("")}catch(w){throw te=m,w}}else u.TRUSTED_TYPES_POLICY===null?(te=void 0,pe=""):(te===void 0&&(te=Qa()),te&&typeof pe=="string"&&(pe=lt("")));J&&J(u),dt=u},$i=D({},[...fn,...hn,...Uu]),Vi=D({},[...pn,...Bu]),fu=function(u,c,m){return c.namespaceURI===Te?u==="svg":c.namespaceURI===cr?u==="svg"&&(m==="annotation-xml"||nn[m]):!!$i[u]},hu=function(u,c,m){return c.namespaceURI===Te?u==="math":c.namespaceURI===fr?u==="math"&&sn[m]:!!Vi[u]},pu=function(u,c,m){return c.namespaceURI===fr&&!sn[m]||c.namespaceURI===cr&&!nn[m]?!1:!Vi[u]&&(au[u]||!$i[u])},du=function(u){let c=U(u);(!c||!c.tagName)&&(c={namespaceURI:pt,tagName:"template"});let m=Ft(u.tagName),w=Ft(c.tagName);return rn[u.namespaceURI]?u.namespaceURI===fr?fu(m,c,w):u.namespaceURI===cr?hu(m,c,w):u.namespaceURI===Te?pu(m,c,w):!!(Dt==="application/xhtml+xml"&&rn[u.namespaceURI]):!1},Re=function(u){Nt(e.removed,{element:u});try{U(u).removeChild(u)}catch{if(g(u),!U(u))throw Ne("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Qi=function(u,c,m){try{_(u,c)}catch{try{u.removeAttribute(m)}catch{}}},hr=function(u){pr(u);let c=E(u);if(c){let w=[];He(c,A=>{Nt(w,A)}),He(w,A=>{try{g(A)}catch{}})}let m=K(u);if(m)for(let w=m.length-1;w>=0;--w){let A=m[w],C=A&&A.name;typeof C=="string"&&Qi(u,A,C)}},We=function(u,c,m){if(!m)try{m=c.getAttributeNode(u)}catch{m=null}Nt(e.removed,{attribute:m||null,from:c});try{m?_(c,m):c.removeAttribute(u)}catch{try{c.removeAttribute(u)}catch{}}if(u==="is")if(ct||ur)try{Re(c)}catch{}else try{c.setAttribute(u,"")}catch{}},mu=function(u){let c=K(u);if(c)for(let m=c.length-1;m>=0;--m){let w=c[m],A=w&&w.name;typeof A!="string"||W[$(A)]||Qi(u,w,A)}},pr=function(u){let c=[u];for(;c.length>0;){let m=c.pop();ee(m)===fe.element&&mu(m);let w=E(m);if(w)for(let A=w.length-1;A>=0;--A)c.push(w[A])}},Xi=function(u,c){return Be?u==="patchsrc"?!0:u==="for"&&c!=="label"&&c!=="output":!1},gu=function(u){if(!Be)return;let c=[u];for(;c.length>0;){let m=c.pop(),w=ee(m);if(w===fe.processingInstruction||w===fe.comment&&oe(vs,m.data)){try{g(m)}catch{}continue}if(w===fe.element){let C=m,L=$(Se(m));try{C.hasAttribute&&C.hasAttribute("patchsrc")&&C.removeAttribute("patchsrc"),C.hasAttribute&&C.hasAttribute("for")&&Xi("for",L)&&C.removeAttribute("for")}catch{}}let A=E(m);if(A)for(let C=A.length-1;C>=0;--C)c.push(A[C])}},Ki=function(u){let c=null,m=null;if(Jr)u="<remove></remove>"+u;else{let C=ls(u,/^[\r\n\t ]+/);m=C&&C[0]}Dt==="application/xhtml+xml"&&pt===Te&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");let w=te?lt(u):u;if(pt===Te)try{c=new f().parseFromString(w,Dt)}catch{}if(!c||!c.documentElement){c=$r.createDocument(pt,"template",null);try{c.documentElement.innerHTML=tn?pe:w}catch{}}let A=c.body||c.documentElement;return u&&m&&A.insertBefore(t.createTextNode(m),A.childNodes[0]||null),pt===Te?Ka.call(c,ze?"html":"body")[0]:ze?c.documentElement:A},Ji=function(u){let c=Q?Q(u):u.ownerDocument;return Ci.call(c||u,u,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},dr=function(u){return u=kt(u,Za," "),u=kt(u,eu," "),u=kt(u,tu," "),u},an=function(u){var c;u.normalize();let m=Q?Q(u):u.ownerDocument,w=Ci.call(m||u,u,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null),A=w.nextNode();for(;A;)A.data=dr(A.data),A=w.nextNode();let C=(c=u.querySelectorAll)===null||c===void 0?void 0:c.call(u,"template");C&&He(C,L=>{mt(L.content)&&an(L.content)})},mr=function(u){let c=V?V(u):null;return typeof c!="string"||$(c)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==K(u)||typeof u.removeAttribute!="function"||typeof u.removeAttributeNode!="function"||typeof u.getAttributeNode!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==k(u)||u.childNodes!==E(u)},mt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return k(u)===fe.documentFragment}catch{return!1}},Rt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return typeof k(u)=="number"}catch{return!1}};function Ee(y,u,c){y.length!==0&&He(y,m=>{m.call(e,u,c,dt)})}let yu=function(u,c){return!!(Be&&u.hasChildNodes()&&!Rt(u.firstElementChild)&&oe(_s,u.textContent)&&oe(_s,u.innerHTML)||Be&&u.namespaceURI===Te&&Zu[c]&&(Rt(u.firstElementChild)||typeof u.textContent=="string"&&oe(el[c],u.textContent))||u.nodeType===fe.processingInstruction||Be&&u.nodeType===fe.comment&&oe(vs,u.data))},gr=function(u,c){if(u instanceof RegExp)return oe(u,c);if(u instanceof Function){for(var m=arguments.length,w=new Array(m>2?m-2:0),A=2;A<m;A++)w[A-2]=arguments[A];return!!u(c,...w)}return!1},_u=function(u,c,m){if(!Lt[c]&&rs(c)&&gr(be.tagNameCheck,c))return!1;if(Zr&&!ht[c]){let w=U(u),A=E(u);if(A&&w){let C=A.length;for(let L=C-1;L>=0;--L){let G=u===m?p(A[L],!0):A[L];w.insertBefore(G,x(u))}}}return Re(u),!0},Zi=function(u,c,m,w){return u.length===0?c:c===m||c===w?he(c):c},gt=function(u,c){return u===c||U(u)!==null?!1:(en&&pr(u),!0)},es=function(u,c){if(Ee(B.beforeSanitizeElements,u,null),gt(u,c))return!0;if(mr(u))return Re(u),!0;let m=$(Se(u));if(z=Zi(B.uponSanitizeElement,z,Vr,or),Ee(B.uponSanitizeElement,u,{tagName:m,allowedTags:z}),gt(u,c))return!0;if(yu(u,m))return Re(u),!0;if(Lt[m]||!(Le.tagCheck instanceof Function&&Le.tagCheck(m))&&!z[m]){let w=_u(u,m,c);return w===!1&&(Ee(B.afterSanitizeElements,u,null),gt(u,c))?!0:w}if(ee(u)===fe.element&&!du(u)||(m==="noscript"||m==="noembed"||m==="noframes")&&oe(Ku,u.innerHTML))return Re(u),!0;if(De&&u.nodeType===fe.text){let w=dr(u.textContent);u.textContent!==w&&(Nt(e.removed,{element:u.cloneNode()}),u.textContent=w)}return Ee(B.afterSanitizeElements,u,null),gt(u,c)},ts=function(u,c,m){if(Di[c]||Xi(c,u)||Mi&&(c==="id"||c==="name")&&(m in t||m in cu))return!1;let w=W[c]||Le.attributeCheck instanceof Function&&Le.attributeCheck(c,u);return Xr&&oe(ru,c)||Ri&&oe(nu,c)?!0:w?zi[c]||oe(Li,kt(m,Ii,""))||(c==="src"||c==="xlink:href"||c==="href")&&u!=="script"&&cs(m,"data:")===0&&Ui[u]||Ni&&!oe(iu,kt(m,Ii,""))?!0:!m:rs(u)&&gr(be.tagNameCheck,u)&&gr(be.attributeNameCheck,c,u)||c==="is"&&be.allowCustomizedBuiltInElements&&gr(be.tagNameCheck,m)},vu=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),rs=function(u){return!vu[Ft(u)]&&oe(su,u)},wu=function(u,c,m,w){if(te&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!m)switch(h.getAttributeType(u,c)){case"TrustedHTML":return lt(w);case"TrustedScriptURL":return Va(w)}return w},Su=function(u,c,m,w){try{return m?u.setAttributeNS(m,c,w):u.setAttribute(c,w),mr(u)?(Re(u),!1):!0}catch{return We(c,u),!1}},ns=function(u,c){if(Ee(B.beforeSanitizeAttributes,u,null),gt(u,c))return;let m=u.attributes;if(!m||mr(u))return;W=Zi(B.uponSanitizeAttribute,W,Qr,ar);let w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0},A=m.length,C=$(u.nodeName);for(;A--;){let L=m[A],G=L.name,de=L.namespaceURI,ce=L.value,yt=$(G),ln=ce,ae=G==="value"?ln:Ru(ln),is=!1;if(w.attrName=yt,w.attrValue=ae,w.keepAttr=!0,w.forceKeepAttr=void 0,Ee(B.uponSanitizeAttribute,u,w),ae=w.attrValue,Fi&&(yt==="id"||yt==="name")&&cs(ae,qi)!==0&&(We(G,u,L),ae=qi+ae,is=!0),Be&&oe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ae)){We(G,u,L);continue}if(yt==="attributename"&&ls(ae,"href")){We(G,u,L);continue}if(!w.forceKeepAttr){if(!w.keepAttr){We(G,u,L);continue}if(!ki&&oe(Ju,ae)){We(G,u,L);continue}if(De&&(ae=dr(ae)),!ts(C,yt,ae)){We(G,u,L);continue}ae=wu(C,yt,de,ae),ae!==ln&&Su(u,G,de,ae)&&is&&us(e.removed)}}Ee(B.afterSanitizeAttributes,u,null),gt(u,c)},yr=function(u){let c=null,m=Ji(u);for(Ee(B.beforeSanitizeShadowDOM,u,null);c=m.nextNode();)if(Ee(B.uponSanitizeShadowNode,c,null),es(c,u),ns(c,u),mt(c.content)&&yr(c.content),ee(c)===fe.element){let w=Y(c);mt(w)&&(un(w),yr(w))}Ee(B.afterSanitizeShadowDOM,u,null)},un=function(u){let c=[{node:u,shadow:null}];for(;c.length>0;){let m=c.pop();if(m.shadow){yr(m.shadow);continue}let w=m.node,A=ee(w)===fe.element,C=E(w);if(C)for(let L=C.length-1;L>=0;--L)c.push({node:C[L],shadow:null});if(A){let L=V?V(w):null;if(typeof L=="string"&&$(L)==="template"){let G=w.content;mt(G)&&c.push({node:G,shadow:null})}}if(A){let L=Y(w);mt(L)&&c.push({node:null,shadow:L},{node:L,shadow:null})}}};return e.sanitize=function(y){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,m=null,w=null,A=null;if(tn=!y,tn&&(y="<!-->"),typeof y!="string"&&!Rt(y)&&(y=qu(y),typeof y!="string"))throw Ne("dirty is not a string, aborting");if(!e.isSupported)return y;Kr?(z=or,W=ar):on(u),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(z=he(z)),B.uponSanitizeAttribute.length>0&&(W=he(W)),e.removed=[];let C=en&&typeof y!="string"&&Rt(y);if(C){gu(y);let de=Se(y);if(typeof de=="string"){let ce=$(de);if(!z[ce]||Lt[ce])throw hr(y),Ne("root node is forbidden and cannot be sanitized in-place")}if(mr(y))throw hr(y),Ne("root node is clobbered and cannot be sanitized in-place");try{un(y)}catch(ce){throw hr(y),ce}}else if(Rt(y))c=Ki("<!---->"),m=c.ownerDocument.importNode(y,!0),m.nodeType===fe.element&&m.nodeName==="BODY"||m.nodeName==="HTML"?c=m:c.appendChild(m),un(c);else{if(!ct&&!De&&!ze&&y.indexOf("<")===-1)return te&&lr?lt(y):y;if(c=Ki(y),!c)return ct?null:lr?pe:""}c&&Jr&&Re(c.firstChild);let L=C?y:c;try{let de=Ji(L);for(;w=de.nextNode();)es(w,L),ns(w,L),mt(w.content)&&yr(w.content)}catch(de){throw C&&(hr(y),He(e.removed,ce=>{ce.element&&pr(ce.element)})),de}if(C){let de=!1;if(He(e.removed,ce=>{ce.element&&(ce.element===y&&(de=!0),pr(ce.element))}),de)throw Ne("a node selected for removal could not be safely returned; refusing to sanitize in place");return De&&an(y),y}if(ct){if(De&&an(c),ur)for(A=Xa.call(c.ownerDocument);c.firstChild;)A.appendChild(c.firstChild);else A=c;return(W.shadowroot||W.shadowrootmode)&&(A=Ja.call(r,A,!0)),A}let G=ze?c.outerHTML:c.innerHTML;return ze&&z["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&oe(Qu,c.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
3
|
-
`+
|
|
4
|
-
`+k+n("^")}let
|
|
5
|
-
`+
|
|
1
|
+
import{d as cs}from"./chunk-QL4PL74K.js";import{a as T,b as Sr}from"./chunk-Y6SLVHK3.js";var Sn=T((sd,Is)=>{"use strict";function xu(i,e){this.v=i,this.k=e}function fs(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Cu(i){if(Array.isArray(i))return i}function Iu(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,n,s,o,l=[],a=!0,h=!1;try{if(s=(t=t.call(i)).next,e===0){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=s.call(t)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(f){h=!0,n=f}finally{try{if(!a&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(h)throw n}}return l}}function Lu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Du(i,e){return Cu(i)||Iu(i,e)||Ru(i,e)||Lu()}function Ru(i,e){if(i){if(typeof i=="string")return fs(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?fs(i,e):void 0}}function br(i){var e,t;function r(s,o){try{var l=i[s](o),a=l.value,h=a instanceof xu;Promise.resolve(h?a.v:a).then(function(f){if(h){var _=s==="return"&&a.k?s:"next";if(!a.k||f.done)return r(_,f);f=i[_](f).value}n(!!l.done,f)},function(f){r("throw",f)})}catch(f){n(2,f)}}function n(s,o){s===2?e.reject(o):e.resolve({value:o,done:s}),(e=e.next)?r(e.key,e.arg):t=null}this._invoke=function(s,o){return new Promise(function(l,a){var h={key:s,arg:o,resolve:l,reject:a,next:null};t?t=t.next=h:(e=t=h,r(s,o))})},typeof i.return!="function"&&(this.return=void 0)}br.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},br.prototype.next=function(i){return this._invoke("next",i)},br.prototype.throw=function(i){return this._invoke("throw",i)},br.prototype.return=function(i){return this._invoke("return",i)};var As=Object.entries,hs=Object.setPrototypeOf,Nu=Object.isFrozen,ku=Object.getPrototypeOf,Mu=Object.getOwnPropertyDescriptor,J=Object.freeze,re=Object.seal,vt=Object.create,Ps=typeof Reflect<"u"&&Reflect,vn=Ps.apply,wn=Ps.construct;J||(J=function(e){return e});re||(re=function(e){return e});vn||(vn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return e.apply(t,n)});wn||(wn=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});var He=X(Array.prototype.forEach);Array.prototype.indexOf;var Fu=X(Array.prototype.lastIndexOf),ps=X(Array.prototype.pop),kt=X(Array.prototype.push);Array.prototype.slice;var qu=X(Array.prototype.splice),wt=Array.isArray,qt=X(String.prototype.toLowerCase),pn=X(String.prototype.toString),ds=X(String.prototype.match),Mt=X(String.prototype.replace),ms=X(String.prototype.indexOf),ju=X(String.prototype.trim),Uu=X(Number.prototype.toString),Bu=X(Boolean.prototype.toString),gs=typeof BigInt>"u"?null:X(BigInt.prototype.toString),ys=typeof Symbol>"u"?null:X(Symbol.prototype.toString),ue=X(Object.prototype.hasOwnProperty),Ft=X(Object.prototype.toString),oe=X(RegExp.prototype.test),ke=zu(TypeError);function X(i){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return vn(i,e,r)}}function zu(i){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wn(i,t)}}function D(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt;if(hs&&hs(i,null),!wt(e))return i;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let s=t(n);s!==n&&(Nu(e)||(e[r]=s),n=s)}i[n]=!0}return i}function Wu(i){for(let e=0;e<i.length;e++)ue(i,e)||(i[e]=null);return i}function he(i){let e=vt(null);for(let r of As(i)){var t=Du(r,2);let n=t[0],s=t[1];ue(i,n)&&(wt(s)?e[n]=Wu(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=he(s):e[n]=s)}return e}function Gu(i){switch(typeof i){case"string":return i;case"number":return Uu(i);case"boolean":return Bu(i);case"bigint":return gs?gs(i):"0";case"symbol":return ys?ys(i):"Symbol()";case"undefined":return Ft(i);case"function":case"object":{if(i===null)return Ft(i);let e=i,t=me(e,"toString");if(typeof t=="function"){let r=t(e);return typeof r=="string"?r:Ft(r)}return Ft(i)}default:return Ft(i)}}function me(i,e){for(;i!==null;){let r=Mu(i,e);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=ku(i)}function t(){return null}return t}function Hu(i){try{return oe(i,""),!0}catch{return!1}}var _s=J(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dn=J(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mn=J(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Yu=J(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gn=J(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$u=J(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vs=J(["#text"]),ws=J(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yn=J(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ss=J(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tr=J(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vu=re(/{{[\w\W]*|^[\w\W]*}}/g),Qu=re(/<%[\w\W]*|^[\w\W]*%>/g),Xu=re(/\${[\w\W]*/g),Ku=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ju=re(/^aria-[\-\w]+$/),bs=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zu=re(/^(?:\w+script|data):/i),el=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tl=re(/^html$/i),rl=re(/^[a-z][.\w]*(-[.\w]+)+$/i),Ts=re(/<[/\w!]/g),Es=re(/<[/\w]/g),nl=re(/<\/no(script|embed|frames)/i),il=re(/\/>/i),fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},xs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],sl=J(D({},xs)),ol=(function(){let i={};return He(xs,e=>{i[e]=re(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),J(i)})(),al=function(){return typeof window>"u"?null:window},ul=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Os=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Me=function(e,t,r,n){return ue(e,t)&&wt(e[t])?D(n.base?he(n.base):{},e[t],n.transform):r},_n=function(e,t,r){let n=ue(e,t)?e[t]:void 0;return n&&typeof n=="object"?he(n):r()};function Cs(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:al(),e=y=>Cs(y);if(e.version="3.4.16",e.removed=[],!i||!i.document||i.document.nodeType!==fe.document||!i.Element)return e.isSupported=!1,e;let t=i.document,r=t,n=r.currentScript;i.DocumentFragment;let s=i.HTMLTemplateElement,o=i.Node,l=i.Element,a=i.NodeFilter;i.NamedNodeMap===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let h=i.DOMParser,f=i.trustedTypes,_=l.prototype,p=me(_,"cloneNode"),d=me(_,"remove"),v=me(_,"removeAttributeNode"),x=me(_,"nextSibling"),E=me(_,"childNodes"),U=me(_,"parentNode"),Y=me(_,"shadowRoot"),K=me(_,"attributes"),k=o&&o.prototype?me(o.prototype,"nodeType"):null,V=o&&o.prototype?me(o.prototype,"nodeName"):null,Q=o&&o.prototype?me(o.prototype,"ownerDocument"):null,ee=function(u){return k?k(u):u.nodeType},Se=function(u){return V?V(u):u.nodeName};if(typeof s=="function"){let y=t.createElement("template");y.content&&y.content.ownerDocument&&(t=y.content.ownerDocument)}let te,pe="",Lt,ar=!1,Be=0,Ri=function(){if(Be>0)throw ke('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ct=function(u){Ri(),Be++;try{return te.createHTML(u)}finally{Be--}},eu=function(u){Ri(),Be++;try{return te.createScriptURL(u)}finally{Be--}},tu=function(){return ar||(Lt=ul(f,n),ar=!0),Lt},ur=t,Xr=ur.implementation,Ni=ur.createNodeIterator,ru=ur.createDocumentFragment,nu=ur.getElementsByTagName,iu=r.importNode,B=Os();e.isSupported=typeof As=="function"&&typeof U=="function"&&Xr&&Xr.createHTMLDocument!==void 0;let su=Vu,ou=Qu,au=Xu,uu=Ku,lu=Ju,cu=Zu,ki=el,fu=rl,Mi=bs,z=null,Kr=D({},[..._s,...dn,...mn,...gn,...vs]),W=null,Jr=D({},[...ws,...yn,...Ss,...Tr]),be=Object.seal(vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dt=null,Fi=null,De=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),qi=!0,Zr=!0,ji=!1,Ui=!0,Re=!1,ze=!0,We=!1,en=!1,lr=null,cr=null,tn=!1,ft=!1,fr=!1,hr=!1,Bi=!0,zi=!1,Wi="user-content-",rn=!0,nn=!1,ht={},pt=null,Gi=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Hi=null,Yi=D({},["audio","video","img","source","image","track"]),$i=null,Vi=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",dr="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",dt=Te,sn=!1,on=null,hu=D({},[pr,dr,Te],pn),Qi=J(["mi","mo","mn","ms","mtext"]),an=D({},Qi),Xi=J(["annotation-xml"]),un=D({},Xi),pu=D({},["title","style","font","a","script"]),Rt=null,du=["application/xhtml+xml","text/html"],mu="text/html",$=null,mt=null,gu=t.createElement("form"),Ki=function(u){return u instanceof RegExp||u instanceof Function},ln=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===u)return;(!u||typeof u!="object")&&(u={}),u=he(u),Rt=du.indexOf(u.PARSER_MEDIA_TYPE)===-1?mu:u.PARSER_MEDIA_TYPE,$=Rt==="application/xhtml+xml"?pn:qt,z=Me(u,"ALLOWED_TAGS",Kr,{transform:$}),W=Me(u,"ALLOWED_ATTR",Jr,{transform:$}),on=Me(u,"ALLOWED_NAMESPACES",hu,{transform:pn}),$i=Me(u,"ADD_URI_SAFE_ATTR",Vi,{transform:$,base:Vi}),Hi=Me(u,"ADD_DATA_URI_TAGS",Yi,{transform:$,base:Yi}),pt=Me(u,"FORBID_CONTENTS",Gi,{transform:$}),Dt=Me(u,"FORBID_TAGS",he({}),{transform:$}),Fi=Me(u,"FORBID_ATTR",he({}),{transform:$}),ht=ue(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?he(u.USE_PROFILES):u.USE_PROFILES:!1,qi=u.ALLOW_ARIA_ATTR!==!1,Zr=u.ALLOW_DATA_ATTR!==!1,ji=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Ui=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=u.SAFE_FOR_TEMPLATES||!1,ze=u.SAFE_FOR_XML!==!1,We=u.WHOLE_DOCUMENT||!1,ft=u.RETURN_DOM||!1,fr=u.RETURN_DOM_FRAGMENT||!1,hr=u.RETURN_TRUSTED_TYPE||!1,tn=u.FORCE_BODY||!1,Bi=u.SANITIZE_DOM!==!1,zi=u.SANITIZE_NAMED_PROPS||!1,rn=u.KEEP_CONTENT!==!1,nn=u.IN_PLACE||!1,Mi=Hu(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:bs,dt=typeof u.NAMESPACE=="string"?u.NAMESPACE:Te,an=_n(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},Qi)),un=_n(u,"HTML_INTEGRATION_POINTS",()=>D({},Xi));let c=_n(u,"CUSTOM_ELEMENT_HANDLING",()=>vt(null));if(be=vt(null),ue(c,"tagNameCheck")&&Ki(c.tagNameCheck)&&(be.tagNameCheck=c.tagNameCheck),ue(c,"attributeNameCheck")&&Ki(c.attributeNameCheck)&&(be.attributeNameCheck=c.attributeNameCheck),ue(c,"allowCustomizedBuiltInElements")&&typeof c.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=c.allowCustomizedBuiltInElements),re(be),Re&&(Zr=!1),fr&&(ft=!0),ht&&(z=D({},vs),W=vt(null),ht.html===!0&&(D(z,_s),D(W,ws)),ht.svg===!0&&(D(z,dn),D(W,yn),D(W,Tr)),ht.svgFilters===!0&&(D(z,mn),D(W,yn),D(W,Tr)),ht.mathMl===!0&&(D(z,gn),D(W,Ss),D(W,Tr))),De.tagCheck=null,De.attributeCheck=null,ue(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?De.tagCheck=u.ADD_TAGS:wt(u.ADD_TAGS)&&(z===Kr&&(z=he(z)),D(z,u.ADD_TAGS,$))),ue(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?De.attributeCheck=u.ADD_ATTR:wt(u.ADD_ATTR)&&(W===Jr&&(W=he(W)),D(W,u.ADD_ATTR,$))),ue(u,"ADD_FORBID_CONTENTS")&&wt(u.ADD_FORBID_CONTENTS)&&(pt===Gi&&(pt=he(pt)),D(pt,u.ADD_FORBID_CONTENTS,$)),rn&&(z["#text"]=!0),We&&D(z,["html","head","body"]),z.table&&(D(z,["tbody"]),delete Dt.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let g=te;te=u.TRUSTED_TYPES_POLICY;try{pe=ct("")}catch(w){throw te=g,w}}else u.TRUSTED_TYPES_POLICY===null?(te=void 0,pe=""):(te===void 0&&(te=tu()),te&&typeof pe=="string"&&(pe=ct("")));J&&J(u),mt=u},Ji=D({},[...dn,...mn,...Yu]),Zi=D({},[...gn,...$u]),yu=function(u,c,g){return c.namespaceURI===Te?u==="svg":c.namespaceURI===pr?u==="svg"&&(g==="annotation-xml"||an[g]):!!Ji[u]},_u=function(u,c,g){return c.namespaceURI===Te?u==="math":c.namespaceURI===dr?u==="math"&&un[g]:!!Zi[u]},vu=function(u,c,g){return c.namespaceURI===dr&&!un[g]||c.namespaceURI===pr&&!an[g]?!1:!Zi[u]&&(pu[u]||!Ji[u])},wu=function(u){let c=U(u);(!c||!c.tagName)&&(c={namespaceURI:dt,tagName:"template"});let g=qt(u.tagName),w=qt(c.tagName);return on[u.namespaceURI]?u.namespaceURI===dr?yu(g,c,w):u.namespaceURI===pr?_u(g,c,w):u.namespaceURI===Te?vu(g,c,w):!!(Rt==="application/xhtml+xml"&&on[u.namespaceURI]):!1},Ne=function(u){kt(e.removed,{element:u});try{U(u).removeChild(u)}catch{if(d(u),!U(u))throw ke("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},es=function(u,c,g){try{v(u,c)}catch{try{u.removeAttribute(g)}catch{}}},mr=function(u){gr(u);let c=E(u);if(c){let w=[];He(c,A=>{kt(w,A)}),He(w,A=>{try{d(A)}catch{}})}let g=K(u);if(g)for(let w=g.length-1;w>=0;--w){let A=g[w],C=A&&A.name;typeof C=="string"&&es(u,A,C)}},Ge=function(u,c,g){if(!g)try{g=c.getAttributeNode(u)}catch{g=null}kt(e.removed,{attribute:g||null,from:c});try{g?v(c,g):c.removeAttribute(u)}catch{try{c.removeAttribute(u)}catch{}}if(u==="is")if(ft||fr)try{Ne(c)}catch{}else try{c.setAttribute(u,"")}catch{}},Su=function(u){let c=K(u);if(c)for(let g=c.length-1;g>=0;--g){let w=c[g],A=w&&w.name;typeof A!="string"||W[$(A)]||es(u,w,A)}},gr=function(u){let c=[u];for(;c.length>0;){let g=c.pop();ee(g)===fe.element&&Su(g);let w=E(g);if(w)for(let A=w.length-1;A>=0;--A)c.push(w[A])}},ts=function(u,c){return ze?u==="patchsrc"?!0:u==="for"&&c!=="label"&&c!=="output":!1},bu=function(u){if(!ze)return;let c=[u];for(;c.length>0;){let g=c.pop(),w=ee(g);if(w===fe.processingInstruction||w===fe.comment&&oe(Es,g.data)){try{d(g)}catch{}continue}if(w===fe.element){let C=g,L=$(Se(g));try{C.hasAttribute&&C.hasAttribute("patchsrc")&&C.removeAttribute("patchsrc"),C.hasAttribute&&C.hasAttribute("for")&&ts("for",L)&&C.removeAttribute("for")}catch{}}let A=E(g);if(A)for(let C=A.length-1;C>=0;--C)c.push(A[C])}},rs=function(u){let c=null,g=null;if(tn)u="<remove></remove>"+u;else{let C=ds(u,/^[\r\n\t ]+/);g=C&&C[0]}Rt==="application/xhtml+xml"&&dt===Te&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");let w=te?ct(u):u;if(dt===Te)try{c=new h().parseFromString(w,Rt)}catch{}if(!c||!c.documentElement){c=Xr.createDocument(dt,"template",null);try{c.documentElement.innerHTML=sn?pe:w}catch{}}let A=c.body||c.documentElement;return u&&g&&A.insertBefore(t.createTextNode(g),A.childNodes[0]||null),dt===Te?nu.call(c,We?"html":"body")[0]:We?c.documentElement:A},ns=function(u){let c=Q?Q(u):u.ownerDocument;return Ni.call(c||u,u,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},yr=function(u){return u=Mt(u,su," "),u=Mt(u,ou," "),u=Mt(u,au," "),u},cn=function(u){var c;u.normalize();let g=Q?Q(u):u.ownerDocument,w=Ni.call(g||u,u,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null),A=w.nextNode();for(;A;)A.data=yr(A.data),A=w.nextNode();let C=(c=u.querySelectorAll)===null||c===void 0?void 0:c.call(u,"template");C&&He(C,L=>{gt(L.content)&&cn(L.content)})},_r=function(u){let c=V?V(u):null;return typeof c!="string"||$(c)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==K(u)||typeof u.removeAttribute!="function"||typeof u.removeAttributeNode!="function"||typeof u.getAttributeNode!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==k(u)||u.childNodes!==E(u)},gt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return k(u)===fe.documentFragment}catch{return!1}},Nt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return typeof k(u)=="number"}catch{return!1}};function Ee(y,u,c){y.length!==0&&He(y,g=>{g.call(e,u,c,mt)})}let Tu=function(u,c){return!!(ze&&u.hasChildNodes()&&!Nt(u.firstElementChild)&&oe(Ts,u.textContent)&&oe(Ts,u.innerHTML)||ze&&u.namespaceURI===Te&&sl[c]&&(Nt(u.firstElementChild)||typeof u.textContent=="string"&&oe(ol[c],u.textContent))||u.nodeType===fe.processingInstruction||ze&&u.nodeType===fe.comment&&oe(Es,u.data))},vr=function(u,c){if(u instanceof RegExp)return oe(u,c);if(u instanceof Function){for(var g=arguments.length,w=new Array(g>2?g-2:0),A=2;A<g;A++)w[A-2]=arguments[A];return!!u(c,...w)}return!1},Eu=function(u,c,g){if(!Dt[c]&&as(c)&&vr(be.tagNameCheck,c))return!1;if(rn&&!pt[c]){let w=U(u),A=E(u);if(A&&w){let C=A.length;for(let L=C-1;L>=0;--L){let H=u===g?p(A[L],!0):A[L];w.insertBefore(H,x(u))}}}return Ne(u),!0},is=function(u,c,g,w){return u.length===0?c:c===g||c===w?he(c):c},yt=function(u,c){return u===c||U(u)!==null?!1:(nn&&gr(u),!0)},ss=function(u,c){if(Ee(B.beforeSanitizeElements,u,null),yt(u,c))return!0;if(_r(u))return Ne(u),!0;let g=$(Se(u));if(z=is(B.uponSanitizeElement,z,Kr,lr),Ee(B.uponSanitizeElement,u,{tagName:g,allowedTags:z}),yt(u,c))return!0;if(Tu(u,g))return Ne(u),!0;if(Dt[g]||!(De.tagCheck instanceof Function&&De.tagCheck(g))&&!z[g]){let w=Eu(u,g,c);return w===!1&&(Ee(B.afterSanitizeElements,u,null),yt(u,c))?!0:w}if(ee(u)===fe.element&&!wu(u)||(g==="noscript"||g==="noembed"||g==="noframes")&&oe(nl,u.innerHTML))return Ne(u),!0;if(Re&&u.nodeType===fe.text){let w=yr(u.textContent);u.textContent!==w&&(kt(e.removed,{element:u.cloneNode()}),u.textContent=w)}return Ee(B.afterSanitizeElements,u,null),yt(u,c)},os=function(u,c,g){if(Fi[c]||ts(c,u)||Bi&&(c==="id"||c==="name")&&(g in t||g in gu))return!1;let w=W[c]||De.attributeCheck instanceof Function&&De.attributeCheck(c,u);return Zr&&oe(uu,c)||qi&&oe(lu,c)?!0:w?$i[c]||oe(Mi,Mt(g,ki,""))||(c==="src"||c==="xlink:href"||c==="href")&&u!=="script"&&ms(g,"data:")===0&&Hi[u]||ji&&!oe(cu,Mt(g,ki,""))?!0:!g:as(u)&&vr(be.tagNameCheck,u)&&vr(be.attributeNameCheck,c,u)||c==="is"&&be.allowCustomizedBuiltInElements&&vr(be.tagNameCheck,g)},Ou=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),as=function(u){return!Ou[qt(u)]&&oe(fu,u)},Au=function(u,c,g,w){if(te&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!g)switch(f.getAttributeType(u,c)){case"TrustedHTML":return ct(w);case"TrustedScriptURL":return eu(w)}return w},Pu=function(u,c,g,w){try{return g?u.setAttributeNS(g,c,w):u.setAttribute(c,w),_r(u)?(Ne(u),!1):!0}catch{return Ge(c,u),!1}},us=function(u,c){if(Ee(B.beforeSanitizeAttributes,u,null),yt(u,c))return;let g=u.attributes;if(!g||_r(u))return;W=is(B.uponSanitizeAttribute,W,Jr,cr);let w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0},A=g.length,C=$(u.nodeName);for(;A--;){let L=g[A],H=L.name,de=L.namespaceURI,ce=L.value,_t=$(H),hn=ce,ae=H==="value"?hn:ju(hn),ls=!1;if(w.attrName=_t,w.attrValue=ae,w.keepAttr=!0,w.forceKeepAttr=void 0,Ee(B.uponSanitizeAttribute,u,w),ae=w.attrValue,zi&&(_t==="id"||_t==="name")&&ms(ae,Wi)!==0&&(Ge(H,u,L),ae=Wi+ae,ls=!0),ze&&oe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ae)){Ge(H,u,L);continue}if(_t==="attributename"&&ds(ae,"href")){Ge(H,u,L);continue}if(!w.forceKeepAttr){if(!w.keepAttr){Ge(H,u,L);continue}if(!Ui&&oe(il,ae)){Ge(H,u,L);continue}if(Re&&(ae=yr(ae)),!os(C,_t,ae)){Ge(H,u,L);continue}ae=Au(C,_t,de,ae),ae!==hn&&Pu(u,H,de,ae)&&ls&&ps(e.removed)}}Ee(B.afterSanitizeAttributes,u,null),yt(u,c)},wr=function(u){let c=null,g=ns(u);for(Ee(B.beforeSanitizeShadowDOM,u,null);c=g.nextNode();)if(Ee(B.uponSanitizeShadowNode,c,null),ss(c,u),us(c,u),gt(c.content)&&wr(c.content),ee(c)===fe.element){let w=Y(c);gt(w)&&(fn(w),wr(w))}Ee(B.afterSanitizeShadowDOM,u,null)},fn=function(u){let c=[{node:u,shadow:null}];for(;c.length>0;){let g=c.pop();if(g.shadow){wr(g.shadow);continue}let w=g.node,A=ee(w)===fe.element,C=E(w);if(C)for(let L=C.length-1;L>=0;--L)c.push({node:C[L],shadow:null});if(A){let L=V?V(w):null;if(typeof L=="string"&&$(L)==="template"){let H=w.content;gt(H)&&c.push({node:H,shadow:null})}}if(A){let L=Y(w);gt(L)&&c.push({node:null,shadow:L},{node:L,shadow:null})}}};return e.sanitize=function(y){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,g=null,w=null,A=null;if(sn=!y,sn&&(y="<!-->"),typeof y!="string"&&!Nt(y)&&(y=Gu(y),typeof y!="string"))throw ke("dirty is not a string, aborting");if(!e.isSupported)return y;en?(z=lr,W=cr):ln(u),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(z=he(z)),B.uponSanitizeAttribute.length>0&&(W=he(W)),e.removed=[];let C=nn&&typeof y!="string"&&Nt(y);if(C){bu(y);let de=Se(y);if(typeof de=="string"){let ce=$(de);if(!z[ce]||Dt[ce])throw mr(y),ke("root node is forbidden and cannot be sanitized in-place")}if(_r(y))throw mr(y),ke("root node is clobbered and cannot be sanitized in-place");try{fn(y)}catch(ce){throw mr(y),ce}}else if(Nt(y))c=rs("<!---->"),g=c.ownerDocument.importNode(y,!0),g.nodeType===fe.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?c=g:c.appendChild(g),fn(c);else{if(!ft&&!Re&&!We&&y.indexOf("<")===-1)return te&&hr?ct(y):y;if(c=rs(y),!c)return ft?null:hr?pe:""}c&&tn&&Ne(c.firstChild);let L=C?y:c;try{let de=ns(L);for(;w=de.nextNode();)ss(w,L),us(w,L),gt(w.content)&&wr(w.content)}catch(de){throw C&&(mr(y),He(e.removed,ce=>{ce.element&&gr(ce.element)})),de}if(C){let de=!1;if(He(e.removed,ce=>{ce.element&&(ce.element===y&&(de=!0),gr(ce.element))}),de)throw ke("a node selected for removal could not be safely returned; refusing to sanitize in place");return Re&&cn(y),y}if(ft){if(Re&&cn(c),fr)for(A=ru.call(c.ownerDocument);c.firstChild;)A.appendChild(c.firstChild);else A=c;return(W.shadowroot||W.shadowrootmode)&&(A=iu.call(r,A,!0)),A}let H=We?c.outerHTML:c.innerHTML;return We&&z["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&oe(tl,c.ownerDocument.doctype.name)&&(H="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
3
|
+
`+H),Re&&(H=yr(H)),te&&hr?ct(H):H},e.setConfig=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(y),en=!0,lr=z,cr=W},e.clearConfig=function(){mt=null,en=!1,lr=null,cr=null,te=Lt,pe=""},e.isValidAttribute=function(y,u,c){mt||ln({});let g=$(y),w=$(u);return os(g,w,c)},e.addHook=function(y,u){typeof u=="function"&&ue(B,y)&&kt(B[y],u)},e.removeHook=function(y,u){if(ue(B,y)){if(u!==void 0){let c=Fu(B[y],u);return c===-1?void 0:qu(B[y],c,1)[0]}return ps(B[y])}},e.removeHooks=function(y){ue(B,y)&&(B[y]=[])},e.removeAllHooks=function(){B=Os()},e}var ll=Cs();Is.exports=ll});var Ds=T((od,bn)=>{"use strict";var P=String,Ls=function(){return{isColorSupported:!1,reset:P,bold:P,dim:P,italic:P,underline:P,inverse:P,hidden:P,strikethrough:P,black:P,red:P,green:P,yellow:P,blue:P,magenta:P,cyan:P,white:P,gray:P,bgBlack:P,bgRed:P,bgGreen:P,bgYellow:P,bgBlue:P,bgMagenta:P,bgCyan:P,bgWhite:P,blackBright:P,redBright:P,greenBright:P,yellowBright:P,blueBright:P,magentaBright:P,cyanBright:P,whiteBright:P,bgBlackBright:P,bgRedBright:P,bgGreenBright:P,bgYellowBright:P,bgBlueBright:P,bgMagentaBright:P,bgCyanBright:P,bgWhiteBright:P}};bn.exports=Ls();bn.exports.createColors=Ls});var Tn=T(()=>{"use strict"});var Er=T((ld,ks)=>{"use strict";var Rs=Ds(),Ns=Tn(),jt=class i extends Error{constructor(e,t,r,n,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Rs.isColorSupported);let r=f=>f,n=f=>f,s=f=>f;if(e){let{bold:f,gray:_,red:p}=Rs.createColors(!0);n=d=>f(p(d)),r=d=>_(d),Ns&&(s=d=>Ns(d))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),h=String(a).length;return o.slice(l,a).map((f,_)=>{let p=l+1+_,d=" "+(" "+p).slice(-h)+" | ";if(p===this.line){if(f.length>160){let x=20,E=typeof this.endColumn=="number"?this.endColumn:this.column,U=Math.max(0,this.column-x),Y=Math.max(this.column+x,E+x),K=f.slice(U,Y),k=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return n(">")+r(d)+s(K)+`
|
|
4
|
+
`+k+n("^")}let v=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(d)+s(f)+`
|
|
5
|
+
`+v+n("^")}return" "+r(d)+s(f)}).join(`
|
|
6
6
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
7
7
|
|
|
8
8
|
`+e+`
|
|
9
|
-
`),this.name+": "+this.message+e}};
|
|
9
|
+
`),this.name+": "+this.message+e}};ks.exports=jt;jt.default=jt});var En=T((cd,Us)=>{"use strict";var cl=/[\t\n\f\r "#'()/;[\\\]{}]/,Ms={after:`
|
|
10
10
|
`,beforeClose:`
|
|
11
11
|
`,beforeComment:`
|
|
12
12
|
`,beforeDecl:`
|
|
13
13
|
`,beforeOpen:" ",beforeRule:`
|
|
14
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
15
|
-
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=i.prototype,r=["atrule","block","body","rule","stringify"].every(s=>this[s]===t[s]),n=[];for(
|
|
14
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fl(i){return i[0].toUpperCase()+i.slice(1)}function Fs(i,e){let t="@"+e.name,r=e.params?i.rawValue(e,"params"):"",n=e.raws.afterName;return typeof n>"u"?n=r?" ":"":n===""&&r&&!cl.test(r[0])&&(n=" "),t+n+r}function hl(i){if(!i.prop.startsWith("--"))return!1;let e=i.raws.before;return typeof e>"u"||!/[^\s;]$/.test(e)}function js(i,e,t){let r=t.nodes,n=r.length-1;for(;n>0&&r[n].type==="comment";)n-=1;let s=i.raw(t,"semicolon"),o=t.type==="document";for(let l=r.length-1;l>=0;l--){let a=r[l],h=n!==l||s;!h&&l<r.length-1&&(a.type==="atrule"&&!a.nodes||a.type==="decl"&&hl(a))&&(h=!0),e.push({document:o,node:a,semicolon:h})}}function qs(i,e,t,r){let n=i.raw(t,"between","beforeOpen");i.builder(r+n+"{",t,"start");let s=t.nodes&&t.nodes.length,o=()=>{let l=s?i.raw(t,"after"):i.raw(t,"after","emptyBody");l&&i.builder(l),i.builder("}",t,"end"),t.type==="rule"&&t.raws.ownSemicolon&&i.builder(t.raws.ownSemicolon,t,"end")};s?(e.push(o),js(i,e,t)):o()}var Ut=class i{constructor(e){this.builder=e}atrule(e,t){let r=Fs(this,e);if(e.nodes)this.block(e,r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(r.includes(`
|
|
15
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=i.prototype,r=["atrule","block","body","rule","stringify"].every(s=>this[s]===t[s]),n=[];for(js(this,n,e);n.length>0;){let s=n.pop();if(typeof s=="function"){s();continue}let o=s.node,l=this.raw(o,"before");l&&this.builder(l),r&&o.type==="rule"?qs(this,n,o,this.rawValue(o,"selector")):r&&o.type==="atrule"&&o.nodes?qs(this,n,o,Fs(this,o)):this.stringify(o,s.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=e.raws,n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=r.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Ms[r];let o=e.root(),l=o.rawCache||(o.rawCache={});if(typeof l[r]<"u")return l[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+fl(r);this[a]?n=this[a](o,e):o.walk(h=>{if(n=h.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ms[r]),l[r]=n,n}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
|
|
16
16
|
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
17
17
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
18
18
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
19
19
|
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
|
|
20
|
-
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){!(e.parent&&e.parent.type==="document")&&e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};
|
|
21
|
-
`?(t=1,r+=1):t+=1}return n}var
|
|
22
|
-
`?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Me(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Me(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(Me(t,this.source.start),n.offset).indexOf(e.word);o!==-1&&(r=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Me(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:Me(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):typeof e.index=="number"&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new pl().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],s=[[this,n,0]];for(let l=0;l<s.length;l++){let[a,f,h]=s[l],v={};f[h]=v;for(let p in a){if(!Object.prototype.hasOwnProperty.call(a,p)||p==="parent"||p==="proxyCache")continue;let g=a[p];if(Array.isArray(g)){let _=[];v[p]=_;for(let x=0;x<g.length;x++){let E=g[x];typeof E=="object"&&E.toJSON?E.toJSON===i.prototype.toJSON?s.push([E,_,x]):_[x]=E.toJSON(null,t):_[x]=E}}else if(typeof g=="object"&&g.toJSON)g.toJSON===i.prototype.toJSON?s.push([g,v,p]):v[p]=g.toJSON(null,t);else if(p==="source"){if(g==null)continue;let _=t.get(g.input);_==null&&(_=t.size,t.set(g.input,_)),v[p]={end:g.end,inputId:_,start:g.start}}else v[p]=g}}let o=n[0];return r&&(o.inputs=[...t.keys()].map(l=>l.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=dl){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}};Fs.exports=Wt;Wt.default=Wt});var Yt=T((ud,qs)=>{"use strict";var yl=Ht(),Gt=class extends yl{constructor(e){super(e),this.type="comment"}};qs.exports=Gt;Gt.default=Gt});var Vt=T((ld,js)=>{"use strict";var _l=Ht(),$t=class extends _l{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};js.exports=$t;$t.default=$t});var Ae=T((cd,$s)=>{"use strict";var Bs=Yt(),zs=Vt(),Us=Ht(),{isClean:Ws,my:Hs}=Bt(),On,Gs,Ys,An;function vl(i){let e=i.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let r of t.nodes)e.push(r)}}return i.slice()}function wl(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[Ws]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var Oe=class i extends Us{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==i.prototype.cleanRaws){r.cleanRaws(e);continue}if(Us.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):t==="every"||t==="some"?r=>e[t]((n,...s)=>r(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let l of s)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=vl(Gs(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zs(e)]}else if(e.selector||e.selectors)e=[new An(e)];else if(e.name)e=[new On(e)];else if(e.text)e=[new Bs(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Hs]||i.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ws]&&wl(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:r,node:n}=t[t.length-1],s=n.indexes[r];if(s>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let a=t[t.length-1];a&&(a.node.indexes[a.iterator]+=1);continue}let o=n.proxyOf.nodes[s],l;try{l=e(o,s)}catch(a){throw o.addToError(a)}if(l===!1){for(let a of t)delete a.node.indexes[a.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):n.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}};Oe.registerParse=i=>{Gs=i};Oe.registerRule=i=>{An=i};Oe.registerAtRule=i=>{On=i};Oe.registerRoot=i=>{Ys=i};$s.exports=Oe;Oe.default=Oe;Oe.rebuild=i=>{let e=[i];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,On.prototype):t.type==="rule"?Object.setPrototypeOf(t,An.prototype):t.type==="decl"?Object.setPrototypeOf(t,zs.prototype):t.type==="comment"?Object.setPrototypeOf(t,Bs.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ys.prototype),t[Hs]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var br=T((fd,Qs)=>{"use strict";var Vs=Ae(),wt=class extends Vs{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Qs.exports=wt;wt.default=wt;Vs.registerAtRule(wt)});var Tr=T((hd,Js)=>{"use strict";var Sl=Ae(),Xs,Ks,Ge=class extends Sl{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Xs(new Ks,this,e).stringify()}};Ge.registerLazyResult=i=>{Xs=i};Ge.registerProcessor=i=>{Ks=i};Js.exports=Ge;Ge.default=Ge});var eo=T((pd,Zs)=>{"use strict";var bl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tl=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n-- >0;)r+=i[Math.random()*i.length|0];return r},El=(i=21)=>{let e="",t=i|0;for(;t-- >0;)e+=bl[Math.random()*64|0];return e};Zs.exports={nanoid:El,customAlphabet:Tl}});var Er=T(()=>{"use strict"});var Or=T(()=>{"use strict"});var Pn=T(()=>{"use strict"});var to=T(()=>{"use strict"});var xn=T((bd,so)=>{"use strict";var{existsSync:Ol,readFileSync:Al,realpathSync:Pl}=to(),{dirname:Ar,isAbsolute:xl,join:Cl,relative:Il,sep:Ll}=Er(),{SourceMapConsumer:ro,SourceMapGenerator:no}=Or();function io(i){try{return Pl(i)}catch{return i}}function Dl(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var Qt=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ar(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new ro(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(n)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(r);if(l)return Dl(e.substr(l[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=Il(io(Ar(t)),io(e));if(n===".."||n.startsWith(".."+Ll)||xl(n))return}if(this.root=Ar(e),Ol(e))return this.mapFile=e,Al(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof ro)return no.fromSourceMap(t).toString();if(t instanceof no)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;e&&(r=Cl(Ar(e),r));let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};so.exports=Qt;Qt.default=Qt});var Xt=T((Td,co)=>{"use strict";var{nanoid:Rl}=eo(),{isAbsolute:Ln,resolve:xr}=Er(),{SourceMapConsumer:Nl,SourceMapGenerator:kl}=Or(),{fileURLToPath:oo,pathToFileURL:Pr}=Pn(),ao=Sr(),Ml=xn(),Cn=wn(),In=Symbol("lineToIndexCache"),Fl=!!(Nl&&kl),uo=!!(xr&&Ln);function lo(i){if(i[In])return i[In];let e=i.css.split(`
|
|
23
|
-
`),t=new Array(e.length),r=0;for(let n=0,s=e.length;n<s;n++)t[n]=r,r+=e[n].length+1;return i[
|
|
24
|
-
`," "];return
|
|
20
|
+
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){!(e.parent&&e.parent.type==="document")&&e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};Us.exports=Ut;Ut.default=Ut});var Bt=T((fd,Bs)=>{"use strict";var pl=En(),dl=/(<)(\/?style\b)/gi,ml=/(<)(!--)/g;function gl(i){return i.includes("<")?i.replace(dl,"\\3c $2").replace(ml,"\\3c $2"):i}function yl(i,e,t){let r=[],n=0,s=0;for(let o=0;o<i.length;o+=3){let l=s,a=n+i[o].length;for(;n<a;)e[n]===t[s]?(n+=1,s+=1):(n+=1,s+=4);r.push(t.slice(l,s))}return r}var On=class extends pl{escapeHTML(e){let t=this.builder,r,n;if(this.builder=(o,l,a)=>{r?(n+=o,r.push(o,l,a)):o.includes("<")?(n=o,r=[o,l,a]):t(o,l,a)},e(),this.builder=t,!r)return;let s=gl(n);if(s===n)for(let o=0;o<r.length;o+=3)t(r[o],r[o+1],r[o+2]);else{let o=yl(r,n,s);for(let l=0;l<r.length;l+=3)t(o[l/3],r[l+1],r[l+2])}}root(e){e.parent&&e.parent.type==="document"?(this.escapeHTML(()=>this.body(e)),e.raws.after&&this.builder(e.raws.after)):this.escapeHTML(()=>super.root(e))}};function An(i,e){let t=new On(e);i.type==="root"||i.type==="document"?t.stringify(i):t.escapeHTML(()=>t.stringify(i))}Bs.exports=An;An.default=An});var zt=T((hd,Pn)=>{"use strict";Pn.exports.isClean=Symbol("isClean");Pn.exports.my=Symbol("my")});var Ht=T((pd,zs)=>{"use strict";var _l=Er(),vl=En(),wl=Bt(),{isClean:Wt,my:Sl}=zt();function bl(i,e){let t=new i.constructor,r=[[i,t,e]];for(;r.length>0;){let[n,s,o]=r.pop();for(let l in n){if(!Object.prototype.hasOwnProperty.call(n,l)||l==="proxyCache")continue;let a=n[l],h=typeof a;if(l==="parent"&&h==="object")o&&(s[l]=o);else if(l==="source")s[l]=a;else if(Array.isArray(a)){let f=[];s[l]=f;for(let _ of a){let p=new _.constructor;f.push(p),r.push([_,p,s])}}else{if(h==="object"&&a!==null){let f=new a.constructor;r.push([a,f,void 0]),a=f}s[l]=a}}}return t}function Fe(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,n=0;for(let s=0;s<i.length;s++){if(r===e.line&&t===e.column){n=s;break}i[s]===`
|
|
21
|
+
`?(t=1,r+=1):t+=1}return n}var Gt=class i{get proxyOf(){return this}constructor(e={}){this.raws={},this[Wt]=!1,this[Sl]=!0;for(let t of Object.keys(e))if(t!=="__proto__")if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=bl(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new _l(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Wt]=!0}markDirty(){if(this[Wt]){this[Wt]=!1;let e=this;for(;e=e.parent;)e[Wt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Fe(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let s=t.slice(Fe(t,this.source.start),this.rangeBy().end.offset).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=Fe(n,this.source.start),o=s+e;for(let l=s;l<o;l++)n[l]===`
|
|
22
|
+
`?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Fe(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Fe(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(Fe(t,this.source.start),n.offset).indexOf(e.word);o!==-1&&(r=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Fe(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:Fe(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):typeof e.index=="number"&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new vl().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],s=[[this,n,0]];for(let l=0;l<s.length;l++){let[a,h,f]=s[l],_={};h[f]=_;for(let p in a){if(!Object.prototype.hasOwnProperty.call(a,p)||p==="parent"||p==="proxyCache")continue;let d=a[p];if(Array.isArray(d)){let v=[];_[p]=v;for(let x=0;x<d.length;x++){let E=d[x];typeof E=="object"&&E.toJSON?E.toJSON===i.prototype.toJSON?s.push([E,v,x]):v[x]=E.toJSON(null,t):v[x]=E}}else if(typeof d=="object"&&d.toJSON)d.toJSON===i.prototype.toJSON?s.push([d,_,p]):_[p]=d.toJSON(null,t);else if(p==="source"){if(d==null)continue;let v=t.get(d.input);v==null&&(v=t.size,t.set(d.input,v)),_[p]={end:d.end,inputId:v,start:d.start}}else _[p]=d}}let o=n[0];return r&&(o.inputs=[...t.keys()].map(l=>l.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=wl){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}};zs.exports=Gt;Gt.default=Gt});var $t=T((dd,Ws)=>{"use strict";var Tl=Ht(),Yt=class extends Tl{constructor(e){super(e),this.type="comment"}};Ws.exports=Yt;Yt.default=Yt});var Qt=T((md,Gs)=>{"use strict";var El=Ht(),Vt=class extends El{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Gs.exports=Vt;Vt.default=Vt});var Ae=T((gd,Js)=>{"use strict";var Ys=$t(),$s=Qt(),Hs=Ht(),{isClean:Vs,my:Qs}=zt(),xn,Xs,Ks,Cn;function Ol(i){let e=i.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let r of t.nodes)e.push(r)}}return i.slice()}function Al(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[Vs]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var Oe=class i extends Hs{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==i.prototype.cleanRaws){r.cleanRaws(e);continue}if(Hs.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):t==="every"||t==="some"?r=>e[t]((n,...s)=>r(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let l of s)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ol(Xs(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new $s(e)]}else if(e.selector||e.selectors)e=[new Cn(e)];else if(e.name)e=[new xn(e)];else if(e.text)e=[new Ys(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Qs]||i.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Vs]&&Al(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:r,node:n}=t[t.length-1],s=n.indexes[r];if(s>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let a=t[t.length-1];a&&(a.node.indexes[a.iterator]+=1);continue}let o=n.proxyOf.nodes[s],l;try{l=e(o,s)}catch(a){throw o.addToError(a)}if(l===!1){for(let a of t)delete a.node.indexes[a.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):n.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}};Oe.registerParse=i=>{Xs=i};Oe.registerRule=i=>{Cn=i};Oe.registerAtRule=i=>{xn=i};Oe.registerRoot=i=>{Ks=i};Js.exports=Oe;Oe.default=Oe;Oe.rebuild=i=>{let e=[i];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,xn.prototype):t.type==="rule"?Object.setPrototypeOf(t,Cn.prototype):t.type==="decl"?Object.setPrototypeOf(t,$s.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ys.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ks.prototype),t[Qs]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var Or=T((yd,eo)=>{"use strict";var Zs=Ae(),St=class extends Zs{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};eo.exports=St;St.default=St;Zs.registerAtRule(St)});var Ar=T((_d,no)=>{"use strict";var Pl=Ae(),to,ro,Ye=class extends Pl{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new to(new ro,this,e).stringify()}};Ye.registerLazyResult=i=>{to=i};Ye.registerProcessor=i=>{ro=i};no.exports=Ye;Ye.default=Ye});var so=T((vd,io)=>{"use strict";var xl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cl=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n-- >0;)r+=i[Math.random()*i.length|0];return r},Il=(i=21)=>{let e="",t=i|0;for(;t-- >0;)e+=xl[Math.random()*64|0];return e};io.exports={nanoid:Il,customAlphabet:Cl}});var Pr=T(()=>{"use strict"});var xr=T(()=>{"use strict"});var In=T(()=>{"use strict"});var oo=T(()=>{"use strict"});var Ln=T((xd,co)=>{"use strict";var{existsSync:Ll,readFileSync:Dl,realpathSync:Rl}=oo(),{dirname:Cr,isAbsolute:Nl,join:kl,relative:Ml,sep:Fl}=Pr(),{SourceMapConsumer:ao,SourceMapGenerator:uo}=xr();function lo(i){try{return Rl(i)}catch{return i}}function ql(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var Xt=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Cr(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new ao(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(n)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(r);if(l)return ql(e.substr(l[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=Ml(lo(Cr(t)),lo(e));if(n===".."||n.startsWith(".."+Fl)||Nl(n))return}if(this.root=Cr(e),Ll(e))return this.mapFile=e,Dl(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof ao)return uo.fromSourceMap(t).toString();if(t instanceof uo)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;e&&(r=kl(Cr(e),r));let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};co.exports=Xt;Xt.default=Xt});var Kt=T((Cd,go)=>{"use strict";var{nanoid:jl}=so(),{isAbsolute:Nn,resolve:Lr}=Pr(),{SourceMapConsumer:Ul,SourceMapGenerator:Bl}=xr(),{fileURLToPath:fo,pathToFileURL:Ir}=In(),ho=Er(),zl=Ln(),Dn=Tn(),Rn=Symbol("lineToIndexCache"),Wl=!!(Ul&&Bl),po=!!(Lr&&Nn);function mo(i){if(i[Rn])return i[Rn];let e=i.css.split(`
|
|
23
|
+
`),t=new Array(e.length),r=0;for(let n=0,s=e.length;n<s;n++)t[n]=r,r+=e[n].length+1;return i[Rn]=t,t}var bt=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!po||/^\w+:\/\//.test(t.from)||Nn(t.from)?this.file=t.from:this.file=Lr(t.from)),po&&Wl){let r=new zl(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+jl(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,o,l,a,h;if(t&&typeof t=="object"){let _=t,p=r;if(typeof _.offset=="number"){a=_.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=_.line,r=_.column,a=this.fromLineAndColumn(t,r);if(typeof p.offset=="number"){l=p.offset;let d=this.fromOffset(l);o=d.line,s=d.col}else o=p.line,s=p.column,l=this.fromLineAndColumn(p.line,p.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let _=this.fromOffset(a);t=_.line,r=_.col}let f=this.origin(t,r,o,s);return f?h=new ho(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):h=new ho(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,n.plugin),h.input={column:r,endColumn:s,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(Ir&&(h.input.url=Ir(this.file).toString()),h.input.file=this.file),h}fromLineAndColumn(e,t){return mo(this)[e-1]+t-1}fromOffset(e){let t=mo(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let s=t.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<t[o])s=o-1;else if(e>=t[o+1])n=o+1;else{n=o;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Lr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let l;if(typeof r=="number"){let _=s.originalPositionFor({column:n-1,line:r});_.source&&(l=_)}let a;Nn(o.source)?a=Ir(o.source):a=new URL(o.source,Ir(this.map.mapFile||Lr(".")+"/"));let h={column:o.column+1,endColumn:l&&l.column+1,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(fo)h.file=fo(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=s.sourceContentFor(o.source);return f&&(h.source=f),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};go.exports=bt;bt.default=bt;Dn&&Dn.registerInput&&Dn.registerInput(bt)});var Tt=T((Id,wo)=>{"use strict";var yo=Ae(),_o,vo,qe=class extends yo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=new Set;for(let o of Array.isArray(e)?e:[e])o&&typeof o=="object"&&!o.parent&&o.raws&&typeof o.raws.before<"u"&&n.add(o.raws);let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)n.has(o.raws)||(o.raws.before=t.raws.before)}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new _o(new vo,this,e).stringify()}};qe.registerLazyResult=i=>{_o=i};qe.registerProcessor=i=>{vo=i};wo.exports=qe;qe.default=qe;yo.registerRoot(qe)});var kn=T((Ld,So)=>{"use strict";var Jt={comma(i){return Jt.split(i,[","],!0)},space(i){let e=[" ",`
|
|
24
|
+
`," "];return Jt.split(i,e)},split(i,e,t){if(typeof i!="string")return[];let r=[],n="",s=!1,o=0,l=!1,a="",h=!1,f=!1;for(let p=0;p<i.length;p++){let d=i[p];if(f){n+=d,d==="*"&&i[p+1]==="/"&&(n+="/",p+=1,f=!1);continue}if(h)h=!1;else if(d==="\\")h=!0;else if(l)d===a&&(l=!1);else if(d==='"'||d==="'")l=!0,a=d;else if(d==="/"&&i[p+1]==="*"){n+="/*",p+=1,f=!0;continue}else d==="("?o+=1:d===")"?o>0&&(o-=1):o===0&&e.includes(d)&&(s=!0);if(s){let v=n.trim();(t||v!=="")&&r.push(v),n="",s=!1}else n+=d}let _=n.trim();return(t||_!=="")&&r.push(_),r}};So.exports=Jt;Jt.default=Jt});var Dr=T((Dd,To)=>{"use strict";var bo=Ae(),Gl=kn(),Et=class extends bo{get selectors(){return Gl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};To.exports=Et;Et.default=Et;bo.registerRule(Et)});var Ao=T((Rd,Oo)=>{"use strict";var Hl=Or(),Yl=$t(),$l=Qt(),Vl=Kt(),Ql=Ln(),Xl=Tt(),Kl=Dr();function Eo(i,e){return i.inputs?i.inputs.map(t=>{let r={...t,__proto__:Vl.prototype};return r.map&&(r.map={...r.map,__proto__:Ql.prototype}),r}):e}function Jl(i,e,t){let r={...i};if(delete r.inputs,delete r.nodes,r.source){let{inputId:s,...o}=r.source;r.source=o,s!=null&&(r.source.input=e[s])}let n;if(r.type==="root")n=new Xl(r);else if(r.type==="decl")n=new $l(r);else if(r.type==="rule")n=new Kl(r);else if(r.type==="comment")n=new Yl(r);else if(r.type==="atrule")n=new Hl(r);else throw new Error("Unknown node type: "+i.type);if(t){n.nodes=t;for(let s of t)s.parent=n}return n}function Rr(i,e){if(Array.isArray(i))return i.map(n=>Rr(n));let t,r=[{childIndex:0,children:[],inputs:Eo(i,e),json:i}];for(;r.length>0;){let n=r[r.length-1],s=n.json.nodes;if(s&&n.childIndex<s.length){let l=s[n.childIndex];n.childIndex+=1,r.push({childIndex:0,children:[],inputs:Eo(l,n.inputs),json:l});continue}r.pop();let o=Jl(n.json,n.inputs,s?n.children:void 0);r.length>0?r[r.length-1].children.push(o):t=o}return t}Oo.exports=Rr;Rr.default=Rr});var Fn=T((Nd,Do)=>{"use strict";var{dirname:Nr,relative:xo,resolve:Co,sep:Io}=Pr(),{SourceMapConsumer:Lo,SourceMapGenerator:kr}=xr(),{pathToFileURL:Po}=In(),Zl=Kt(),ec=!!(Lo&&kr),tc=!!(Nr&&Co&&xo&&Io),Mn=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
25
25
|
`;this.css.includes(`\r
|
|
26
26
|
`)&&(t=`\r
|
|
27
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||
|
|
28
|
-
`||this.css[n-1]==="\r");)n--;t+=this.css.slice(r,n),r=s+2}r>0&&(this.css=t+this.css.slice(r))}}}generate(){if(this.clearAnnotation(),
|
|
29
|
-
`),t=l.length-s):t+=l.length,a&&f!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Lr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Lr(Eo(r,this.mapOpts.annotation)));let n=To(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new $l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(bo){let r=bo(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Oo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};Po.exports=Rn});var Lo=T((Cd,Io)=>{"use strict";var Rr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Xl=/.[\r\n"'(/\\]/,xo=/[\da-f]/i,Kl=/(^|[\t\n\f\r "'(),/:;[\]{}])url$/i,Co=/[\t\n\f\r ]*["']/y;Io.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,o,l,a,f,h,v,p,g=r.length,_=0,x=[],E=-1;function U(){return _}function Y(Q){throw e.error("Unclosed "+Q,_)}function K(){return x.length===0&&_>=g}function k(Q){if(x.length)return x.pop();if(_>=g)return;let ee=Q?Q.ignoreUnclosed:!1;switch(s=r.charCodeAt(_),s){case 10:case 32:case 9:case 13:case 12:{a=_;do a+=1,s=r.charCodeAt(a);while(s===32||s===10||s===9||s===13||s===12);h=["space",r.slice(_,a)],_=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Se=String.fromCharCode(s);h=[Se,Se,_];break}case 40:{if(Co.lastIndex=_+1,Kl.test(r.substring(_-4,_))&&!Co.test(r)){a=_;do{if(v=!1,a=r.indexOf(")",a+1),a===-1)if(n||ee){a=_;break}else Y("bracket");for(p=a;r.charCodeAt(p-1)===92;)p-=1,v=!v}while(v);h=["brackets",r.slice(_,a+1),_,a],_=a}else _<=E?h=["(","(",_]:(a=r.indexOf(")",_+1),o=r.slice(_,a+1),a===-1||Xl.test(o)?(E=a===-1?g:a,h=["(","(",_]):(h=["brackets",o,_,a],_=a));break}case 39:case 34:{f=s===39?"'":'"',a=_;do{if(v=!1,a=r.indexOf(f,a+1),a===-1)if(n||ee){a=_+1;break}else Y("string");for(p=a;r.charCodeAt(p-1)===92;)p-=1,v=!v}while(v);h=["string",r.slice(_,a+1),_,a],_=a;break}case 64:{Rr.lastIndex=_+1,Rr.test(r),Rr.lastIndex===0?a=r.length-1:a=Rr.lastIndex-2,h=["at-word",r.slice(_,a+1),_,a],_=a;break}case 92:{for(a=_,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(s=r.charCodeAt(a+1),l&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(a+=1,xo.test(r.charAt(a)))){for(;xo.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}h=["word",r.slice(_,a+1),_,a],_=a;break}default:{s===47&&r.charCodeAt(_+1)===42?(a=r.indexOf("*/",_+2)+1,a===0&&(n||ee?a=r.length:Y("comment")),h=["comment",r.slice(_,a+1),_,a],_=a):(Nr.lastIndex=_+1,Nr.test(r),Nr.lastIndex===0?a=r.length-1:a=Nr.lastIndex-2,h=["word",r.slice(_,a+1),_,a],_=a);break}}return _++,h}function V(Q){x.push(Q)}return{back:V,endOfFile:K,nextToken:k,position:U}}});var ko=T((Id,No)=>{"use strict";var Jl=br(),Zl=Yt(),ec=Vt(),tc=bt(),Do=Cr(),rc=Lo(),Ro={empty:!0,space:!0};function nc(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}function kn(i,e,t){let r="";for(let n=e;n<t;n++)r+=i[n][1];return r}var Mn=class{constructor(e){this.input=e,this.root=new tc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Jl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,s,o=!1,l=!1,a=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(s=a.length-1,n=a[s];n&&n[0]==="space";)n=a[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[o,l]of e.entries()){if(n=l,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let t=new Zl;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=rc(this.input)}decl(e,t){let r=new ec;this.init(r,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||nc(e)),r.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;r.raws.before+=kn(e,0,s),r.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let p=e[s][0];if(p===":"||p==="space"||p==="comment")break;s++}r.prop=kn(e,o,s);let l=s,a;for(;s<e.length&&(a=e[s],s++,a[0]!==":");)a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]);r.raws.between=kn(e,l,s),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=s;for(;s<e.length;){let p=e[s][0];if(p!=="space"&&p!=="comment")break;s++}let h=e.slice(f,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let p=e.length-1;p>=0;p--){if(a=e[p],a[1].toLowerCase()==="!important"){r.important=!0;let g=this.stringFrom(e,p);g=this.spacesFromEnd(e)+g,g!==" !important"&&(r.raws.important=g);break}else if(a[1].toLowerCase()==="important"){let g=e.slice(0),_="";for(let x=p;x>0;x--){let E=g[x][0];if(_.trim().startsWith("!")&&E!=="space")break;_=g.pop()[1]+_}_.trim().startsWith("!")&&(r.important=!0,r.raws.important=_,e=g)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=h.map(p=>p[1]).join(""),h=[]),this.raw(r,"value",h.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Do;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset++)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,o=[],l=e[1].startsWith("--"),a=[],f=e;for(;f;){if(r=f[0],a.push(f),r==="("||r==="[")s||(s=f),o.push(r==="("?")":"]");else if(l&&n&&r==="{")s||(s=f),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){if(!l)for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,o,l=r.length,a="",f="",h=!0,v,p;for(let g=0;g<l;g+=1)s=r[g],o=s[0],o==="space"&&g===l-1&&!n?h=!1:o==="comment"?(p=r[g-1]?r[g-1][0]:"empty",v=r[g+1]?r[g+1][0]:"empty",!Ro[p]&&!Ro[v]?f===","?h=!1:(a+=s[1],f=s[1].slice(-1)):h=!1):(a+=s[1],f=s[1].slice(-1));if(!h){let g=r.reduce((_,x)=>_+x[1],"");e.raws[t]={raw:g,value:a}}e[t]=a}rule(e){e.pop();let t=new Do;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};No.exports=Mn});var Mr=T((Ld,Mo)=>{"use strict";var ic=Ae(),sc=Xt(),oc=ko();function kr(i,e){let t=new sc(i,e),r=new oc(t);try{r.parse()}catch(n){throw n}return r.root}Mo.exports=kr;kr.default=kr;ic.registerParse(kr)});var Fn=T((Dd,Fo)=>{"use strict";var ac=Ae(),{my:uc}=Bt(),Jt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){t.node[uc]||ac.rebuild(t.node);let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,start:this.start,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Fo.exports=Jt;Jt.default=Jt});var Fr=T((Rd,qo)=>{"use strict";var lc=Fn(),Zt=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new lc(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};qo.exports=Zt;Zt.default=Zt});var qn=T((Nd,Uo)=>{"use strict";var jo={};Uo.exports=function(e){jo[e]||(jo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Bn=T((Md,Ho)=>{"use strict";var cc=Ae(),fc=Tr(),hc=Nn(),pc=Mr(),Bo=Fr(),dc=bt(),mc=Ut(),{isClean:ve,my:gc}=Bt(),kd=qn(),yc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vc={Once:!0,postcssPlugin:!0,prepare:!0},Et=0;function er(i){return typeof i=="object"&&typeof i.then=="function"}function jn(i){let e=!1,t=yc[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Et,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Et,t+"Exit"]:[t,t+"Exit"]}function zo(i){let e;return i.type==="document"?e=["Document",Et,"DocumentExit"]:i.type==="root"?e=["Root",Et,"RootExit"]:e=jn(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Wo(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[ve]=!1,t.nodes)for(let r of t.nodes)e.push(r)}return i}var Un={},qe=class i{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=Wo(t);else if(t instanceof i||t instanceof Bo)n=Wo(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let s=pc;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{n=s(t,r)}catch(o){this.processed=!0,this.error=o}n&&!n[gc]&&cc.rebuild(n)}this.result=new Bo(e,n,r),this.helpers={...Un,postcss:Un,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().finally(e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!_c[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vc[r])if(typeof t[r]=="object")for(let n in t[r])n==="*"?e(t,r,t[r][n]):e(t,r+"-"+n.toLowerCase(),t[r][n]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(er(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];){e[ve]=!0;let t=[zo(e)];for(;t.length>0;){let r=this.visitTick(t);if(er(r))try{await r}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(s=>r(s,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return er(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=mc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let o="";return t(this.result.root,l=>{o+=l}),this.result.css=o,this.result}let s=new hc(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(er(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];)e[ve]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){this.result.lastPlugin=r;let s;try{s=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(er(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,l]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator;t.descending&&(t.descending=!1,r.indexes[o]+=1);let l;for(;l=r.nodes[r.indexes[o]];){if(!l[ve]){l[ve]=!0,t.descending=!0,e.push(zo(l));return}r.indexes[o]+=1}t.iterator=0,delete r.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Et){r.nodes&&r.nodes.length&&(r[ve]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ve]=!0;let t=[{eventIndex:0,events:jn(e),iterator:0,node:e}];for(;t.length>0;){let r=t[t.length-1],n=r.node;if(r.iterator!==0){let s=r.iterator;r.descending&&(r.descending=!1,n.indexes[s]+=1);let o,l=!1;for(;o=n.nodes[n.indexes[s]];){if(!o[ve]){o[ve]=!0,r.descending=!0,t.push({eventIndex:0,events:jn(o),iterator:0,node:o}),l=!0;break}n.indexes[s]+=1}if(l)continue;r.iterator=0,delete n.indexes[s]}if(r.eventIndex<r.events.length){let s=r.events[r.eventIndex];if(r.eventIndex+=1,s===Et)n.nodes&&n.nodes.length&&(r.iterator=n.getIterator());else{let o=this.listeners[s];o&&this.visitSync(o,n.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};qe.registerPostcss=i=>{Un=i};Ho.exports=qe;qe.default=qe;dc.registerLazyResult(qe);fc.registerLazyResult(qe)});var Yo=T((qd,Go)=>{"use strict";var wc=Nn(),Sc=Mr(),bc=Fr(),Tc=Ut(),Fd=qn(),tr=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Sc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n=Tc;this.result=new bc(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new wc(n,void 0,this._opts,t);if(o.isMap()){let[l,a]=o.generate();l&&(this.result.css=l),a&&(this.result.map=a)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().finally(e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};Go.exports=tr;tr.default=tr});var Vo=T((jd,$o)=>{"use strict";var Ec=Tr(),Oc=Bn(),Ac=Yo(),Pc=bt(),Ye=class{constructor(e=[]){this.version="8.5.33",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Ac(this,e,t):new Oc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};$o.exports=Ye;Ye.default=Ye;Pc.registerProcessor(Ye);Ec.registerProcessor(Ye)});var ra=T((Ud,ta)=>{"use strict";var Qo=br(),Xo=Yt(),xc=Ae(),Cc=Sr(),Ko=Vt(),Jo=Tr(),Ic=So(),Lc=Xt(),Dc=Bn(),Rc=Dn(),Nc=Ht(),kc=Mr(),zn=Vo(),Mc=Fr(),Zo=bt(),ea=Cr(),Fc=Ut(),qc=Fn();function N(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new zn(i)}N.plugin=function(e,t){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
30
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new
|
|
27
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Nr(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Lo(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e="/*# sourceMappingURL=",t="",r=0,n;for(;(n=this.css.indexOf(e,r))!==-1;){let s=this.css.indexOf("*/",n+e.length);if(s===-1)break;if(s+2===this.css.length||/[\t\n\f\r ]/.test(this.css[s+2]))for(;n>r&&(this.css[n-1]===`
|
|
28
|
+
`||this.css[n-1]==="\r");)n--;t+=this.css.slice(r,n),r=s+2}r>0&&(this.css=t+this.css.slice(r))}}}generate(){if(this.clearAnnotation(),tc&&ec&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=kr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new kr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new kr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,h)=>{if(this.css+=l,a&&h!=="end"&&(n.generated.line=e,n.generated.column=t-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=l.match(/\n/g),o?(e+=o.length,s=l.lastIndexOf(`
|
|
29
|
+
`),t=l.length-s):t+=l.length,a&&h!=="start"){let f=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==f.last||f.raws.semicolon)&&(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Nr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Nr(Co(r,this.mapOpts.annotation)));let n=xo(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Zl(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Po){let r=Po(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Io==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};Do.exports=Mn});var Mo=T((kd,ko)=>{"use strict";var Mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rc=/.[\r\n"'(/\\]/,Ro=/[\da-f]/i,nc=/(^|[\t\n\f\r "'(),/:;[\]{}])url$/i,No=/[\t\n\f\r ]*["']/y;ko.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,o,l,a,h,f,_,p,d=r.length,v=0,x=[],E=-1;function U(){return v}function Y(Q){throw e.error("Unclosed "+Q,v)}function K(){return x.length===0&&v>=d}function k(Q){if(x.length)return x.pop();if(v>=d)return;let ee=Q?Q.ignoreUnclosed:!1;switch(s=r.charCodeAt(v),s){case 10:case 32:case 9:case 13:case 12:{a=v;do a+=1,s=r.charCodeAt(a);while(s===32||s===10||s===9||s===13||s===12);f=["space",r.slice(v,a)],v=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Se=String.fromCharCode(s);f=[Se,Se,v];break}case 40:{if(No.lastIndex=v+1,nc.test(r.substring(v-4,v))&&!No.test(r)){a=v;do{if(_=!1,a=r.indexOf(")",a+1),a===-1)if(n||ee){a=v;break}else Y("bracket");for(p=a;r.charCodeAt(p-1)===92;)p-=1,_=!_}while(_);f=["brackets",r.slice(v,a+1),v,a],v=a}else v<=E?f=["(","(",v]:(a=r.indexOf(")",v+1),o=r.slice(v,a+1),a===-1||rc.test(o)?(E=a===-1?d:a,f=["(","(",v]):(f=["brackets",o,v,a],v=a));break}case 39:case 34:{h=s===39?"'":'"',a=v;do{if(_=!1,a=r.indexOf(h,a+1),a===-1)if(n||ee){a=v+1;break}else Y("string");for(p=a;r.charCodeAt(p-1)===92;)p-=1,_=!_}while(_);f=["string",r.slice(v,a+1),v,a],v=a;break}case 64:{Mr.lastIndex=v+1,Mr.test(r),Mr.lastIndex===0?a=r.length-1:a=Mr.lastIndex-2,f=["at-word",r.slice(v,a+1),v,a],v=a;break}case 92:{for(a=v,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(s=r.charCodeAt(a+1),l&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(a+=1,Ro.test(r.charAt(a)))){for(;Ro.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(v,a+1),v,a],v=a;break}default:{s===47&&r.charCodeAt(v+1)===42?(a=r.indexOf("*/",v+2)+1,a===0&&(n||ee?a=r.length:Y("comment")),f=["comment",r.slice(v,a+1),v,a],v=a):(Fr.lastIndex=v+1,Fr.test(r),Fr.lastIndex===0?a=r.length-1:a=Fr.lastIndex-2,f=["word",r.slice(v,a+1),v,a],v=a);break}}return v++,f}function V(Q){x.push(Q)}return{back:V,endOfFile:K,nextToken:k,position:U}}});var Uo=T((Md,jo)=>{"use strict";var ic=Or(),sc=$t(),oc=Qt(),ac=Tt(),Fo=Dr(),uc=Mo(),qo={empty:!0,space:!0};function lc(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}function qn(i,e,t){let r="";for(let n=e;n<t;n++)r+=i[n][1];return r}var jn=class{constructor(e){this.input=e,this.root=new ac,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new ic;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,s,o=!1,l=!1,a=[],h=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?h.push(r==="("?")":"]"):r==="{"&&h.length>0?h.push("}"):r===h[h.length-1]&&h.pop(),h.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(s=a.length-1,n=a[s];n&&n[0]==="space";)n=a[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[o,l]of e.entries()){if(n=l,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let t=new sc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=uc(this.input)}decl(e,t){let r=new oc;this.init(r,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||lc(e)),r.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;r.raws.before+=qn(e,0,s),r.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let p=e[s][0];if(p===":"||p==="space"||p==="comment")break;s++}r.prop=qn(e,o,s);let l=s,a;for(;s<e.length&&(a=e[s],s++,a[0]!==":");)a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]);r.raws.between=qn(e,l,s),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let h=s;for(;s<e.length;){let p=e[s][0];if(p!=="space"&&p!=="comment")break;s++}let f=e.slice(h,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let p=e.length-1;p>=0;p--){if(a=e[p],a[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(e,p);d=this.spacesFromEnd(e)+d,d!==" !important"&&(r.raws.important=d);break}else if(a[1].toLowerCase()==="important"){let d=e.slice(0),v="";for(let x=p;x>0;x--){let E=d[x][0];if(v.trim().startsWith("!")&&E!=="space")break;v=d.pop()[1]+v}v.trim().startsWith("!")&&(r.important=!0,r.raws.important=v,e=d)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=f.map(p=>p[1]).join(""),f=[]),this.raw(r,"value",f.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Fo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset++)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,o=[],l=e[1].startsWith("--"),a=[],h=e;for(;h;){if(r=h[0],a.push(h),r==="("||r==="[")s||(s=h),o.push(r==="("?")":"]");else if(l&&n&&r==="{")s||(s=h),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){if(!l)for(;a.length&&(h=a[a.length-1][0],!(h!=="space"&&h!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,o,l=r.length,a="",h="",f=!0,_,p;for(let d=0;d<l;d+=1)s=r[d],o=s[0],o==="space"&&d===l-1&&!n?f=!1:o==="comment"?(p=r[d-1]?r[d-1][0]:"empty",_=r[d+1]?r[d+1][0]:"empty",!qo[p]&&!qo[_]?h===","?f=!1:(a+=s[1],h=s[1].slice(-1)):f=!1):(a+=s[1],h=s[1].slice(-1));if(!f){let d=r.reduce((v,x)=>v+x[1],"");e.raws[t]={raw:d,value:a}}e[t]=a}rule(e){e.pop();let t=new Fo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};jo.exports=jn});var jr=T((Fd,Bo)=>{"use strict";var cc=Ae(),fc=Kt(),hc=Uo();function qr(i,e){let t=new fc(i,e),r=new hc(t);try{r.parse()}catch(n){throw n}return r.root}Bo.exports=qr;qr.default=qr;cc.registerParse(qr)});var Un=T((qd,zo)=>{"use strict";var pc=Ae(),{my:dc}=zt(),Zt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){t.node[dc]||pc.rebuild(t.node);let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,start:this.start,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};zo.exports=Zt;Zt.default=Zt});var Ur=T((jd,Wo)=>{"use strict";var mc=Un(),er=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new mc(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};Wo.exports=er;er.default=er});var Bn=T((Ud,Ho)=>{"use strict";var Go={};Ho.exports=function(e){Go[e]||(Go[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Gn=T((zd,Qo)=>{"use strict";var gc=Ae(),yc=Ar(),_c=Fn(),vc=jr(),Yo=Ur(),wc=Tt(),Sc=Bt(),{isClean:ve,my:bc}=zt(),Bd=Bn(),Tc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ec={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Oc={Once:!0,postcssPlugin:!0,prepare:!0},Ot=0;function tr(i){return typeof i=="object"&&typeof i.then=="function"}function zn(i){let e=!1,t=Tc[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Ot,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Ot,t+"Exit"]:[t,t+"Exit"]}function $o(i){let e;return i.type==="document"?e=["Document",Ot,"DocumentExit"]:i.type==="root"?e=["Root",Ot,"RootExit"]:e=zn(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Vo(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[ve]=!1,t.nodes)for(let r of t.nodes)e.push(r)}return i}var Wn={},je=class i{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=Vo(t);else if(t instanceof i||t instanceof Yo)n=Vo(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let s=vc;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{n=s(t,r)}catch(o){this.processed=!0,this.error=o}n&&!n[bc]&&gc.rebuild(n)}this.result=new Yo(e,n,r),this.helpers={...Wn,postcss:Wn,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().finally(e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Ec[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Oc[r])if(typeof t[r]=="object")for(let n in t[r])n==="*"?e(t,r,t[r][n]):e(t,r+"-"+n.toLowerCase(),t[r][n]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(tr(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];){e[ve]=!0;let t=[$o(e)];for(;t.length>0;){let r=this.visitTick(t);if(tr(r))try{await r}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(s=>r(s,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return tr(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Sc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let o="";return t(this.result.root,l=>{o+=l}),this.result.css=o,this.result}let s=new _c(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(tr(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];)e[ve]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){this.result.lastPlugin=r;let s;try{s=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(tr(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,l]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator;t.descending&&(t.descending=!1,r.indexes[o]+=1);let l;for(;l=r.nodes[r.indexes[o]];){if(!l[ve]){l[ve]=!0,t.descending=!0,e.push($o(l));return}r.indexes[o]+=1}t.iterator=0,delete r.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Ot){r.nodes&&r.nodes.length&&(r[ve]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ve]=!0;let t=[{eventIndex:0,events:zn(e),iterator:0,node:e}];for(;t.length>0;){let r=t[t.length-1],n=r.node;if(r.iterator!==0){let s=r.iterator;r.descending&&(r.descending=!1,n.indexes[s]+=1);let o,l=!1;for(;o=n.nodes[n.indexes[s]];){if(!o[ve]){o[ve]=!0,r.descending=!0,t.push({eventIndex:0,events:zn(o),iterator:0,node:o}),l=!0;break}n.indexes[s]+=1}if(l)continue;r.iterator=0,delete n.indexes[s]}if(r.eventIndex<r.events.length){let s=r.events[r.eventIndex];if(r.eventIndex+=1,s===Ot)n.nodes&&n.nodes.length&&(r.iterator=n.getIterator());else{let o=this.listeners[s];o&&this.visitSync(o,n.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};je.registerPostcss=i=>{Wn=i};Qo.exports=je;je.default=je;wc.registerLazyResult(je);yc.registerLazyResult(je)});var Ko=T((Gd,Xo)=>{"use strict";var Ac=Fn(),Pc=jr(),xc=Ur(),Cc=Bt(),Wd=Bn(),rr=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Pc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n=Cc;this.result=new xc(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new Ac(n,void 0,this._opts,t);if(o.isMap()){let[l,a]=o.generate();l&&(this.result.css=l),a&&(this.result.map=a)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().finally(e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};Xo.exports=rr;rr.default=rr});var Zo=T((Hd,Jo)=>{"use strict";var Ic=Ar(),Lc=Gn(),Dc=Ko(),Rc=Tt(),$e=class{constructor(e=[]){this.version="8.5.33",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Dc(this,e,t):new Lc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Jo.exports=$e;$e.default=$e;Rc.registerProcessor($e);Ic.registerProcessor($e)});var aa=T((Yd,oa)=>{"use strict";var ea=Or(),ta=$t(),Nc=Ae(),kc=Er(),ra=Qt(),na=Ar(),Mc=Ao(),Fc=Kt(),qc=Gn(),jc=kn(),Uc=Ht(),Bc=jr(),Hn=Zo(),zc=Ur(),ia=Tt(),sa=Dr(),Wc=Bt(),Gc=Un();function N(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Hn(i)}N.plugin=function(e,t){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
30
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Hn().version,l}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(o,l,a){return N([n(a)]).process(o,l)},n};N.stringify=Wc;N.parse=Bc;N.fromJSON=Mc;N.list=jc;N.comment=i=>new ta(i);N.atRule=i=>new ea(i);N.decl=i=>new ra(i);N.rule=i=>new sa(i);N.root=i=>new ia(i);N.document=i=>new na(i);N.CssSyntaxError=kc;N.Declaration=ra;N.Container=Nc;N.Processor=Hn;N.Document=na;N.Comment=ta;N.Warning=Gc;N.AtRule=ea;N.Result=zc;N.Input=Fc;N.Rule=sa;N.Root=ia;N.Node=Uc;qc.registerPostcss(N);oa.exports=N;N.default=N});var $n=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=$c;function Hc(i){for(var e=i.toLowerCase(),t="",r=0;r<6&&e[r]!==void 0;r++){var n=e.charCodeAt(r),s=n>=97&&n<=102||n>=48&&n<=57;if(!s)break;t+=e[r]}if(t.length!==0){var o=t.length,l=i[o];(l===" "||l===" "||l===`
|
|
31
31
|
`||l==="\r"||l==="\f")&&(o+=l==="\r"&&i[o+1]===`
|
|
32
|
-
`?2:1);var a=parseInt(t,16),f=a>=55296&&a<=57343;return f||a===0||a>1114111?["\uFFFD",o]:[String.fromCodePoint(a),o]}}var Uc=/\\/;function Bc(i){var e=Uc.test(i);if(!e)return i;for(var t="",r=0;r<i.length;r++){if(i[r]==="\\"){var n=jc(i.slice(r+1,r+9));if(n!==void 0){t+=n[0],r+=n[1];continue}if(i[r+1]==="\\"){t+="\\",r++;continue}i.length===r+1&&(t+=i[r]);continue}t+=i[r]}return t}});var ia=T(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=zc;function zc(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(;e.length>0;){var r=e.shift();if(!i[r])return;i=i[r]}return i}});var sa=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=Wc;function Wc(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(;e.length>0;){var r=e.shift();i[r]||(i[r]={}),i=i[r]}}});var oa=T($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.default=Hc;function Hc(i){for(var e="",t=i.indexOf("/*"),r=0;t>=0;){e=e+i.slice(r,t);var n=i.indexOf("*/",t+2);if(n<0)return e;r=n+2,t=i.indexOf("/*",r)}return e=e+i.slice(r),e}});var aa=T(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.MAX_NESTING_DEPTH=void 0;Ot.default=Gc;Ot.MAX_NESTING_DEPTH=256;function Gc(i){return Number.isSafeInteger(i)&&i>=0?i:Ot.MAX_NESTING_DEPTH}});var ua=T(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=Yc;function Yc(i){if(i===void 0||i===1/0)return 1/0;if(Number.isSafeInteger(i)&&i>=0)return i;throw new TypeError("maxInputLength must be a non-negative integer or Infinity, received ".concat(String(i),"."))}});var Pt=T(ne=>{"use strict";var At=ne&&ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ne,"__esModule",{value:!0});ne.resolveMaxInputLength=ne.MAX_NESTING_DEPTH=ne.resolveMaxNestingDepth=ne.stripComments=ne.ensureObject=ne.getProp=ne.unesc=void 0;var $c=Hn();Object.defineProperty(ne,"unesc",{enumerable:!0,get:function(){return At($c).default}});var Vc=ia();Object.defineProperty(ne,"getProp",{enumerable:!0,get:function(){return At(Vc).default}});var Qc=sa();Object.defineProperty(ne,"ensureObject",{enumerable:!0,get:function(){return At(Qc).default}});var Xc=oa();Object.defineProperty(ne,"stripComments",{enumerable:!0,get:function(){return At(Xc).default}});var la=aa();Object.defineProperty(ne,"resolveMaxNestingDepth",{enumerable:!0,get:function(){return At(la).default}});Object.defineProperty(ne,"MAX_NESTING_DEPTH",{enumerable:!0,get:function(){return la.MAX_NESTING_DEPTH}});var Kc=ua();Object.defineProperty(ne,"resolveMaxInputLength",{enumerable:!0,get:function(){return At(Kc).default}})});var Pe=T(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var qr=Pt(),Qn=function(i,e,t){if(t===void 0&&(t=0),t>qr.MAX_NESTING_DEPTH)throw new Error("Cannot clone selector: nesting depth exceeds the maximum of ".concat(qr.MAX_NESTING_DEPTH,"."));if(typeof i!="object"||i===null)return i;var r=new i.constructor;for(var n in i)if(i.hasOwnProperty(n)){var s=i[n],o=typeof s;n==="parent"&&o==="object"?e&&(r[n]=e):s instanceof Array?r[n]=s.map(function(l){return Qn(l,r,t+1)}):r[n]=Qn(s,r,t+1)}return r},Jc=(function(){function i(e){e===void 0&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}return i.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},i.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},i.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},i.prototype.clone=function(e){e===void 0&&(e={});var t=Qn(this);for(var r in e)t[r]=e[r];return t},i.prototype.appendToPropertyAndEscape=function(e,t,r){this.raws||(this.raws={});var n=this[e],s=this.raws[e];this[e]=n+t,s||r!==t?this.raws[e]=(s||n)+r:delete this.raws[e]},i.prototype.setPropertyAndEscape=function(e,t,r){this.raws||(this.raws={}),this[e]=t,this.raws[e]=r},i.prototype.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},i.prototype.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e||this.source.end.line<e||this.source.start.line===e&&this.source.start.column>t||this.source.end.line===e&&this.source.end.column<t)},i.prototype.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},Object.defineProperty(i.prototype,"rawSpaceBefore",{get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return e===void 0&&(e=this.spaces&&this.spaces.before),e||""},set:function(e){(0,qr.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rawSpaceAfter",{get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return e===void 0&&(e=this.spaces.after),e||""},set:function(e){(0,qr.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=e},enumerable:!1,configurable:!0}),i.prototype.valueToString=function(){return String(this.stringifyProperty("value"))},i.prototype.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i.prototype._stringify=function(){return this.toString()},i})();Xn.default=Jc});var ie=T(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.UNIVERSAL=j.ATTRIBUTE=j.CLASS=j.COMBINATOR=j.COMMENT=j.ID=j.NESTING=j.PSEUDO=j.ROOT=j.SELECTOR=j.STRING=j.TAG=void 0;j.TAG="tag";j.STRING="string";j.SELECTOR="selector";j.ROOT="root";j.PSEUDO="pseudo";j.NESTING="nesting";j.ID="id";j.COMMENT="comment";j.COMBINATOR="combinator";j.CLASS="class";j.ATTRIBUTE="attribute";j.UNIVERSAL="universal"});var jr=T(Z=>{"use strict";var Zc=Z&&Z.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ef=Z&&Z.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),tf=Z&&Z.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),rf=Z&&Z.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&ef(t,e,r[n]);return tf(t,e),t}})(),nf=Z&&Z.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ca=Z&&Z.__read||function(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){o={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s},fa=Z&&Z.__spreadArray||function(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))},sf=Z&&Z.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Z,"__esModule",{value:!0});var Kn=Pt(),of=sf(Pe()),xe=rf(ie()),af=(function(i){Zc(e,i);function e(t){var r=i.call(this,t)||this;return r.nodes||(r.nodes=[]),r}return e.prototype.append=function(t){return t.parent=this,this.nodes.push(t),this},e.prototype.prepend=function(t){t.parent=this,this.nodes.unshift(t);for(var r in this.indexes)this.indexes[r]++;return this},e.prototype.at=function(t){return this.nodes[t]},e.prototype.index=function(t){return typeof t=="number"?t:this.nodes.indexOf(t)},Object.defineProperty(e.prototype,"first",{get:function(){return this.at(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.at(this.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length},enumerable:!1,configurable:!0}),e.prototype.removeChild=function(t){t=this.index(t),this.at(t).parent=void 0,this.nodes.splice(t,1);var r;for(var n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this},e.prototype.removeAll=function(){var t,r;try{for(var n=nf(this.nodes),s=n.next();!s.done;s=n.next()){var o=s.value;o.parent=void 0}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(t,r){var n;r.parent=this;for(var s=this.index(t),o=[],l=2;l<arguments.length;l++)arguments[l].parent=this,o.push(arguments[l]);(n=this.nodes).splice.apply(n,fa([s+1,0,r],ca(o),!1)),r.parent=this;var a;for(var f in this.indexes)a=this.indexes[f],s<a&&(this.indexes[f]=a+arguments.length-1);return this},e.prototype.insertBefore=function(t,r){var n;r.parent=this;for(var s=this.index(t),o=[],l=2;l<arguments.length;l++)arguments[l].parent=this,o.push(arguments[l]);(n=this.nodes).splice.apply(n,fa([s,0,r],ca(o),!1)),r.parent=this;var a;for(var f in this.indexes)a=this.indexes[f],a>=s&&(this.indexes[f]=a+arguments.length-1);return this},e.prototype._findChildAtPosition=function(t,r){var n=void 0;return this.each(function(s){if(s.atPosition){var o=s.atPosition(t,r);if(o)return n=o,!1}else if(s.isAtPosition(t,r))return n=s,!1}),n},e.prototype.atPosition=function(t,r){if(this.isAtPosition(t,r))return this._findChildAtPosition(t,r)||this},e.prototype._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},e.prototype.each=function(t){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var r=this.lastEach;if(this.indexes[r]=0,!!this.length){for(var n,s;this.indexes[r]<this.length&&(n=this.indexes[r],s=t(this.at(n),n),s!==!1);)this.indexes[r]+=1;if(delete this.indexes[r],s===!1)return!1}},e.prototype.walk=function(t,r){if(r===void 0&&(r=0),r>Kn.MAX_NESTING_DEPTH)throw new Error("Cannot walk selector: nesting depth exceeds the maximum of ".concat(Kn.MAX_NESTING_DEPTH,"."));return this.each(function(n,s){var o=t(n,s);if(o!==!1&&n.length&&(o=n.walk(t,r+1)),o===!1)return!1})},e.prototype.walkAttributes=function(t){var r=this;return this.walk(function(n){if(n.type===xe.ATTRIBUTE)return t.call(r,n)})},e.prototype.walkClasses=function(t){var r=this;return this.walk(function(n){if(n.type===xe.CLASS)return t.call(r,n)})},e.prototype.walkCombinators=function(t){var r=this;return this.walk(function(n){if(n.type===xe.COMBINATOR)return t.call(r,n)})},e.prototype.walkComments=function(t){var r=this;return this.walk(function(n){if(n.type===xe.COMMENT)return t.call(r,n)})},e.prototype.walkIds=function(t){var r=this;return this.walk(function(n){if(n.type===xe.ID)return t.call(r,n)})},e.prototype.walkNesting=function(t){var r=this;return this.walk(function(n){if(n.type===xe.NESTING)return t.call(r,n)})},e.prototype.walkPseudos=function(t){var r=this;return this.walk(function(n){if(n.type===xe.PSEUDO)return t.call(r,n)})},e.prototype.walkTags=function(t){var r=this;return this.walk(function(n){if(n.type===xe.TAG)return t.call(r,n)})},e.prototype.walkUniversals=function(t){var r=this;return this.walk(function(n){if(n.type===xe.UNIVERSAL)return t.call(r,n)})},e.prototype.split=function(t){var r=this,n=[];return this.reduce(function(s,o,l){var a=t.call(r,o);return n.push(o),a?(s.push(n),n=[]):l===r.length-1&&s.push(n),s},[])},e.prototype.map=function(t){return this.nodes.map(t)},e.prototype.reduce=function(t,r){return this.nodes.reduce(t,r)},e.prototype.every=function(t){return this.nodes.every(t)},e.prototype.some=function(t){return this.nodes.some(t)},e.prototype.filter=function(t){return this.nodes.filter(t)},e.prototype.sort=function(t){return this.nodes.sort(t)},e.prototype.toString=function(t){return t===void 0&&(t={}),this._stringify(t,0,(0,Kn.resolveMaxNestingDepth)(t.maxNestingDepth))},e.prototype._stringify=function(t,r,n){var s=this,o=this.map(function(l){return s._stringifyChild(l,t,r,n)}).join("");return[this.rawSpaceBefore,o,this.rawSpaceAfter].join("")},e.prototype._stringifyChild=function(t,r,n,s){return typeof t._stringify=="function"?t._stringify(r,n,s):String(t)},e})(of.default);Z.default=af});var Jn=T($e=>{"use strict";var uf=$e&&$e.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),lf=$e&&$e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($e,"__esModule",{value:!0});var cf=lf(jr()),ff=ie(),hf=(function(i){uf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=ff.ROOT,r}return e.prototype._stringify=function(t,r,n){var s=this,o=this.reduce(function(l,a){return l.push(s._stringifyChild(a,t,r,n)),l},[]).join(",");return this.trailingComma&&(o+=","),[this.rawSpaceBefore,o,this.rawSpaceAfter].join("")},e.prototype.error=function(t,r){return this._error?this._error(t,r):new Error(t)},Object.defineProperty(e.prototype,"errorGenerator",{set:function(t){this._error=t},enumerable:!1,configurable:!0}),e})(cf.default);$e.default=hf});var Zn=T(Ve=>{"use strict";var pf=Ve&&Ve.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),df=Ve&&Ve.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ve,"__esModule",{value:!0});var mf=df(jr()),gf=ie(),yf=(function(i){pf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=gf.SELECTOR,r}return e})(mf.default);Ve.default=yf});var Ur=T(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.default=Of;var _f={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},vf=Object.prototype.hasOwnProperty;function wf(i,e){if(!i)return e;var t={};for(var r in e)t[r]=vf.call(i,r)?i[r]:e[r];return t}var Sf=/[ -,./:-@[-^`{-~]/,bf=/[ -,./:-@[\]^`{-~]/,ha=92,pa=32;function da(i){return i>=48&&i<=57||i>=65&&i<=70}function Tf(i){return da(i)||i>=97&&i<=102||i===pa}function Ef(i){for(var e=i.length,t="",r=0,n=0;n<e;){if(i.charCodeAt(n)!==ha){n++;continue}for(var s=n+1;s<e&&i.charCodeAt(s)===ha;)s++;for(var o=s;o<e&&o-s<7&&da(i.charCodeAt(o));)o++;var l=o-s;l>=1&&l<=6&&i.charCodeAt(o)===pa&&!Tf(i.charCodeAt(o+1))?((s-n-1)%2===0&&(t+=i.slice(r,o),r=o+1),n=o+1):n=s}return r===0?i:t+i.slice(r)}function Of(i,e){e=wf(e,_f),e.quotes!=="single"&&e.quotes!=="double"&&(e.quotes="single");for(var t=e.quotes==="double"?'"':"'",r=e.isIdentifier,n=i.charAt(0),s="",o=0,l=i.length;o<l;){var a=i.charAt(o++),f=a.charCodeAt(0),h=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&o<l){var v=i.charCodeAt(o++);(v&64512)===56320?f=((f&1023)<<10)+(v&1023)+65536:o--}h="\\"+f.toString(16).toUpperCase()+" "}else e.escapeEverything?Sf.test(a)?h="\\"+a:h="\\"+f.toString(16).toUpperCase()+" ":a==="\\"||!r&&(a==='"'&&t===a||a==="'"&&t===a)||r&&bf.test(a)?h="\\"+a:h=a;s+=h}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(n)&&(s="\\3"+n+" "+s.slice(1))),s=Ef(s),!r&&e.wrap?t+s+t:s}});var ti=T(Qe=>{"use strict";var Af=Qe&&Qe.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ma=Qe&&Qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qe,"__esModule",{value:!0});var Pf=ma(Ur()),xf=Pt(),Cf=ma(Pe()),If=ie(),Lf=(function(i){Af(e,i);function e(t){var r=i.call(this,t)||this;return r.type=If.CLASS,r._constructed=!0,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(this._constructed){var r=(0,Pf.default)(t,{isIdentifier:!0});r!==t?((0,xf.ensureObject)(this,"raws"),this.raws.value=r):this.raws&&delete this.raws.value}this._value=t},enumerable:!1,configurable:!0}),e.prototype.valueToString=function(){return"."+i.prototype.valueToString.call(this)},e})(Cf.default);Qe.default=Lf});var ri=T(Xe=>{"use strict";var Df=Xe&&Xe.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Rf=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xe,"__esModule",{value:!0});var Nf=Rf(Pe()),kf=ie(),Mf=(function(i){Df(e,i);function e(t){var r=i.call(this,t)||this;return r.type=kf.COMMENT,r}return e})(Nf.default);Xe.default=Mf});var ni=T(Ke=>{"use strict";var Ff=Ke&&Ke.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),qf=Ke&&Ke.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ke,"__esModule",{value:!0});var jf=qf(Pe()),Uf=ie(),Bf=(function(i){Ff(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Uf.ID,r}return e.prototype.valueToString=function(){return"#"+i.prototype.valueToString.call(this)},e})(jf.default);Ke.default=Bf});var Br=T(Je=>{"use strict";var zf=Je&&Je.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ga=Je&&Je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Je,"__esModule",{value:!0});var Wf=ga(Ur()),Hf=Pt(),Gf=ga(Pe()),Yf=(function(i){zf(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this._namespace},set:function(t){if(t===!0||t==="*"||t==="&"){this._namespace=t,this.raws&&delete this.raws.namespace;return}var r=(0,Wf.default)(t,{isIdentifier:!0});this._namespace=t,r!==t?((0,Hf.ensureObject)(this,"raws"),this.raws.namespace=r):this.raws&&delete this.raws.namespace},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ns",{get:function(){return this._namespace},set:function(t){this.namespace=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"namespaceString",{get:function(){if(this.namespace){var t=this.stringifyProperty("namespace");return t===!0?"":t}else return""},enumerable:!1,configurable:!0}),e.prototype.qualifiedName=function(t){return this.namespace?"".concat(this.namespaceString,"|").concat(t):t},e.prototype.valueToString=function(){return this.qualifiedName(i.prototype.valueToString.call(this))},e})(Gf.default);Je.default=Yf});var ii=T(Ze=>{"use strict";var $f=Ze&&Ze.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Vf=Ze&&Ze.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ze,"__esModule",{value:!0});var Qf=Vf(Br()),Xf=ie(),Kf=(function(i){$f(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Xf.TAG,r}return e})(Qf.default);Ze.default=Kf});var si=T(et=>{"use strict";var Jf=et&&et.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+ya(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Zf=et&&et.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(et,"__esModule",{value:!0});var eh=Zf(Pe()),th=ie(),ya=(function(i){Jf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=th.STRING,r}return e})(eh.default);et.default=ya});var oi=T(tt=>{"use strict";var rh=tt&&tt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),nh=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tt,"__esModule",{value:!0});var ih=nh(jr()),sh=ie(),oh=(function(i){rh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=sh.PSEUDO,r}return e.prototype._stringify=function(t,r,n){var s=this;if(r>=n)throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of ".concat(n,"."));var o=this.length?"("+this.map(function(l){return s._stringifyChild(l,t,r+1,n)}).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},e})(ih.default);tt.default=oh});var va=T((Dm,_a)=>{"use strict";_a.exports=ah;function ah(i,e){if(ai("noDeprecation"))return i;var t=!1;function r(){if(!t){if(ai("throwDeprecation"))throw new Error(e);ai("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return i.apply(this,arguments)}return r}function ai(i){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[i];return e==null?!1:String(e).toLowerCase()==="true"}});var hi=T(je=>{"use strict";var uh=je&&je.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ci=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},ui;Object.defineProperty(je,"__esModule",{value:!0});je.unescapeValue=fi;var rr=ci(Ur()),lh=ci(Hn()),ch=ci(Br()),fh=ie(),nr=va(),hh=/^('|")([^]*)\1$/,ph=nr(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),dh=nr(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),mh=nr(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function fi(i){var e=!1,t=null,r=i,n=r.match(hh);return n&&(t=n[1],r=n[2]),r=(0,lh.default)(r),r!==i&&(e=!0),{deprecatedUsage:e,unescaped:r,quoteMark:t}}function gh(i){if(i.quoteMark!==void 0||i.value===void 0)return i;mh();var e=fi(i.value),t=e.quoteMark,r=e.unescaped;return i.raws||(i.raws={}),i.raws.value===void 0&&(i.raws.value=i.value),i.value=r,i.quoteMark=t,i}var yh=(function(i){uh(e,i);function e(t){t===void 0&&(t={});var r=i.call(this,gh(t))||this;return r.type=fh.ATTRIBUTE,r.raws=r.raws||{},Object.defineProperty(r.raws,"unquoted",{get:nr(function(){return r.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:nr(function(){return r.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),r._constructed=!0,r}return e.prototype.getQuotedValue=function(t){t===void 0&&(t={});var r=this._determineQuoteMark(t),n=li[r],s=(0,rr.default)(this._value,n);return s},e.prototype._determineQuoteMark=function(t){return t.smart?this.smartQuoteMark(t):this.preferredQuoteMark(t)},e.prototype.setValue=function(t,r){r===void 0&&(r={}),this._value=t,this._quoteMark=this._determineQuoteMark(r),this._syncRawValue()},e.prototype.smartQuoteMark=function(t){var r=this.value,n=r.replace(/[^']/g,"").length,s=r.replace(/[^"]/g,"").length;if(n+s===0){var o=(0,rr.default)(r,{isIdentifier:!0});if(o===r)return e.NO_QUOTE;var l=this.preferredQuoteMark(t);if(l===e.NO_QUOTE){var a=this.quoteMark||t.quoteMark||e.DOUBLE_QUOTE,f=li[a],h=(0,rr.default)(r,f);if(h.length<o.length)return a}return l}else return s===n?this.preferredQuoteMark(t):s<n?e.DOUBLE_QUOTE:e.SINGLE_QUOTE},e.prototype.preferredQuoteMark=function(t){var r=t.preferCurrentQuoteMark?this.quoteMark:t.quoteMark;return r===void 0&&(r=t.preferCurrentQuoteMark?t.quoteMark:this.quoteMark),r===void 0&&(r=e.DOUBLE_QUOTE),r},Object.defineProperty(e.prototype,"quoted",{get:function(){var t=this.quoteMark;return t==="'"||t==='"'},set:function(t){dh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quoteMark",{get:function(){return this._quoteMark},set:function(t){if(!this._constructed){this._quoteMark=t;return}this._quoteMark!==t&&(this._quoteMark=t,this._syncRawValue())},enumerable:!1,configurable:!0}),e.prototype._syncRawValue=function(){var t=(0,rr.default)(this._value,li[this.quoteMark]);t===this._value?this.raws&&delete this.raws.value:this.raws.value=t},Object.defineProperty(e.prototype,"qualifiedAttribute",{get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"insensitiveFlag",{get:function(){return this.insensitive?"i":""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sensitiveFlag",{get:function(){return this.sensitive?"s":""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(this._constructed){var r=fi(t),n=r.deprecatedUsage,s=r.unescaped,o=r.quoteMark;if(n&&ph(),s===this._value&&o===this._quoteMark)return;this._value=s,this._quoteMark=o,this._syncRawValue()}else this._value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"insensitive",{get:function(){return this._insensitive},set:function(t){t?this.sensitive=!1:this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0),this._insensitive=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sensitive",{get:function(){return this._sensitive},set:function(t){t?this.insensitive=!1:this.raws&&(this.raws.sensitiveFlag==="S"||this.raws.sensitiveFlag==="s")&&(this.raws.sensitiveFlag=void 0),this._sensitive=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attribute",{get:function(){return this._attribute},set:function(t){this._handleEscapes("attribute",t),this._attribute=t},enumerable:!1,configurable:!0}),e.prototype._handleEscapes=function(t,r){if(this._constructed){var n=(0,rr.default)(r,{isIdentifier:!0});n!==r?this.raws[t]=n:delete this.raws[t]}},e.prototype._spacesFor=function(t){var r={before:"",after:""},n=this.spaces[t]||{},s=this.raws.spaces&&this.raws.spaces[t]||{};return Object.assign(r,n,s)},e.prototype._stringFor=function(t,r,n){r===void 0&&(r=t),n===void 0&&(n=wa);var s=this._spacesFor(r);return n(this.stringifyProperty(t),s)},e.prototype.offsetOf=function(t){var r=1,n=this._spacesFor("attribute");if(r+=n.before.length,t==="namespace"||t==="ns")return this.namespace?r:-1;if(t==="attributeNS"||(r+=this.namespaceString.length,this.namespace&&(r+=1),t==="attribute"))return r;r+=this.stringifyProperty("attribute").length,r+=n.after.length;var s=this._spacesFor("operator");r+=s.before.length;var o=this.stringifyProperty("operator");if(t==="operator")return o?r:-1;r+=o.length,r+=s.after.length;var l=this._spacesFor("value");r+=l.before.length;var a=this.stringifyProperty("value");if(t==="value")return a?r:-1;r+=a.length,r+=l.after.length;var f=this._spacesFor("insensitive");return r+=f.before.length,t==="insensitive"?this.insensitive?r:-1:t==="sensitive"&&this.sensitive?r:-1},e.prototype.toString=function(){var t=this,r=[this.rawSpaceBefore,"["];if(r.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")){r.push(this._stringFor("operator")),r.push(this._stringFor("value"));var n=this.sensitive?"sensitiveFlag":"insensitiveFlag";r.push(this._stringFor(n,"insensitive",function(s,o){return s.length>0&&!t.quoted&&o.before.length===0&&!(t.spaces.value&&t.spaces.value.after)&&(o.before=" "),wa(s,o)}))}return r.push("]"),r.push(this.rawSpaceAfter),r.join("")},e.NO_QUOTE=null,e.SINGLE_QUOTE="'",e.DOUBLE_QUOTE='"',e})(ch.default);je.default=yh;var li=(ui={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ui[null]={isIdentifier:!0},ui);function wa(i,e){return"".concat(e.before).concat(i).concat(e.after)}});var pi=T(rt=>{"use strict";var _h=rt&&rt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),vh=rt&&rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rt,"__esModule",{value:!0});var wh=vh(Br()),Sh=ie(),bh=(function(i){_h(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Sh.UNIVERSAL,r.value="*",r}return e})(wh.default);rt.default=bh});var di=T(nt=>{"use strict";var Th=nt&&nt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Eh=nt&&nt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nt,"__esModule",{value:!0});var Oh=Eh(Pe()),Ah=ie(),Ph=(function(i){Th(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Ah.COMBINATOR,r._constructed=!0,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._constructed&&this.raws&&delete this.raws.value,this._value=t},enumerable:!1,configurable:!0}),e})(Oh.default);nt.default=Ph});var mi=T(it=>{"use strict";var xh=it&&it.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ch=it&&it.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(it,"__esModule",{value:!0});var Ih=Ch(Pe()),Lh=ie(),Dh=(function(i){xh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Lh.NESTING,r.value="&",r}return e})(Ih.default);it.default=Dh});var Sa=T(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.default=Rh;function Rh(i){return i.sort(function(e,t){return e-t})}});var yi=T(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.combinator=O.word=O.comment=O.str=O.tab=O.newline=O.feed=O.cr=O.backslash=O.bang=O.slash=O.doubleQuote=O.singleQuote=O.space=O.greaterThan=O.pipe=O.equals=O.plus=O.caret=O.tilde=O.dollar=O.closeSquare=O.openSquare=O.closeParenthesis=O.openParenthesis=O.semicolon=O.colon=O.comma=O.at=O.asterisk=O.ampersand=void 0;O.ampersand=38;O.asterisk=42;O.at=64;O.comma=44;O.colon=58;O.semicolon=59;O.openParenthesis=40;O.closeParenthesis=41;O.openSquare=91;O.closeSquare=93;O.dollar=36;O.tilde=126;O.caret=94;O.plus=43;O.equals=61;O.pipe=124;O.greaterThan=62;O.space=32;O.singleQuote=39;O.doubleQuote=34;O.slash=47;O.bang=33;O.backslash=92;O.cr=13;O.feed=12;O.newline=10;O.tab=9;O.str=O.singleQuote;O.comment=-1;O.word=-2;O.combinator=-3});var Ta=T(we=>{"use strict";var Nh=we&&we.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),kh=we&&we.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Mh=we&&we.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&Nh(t,e,r[n]);return kh(t,e),t}})(),xt,F;Object.defineProperty(we,"__esModule",{value:!0});we.FIELDS=void 0;we.default=Bh;var S=Mh(yi()),Fh=(xt={},xt[S.tab]=!0,xt[S.newline]=!0,xt[S.cr]=!0,xt[S.feed]=!0,xt),qh=(F={},F[S.space]=!0,F[S.tab]=!0,F[S.newline]=!0,F[S.cr]=!0,F[S.feed]=!0,F[S.ampersand]=!0,F[S.asterisk]=!0,F[S.bang]=!0,F[S.comma]=!0,F[S.colon]=!0,F[S.semicolon]=!0,F[S.openParenthesis]=!0,F[S.closeParenthesis]=!0,F[S.openSquare]=!0,F[S.closeSquare]=!0,F[S.singleQuote]=!0,F[S.doubleQuote]=!0,F[S.plus]=!0,F[S.pipe]=!0,F[S.tilde]=!0,F[S.greaterThan]=!0,F[S.equals]=!0,F[S.dollar]=!0,F[S.caret]=!0,F[S.slash]=!0,F),_i={},ba="0123456789abcdefABCDEF";for(zr=0;zr<ba.length;zr++)_i[ba.charCodeAt(zr)]=!0;var zr;function jh(i,e){var t=e,r;do{if(r=i.charCodeAt(t),qh[r])return t-1;r===S.backslash?t=Uh(i,t)+1:t++}while(t<i.length);return t-1}function Uh(i,e){var t=e,r=i.charCodeAt(t+1);if(!Fh[r])if(_i[r]){var n=0;do t++,n++,r=i.charCodeAt(t+1);while(_i[r]&&n<6);n<6&&r===S.space&&t++}else t++;return t}we.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function Bh(i){var e=[],t=i.css.valueOf(),r=t.length,n=-1,s=1,o=0,l=0,a,f,h,v,p,g,_,x,E,U,Y,K,k;function V(Q,ee){if(i.safe)t+=ee,E=t.length-1;else throw i.error("Unclosed "+Q,s,o-n,o)}for(;o<r;){switch(a=t.charCodeAt(o),a===S.newline&&(n=o,s+=1),a){case S.space:case S.tab:case S.newline:case S.cr:case S.feed:E=o;do E+=1,a=t.charCodeAt(E),a===S.newline&&(n=E,s+=1);while(a===S.space||a===S.newline||a===S.tab||a===S.cr||a===S.feed);k=S.space,v=s,h=E-n-1,l=E;break;case S.plus:case S.greaterThan:case S.tilde:case S.pipe:E=o;do E+=1,a=t.charCodeAt(E);while(a===S.plus||a===S.greaterThan||a===S.tilde||a===S.pipe);k=S.combinator,v=s,h=o-n,l=E;break;case S.asterisk:case S.ampersand:case S.bang:case S.comma:case S.equals:case S.dollar:case S.caret:case S.openSquare:case S.closeSquare:case S.colon:case S.semicolon:case S.openParenthesis:case S.closeParenthesis:E=o,k=a,v=s,h=o-n,l=E+1;break;case S.singleQuote:case S.doubleQuote:K=a===S.singleQuote?"'":'"',E=o;do for(p=!1,E=t.indexOf(K,E+1),E===-1&&V("quote",K),g=E;t.charCodeAt(g-1)===S.backslash;)g-=1,p=!p;while(p);k=S.str,v=s,h=o-n,l=E+1;break;default:a===S.slash&&t.charCodeAt(o+1)===S.asterisk?(E=t.indexOf("*/",o+2)+1,E===0&&V("comment","*/"),f=t.slice(o,E+1),x=f.split(`
|
|
33
|
-
`),_=x.length-1,_>0?(U=s+_,Y=E-x[_].length):(U=s,Y=n),k=S.comment,s=U,v=U,h=E-Y):a===S.slash?(E=o,k=a,v=s,h=o-n,l=E+1):(E=jh(t,o),k=S.word,v=s,h=E-n),l=E+1;break}e.push([k,s,o-n,v,h,o,l]),Y&&(n=Y,Y=null),o=l}return e}});var Da=T(se=>{"use strict";var Hr=se&&se.__assign||function(){return Hr=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Hr.apply(this,arguments)},zh=se&&se.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Wh=se&&se.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Gr=se&&se.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&zh(t,e,r[n]);return Wh(t,e),t}})(),Ea=se&&se.__read||function(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){o={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s},Oa=se&&se.__spreadArray||function(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))},ge=se&&se.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},st,vi;Object.defineProperty(se,"__esModule",{value:!0});var Hh=ge(Jn()),wi=ge(Zn()),Gh=ge(ti()),Aa=ge(ri()),Yh=ge(ni()),$h=ge(ii()),Wr=ge(si()),Vh=ge(oi()),Pa=Gr(hi()),Qh=ge(pi()),Si=ge(di()),Xh=ge(mi()),Kh=ge(Sa()),d=Gr(Ta()),b=Gr(yi()),xa=Gr(ie()),R=Pt(),Ei=(st={},st[b.space]=!0,st[b.cr]=!0,st[b.feed]=!0,st[b.newline]=!0,st[b.tab]=!0,st),Jh=Hr(Hr({},Ei),(vi={},vi[b.comment]=!0,vi));function Ca(i){return{line:i[d.FIELDS.START_LINE],column:i[d.FIELDS.START_COL]}}function Ia(i){return{line:i[d.FIELDS.END_LINE],column:i[d.FIELDS.END_COL]}}function at(i,e,t,r){return{start:{line:i,column:e},end:{line:t,column:r}}}function ot(i){return at(i[d.FIELDS.START_LINE],i[d.FIELDS.START_COL],i[d.FIELDS.END_LINE],i[d.FIELDS.END_COL])}function bi(i,e){if(i)return at(i[d.FIELDS.START_LINE],i[d.FIELDS.START_COL],e[d.FIELDS.END_LINE],e[d.FIELDS.END_COL])}function Ct(i,e){var t=i[e];if(typeof t=="string")return t.indexOf("\\")!==-1&&((0,R.ensureObject)(i,"raws"),i[e]=(0,R.unesc)(t),i.raws[e]===void 0&&(i.raws[e]=t)),i}function Ti(i,e){for(var t=-1,r=[];(t=i.indexOf(e,t+1))!==-1;)r.push(t);return r}function La(i,e){for(var t=e;i[t-1]==="\\";)t--;return(e-t)%2===1}function Zh(i){if(!i)return!1;var e=i.lastIndexOf("{");if(e<1||i.indexOf("}",e)!==-1)return!1;var t=i[e-1];return t==="#"||t==="@"}function ep(){return Array.from(new Set(Array.prototype.concat.apply([],arguments)))}var tp=(function(){function i(e,t){t===void 0&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.nestingDepth=0,this.maxNestingDepth=(0,R.resolveMaxNestingDepth)(this.options.maxNestingDepth),this.commentPrefixes=new WeakMap,this.css=typeof this.rule=="string"?this.rule:this.rule.selector;var r=(0,R.resolveMaxInputLength)(this.options.maxInputLength);if(this.css&&this.css.length>r)throw this._errorGenerator()("Cannot parse selector: its length of ".concat(this.css.length," exceeds the maximum of ").concat(r,"."));this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=bi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Hh.default({source:n}),this.root.errorGenerator=this._errorGenerator();var s=new wi.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s),this.current=s,this.loop()}return i.prototype._errorGenerator=function(){var e=this;return function(t,r){return typeof e.rule=="string"?new Error(t):e.rule.error(t,r)}},i.prototype.namespaceSeparatorFollows=function(e,t){for(var r=t;e[r]&&e[r][d.FIELDS.TYPE]===b.space;)r++;if(!e[r]||this.content(e[r])!=="|"||(r++,e[r]&&e[r][d.FIELDS.TYPE]===b.equals))return!1;for(;e[r]&&e[r][d.FIELDS.TYPE]===b.space;)r++;return!!e[r]},i.prototype.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==b.closeSquare;)e.push(this.currToken),this.position++;if(!this.currToken)return this.expected("closing square bracket",t[d.FIELDS.START_POS]);if(this.currToken[d.FIELDS.TYPE]!==b.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var r=e.length,n={source:at(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[d.FIELDS.START_POS]};if(r===1&&!~[b.word].indexOf(e[0][d.FIELDS.TYPE]))return this.expected("attribute",e[0][d.FIELDS.START_POS]);for(var s=0,o="",l="",a=null,f=!1,h=null;s<r;){var v=e[s],p=this.content(v),g=e[s+1];switch(v[d.FIELDS.TYPE]){case b.space:if(f=!0,this.options.lossy)break;if(h!==null){h+=p;break}if(a==="namespace"){(0,R.ensureObject)(n,"raws"),n.raws.namespace=(n.raws.namespace||n.namespace)+p;break}if(a){(0,R.ensureObject)(n,"spaces",a);var _=n.spaces[a].after||"";n.spaces[a].after=_+p;var x=(0,R.getProp)(n,"raws","spaces",a,"after")||null;x&&(n.raws.spaces[a].after=x+p)}else o=o+p,l=l+p;break;case b.asterisk:if(g&&g[d.FIELDS.TYPE]===b.equals)n.operator=p,a="operator";else if((!n.namespace||a==="namespace"&&!f)&&g){n.namespace=(n.namespace||"")+p;var E=(0,R.getProp)(n,"raws","namespace")||null;E&&(n.raws.namespace+=p),o&&((0,R.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=l,l=""),a="namespace"}f=!1;break;case b.dollar:if(a==="value"){var U=(0,R.getProp)(n,"raws","value");n.value+="$",U&&(n.raws.value=U+"$");break}if(a==="attribute"&&Zh(n.attribute)&&!(g&&g[d.FIELDS.TYPE]===b.equals)){var Y=(0,R.getProp)(n,"raws","attribute");n.attribute=(n.attribute||"")+"$",Y&&(n.raws.attribute=Y+"$"),a="attribute",f=!1;break}case b.caret:g&&g[d.FIELDS.TYPE]===b.equals&&(n.operator=p,a="operator"),f=!1;break;case b.combinator:if(p==="~"&&g&&g[d.FIELDS.TYPE]===b.equals&&(n.operator=p,a="operator"),p!=="|"){f=!1;break}g&&g[d.FIELDS.TYPE]===b.equals?(n.operator=p,a="operator"):n.operator||(!n.namespace&&!n.attribute&&(n.namespace=!0),h=""),f=!1;break;case b.word:if(this.namespaceSeparatorFollows(e,s+1)&&!n.operator&&!n.namespace)n.namespace=p,a="namespace";else if(!n.attribute||a==="attribute"&&!f){o&&((0,R.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=l,l=""),h&&((0,R.ensureObject)(n,"raws"),n.raws.attribute=h+(n.raws.attribute||n.attribute||"")),h=null,n.attribute=(n.attribute||"")+p;var E=(0,R.getProp)(n,"raws","attribute")||null;E&&(n.raws.attribute+=p),a="attribute"}else if(!n.value&&n.value!==""||a==="value"&&!(f||n.quoteMark)){var K=(0,R.unesc)(p),U=(0,R.getProp)(n,"raws","value")||"",k=n.value||"";n.value=k+K,n.quoteMark=null,(K!==p||U)&&((0,R.ensureObject)(n,"raws"),n.raws.value=(U||k)+p),a="value"}else{var V=p==="i"||p==="I",Q=p==="s"||p==="S";(n.value||n.value==="")&&(n.quoteMark||f)?(n.insensitive=V,n.sensitive=Q,Q?p==="S"&&((0,R.ensureObject)(n,"raws"),n.raws.sensitiveFlag=p):(!V||p==="I")&&((0,R.ensureObject)(n,"raws"),n.raws.insensitiveFlag=p),a="insensitive",o&&((0,R.ensureObject)(n,"spaces","insensitive"),n.spaces.insensitive.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","insensitive"),n.raws.spaces.insensitive.before=l,l="")):(n.value||n.value==="")&&(a="value",n.value+=p,n.raws.value&&(n.raws.value+=p))}f=!1;break;case b.str:if(!n.attribute||!n.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:v[d.FIELDS.START_POS]});var ee=(0,Pa.unescapeValue)(p),Se=ee.unescaped,te=ee.quoteMark;n.value=Se,n.quoteMark=te,a="value",(0,R.ensureObject)(n,"raws"),n.raws.value=p,f=!1;break;case b.equals:if(!n.attribute)return this.expected("attribute",v[d.FIELDS.START_POS],p);if(n.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:v[d.FIELDS.START_POS]});n.operator=n.operator?n.operator+p:p,a="operator",f=!1;break;case b.comment:if(a)if(f||g&&g[d.FIELDS.TYPE]===b.space||a==="insensitive"){var pe=(0,R.getProp)(n,"spaces",a,"after")||"",It=(0,R.getProp)(n,"raws","spaces",a,"after")||pe;(0,R.ensureObject)(n,"raws","spaces",a),n.raws.spaces[a].after=It+p}else{var ir=n[a]||"",Ue=(0,R.getProp)(n,"raws",a)||ir;(0,R.ensureObject)(n,"raws"),n.raws[a]=Ue+p}else l=l+p;break;default:return this.error('Unexpected "'.concat(p,'" found.'),{index:v[d.FIELDS.START_POS]})}s++}if(!n.attribute)return this.expected("attribute",t[d.FIELDS.START_POS]);Ct(n,"attribute"),Ct(n,"namespace"),this.newNode(new Pa.default(n)),this.position++},i.prototype.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,r=[],n="",s=void 0;do if(Ei[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(n+=this.content());else if(this.currToken[d.FIELDS.TYPE]===b.comment){var o={};n&&(o.before=n,n=""),s=new Aa.default({value:this.content(),source:ot(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:o}),r.push(s)}while(++this.position<e);if(n){if(s)s.spaces.after=n;else if(!this.options.lossy){var l=this.tokens[t],a=this.tokens[this.position-1];r.push(new Wr.default({value:"",source:at(l[d.FIELDS.START_LINE],l[d.FIELDS.START_COL],a[d.FIELDS.END_LINE],a[d.FIELDS.END_COL]),sourceIndex:l[d.FIELDS.START_POS],spaces:{before:n,after:""}}))}}return r},i.prototype.convertWhitespaceNodesToSpace=function(e,t){var r=this;t===void 0&&(t=!1);var n="",s="";e.forEach(function(l){var a=r.lossySpace(l.spaces.before,t),f=r.lossySpace(l.rawSpaceBefore,t);n+=a+r.lossySpace(l.spaces.after,t&&a.length===0),s+=a+l.value+r.lossySpace(l.rawSpaceAfter,t&&f.length===0)}),s===n&&(s=void 0);var o={space:n,rawSpace:s};return o},i.prototype.isNamedCombinator=function(e){return e===void 0&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][d.FIELDS.TYPE]===b.slash&&this.tokens[e+1]&&this.tokens[e+1][d.FIELDS.TYPE]===b.word&&this.tokens[e+2]&&this.tokens[e+2][d.FIELDS.TYPE]===b.slash},i.prototype.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,R.unesc)(e).toLowerCase(),r={};t!==e&&(r.value="/".concat(e,"/"));var n=new Si.default({value:"/".concat(t,"/"),source:at(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:r});return this.position=this.position+3,n}else this.unexpected()},i.prototype.combinator=function(){var e=this;if(this.content()==="|")return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(t<0||this.tokens[t][d.FIELDS.TYPE]===b.comma||this.tokens[t][d.FIELDS.TYPE]===b.closeParenthesis){var r=this.parseWhitespaceEquivalentTokens(t);if(r.length>0){var n=this.current.last;if(n){var s=this.convertWhitespaceNodesToSpace(r),o=s.space,l=s.rawSpace;l!==void 0&&(n.rawSpaceAfter+=l),n.spaces.after+=o}else r.forEach(function(x){return e.newNode(x)})}return}var a=this.currToken,f=void 0;t>this.position&&(f=this.parseWhitespaceEquivalentTokens(t));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===b.combinator?(h=new Si.default({value:this.content(),source:ot(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):Ei[this.currToken[d.FIELDS.TYPE]]||f||this.unexpected(),h){if(f){var v=this.convertWhitespaceNodesToSpace(f),o=v.space,l=v.rawSpace;h.spaces.before=o,h.rawSpaceBefore=l}}else{var p=this.convertWhitespaceNodesToSpace(f,!0),o=p.space,l=p.rawSpace;l||(l=o);var g={},_={spaces:{}};o.endsWith(" ")&&l.endsWith(" ")?(g.before=o.slice(0,o.length-1),_.spaces.before=l.slice(0,l.length-1)):o[0]===" "&&l[0]===" "?(g.after=o.slice(1),_.spaces.after=l.slice(1)):_.value=l,h=new Si.default({value:" ",source:bi(a,this.tokens[this.position-1]),sourceIndex:a[d.FIELDS.START_POS],spaces:g,raws:_})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===b.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},i.prototype.flushPendingSpaces=function(){if(this.spaces){var e=this.current.last;if(e){e.spaces.after+=this.spaces,this.spaces="";return}var t=this.currToken||this.prevToken;this.newNode(new Wr.default({value:"",source:t?ot(t):void 0,sourceIndex:t?t[d.FIELDS.START_POS]:0}))}},i.prototype.comma=function(){if(this.flushPendingSpaces(),this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var e=new wi.default({source:{start:Ca(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},i.prototype.comment=function(){var e=this.currToken;this.newNode(new Aa.default({value:this.content(),source:ot(e),sourceIndex:e[d.FIELDS.START_POS]})),this.position++},i.prototype.error=function(e,t){throw this.root.error(e,t)},i.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},i.prototype.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},i.prototype.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},i.prototype.unexpected=function(){return this.error("Unexpected '".concat(this.content(),"'. Escaping special characters with \\ may help."),this.currToken[d.FIELDS.START_POS])},i.prototype.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},i.prototype.namespace=function(){var e=this.prevToken,t=e&&(e[d.FIELDS.TYPE]===b.word||e[d.FIELDS.TYPE]===b.asterisk||e[d.FIELDS.TYPE]===b.ampersand)?this.content(e):!0;if(!this.nextToken)return this.unexpectedPipe();if(this.nextToken[d.FIELDS.TYPE]===b.word)return this.position++,this.word(t);if(this.nextToken[d.FIELDS.TYPE]===b.asterisk)return this.position++,this.universal(t);this.unexpectedPipe()},i.prototype.nesting=function(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new Xh.default({value:this.content(),source:ot(t),sourceIndex:t[d.FIELDS.START_POS]})),this.position++},i.prototype.parentheses=function(){var e=this.current.last,t=1,r=this.currToken;if(this.position++,e&&e.type===xa.PSEUDO){var n=new wi.default({source:{start:Ca(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),s=this.current;e.append(n),this.current=n,this.nestingDepth++;try{for(this.nestingDepth>this.maxNestingDepth&&this.error("Cannot parse selector: nesting depth exceeds the maximum of ".concat(this.maxNestingDepth,"."),{index:this.currToken[d.FIELDS.START_POS]});this.position<this.tokens.length&&t;)this.currToken[d.FIELDS.TYPE]===b.openParenthesis&&t++,this.currToken[d.FIELDS.TYPE]===b.closeParenthesis&&t--,t?this.parse():(this.flushPendingSpaces(),this.current.source.end=Ia(this.currToken),this.current.parent.source.end=Ia(this.currToken),this.position++)}finally{this.nestingDepth--}this.current=s}else{for(var o=this.currToken,l="(",a=void 0;;){for(;this.position<this.tokens.length&&t;)this.currToken[d.FIELDS.TYPE]===b.openParenthesis&&t++,this.currToken[d.FIELDS.TYPE]===b.closeParenthesis&&t--,a=this.currToken,l+=this.parseParenthesisToken(this.currToken),this.position++;if(t||!e||!this.currToken||this.currToken[d.FIELDS.TYPE]!==b.openParenthesis)break;r=this.currToken,l+="(",t=1,this.position++}e?e.appendToPropertyAndEscape("value",l,l):this.newNode(new Wr.default({value:l,source:at(o[d.FIELDS.START_LINE],o[d.FIELDS.START_COL],a[d.FIELDS.END_LINE],a[d.FIELDS.END_COL]),sourceIndex:o[d.FIELDS.START_POS]}))}if(t)return this.expected("closing parenthesis",(this.currToken||r)[d.FIELDS.START_POS])},i.prototype.pseudo=function(){for(var e=this,t="",r=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===b.colon;)t+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===b.word)this.splitWord(!1,function(n,s){t+=n,e.newNode(new Vh.default({value:t,source:bi(r,e.currToken),sourceIndex:r[d.FIELDS.START_POS]})),s>1&&e.nextToken&&e.nextToken[d.FIELDS.TYPE]===b.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},i.prototype.currentHasOnlyComments=function(){for(var e=this.current.nodes,t=this.commentPrefixes.get(this.current)||0;t<e.length&&e[t].type===xa.COMMENT;)t++;return this.commentPrefixes.set(this.current,t),t===e.length},i.prototype.space=function(){var e=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===b.comma||this.prevToken[d.FIELDS.TYPE]===b.openParenthesis||this.currentHasOnlyComments()?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===b.comma||this.nextToken[d.FIELDS.TYPE]===b.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},i.prototype.string=function(){var e=this.currToken;this.newNode(new Wr.default({value:this.content(),source:ot(e),sourceIndex:e[d.FIELDS.START_POS]})),this.position++},i.prototype.universal=function(e){var t=this.nextToken;if(t&&this.content(t)==="|")return this.position++,this.namespace();var r=this.currToken;this.newNode(new Qh.default({value:this.content(),source:ot(r),sourceIndex:r[d.FIELDS.START_POS]}),e),this.position++},i.prototype.splitWord=function(e,t){for(var r=this,n=this.nextToken,s=this.content();n&&~[b.dollar,b.caret,b.equals,b.word].indexOf(n[d.FIELDS.TYPE]);){this.position++;var o=this.content();if(s+=o,o.lastIndexOf("\\")===o.length-1){var l=this.nextToken;l&&l[d.FIELDS.TYPE]===b.space&&(s+=this.requiredSpace(this.content(l)),this.position++)}n=this.nextToken}var a=/^\d+\.\d+%$/.test(s),f=a?[]:Ti(s,".").filter(function(E){return!La(s,E)}),h=Ti(s,"#").filter(function(E){return!La(s,E)}),v=Ti(s,"#{");if(v.length){var p=new Set(v);h=h.filter(function(E){return!p.has(E)})}var g=new Set(f),_=new Set(h),x=(0,Kh.default)(ep(Oa(Oa([0],Ea(f),!1),Ea(h),!1)));x.forEach(function(E,U){var Y=x[U+1]||s.length,K=s.slice(E,Y);if(U===0&&t)return t.call(r,K,x.length);var k,V=r.currToken,Q=V[d.FIELDS.START_POS]+x[U],ee=at(V[1],V[2]+E,V[3],V[2]+(Y-1));if(g.has(E)){var Se={value:K.slice(1),source:ee,sourceIndex:Q};k=new Gh.default(Ct(Se,"value"))}else if(_.has(E)){var te={value:K.slice(1),source:ee,sourceIndex:Q};k=new Yh.default(Ct(te,"value"))}else{var pe={value:K,source:ee,sourceIndex:Q};Ct(pe,"value"),k=new $h.default(pe)}r.newNode(k,e),e=null}),this.position++},i.prototype.word=function(e){var t=this.nextToken;return t&&this.content(t)==="|"?(this.position++,this.namespace()):this.splitWord(e)},i.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.flushPendingSpaces(),this.current._inferEndPosition(),this.root},i.prototype.parse=function(e){switch(this.currToken[d.FIELDS.TYPE]){case b.space:this.space();break;case b.comment:this.comment();break;case b.openParenthesis:this.parentheses();break;case b.closeParenthesis:e&&this.missingParenthesis();break;case b.openSquare:this.attribute();break;case b.dollar:case b.caret:case b.equals:case b.word:this.word();break;case b.colon:this.pseudo();break;case b.comma:this.comma();break;case b.asterisk:this.universal();break;case b.ampersand:this.nesting();break;case b.slash:case b.combinator:this.combinator();break;case b.str:this.string();break;case b.closeSquare:this.missingSquareBracket();case b.semicolon:this.missingBackslash();default:this.unexpected()}},i.prototype.expected=function(e,t,r){if(Array.isArray(e)){var n=e.pop();e="".concat(e.join(", ")," or ").concat(n)}var s=/^[aeiou]/.test(e[0])?"an":"a";return r?this.error("Expected ".concat(s," ").concat(e,', found "').concat(r,'" instead.'),{index:t}):this.error("Expected ".concat(s," ").concat(e,"."),{index:t})},i.prototype.requiredSpace=function(e){return this.options.lossy?" ":e},i.prototype.optionalSpace=function(e){return this.options.lossy?"":e},i.prototype.lossySpace=function(e,t){return this.options.lossy?t?" ":"":e},i.prototype.parseParenthesisToken=function(e){var t=this.content(e);return e[d.FIELDS.TYPE]===b.space?this.requiredSpace(t):t},i.prototype.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||"")+t),t=!0),e.namespace=t,Ct(e,"namespace")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=""),this.current.append(e)},i.prototype.content=function(e){return e===void 0&&(e=this.currToken),this.css.slice(e[d.FIELDS.START_POS],e[d.FIELDS.END_POS])},Object.defineProperty(i.prototype,"currToken",{get:function(){return this.tokens[this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"nextToken",{get:function(){return this.tokens[this.position+1]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"prevToken",{get:function(){return this.tokens[this.position-1]},enumerable:!1,configurable:!0}),i.prototype.locateNextMeaningfulToken=function(e){e===void 0&&(e=this.position+1);for(var t=e;t<this.tokens.length;)if(Jh[this.tokens[t][d.FIELDS.TYPE]]){t++;continue}else return t;return-1},i})();se.default=tp});var Ra=T(ut=>{"use strict";var rp=ut&&ut.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},np=ut&&ut.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ut,"__esModule",{value:!0});var ip=np(Da()),sp=["ast","astSync","transform","transformSync","process","processSync"],op=(function(){function i(e,t){var r,n;this.func=e||function(){},this.funcRes=null,this.options=t;try{for(var s=rp(sp),o=s.next();!o.done;o=s.next()){var l=o.value;this[l]=this[l].bind(this)}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}return i.prototype._shouldUpdateSelector=function(e,t){t===void 0&&(t={});var r=Object.assign({},this.options,t);return r.updateSelector===!1?!1:typeof e!="string"},i.prototype._isLossy=function(e){e===void 0&&(e={});var t=Object.assign({},this.options,e);return t.lossless===!1},i.prototype._root=function(e,t){t===void 0&&(t={});var r=new ip.default(e,this._parseOptions(t));return r.root},i.prototype._parseOptions=function(e){var t=Object.assign({},this.options,e);return{lossy:this._isLossy(t),maxNestingDepth:t.maxNestingDepth,maxInputLength:t.maxInputLength}},i.prototype._stringifyOptions=function(e){var t=Object.assign({},this.options,e);return{maxNestingDepth:t.maxNestingDepth}},i.prototype._run=function(e,t){var r=this;return t===void 0&&(t={}),new Promise(function(n,s){try{var o=r._root(e,t);Promise.resolve(r.func(o)).then(function(l){var a=void 0;return r._shouldUpdateSelector(e,t)&&(a=o.toString(r._stringifyOptions(t)),e.selector=a),{transform:l,root:o,string:a}}).then(n,s)}catch(l){s(l);return}})},i.prototype._runSync=function(e,t){t===void 0&&(t={});var r=this._root(e,t),n=this.func(r);if(n&&typeof n.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var s=void 0;return t.updateSelector&&typeof e!="string"&&(s=r.toString(this._stringifyOptions(t)),e.selector=s),{transform:n,root:r,string:s}},i.prototype.ast=function(e,t){return this._run(e,t).then(function(r){return r.root})},i.prototype.astSync=function(e,t){return this._runSync(e,t).root},i.prototype.transform=function(e,t){return this._run(e,t).then(function(r){return r.transform})},i.prototype.transformSync=function(e,t){return this._runSync(e,t).transform},i.prototype.process=function(e,t){var r=this;return this._run(e,t).then(function(n){return n.string||n.root.toString(r._stringifyOptions(t))})},i.prototype.processSync=function(e,t){var r=this._runSync(e,t);return r.string||r.root.toString(this._stringifyOptions(t))},i})();ut.default=op});var Na=T(M=>{"use strict";var ye=M&&M.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(M,"__esModule",{value:!0});M.universal=M.tag=M.string=M.selector=M.root=M.pseudo=M.nesting=M.id=M.comment=M.combinator=M.className=M.attribute=void 0;var ap=ye(hi()),up=ye(ti()),lp=ye(di()),cp=ye(ri()),fp=ye(ni()),hp=ye(mi()),pp=ye(oi()),dp=ye(Jn()),mp=ye(Zn()),gp=ye(si()),yp=ye(ii()),_p=ye(pi()),vp=function(i){return new ap.default(i)};M.attribute=vp;var wp=function(i){return new up.default(i)};M.className=wp;var Sp=function(i){return new lp.default(i)};M.combinator=Sp;var bp=function(i){return new cp.default(i)};M.comment=bp;var Tp=function(i){return new fp.default(i)};M.id=Tp;var Ep=function(i){return new hp.default(i)};M.nesting=Ep;var Op=function(i){return new pp.default(i)};M.pseudo=Op;var Ap=function(i){return new dp.default(i)};M.root=Ap;var Pp=function(i){return new mp.default(i)};M.selector=Pp;var xp=function(i){return new gp.default(i)};M.string=xp;var Cp=function(i){return new yp.default(i)};M.tag=Cp;var Ip=function(i){return new _p.default(i)};M.universal=Ip});var Ma=T(I=>{"use strict";var le;Object.defineProperty(I,"__esModule",{value:!0});I.isUniversal=I.isTag=I.isString=I.isSelector=I.isRoot=I.isPseudo=I.isNesting=I.isIdentifier=I.isComment=I.isCombinator=I.isClassName=I.isAttribute=void 0;I.isNode=Oi;I.isPseudoElement=ka;I.isPseudoClass=Dp;I.isContainer=Rp;I.isNamespace=Np;var H=ie(),Lp=(le={},le[H.ATTRIBUTE]=!0,le[H.CLASS]=!0,le[H.COMBINATOR]=!0,le[H.COMMENT]=!0,le[H.ID]=!0,le[H.NESTING]=!0,le[H.PSEUDO]=!0,le[H.ROOT]=!0,le[H.SELECTOR]=!0,le[H.STRING]=!0,le[H.TAG]=!0,le[H.UNIVERSAL]=!0,le);function Oi(i){return typeof i=="object"&&Lp[i.type]}function _e(i,e){return Oi(e)&&e.type===i}I.isAttribute=_e.bind(null,H.ATTRIBUTE);I.isClassName=_e.bind(null,H.CLASS);I.isCombinator=_e.bind(null,H.COMBINATOR);I.isComment=_e.bind(null,H.COMMENT);I.isIdentifier=_e.bind(null,H.ID);I.isNesting=_e.bind(null,H.NESTING);I.isPseudo=_e.bind(null,H.PSEUDO);I.isRoot=_e.bind(null,H.ROOT);I.isSelector=_e.bind(null,H.SELECTOR);I.isString=_e.bind(null,H.STRING);I.isTag=_e.bind(null,H.TAG);I.isUniversal=_e.bind(null,H.UNIVERSAL);function ka(i){return(0,I.isPseudo)(i)&&i.value&&(i.value.startsWith("::")||i.value.toLowerCase()===":before"||i.value.toLowerCase()===":after"||i.value.toLowerCase()===":first-letter"||i.value.toLowerCase()===":first-line")}function Dp(i){return(0,I.isPseudo)(i)&&!ka(i)}function Rp(i){return!!(Oi(i)&&i.walk)}function Np(i){return(0,I.isAttribute)(i)||(0,I.isTag)(i)}});var Fa=T(Ce=>{"use strict";var kp=Ce&&Ce.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Ai=Ce&&Ce.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&kp(e,i,t)};Object.defineProperty(Ce,"__esModule",{value:!0});Ai(ie(),Ce);Ai(Na(),Ce);Ai(Ma(),Ce)});var ja=T((Ie,qa)=>{"use strict";var Mp=Ie&&Ie.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Fp=Ie&&Ie.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),qp=Ie&&Ie.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&Mp(t,e,r[n]);return Fp(t,e),t}})(),jp=Ie&&Ie.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},Up=jp(Ra()),Bp=qp(Fa()),Pi=function(i,e){return new Up.default(i,e)};Object.assign(Pi,Bp);delete Pi.__esModule;qa.exports=Pi});var Ga=_r(_n());var q=_r(ra(),1),na=q.default,Bd=q.default.stringify,zd=q.default.fromJSON,Wd=q.default.plugin,Hd=q.default.parse,Gd=q.default.list,Yd=q.default.document,$d=q.default.comment,Vd=q.default.atRule,Qd=q.default.rule,Xd=q.default.decl,Kd=q.default.root,Jd=q.default.CssSyntaxError,Zd=q.default.Declaration,em=q.default.Container,tm=q.default.Processor,rm=q.default.Document,nm=q.default.Comment,im=q.default.Warning,sm=q.default.AtRule,om=q.default.Result,am=q.default.Input,um=q.default.Rule,lm=q.default.Root,cm=q.default.Node;var Ya=_r(ja());var Yr=_r(_n());Yr.default.addHook("afterSanitizeAttributes",i=>{i.tagName==="A"&&i.getAttribute("target")==="_blank"&&i.setAttribute("rel","noopener noreferrer")});var Ua={ALLOWED_TAGS:["p","br","hr","span","div","section","article","header","footer","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","small","sup","sub","mark","ul","ol","li","blockquote","a","img","picture","source","figure","figcaption","video","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","title","alt","src","srcset","sizes","class","style","target","rel","width","height","loading","poster","controls"],ALLOW_DATA_ATTR:!1};function Ba(i){return Yr.default.sanitize(i,Ua)}function Gm(i){return Yr.default.sanitize(i,{...Ua,RETURN_DOM_FRAGMENT:!0})}var $a="data-sf-custom-html",zp=/^[A-Za-z][\w-]*$/;function Wp(i,e=$a){return`[${e}="${i}"]`}var za=new Set(["media","supports","container"]),Hp=new Set(["behavior","-moz-binding"]),Gp=/expression\s*\(|javascript:|vbscript:/i,Yp=/^[a-z][a-z0-9+.-]*:/i,$p=new Set(["none","initial","inherit","unset","revert","revert-layer","default","auto","normal","ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end","infinite","reverse","alternate","alternate-reverse","forwards","backwards","both","running","paused"]);function Vp(i){return i.replace(/\\([0-9a-f]{1,6})\s?|\\(.)/gi,(e,t,r)=>t?String.fromCodePoint(Math.min(+`0x${t}`,1114111)||65533):r??"")}function Wa(i){let e=i.trim();return e.startsWith("//")?!0:Yp.test(e)&&!/^https:\/\//i.test(e)}var Ha=/\/\*[\s\S]*?(?:\*\/|$)/g;function Qp(i,e){let t=Vp(e.replace(Ha,"")).replace(Ha,"");if(Gp.test(t))return!1;for(let r of t.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(Wa(r[2]))return!1;if(i.startsWith("--")||/(?:image-set|image|src)\(/i.test(t)){for(let r of t.matchAll(/(['"])(.*?)\1/g))if(Wa(r[2]))return!1}return!0}function Xp(i){let e=i.find(t=>t.type==="combinator");return e?e.value.trim()||" ":null}function Kp(i,e){let t;try{t=(0,Ya.default)().astSync(i)}catch{return null}let r=[];for(let n of t.nodes){let s=n.nodes;if(s.length===0)return null;let o=!1;if(n.walkNesting(()=>{o=!0}),o)continue;let l=s[0],a=l.type==="tag"&&/^(html|body)$/i.test(l.value)||l.type==="pseudo"&&l.value.toLowerCase()===":root",f=l.type==="universal",h=Xp(s.slice(1));if((a||f)&&(h==="~"||h==="+"))f&&r.push(`${e} ${String(n).trim()}`);else if(a||f){let v=s.slice(1).map(String).join("").trimEnd();r.push(v?e+v:f?`${e} *`:e)}else{if(l.type==="combinator"&&/^[~+]$/.test(l.value.trim()))continue;r.push(`${e} ${String(n).trim()}`)}}return r.length?r.join(", "):null}function Xm(i,e,t=$a){if(!zp.test(e))return"";let r;try{r=na.parse(i)}catch{return""}let n=Wp(e,t),s=new Map;r.walkComments(a=>{a.remove()});let o=a=>{for(let f of[...a.nodes??[]])f.type==="atrule"?za.has(f.name.toLowerCase())&&f.nodes?o(f):f.remove():f.type==="rule"&&f.remove()},l=a=>{for(let f of[...a.nodes??[]])if(f.type==="atrule"){let h=f.name.toLowerCase();if(/^(-[a-z]+-)?keyframes$/.test(h)){let v=f.params.trim();if(!/^[A-Za-z_][\w-]*$/.test(v)||$p.has(v.toLowerCase()))f.remove();else{let p=`${v}-${e}`;s.set(v,p),f.params=p}}else za.has(h)&&f.nodes?l(f):f.remove()}else if(f.type==="rule"){let h=Kp(f.selector,n);h===null?f.remove():(f.selector=h,o(f))}else f.type==="decl"&&f.remove()};return l(r),r.walkDecls(a=>{if(Hp.has(a.prop.toLowerCase())||!Qp(a.prop,a.raws.value?.raw??a.value)){a.remove();return}s.size>0&&/^(-[a-z]+-)?animation(-name)?$/i.test(a.prop)&&(a.value=a.value.replace(/(?<![\w-])[A-Za-z_][\w-]*(?![\w(-])/g,f=>s.get(f)??f))}),r.walkAtRules(a=>{a.nodes&&a.nodes.length===0&&a.remove()}),ss(r.toString()).trim()}var Jp={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function Km(i){let e=Ba(i);if(!/<style/i.test(i))return{css:"",markup:e};let t=Ga.default.sanitize(i,Jp).querySelectorAll("style");return{css:Array.from(t,r=>r.textContent??"").join(`
|
|
34
|
-
`),markup:
|
|
32
|
+
`?2:1);var a=parseInt(t,16),h=a>=55296&&a<=57343;return h||a===0||a>1114111?["\uFFFD",o]:[String.fromCodePoint(a),o]}}var Yc=/\\/;function $c(i){var e=Yc.test(i);if(!e)return i;for(var t="",r=0;r<i.length;r++){if(i[r]==="\\"){var n=Hc(i.slice(r+1,r+9));if(n!==void 0){t+=n[0],r+=n[1];continue}if(i[r+1]==="\\"){t+="\\",r++;continue}i.length===r+1&&(t+=i[r]);continue}t+=i[r]}return t}});var la=T(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=Vc;function Vc(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(;e.length>0;){var r=e.shift();if(!i[r])return;i=i[r]}return i}});var ca=T(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=Qc;function Qc(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(;e.length>0;){var r=e.shift();i[r]||(i[r]={}),i=i[r]}}});var fa=T(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=Xc;function Xc(i){for(var e="",t=i.indexOf("/*"),r=0;t>=0;){e=e+i.slice(r,t);var n=i.indexOf("*/",t+2);if(n<0)return e;r=n+2,t=i.indexOf("/*",r)}return e=e+i.slice(r),e}});var ha=T(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.MAX_NESTING_DEPTH=void 0;At.default=Kc;At.MAX_NESTING_DEPTH=256;function Kc(i){return Number.isSafeInteger(i)&&i>=0?i:At.MAX_NESTING_DEPTH}});var pa=T(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=Jc;function Jc(i){if(i===void 0||i===1/0)return 1/0;if(Number.isSafeInteger(i)&&i>=0)return i;throw new TypeError("maxInputLength must be a non-negative integer or Infinity, received ".concat(String(i),"."))}});var xt=T(ne=>{"use strict";var Pt=ne&&ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ne,"__esModule",{value:!0});ne.resolveMaxInputLength=ne.MAX_NESTING_DEPTH=ne.resolveMaxNestingDepth=ne.stripComments=ne.ensureObject=ne.getProp=ne.unesc=void 0;var Zc=$n();Object.defineProperty(ne,"unesc",{enumerable:!0,get:function(){return Pt(Zc).default}});var ef=la();Object.defineProperty(ne,"getProp",{enumerable:!0,get:function(){return Pt(ef).default}});var tf=ca();Object.defineProperty(ne,"ensureObject",{enumerable:!0,get:function(){return Pt(tf).default}});var rf=fa();Object.defineProperty(ne,"stripComments",{enumerable:!0,get:function(){return Pt(rf).default}});var da=ha();Object.defineProperty(ne,"resolveMaxNestingDepth",{enumerable:!0,get:function(){return Pt(da).default}});Object.defineProperty(ne,"MAX_NESTING_DEPTH",{enumerable:!0,get:function(){return da.MAX_NESTING_DEPTH}});var nf=pa();Object.defineProperty(ne,"resolveMaxInputLength",{enumerable:!0,get:function(){return Pt(nf).default}})});var Pe=T(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var Br=xt(),Jn=function(i,e,t){if(t===void 0&&(t=0),t>Br.MAX_NESTING_DEPTH)throw new Error("Cannot clone selector: nesting depth exceeds the maximum of ".concat(Br.MAX_NESTING_DEPTH,"."));if(typeof i!="object"||i===null)return i;var r=new i.constructor;for(var n in i)if(i.hasOwnProperty(n)){var s=i[n],o=typeof s;n==="parent"&&o==="object"?e&&(r[n]=e):s instanceof Array?r[n]=s.map(function(l){return Jn(l,r,t+1)}):r[n]=Jn(s,r,t+1)}return r},sf=(function(){function i(e){e===void 0&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}return i.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},i.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},i.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},i.prototype.clone=function(e){e===void 0&&(e={});var t=Jn(this);for(var r in e)t[r]=e[r];return t},i.prototype.appendToPropertyAndEscape=function(e,t,r){this.raws||(this.raws={});var n=this[e],s=this.raws[e];this[e]=n+t,s||r!==t?this.raws[e]=(s||n)+r:delete this.raws[e]},i.prototype.setPropertyAndEscape=function(e,t,r){this.raws||(this.raws={}),this[e]=t,this.raws[e]=r},i.prototype.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},i.prototype.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e||this.source.end.line<e||this.source.start.line===e&&this.source.start.column>t||this.source.end.line===e&&this.source.end.column<t)},i.prototype.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},Object.defineProperty(i.prototype,"rawSpaceBefore",{get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return e===void 0&&(e=this.spaces&&this.spaces.before),e||""},set:function(e){(0,Br.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rawSpaceAfter",{get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return e===void 0&&(e=this.spaces.after),e||""},set:function(e){(0,Br.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=e},enumerable:!1,configurable:!0}),i.prototype.valueToString=function(){return String(this.stringifyProperty("value"))},i.prototype.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i.prototype._stringify=function(){return this.toString()},i})();Zn.default=sf});var ie=T(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.UNIVERSAL=j.ATTRIBUTE=j.CLASS=j.COMBINATOR=j.COMMENT=j.ID=j.NESTING=j.PSEUDO=j.ROOT=j.SELECTOR=j.STRING=j.TAG=void 0;j.TAG="tag";j.STRING="string";j.SELECTOR="selector";j.ROOT="root";j.PSEUDO="pseudo";j.NESTING="nesting";j.ID="id";j.COMMENT="comment";j.COMBINATOR="combinator";j.CLASS="class";j.ATTRIBUTE="attribute";j.UNIVERSAL="universal"});var zr=T(Z=>{"use strict";var of=Z&&Z.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),af=Z&&Z.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),uf=Z&&Z.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),lf=Z&&Z.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&af(t,e,r[n]);return uf(t,e),t}})(),cf=Z&&Z.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ma=Z&&Z.__read||function(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){o={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s},ga=Z&&Z.__spreadArray||function(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))},ff=Z&&Z.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Z,"__esModule",{value:!0});var ei=xt(),hf=ff(Pe()),xe=lf(ie()),pf=(function(i){of(e,i);function e(t){var r=i.call(this,t)||this;return r.nodes||(r.nodes=[]),r}return e.prototype.append=function(t){return t.parent=this,this.nodes.push(t),this},e.prototype.prepend=function(t){t.parent=this,this.nodes.unshift(t);for(var r in this.indexes)this.indexes[r]++;return this},e.prototype.at=function(t){return this.nodes[t]},e.prototype.index=function(t){return typeof t=="number"?t:this.nodes.indexOf(t)},Object.defineProperty(e.prototype,"first",{get:function(){return this.at(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.at(this.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length},enumerable:!1,configurable:!0}),e.prototype.removeChild=function(t){t=this.index(t),this.at(t).parent=void 0,this.nodes.splice(t,1);var r;for(var n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this},e.prototype.removeAll=function(){var t,r;try{for(var n=cf(this.nodes),s=n.next();!s.done;s=n.next()){var o=s.value;o.parent=void 0}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(t,r){var n;r.parent=this;for(var s=this.index(t),o=[],l=2;l<arguments.length;l++)arguments[l].parent=this,o.push(arguments[l]);(n=this.nodes).splice.apply(n,ga([s+1,0,r],ma(o),!1)),r.parent=this;var a;for(var h in this.indexes)a=this.indexes[h],s<a&&(this.indexes[h]=a+arguments.length-1);return this},e.prototype.insertBefore=function(t,r){var n;r.parent=this;for(var s=this.index(t),o=[],l=2;l<arguments.length;l++)arguments[l].parent=this,o.push(arguments[l]);(n=this.nodes).splice.apply(n,ga([s,0,r],ma(o),!1)),r.parent=this;var a;for(var h in this.indexes)a=this.indexes[h],a>=s&&(this.indexes[h]=a+arguments.length-1);return this},e.prototype._findChildAtPosition=function(t,r){var n=void 0;return this.each(function(s){if(s.atPosition){var o=s.atPosition(t,r);if(o)return n=o,!1}else if(s.isAtPosition(t,r))return n=s,!1}),n},e.prototype.atPosition=function(t,r){if(this.isAtPosition(t,r))return this._findChildAtPosition(t,r)||this},e.prototype._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},e.prototype.each=function(t){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var r=this.lastEach;if(this.indexes[r]=0,!!this.length){for(var n,s;this.indexes[r]<this.length&&(n=this.indexes[r],s=t(this.at(n),n),s!==!1);)this.indexes[r]+=1;if(delete this.indexes[r],s===!1)return!1}},e.prototype.walk=function(t,r){if(r===void 0&&(r=0),r>ei.MAX_NESTING_DEPTH)throw new Error("Cannot walk selector: nesting depth exceeds the maximum of ".concat(ei.MAX_NESTING_DEPTH,"."));return this.each(function(n,s){var o=t(n,s);if(o!==!1&&n.length&&(o=n.walk(t,r+1)),o===!1)return!1})},e.prototype.walkAttributes=function(t){var r=this;return this.walk(function(n){if(n.type===xe.ATTRIBUTE)return t.call(r,n)})},e.prototype.walkClasses=function(t){var r=this;return this.walk(function(n){if(n.type===xe.CLASS)return t.call(r,n)})},e.prototype.walkCombinators=function(t){var r=this;return this.walk(function(n){if(n.type===xe.COMBINATOR)return t.call(r,n)})},e.prototype.walkComments=function(t){var r=this;return this.walk(function(n){if(n.type===xe.COMMENT)return t.call(r,n)})},e.prototype.walkIds=function(t){var r=this;return this.walk(function(n){if(n.type===xe.ID)return t.call(r,n)})},e.prototype.walkNesting=function(t){var r=this;return this.walk(function(n){if(n.type===xe.NESTING)return t.call(r,n)})},e.prototype.walkPseudos=function(t){var r=this;return this.walk(function(n){if(n.type===xe.PSEUDO)return t.call(r,n)})},e.prototype.walkTags=function(t){var r=this;return this.walk(function(n){if(n.type===xe.TAG)return t.call(r,n)})},e.prototype.walkUniversals=function(t){var r=this;return this.walk(function(n){if(n.type===xe.UNIVERSAL)return t.call(r,n)})},e.prototype.split=function(t){var r=this,n=[];return this.reduce(function(s,o,l){var a=t.call(r,o);return n.push(o),a?(s.push(n),n=[]):l===r.length-1&&s.push(n),s},[])},e.prototype.map=function(t){return this.nodes.map(t)},e.prototype.reduce=function(t,r){return this.nodes.reduce(t,r)},e.prototype.every=function(t){return this.nodes.every(t)},e.prototype.some=function(t){return this.nodes.some(t)},e.prototype.filter=function(t){return this.nodes.filter(t)},e.prototype.sort=function(t){return this.nodes.sort(t)},e.prototype.toString=function(t){return t===void 0&&(t={}),this._stringify(t,0,(0,ei.resolveMaxNestingDepth)(t.maxNestingDepth))},e.prototype._stringify=function(t,r,n){var s=this,o=this.map(function(l){return s._stringifyChild(l,t,r,n)}).join("");return[this.rawSpaceBefore,o,this.rawSpaceAfter].join("")},e.prototype._stringifyChild=function(t,r,n,s){return typeof t._stringify=="function"?t._stringify(r,n,s):String(t)},e})(hf.default);Z.default=pf});var ti=T(Ve=>{"use strict";var df=Ve&&Ve.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),mf=Ve&&Ve.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ve,"__esModule",{value:!0});var gf=mf(zr()),yf=ie(),_f=(function(i){df(e,i);function e(t){var r=i.call(this,t)||this;return r.type=yf.ROOT,r}return e.prototype._stringify=function(t,r,n){var s=this,o=this.reduce(function(l,a){return l.push(s._stringifyChild(a,t,r,n)),l},[]).join(",");return this.trailingComma&&(o+=","),[this.rawSpaceBefore,o,this.rawSpaceAfter].join("")},e.prototype.error=function(t,r){return this._error?this._error(t,r):new Error(t)},Object.defineProperty(e.prototype,"errorGenerator",{set:function(t){this._error=t},enumerable:!1,configurable:!0}),e})(gf.default);Ve.default=_f});var ri=T(Qe=>{"use strict";var vf=Qe&&Qe.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),wf=Qe&&Qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qe,"__esModule",{value:!0});var Sf=wf(zr()),bf=ie(),Tf=(function(i){vf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=bf.SELECTOR,r}return e})(Sf.default);Qe.default=Tf});var Wr=T(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.default=Lf;var Ef={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Of=Object.prototype.hasOwnProperty;function Af(i,e){if(!i)return e;var t={};for(var r in e)t[r]=Of.call(i,r)?i[r]:e[r];return t}var Pf=/[ -,./:-@[-^`{-~]/,xf=/[ -,./:-@[\]^`{-~]/,ya=92,_a=32;function va(i){return i>=48&&i<=57||i>=65&&i<=70}function Cf(i){return va(i)||i>=97&&i<=102||i===_a}function If(i){for(var e=i.length,t="",r=0,n=0;n<e;){if(i.charCodeAt(n)!==ya){n++;continue}for(var s=n+1;s<e&&i.charCodeAt(s)===ya;)s++;for(var o=s;o<e&&o-s<7&&va(i.charCodeAt(o));)o++;var l=o-s;l>=1&&l<=6&&i.charCodeAt(o)===_a&&!Cf(i.charCodeAt(o+1))?((s-n-1)%2===0&&(t+=i.slice(r,o),r=o+1),n=o+1):n=s}return r===0?i:t+i.slice(r)}function Lf(i,e){e=Af(e,Ef),e.quotes!=="single"&&e.quotes!=="double"&&(e.quotes="single");for(var t=e.quotes==="double"?'"':"'",r=e.isIdentifier,n=i.charAt(0),s="",o=0,l=i.length;o<l;){var a=i.charAt(o++),h=a.charCodeAt(0),f=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&o<l){var _=i.charCodeAt(o++);(_&64512)===56320?h=((h&1023)<<10)+(_&1023)+65536:o--}f="\\"+h.toString(16).toUpperCase()+" "}else e.escapeEverything?Pf.test(a)?f="\\"+a:f="\\"+h.toString(16).toUpperCase()+" ":a==="\\"||!r&&(a==='"'&&t===a||a==="'"&&t===a)||r&&xf.test(a)?f="\\"+a:f=a;s+=f}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(n)&&(s="\\3"+n+" "+s.slice(1))),s=If(s),!r&&e.wrap?t+s+t:s}});var ii=T(Xe=>{"use strict";var Df=Xe&&Xe.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),wa=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xe,"__esModule",{value:!0});var Rf=wa(Wr()),Nf=xt(),kf=wa(Pe()),Mf=ie(),Ff=(function(i){Df(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Mf.CLASS,r._constructed=!0,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(this._constructed){var r=(0,Rf.default)(t,{isIdentifier:!0});r!==t?((0,Nf.ensureObject)(this,"raws"),this.raws.value=r):this.raws&&delete this.raws.value}this._value=t},enumerable:!1,configurable:!0}),e.prototype.valueToString=function(){return"."+i.prototype.valueToString.call(this)},e})(kf.default);Xe.default=Ff});var si=T(Ke=>{"use strict";var qf=Ke&&Ke.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),jf=Ke&&Ke.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ke,"__esModule",{value:!0});var Uf=jf(Pe()),Bf=ie(),zf=(function(i){qf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Bf.COMMENT,r}return e})(Uf.default);Ke.default=zf});var oi=T(Je=>{"use strict";var Wf=Je&&Je.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Gf=Je&&Je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Je,"__esModule",{value:!0});var Hf=Gf(Pe()),Yf=ie(),$f=(function(i){Wf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Yf.ID,r}return e.prototype.valueToString=function(){return"#"+i.prototype.valueToString.call(this)},e})(Hf.default);Je.default=$f});var Gr=T(Ze=>{"use strict";var Vf=Ze&&Ze.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Sa=Ze&&Ze.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ze,"__esModule",{value:!0});var Qf=Sa(Wr()),Xf=xt(),Kf=Sa(Pe()),Jf=(function(i){Vf(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this._namespace},set:function(t){if(t===!0||t==="*"||t==="&"){this._namespace=t,this.raws&&delete this.raws.namespace;return}var r=(0,Qf.default)(t,{isIdentifier:!0});this._namespace=t,r!==t?((0,Xf.ensureObject)(this,"raws"),this.raws.namespace=r):this.raws&&delete this.raws.namespace},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ns",{get:function(){return this._namespace},set:function(t){this.namespace=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"namespaceString",{get:function(){if(this.namespace){var t=this.stringifyProperty("namespace");return t===!0?"":t}else return""},enumerable:!1,configurable:!0}),e.prototype.qualifiedName=function(t){return this.namespace?"".concat(this.namespaceString,"|").concat(t):t},e.prototype.valueToString=function(){return this.qualifiedName(i.prototype.valueToString.call(this))},e})(Kf.default);Ze.default=Jf});var ai=T(et=>{"use strict";var Zf=et&&et.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),eh=et&&et.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(et,"__esModule",{value:!0});var th=eh(Gr()),rh=ie(),nh=(function(i){Zf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=rh.TAG,r}return e})(th.default);et.default=nh});var ui=T(tt=>{"use strict";var ih=tt&&tt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+ba(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),sh=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tt,"__esModule",{value:!0});var oh=sh(Pe()),ah=ie(),ba=(function(i){ih(e,i);function e(t){var r=i.call(this,t)||this;return r.type=ah.STRING,r}return e})(oh.default);tt.default=ba});var li=T(rt=>{"use strict";var uh=rt&&rt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),lh=rt&&rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rt,"__esModule",{value:!0});var ch=lh(zr()),fh=ie(),hh=(function(i){uh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=fh.PSEUDO,r}return e.prototype._stringify=function(t,r,n){var s=this;if(r>=n)throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of ".concat(n,"."));var o=this.length?"("+this.map(function(l){return s._stringifyChild(l,t,r+1,n)}).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},e})(ch.default);rt.default=hh});var Ea=T((qm,Ta)=>{"use strict";Ta.exports=ph;function ph(i,e){if(ci("noDeprecation"))return i;var t=!1;function r(){if(!t){if(ci("throwDeprecation"))throw new Error(e);ci("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return i.apply(this,arguments)}return r}function ci(i){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[i];return e==null?!1:String(e).toLowerCase()==="true"}});var mi=T(Ue=>{"use strict";var dh=Ue&&Ue.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),pi=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},fi;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.unescapeValue=di;var nr=pi(Wr()),mh=pi($n()),gh=pi(Gr()),yh=ie(),ir=Ea(),_h=/^('|")([^]*)\1$/,vh=ir(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),wh=ir(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Sh=ir(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function di(i){var e=!1,t=null,r=i,n=r.match(_h);return n&&(t=n[1],r=n[2]),r=(0,mh.default)(r),r!==i&&(e=!0),{deprecatedUsage:e,unescaped:r,quoteMark:t}}function bh(i){if(i.quoteMark!==void 0||i.value===void 0)return i;Sh();var e=di(i.value),t=e.quoteMark,r=e.unescaped;return i.raws||(i.raws={}),i.raws.value===void 0&&(i.raws.value=i.value),i.value=r,i.quoteMark=t,i}var Th=(function(i){dh(e,i);function e(t){t===void 0&&(t={});var r=i.call(this,bh(t))||this;return r.type=yh.ATTRIBUTE,r.raws=r.raws||{},Object.defineProperty(r.raws,"unquoted",{get:ir(function(){return r.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:ir(function(){return r.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),r._constructed=!0,r}return e.prototype.getQuotedValue=function(t){t===void 0&&(t={});var r=this._determineQuoteMark(t),n=hi[r],s=(0,nr.default)(this._value,n);return s},e.prototype._determineQuoteMark=function(t){return t.smart?this.smartQuoteMark(t):this.preferredQuoteMark(t)},e.prototype.setValue=function(t,r){r===void 0&&(r={}),this._value=t,this._quoteMark=this._determineQuoteMark(r),this._syncRawValue()},e.prototype.smartQuoteMark=function(t){var r=this.value,n=r.replace(/[^']/g,"").length,s=r.replace(/[^"]/g,"").length;if(n+s===0){var o=(0,nr.default)(r,{isIdentifier:!0});if(o===r)return e.NO_QUOTE;var l=this.preferredQuoteMark(t);if(l===e.NO_QUOTE){var a=this.quoteMark||t.quoteMark||e.DOUBLE_QUOTE,h=hi[a],f=(0,nr.default)(r,h);if(f.length<o.length)return a}return l}else return s===n?this.preferredQuoteMark(t):s<n?e.DOUBLE_QUOTE:e.SINGLE_QUOTE},e.prototype.preferredQuoteMark=function(t){var r=t.preferCurrentQuoteMark?this.quoteMark:t.quoteMark;return r===void 0&&(r=t.preferCurrentQuoteMark?t.quoteMark:this.quoteMark),r===void 0&&(r=e.DOUBLE_QUOTE),r},Object.defineProperty(e.prototype,"quoted",{get:function(){var t=this.quoteMark;return t==="'"||t==='"'},set:function(t){wh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quoteMark",{get:function(){return this._quoteMark},set:function(t){if(!this._constructed){this._quoteMark=t;return}this._quoteMark!==t&&(this._quoteMark=t,this._syncRawValue())},enumerable:!1,configurable:!0}),e.prototype._syncRawValue=function(){var t=(0,nr.default)(this._value,hi[this.quoteMark]);t===this._value?this.raws&&delete this.raws.value:this.raws.value=t},Object.defineProperty(e.prototype,"qualifiedAttribute",{get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"insensitiveFlag",{get:function(){return this.insensitive?"i":""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sensitiveFlag",{get:function(){return this.sensitive?"s":""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(this._constructed){var r=di(t),n=r.deprecatedUsage,s=r.unescaped,o=r.quoteMark;if(n&&vh(),s===this._value&&o===this._quoteMark)return;this._value=s,this._quoteMark=o,this._syncRawValue()}else this._value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"insensitive",{get:function(){return this._insensitive},set:function(t){t?this.sensitive=!1:this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0),this._insensitive=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sensitive",{get:function(){return this._sensitive},set:function(t){t?this.insensitive=!1:this.raws&&(this.raws.sensitiveFlag==="S"||this.raws.sensitiveFlag==="s")&&(this.raws.sensitiveFlag=void 0),this._sensitive=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attribute",{get:function(){return this._attribute},set:function(t){this._handleEscapes("attribute",t),this._attribute=t},enumerable:!1,configurable:!0}),e.prototype._handleEscapes=function(t,r){if(this._constructed){var n=(0,nr.default)(r,{isIdentifier:!0});n!==r?this.raws[t]=n:delete this.raws[t]}},e.prototype._spacesFor=function(t){var r={before:"",after:""},n=this.spaces[t]||{},s=this.raws.spaces&&this.raws.spaces[t]||{};return Object.assign(r,n,s)},e.prototype._stringFor=function(t,r,n){r===void 0&&(r=t),n===void 0&&(n=Oa);var s=this._spacesFor(r);return n(this.stringifyProperty(t),s)},e.prototype.offsetOf=function(t){var r=1,n=this._spacesFor("attribute");if(r+=n.before.length,t==="namespace"||t==="ns")return this.namespace?r:-1;if(t==="attributeNS"||(r+=this.namespaceString.length,this.namespace&&(r+=1),t==="attribute"))return r;r+=this.stringifyProperty("attribute").length,r+=n.after.length;var s=this._spacesFor("operator");r+=s.before.length;var o=this.stringifyProperty("operator");if(t==="operator")return o?r:-1;r+=o.length,r+=s.after.length;var l=this._spacesFor("value");r+=l.before.length;var a=this.stringifyProperty("value");if(t==="value")return a?r:-1;r+=a.length,r+=l.after.length;var h=this._spacesFor("insensitive");return r+=h.before.length,t==="insensitive"?this.insensitive?r:-1:t==="sensitive"&&this.sensitive?r:-1},e.prototype.toString=function(){var t=this,r=[this.rawSpaceBefore,"["];if(r.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")){r.push(this._stringFor("operator")),r.push(this._stringFor("value"));var n=this.sensitive?"sensitiveFlag":"insensitiveFlag";r.push(this._stringFor(n,"insensitive",function(s,o){return s.length>0&&!t.quoted&&o.before.length===0&&!(t.spaces.value&&t.spaces.value.after)&&(o.before=" "),Oa(s,o)}))}return r.push("]"),r.push(this.rawSpaceAfter),r.join("")},e.NO_QUOTE=null,e.SINGLE_QUOTE="'",e.DOUBLE_QUOTE='"',e})(gh.default);Ue.default=Th;var hi=(fi={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},fi[null]={isIdentifier:!0},fi);function Oa(i,e){return"".concat(e.before).concat(i).concat(e.after)}});var gi=T(nt=>{"use strict";var Eh=nt&&nt.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Oh=nt&&nt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nt,"__esModule",{value:!0});var Ah=Oh(Gr()),Ph=ie(),xh=(function(i){Eh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Ph.UNIVERSAL,r.value="*",r}return e})(Ah.default);nt.default=xh});var yi=T(it=>{"use strict";var Ch=it&&it.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ih=it&&it.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(it,"__esModule",{value:!0});var Lh=Ih(Pe()),Dh=ie(),Rh=(function(i){Ch(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Dh.COMBINATOR,r._constructed=!0,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._constructed&&this.raws&&delete this.raws.value,this._value=t},enumerable:!1,configurable:!0}),e})(Lh.default);it.default=Rh});var _i=T(st=>{"use strict";var Nh=st&&st.__extends||(function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),kh=st&&st.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(st,"__esModule",{value:!0});var Mh=kh(Pe()),Fh=ie(),qh=(function(i){Nh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Fh.NESTING,r.value="&",r}return e})(Mh.default);st.default=qh});var Aa=T(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.default=jh;function jh(i){return i.sort(function(e,t){return e-t})}});var wi=T(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.combinator=O.word=O.comment=O.str=O.tab=O.newline=O.feed=O.cr=O.backslash=O.bang=O.slash=O.doubleQuote=O.singleQuote=O.space=O.greaterThan=O.pipe=O.equals=O.plus=O.caret=O.tilde=O.dollar=O.closeSquare=O.openSquare=O.closeParenthesis=O.openParenthesis=O.semicolon=O.colon=O.comma=O.at=O.asterisk=O.ampersand=void 0;O.ampersand=38;O.asterisk=42;O.at=64;O.comma=44;O.colon=58;O.semicolon=59;O.openParenthesis=40;O.closeParenthesis=41;O.openSquare=91;O.closeSquare=93;O.dollar=36;O.tilde=126;O.caret=94;O.plus=43;O.equals=61;O.pipe=124;O.greaterThan=62;O.space=32;O.singleQuote=39;O.doubleQuote=34;O.slash=47;O.bang=33;O.backslash=92;O.cr=13;O.feed=12;O.newline=10;O.tab=9;O.str=O.singleQuote;O.comment=-1;O.word=-2;O.combinator=-3});var xa=T(we=>{"use strict";var Uh=we&&we.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Bh=we&&we.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),zh=we&&we.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&Uh(t,e,r[n]);return Bh(t,e),t}})(),Ct,F;Object.defineProperty(we,"__esModule",{value:!0});we.FIELDS=void 0;we.default=$h;var S=zh(wi()),Wh=(Ct={},Ct[S.tab]=!0,Ct[S.newline]=!0,Ct[S.cr]=!0,Ct[S.feed]=!0,Ct),Gh=(F={},F[S.space]=!0,F[S.tab]=!0,F[S.newline]=!0,F[S.cr]=!0,F[S.feed]=!0,F[S.ampersand]=!0,F[S.asterisk]=!0,F[S.bang]=!0,F[S.comma]=!0,F[S.colon]=!0,F[S.semicolon]=!0,F[S.openParenthesis]=!0,F[S.closeParenthesis]=!0,F[S.openSquare]=!0,F[S.closeSquare]=!0,F[S.singleQuote]=!0,F[S.doubleQuote]=!0,F[S.plus]=!0,F[S.pipe]=!0,F[S.tilde]=!0,F[S.greaterThan]=!0,F[S.equals]=!0,F[S.dollar]=!0,F[S.caret]=!0,F[S.slash]=!0,F),Si={},Pa="0123456789abcdefABCDEF";for(Hr=0;Hr<Pa.length;Hr++)Si[Pa.charCodeAt(Hr)]=!0;var Hr;function Hh(i,e){var t=e,r;do{if(r=i.charCodeAt(t),Gh[r])return t-1;r===S.backslash?t=Yh(i,t)+1:t++}while(t<i.length);return t-1}function Yh(i,e){var t=e,r=i.charCodeAt(t+1);if(!Wh[r])if(Si[r]){var n=0;do t++,n++,r=i.charCodeAt(t+1);while(Si[r]&&n<6);n<6&&r===S.space&&t++}else t++;return t}we.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function $h(i){var e=[],t=i.css.valueOf(),r=t.length,n=-1,s=1,o=0,l=0,a,h,f,_,p,d,v,x,E,U,Y,K,k;function V(Q,ee){if(i.safe)t+=ee,E=t.length-1;else throw i.error("Unclosed "+Q,s,o-n,o)}for(;o<r;){switch(a=t.charCodeAt(o),a===S.newline&&(n=o,s+=1),a){case S.space:case S.tab:case S.newline:case S.cr:case S.feed:E=o;do E+=1,a=t.charCodeAt(E),a===S.newline&&(n=E,s+=1);while(a===S.space||a===S.newline||a===S.tab||a===S.cr||a===S.feed);k=S.space,_=s,f=E-n-1,l=E;break;case S.plus:case S.greaterThan:case S.tilde:case S.pipe:E=o;do E+=1,a=t.charCodeAt(E);while(a===S.plus||a===S.greaterThan||a===S.tilde||a===S.pipe);k=S.combinator,_=s,f=o-n,l=E;break;case S.asterisk:case S.ampersand:case S.bang:case S.comma:case S.equals:case S.dollar:case S.caret:case S.openSquare:case S.closeSquare:case S.colon:case S.semicolon:case S.openParenthesis:case S.closeParenthesis:E=o,k=a,_=s,f=o-n,l=E+1;break;case S.singleQuote:case S.doubleQuote:K=a===S.singleQuote?"'":'"',E=o;do for(p=!1,E=t.indexOf(K,E+1),E===-1&&V("quote",K),d=E;t.charCodeAt(d-1)===S.backslash;)d-=1,p=!p;while(p);k=S.str,_=s,f=o-n,l=E+1;break;default:a===S.slash&&t.charCodeAt(o+1)===S.asterisk?(E=t.indexOf("*/",o+2)+1,E===0&&V("comment","*/"),h=t.slice(o,E+1),x=h.split(`
|
|
33
|
+
`),v=x.length-1,v>0?(U=s+v,Y=E-x[v].length):(U=s,Y=n),k=S.comment,s=U,_=U,f=E-Y):a===S.slash?(E=o,k=a,_=s,f=o-n,l=E+1):(E=Hh(t,o),k=S.word,_=s,f=E-n),l=E+1;break}e.push([k,s,o-n,_,f,o,l]),Y&&(n=Y,Y=null),o=l}return e}});var Fa=T(se=>{"use strict";var $r=se&&se.__assign||function(){return $r=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},$r.apply(this,arguments)},Vh=se&&se.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Qh=se&&se.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Vr=se&&se.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&Vh(t,e,r[n]);return Qh(t,e),t}})(),Ca=se&&se.__read||function(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){o={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s},Ia=se&&se.__spreadArray||function(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))},ge=se&&se.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},ot,bi;Object.defineProperty(se,"__esModule",{value:!0});var Xh=ge(ti()),Ti=ge(ri()),Kh=ge(ii()),La=ge(si()),Jh=ge(oi()),Zh=ge(ai()),Yr=ge(ui()),ep=ge(li()),Da=Vr(mi()),tp=ge(gi()),Ei=ge(yi()),rp=ge(_i()),np=ge(Aa()),m=Vr(xa()),b=Vr(wi()),Ra=Vr(ie()),R=xt(),Pi=(ot={},ot[b.space]=!0,ot[b.cr]=!0,ot[b.feed]=!0,ot[b.newline]=!0,ot[b.tab]=!0,ot),ip=$r($r({},Pi),(bi={},bi[b.comment]=!0,bi));function Na(i){return{line:i[m.FIELDS.START_LINE],column:i[m.FIELDS.START_COL]}}function ka(i){return{line:i[m.FIELDS.END_LINE],column:i[m.FIELDS.END_COL]}}function ut(i,e,t,r){return{start:{line:i,column:e},end:{line:t,column:r}}}function at(i){return ut(i[m.FIELDS.START_LINE],i[m.FIELDS.START_COL],i[m.FIELDS.END_LINE],i[m.FIELDS.END_COL])}function Oi(i,e){if(i)return ut(i[m.FIELDS.START_LINE],i[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function It(i,e){var t=i[e];if(typeof t=="string")return t.indexOf("\\")!==-1&&((0,R.ensureObject)(i,"raws"),i[e]=(0,R.unesc)(t),i.raws[e]===void 0&&(i.raws[e]=t)),i}function Ai(i,e){for(var t=-1,r=[];(t=i.indexOf(e,t+1))!==-1;)r.push(t);return r}function Ma(i,e){for(var t=e;i[t-1]==="\\";)t--;return(e-t)%2===1}function sp(i){if(!i)return!1;var e=i.lastIndexOf("{");if(e<1||i.indexOf("}",e)!==-1)return!1;var t=i[e-1];return t==="#"||t==="@"}function op(){return Array.from(new Set(Array.prototype.concat.apply([],arguments)))}var ap=(function(){function i(e,t){t===void 0&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.nestingDepth=0,this.maxNestingDepth=(0,R.resolveMaxNestingDepth)(this.options.maxNestingDepth),this.commentPrefixes=new WeakMap,this.css=typeof this.rule=="string"?this.rule:this.rule.selector;var r=(0,R.resolveMaxInputLength)(this.options.maxInputLength);if(this.css&&this.css.length>r)throw this._errorGenerator()("Cannot parse selector: its length of ".concat(this.css.length," exceeds the maximum of ").concat(r,"."));this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=Oi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Xh.default({source:n}),this.root.errorGenerator=this._errorGenerator();var s=new Ti.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s),this.current=s,this.loop()}return i.prototype._errorGenerator=function(){var e=this;return function(t,r){return typeof e.rule=="string"?new Error(t):e.rule.error(t,r)}},i.prototype.namespaceSeparatorFollows=function(e,t){for(var r=t;e[r]&&e[r][m.FIELDS.TYPE]===b.space;)r++;if(!e[r]||this.content(e[r])!=="|"||(r++,e[r]&&e[r][m.FIELDS.TYPE]===b.equals))return!1;for(;e[r]&&e[r][m.FIELDS.TYPE]===b.space;)r++;return!!e[r]},i.prototype.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==b.closeSquare;)e.push(this.currToken),this.position++;if(!this.currToken)return this.expected("closing square bracket",t[m.FIELDS.START_POS]);if(this.currToken[m.FIELDS.TYPE]!==b.closeSquare)return this.expected("closing square bracket",this.currToken[m.FIELDS.START_POS]);var r=e.length,n={source:ut(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(r===1&&!~[b.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected("attribute",e[0][m.FIELDS.START_POS]);for(var s=0,o="",l="",a=null,h=!1,f=null;s<r;){var _=e[s],p=this.content(_),d=e[s+1];switch(_[m.FIELDS.TYPE]){case b.space:if(h=!0,this.options.lossy)break;if(f!==null){f+=p;break}if(a==="namespace"){(0,R.ensureObject)(n,"raws"),n.raws.namespace=(n.raws.namespace||n.namespace)+p;break}if(a){(0,R.ensureObject)(n,"spaces",a);var v=n.spaces[a].after||"";n.spaces[a].after=v+p;var x=(0,R.getProp)(n,"raws","spaces",a,"after")||null;x&&(n.raws.spaces[a].after=x+p)}else o=o+p,l=l+p;break;case b.asterisk:if(d&&d[m.FIELDS.TYPE]===b.equals)n.operator=p,a="operator";else if((!n.namespace||a==="namespace"&&!h)&&d){n.namespace=(n.namespace||"")+p;var E=(0,R.getProp)(n,"raws","namespace")||null;E&&(n.raws.namespace+=p),o&&((0,R.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=l,l=""),a="namespace"}h=!1;break;case b.dollar:if(a==="value"){var U=(0,R.getProp)(n,"raws","value");n.value+="$",U&&(n.raws.value=U+"$");break}if(a==="attribute"&&sp(n.attribute)&&!(d&&d[m.FIELDS.TYPE]===b.equals)){var Y=(0,R.getProp)(n,"raws","attribute");n.attribute=(n.attribute||"")+"$",Y&&(n.raws.attribute=Y+"$"),a="attribute",h=!1;break}case b.caret:d&&d[m.FIELDS.TYPE]===b.equals&&(n.operator=p,a="operator"),h=!1;break;case b.combinator:if(p==="~"&&d&&d[m.FIELDS.TYPE]===b.equals&&(n.operator=p,a="operator"),p!=="|"){h=!1;break}d&&d[m.FIELDS.TYPE]===b.equals?(n.operator=p,a="operator"):n.operator||(!n.namespace&&!n.attribute&&(n.namespace=!0),f=""),h=!1;break;case b.word:if(this.namespaceSeparatorFollows(e,s+1)&&!n.operator&&!n.namespace)n.namespace=p,a="namespace";else if(!n.attribute||a==="attribute"&&!h){o&&((0,R.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=l,l=""),f&&((0,R.ensureObject)(n,"raws"),n.raws.attribute=f+(n.raws.attribute||n.attribute||"")),f=null,n.attribute=(n.attribute||"")+p;var E=(0,R.getProp)(n,"raws","attribute")||null;E&&(n.raws.attribute+=p),a="attribute"}else if(!n.value&&n.value!==""||a==="value"&&!(h||n.quoteMark)){var K=(0,R.unesc)(p),U=(0,R.getProp)(n,"raws","value")||"",k=n.value||"";n.value=k+K,n.quoteMark=null,(K!==p||U)&&((0,R.ensureObject)(n,"raws"),n.raws.value=(U||k)+p),a="value"}else{var V=p==="i"||p==="I",Q=p==="s"||p==="S";(n.value||n.value==="")&&(n.quoteMark||h)?(n.insensitive=V,n.sensitive=Q,Q?p==="S"&&((0,R.ensureObject)(n,"raws"),n.raws.sensitiveFlag=p):(!V||p==="I")&&((0,R.ensureObject)(n,"raws"),n.raws.insensitiveFlag=p),a="insensitive",o&&((0,R.ensureObject)(n,"spaces","insensitive"),n.spaces.insensitive.before=o,o=""),l&&((0,R.ensureObject)(n,"raws","spaces","insensitive"),n.raws.spaces.insensitive.before=l,l="")):(n.value||n.value==="")&&(a="value",n.value+=p,n.raws.value&&(n.raws.value+=p))}h=!1;break;case b.str:if(!n.attribute||!n.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_[m.FIELDS.START_POS]});var ee=(0,Da.unescapeValue)(p),Se=ee.unescaped,te=ee.quoteMark;n.value=Se,n.quoteMark=te,a="value",(0,R.ensureObject)(n,"raws"),n.raws.value=p,h=!1;break;case b.equals:if(!n.attribute)return this.expected("attribute",_[m.FIELDS.START_POS],p);if(n.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_[m.FIELDS.START_POS]});n.operator=n.operator?n.operator+p:p,a="operator",h=!1;break;case b.comment:if(a)if(h||d&&d[m.FIELDS.TYPE]===b.space||a==="insensitive"){var pe=(0,R.getProp)(n,"spaces",a,"after")||"",Lt=(0,R.getProp)(n,"raws","spaces",a,"after")||pe;(0,R.ensureObject)(n,"raws","spaces",a),n.raws.spaces[a].after=Lt+p}else{var ar=n[a]||"",Be=(0,R.getProp)(n,"raws",a)||ar;(0,R.ensureObject)(n,"raws"),n.raws[a]=Be+p}else l=l+p;break;default:return this.error('Unexpected "'.concat(p,'" found.'),{index:_[m.FIELDS.START_POS]})}s++}if(!n.attribute)return this.expected("attribute",t[m.FIELDS.START_POS]);It(n,"attribute"),It(n,"namespace"),this.newNode(new Da.default(n)),this.position++},i.prototype.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,r=[],n="",s=void 0;do if(Pi[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(n+=this.content());else if(this.currToken[m.FIELDS.TYPE]===b.comment){var o={};n&&(o.before=n,n=""),s=new La.default({value:this.content(),source:at(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:o}),r.push(s)}while(++this.position<e);if(n){if(s)s.spaces.after=n;else if(!this.options.lossy){var l=this.tokens[t],a=this.tokens[this.position-1];r.push(new Yr.default({value:"",source:ut(l[m.FIELDS.START_LINE],l[m.FIELDS.START_COL],a[m.FIELDS.END_LINE],a[m.FIELDS.END_COL]),sourceIndex:l[m.FIELDS.START_POS],spaces:{before:n,after:""}}))}}return r},i.prototype.convertWhitespaceNodesToSpace=function(e,t){var r=this;t===void 0&&(t=!1);var n="",s="";e.forEach(function(l){var a=r.lossySpace(l.spaces.before,t),h=r.lossySpace(l.rawSpaceBefore,t);n+=a+r.lossySpace(l.spaces.after,t&&a.length===0),s+=a+l.value+r.lossySpace(l.rawSpaceAfter,t&&h.length===0)}),s===n&&(s=void 0);var o={space:n,rawSpace:s};return o},i.prototype.isNamedCombinator=function(e){return e===void 0&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===b.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===b.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===b.slash},i.prototype.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,R.unesc)(e).toLowerCase(),r={};t!==e&&(r.value="/".concat(e,"/"));var n=new Ei.default({value:"/".concat(t,"/"),source:ut(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:r});return this.position=this.position+3,n}else this.unexpected()},i.prototype.combinator=function(){var e=this;if(this.content()==="|")return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(t<0||this.tokens[t][m.FIELDS.TYPE]===b.comma||this.tokens[t][m.FIELDS.TYPE]===b.closeParenthesis){var r=this.parseWhitespaceEquivalentTokens(t);if(r.length>0){var n=this.current.last;if(n){var s=this.convertWhitespaceNodesToSpace(r),o=s.space,l=s.rawSpace;l!==void 0&&(n.rawSpaceAfter+=l),n.spaces.after+=o}else r.forEach(function(x){return e.newNode(x)})}return}var a=this.currToken,h=void 0;t>this.position&&(h=this.parseWhitespaceEquivalentTokens(t));var f;if(this.isNamedCombinator()?f=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===b.combinator?(f=new Ei.default({value:this.content(),source:at(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):Pi[this.currToken[m.FIELDS.TYPE]]||h||this.unexpected(),f){if(h){var _=this.convertWhitespaceNodesToSpace(h),o=_.space,l=_.rawSpace;f.spaces.before=o,f.rawSpaceBefore=l}}else{var p=this.convertWhitespaceNodesToSpace(h,!0),o=p.space,l=p.rawSpace;l||(l=o);var d={},v={spaces:{}};o.endsWith(" ")&&l.endsWith(" ")?(d.before=o.slice(0,o.length-1),v.spaces.before=l.slice(0,l.length-1)):o[0]===" "&&l[0]===" "?(d.after=o.slice(1),v.spaces.after=l.slice(1)):v.value=l,f=new Ei.default({value:" ",source:Oi(a,this.tokens[this.position-1]),sourceIndex:a[m.FIELDS.START_POS],spaces:d,raws:v})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===b.space&&(f.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(f)},i.prototype.flushPendingSpaces=function(){if(this.spaces){var e=this.current.last;if(e){e.spaces.after+=this.spaces,this.spaces="";return}var t=this.currToken||this.prevToken;this.newNode(new Yr.default({value:"",source:t?at(t):void 0,sourceIndex:t?t[m.FIELDS.START_POS]:0}))}},i.prototype.comma=function(){if(this.flushPendingSpaces(),this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var e=new Ti.default({source:{start:Na(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][m.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},i.prototype.comment=function(){var e=this.currToken;this.newNode(new La.default({value:this.content(),source:at(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},i.prototype.error=function(e,t){throw this.root.error(e,t)},i.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[m.FIELDS.START_POS]})},i.prototype.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[m.FIELDS.START_POS])},i.prototype.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[m.FIELDS.START_POS])},i.prototype.unexpected=function(){return this.error("Unexpected '".concat(this.content(),"'. Escaping special characters with \\ may help."),this.currToken[m.FIELDS.START_POS])},i.prototype.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[m.FIELDS.START_POS])},i.prototype.namespace=function(){var e=this.prevToken,t=e&&(e[m.FIELDS.TYPE]===b.word||e[m.FIELDS.TYPE]===b.asterisk||e[m.FIELDS.TYPE]===b.ampersand)?this.content(e):!0;if(!this.nextToken)return this.unexpectedPipe();if(this.nextToken[m.FIELDS.TYPE]===b.word)return this.position++,this.word(t);if(this.nextToken[m.FIELDS.TYPE]===b.asterisk)return this.position++,this.universal(t);this.unexpectedPipe()},i.prototype.nesting=function(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new rp.default({value:this.content(),source:at(t),sourceIndex:t[m.FIELDS.START_POS]})),this.position++},i.prototype.parentheses=function(){var e=this.current.last,t=1,r=this.currToken;if(this.position++,e&&e.type===Ra.PSEUDO){var n=new Ti.default({source:{start:Na(this.tokens[this.position])},sourceIndex:this.tokens[this.position][m.FIELDS.START_POS]}),s=this.current;e.append(n),this.current=n,this.nestingDepth++;try{for(this.nestingDepth>this.maxNestingDepth&&this.error("Cannot parse selector: nesting depth exceeds the maximum of ".concat(this.maxNestingDepth,"."),{index:this.currToken[m.FIELDS.START_POS]});this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===b.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===b.closeParenthesis&&t--,t?this.parse():(this.flushPendingSpaces(),this.current.source.end=ka(this.currToken),this.current.parent.source.end=ka(this.currToken),this.position++)}finally{this.nestingDepth--}this.current=s}else{for(var o=this.currToken,l="(",a=void 0;;){for(;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===b.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===b.closeParenthesis&&t--,a=this.currToken,l+=this.parseParenthesisToken(this.currToken),this.position++;if(t||!e||!this.currToken||this.currToken[m.FIELDS.TYPE]!==b.openParenthesis)break;r=this.currToken,l+="(",t=1,this.position++}e?e.appendToPropertyAndEscape("value",l,l):this.newNode(new Yr.default({value:l,source:ut(o[m.FIELDS.START_LINE],o[m.FIELDS.START_COL],a[m.FIELDS.END_LINE],a[m.FIELDS.END_COL]),sourceIndex:o[m.FIELDS.START_POS]}))}if(t)return this.expected("closing parenthesis",(this.currToken||r)[m.FIELDS.START_POS])},i.prototype.pseudo=function(){for(var e=this,t="",r=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===b.colon;)t+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[m.FIELDS.TYPE]===b.word)this.splitWord(!1,function(n,s){t+=n,e.newNode(new ep.default({value:t,source:Oi(r,e.currToken),sourceIndex:r[m.FIELDS.START_POS]})),s>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===b.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[m.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[m.FIELDS.START_POS])},i.prototype.currentHasOnlyComments=function(){for(var e=this.current.nodes,t=this.commentPrefixes.get(this.current)||0;t<e.length&&e[t].type===Ra.COMMENT;)t++;return this.commentPrefixes.set(this.current,t),t===e.length},i.prototype.space=function(){var e=this.content();this.position===0||this.prevToken[m.FIELDS.TYPE]===b.comma||this.prevToken[m.FIELDS.TYPE]===b.openParenthesis||this.currentHasOnlyComments()?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===b.comma||this.nextToken[m.FIELDS.TYPE]===b.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},i.prototype.string=function(){var e=this.currToken;this.newNode(new Yr.default({value:this.content(),source:at(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},i.prototype.universal=function(e){var t=this.nextToken;if(t&&this.content(t)==="|")return this.position++,this.namespace();var r=this.currToken;this.newNode(new tp.default({value:this.content(),source:at(r),sourceIndex:r[m.FIELDS.START_POS]}),e),this.position++},i.prototype.splitWord=function(e,t){for(var r=this,n=this.nextToken,s=this.content();n&&~[b.dollar,b.caret,b.equals,b.word].indexOf(n[m.FIELDS.TYPE]);){this.position++;var o=this.content();if(s+=o,o.lastIndexOf("\\")===o.length-1){var l=this.nextToken;l&&l[m.FIELDS.TYPE]===b.space&&(s+=this.requiredSpace(this.content(l)),this.position++)}n=this.nextToken}var a=/^\d+\.\d+%$/.test(s),h=a?[]:Ai(s,".").filter(function(E){return!Ma(s,E)}),f=Ai(s,"#").filter(function(E){return!Ma(s,E)}),_=Ai(s,"#{");if(_.length){var p=new Set(_);f=f.filter(function(E){return!p.has(E)})}var d=new Set(h),v=new Set(f),x=(0,np.default)(op(Ia(Ia([0],Ca(h),!1),Ca(f),!1)));x.forEach(function(E,U){var Y=x[U+1]||s.length,K=s.slice(E,Y);if(U===0&&t)return t.call(r,K,x.length);var k,V=r.currToken,Q=V[m.FIELDS.START_POS]+x[U],ee=ut(V[1],V[2]+E,V[3],V[2]+(Y-1));if(d.has(E)){var Se={value:K.slice(1),source:ee,sourceIndex:Q};k=new Kh.default(It(Se,"value"))}else if(v.has(E)){var te={value:K.slice(1),source:ee,sourceIndex:Q};k=new Jh.default(It(te,"value"))}else{var pe={value:K,source:ee,sourceIndex:Q};It(pe,"value"),k=new Zh.default(pe)}r.newNode(k,e),e=null}),this.position++},i.prototype.word=function(e){var t=this.nextToken;return t&&this.content(t)==="|"?(this.position++,this.namespace()):this.splitWord(e)},i.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.flushPendingSpaces(),this.current._inferEndPosition(),this.root},i.prototype.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case b.space:this.space();break;case b.comment:this.comment();break;case b.openParenthesis:this.parentheses();break;case b.closeParenthesis:e&&this.missingParenthesis();break;case b.openSquare:this.attribute();break;case b.dollar:case b.caret:case b.equals:case b.word:this.word();break;case b.colon:this.pseudo();break;case b.comma:this.comma();break;case b.asterisk:this.universal();break;case b.ampersand:this.nesting();break;case b.slash:case b.combinator:this.combinator();break;case b.str:this.string();break;case b.closeSquare:this.missingSquareBracket();case b.semicolon:this.missingBackslash();default:this.unexpected()}},i.prototype.expected=function(e,t,r){if(Array.isArray(e)){var n=e.pop();e="".concat(e.join(", ")," or ").concat(n)}var s=/^[aeiou]/.test(e[0])?"an":"a";return r?this.error("Expected ".concat(s," ").concat(e,', found "').concat(r,'" instead.'),{index:t}):this.error("Expected ".concat(s," ").concat(e,"."),{index:t})},i.prototype.requiredSpace=function(e){return this.options.lossy?" ":e},i.prototype.optionalSpace=function(e){return this.options.lossy?"":e},i.prototype.lossySpace=function(e,t){return this.options.lossy?t?" ":"":e},i.prototype.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===b.space?this.requiredSpace(t):t},i.prototype.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||"")+t),t=!0),e.namespace=t,It(e,"namespace")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=""),this.current.append(e)},i.prototype.content=function(e){return e===void 0&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},Object.defineProperty(i.prototype,"currToken",{get:function(){return this.tokens[this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"nextToken",{get:function(){return this.tokens[this.position+1]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"prevToken",{get:function(){return this.tokens[this.position-1]},enumerable:!1,configurable:!0}),i.prototype.locateNextMeaningfulToken=function(e){e===void 0&&(e=this.position+1);for(var t=e;t<this.tokens.length;)if(ip[this.tokens[t][m.FIELDS.TYPE]]){t++;continue}else return t;return-1},i})();se.default=ap});var qa=T(lt=>{"use strict";var up=lt&<.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lp=lt&<.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(lt,"__esModule",{value:!0});var cp=lp(Fa()),fp=["ast","astSync","transform","transformSync","process","processSync"],hp=(function(){function i(e,t){var r,n;this.func=e||function(){},this.funcRes=null,this.options=t;try{for(var s=up(fp),o=s.next();!o.done;o=s.next()){var l=o.value;this[l]=this[l].bind(this)}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}return i.prototype._shouldUpdateSelector=function(e,t){t===void 0&&(t={});var r=Object.assign({},this.options,t);return r.updateSelector===!1?!1:typeof e!="string"},i.prototype._isLossy=function(e){e===void 0&&(e={});var t=Object.assign({},this.options,e);return t.lossless===!1},i.prototype._root=function(e,t){t===void 0&&(t={});var r=new cp.default(e,this._parseOptions(t));return r.root},i.prototype._parseOptions=function(e){var t=Object.assign({},this.options,e);return{lossy:this._isLossy(t),maxNestingDepth:t.maxNestingDepth,maxInputLength:t.maxInputLength}},i.prototype._stringifyOptions=function(e){var t=Object.assign({},this.options,e);return{maxNestingDepth:t.maxNestingDepth}},i.prototype._run=function(e,t){var r=this;return t===void 0&&(t={}),new Promise(function(n,s){try{var o=r._root(e,t);Promise.resolve(r.func(o)).then(function(l){var a=void 0;return r._shouldUpdateSelector(e,t)&&(a=o.toString(r._stringifyOptions(t)),e.selector=a),{transform:l,root:o,string:a}}).then(n,s)}catch(l){s(l);return}})},i.prototype._runSync=function(e,t){t===void 0&&(t={});var r=this._root(e,t),n=this.func(r);if(n&&typeof n.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var s=void 0;return t.updateSelector&&typeof e!="string"&&(s=r.toString(this._stringifyOptions(t)),e.selector=s),{transform:n,root:r,string:s}},i.prototype.ast=function(e,t){return this._run(e,t).then(function(r){return r.root})},i.prototype.astSync=function(e,t){return this._runSync(e,t).root},i.prototype.transform=function(e,t){return this._run(e,t).then(function(r){return r.transform})},i.prototype.transformSync=function(e,t){return this._runSync(e,t).transform},i.prototype.process=function(e,t){var r=this;return this._run(e,t).then(function(n){return n.string||n.root.toString(r._stringifyOptions(t))})},i.prototype.processSync=function(e,t){var r=this._runSync(e,t);return r.string||r.root.toString(this._stringifyOptions(t))},i})();lt.default=hp});var ja=T(M=>{"use strict";var ye=M&&M.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(M,"__esModule",{value:!0});M.universal=M.tag=M.string=M.selector=M.root=M.pseudo=M.nesting=M.id=M.comment=M.combinator=M.className=M.attribute=void 0;var pp=ye(mi()),dp=ye(ii()),mp=ye(yi()),gp=ye(si()),yp=ye(oi()),_p=ye(_i()),vp=ye(li()),wp=ye(ti()),Sp=ye(ri()),bp=ye(ui()),Tp=ye(ai()),Ep=ye(gi()),Op=function(i){return new pp.default(i)};M.attribute=Op;var Ap=function(i){return new dp.default(i)};M.className=Ap;var Pp=function(i){return new mp.default(i)};M.combinator=Pp;var xp=function(i){return new gp.default(i)};M.comment=xp;var Cp=function(i){return new yp.default(i)};M.id=Cp;var Ip=function(i){return new _p.default(i)};M.nesting=Ip;var Lp=function(i){return new vp.default(i)};M.pseudo=Lp;var Dp=function(i){return new wp.default(i)};M.root=Dp;var Rp=function(i){return new Sp.default(i)};M.selector=Rp;var Np=function(i){return new bp.default(i)};M.string=Np;var kp=function(i){return new Tp.default(i)};M.tag=kp;var Mp=function(i){return new Ep.default(i)};M.universal=Mp});var Ba=T(I=>{"use strict";var le;Object.defineProperty(I,"__esModule",{value:!0});I.isUniversal=I.isTag=I.isString=I.isSelector=I.isRoot=I.isPseudo=I.isNesting=I.isIdentifier=I.isComment=I.isCombinator=I.isClassName=I.isAttribute=void 0;I.isNode=xi;I.isPseudoElement=Ua;I.isPseudoClass=qp;I.isContainer=jp;I.isNamespace=Up;var G=ie(),Fp=(le={},le[G.ATTRIBUTE]=!0,le[G.CLASS]=!0,le[G.COMBINATOR]=!0,le[G.COMMENT]=!0,le[G.ID]=!0,le[G.NESTING]=!0,le[G.PSEUDO]=!0,le[G.ROOT]=!0,le[G.SELECTOR]=!0,le[G.STRING]=!0,le[G.TAG]=!0,le[G.UNIVERSAL]=!0,le);function xi(i){return typeof i=="object"&&Fp[i.type]}function _e(i,e){return xi(e)&&e.type===i}I.isAttribute=_e.bind(null,G.ATTRIBUTE);I.isClassName=_e.bind(null,G.CLASS);I.isCombinator=_e.bind(null,G.COMBINATOR);I.isComment=_e.bind(null,G.COMMENT);I.isIdentifier=_e.bind(null,G.ID);I.isNesting=_e.bind(null,G.NESTING);I.isPseudo=_e.bind(null,G.PSEUDO);I.isRoot=_e.bind(null,G.ROOT);I.isSelector=_e.bind(null,G.SELECTOR);I.isString=_e.bind(null,G.STRING);I.isTag=_e.bind(null,G.TAG);I.isUniversal=_e.bind(null,G.UNIVERSAL);function Ua(i){return(0,I.isPseudo)(i)&&i.value&&(i.value.startsWith("::")||i.value.toLowerCase()===":before"||i.value.toLowerCase()===":after"||i.value.toLowerCase()===":first-letter"||i.value.toLowerCase()===":first-line")}function qp(i){return(0,I.isPseudo)(i)&&!Ua(i)}function jp(i){return!!(xi(i)&&i.walk)}function Up(i){return(0,I.isAttribute)(i)||(0,I.isTag)(i)}});var za=T(Ce=>{"use strict";var Bp=Ce&&Ce.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Ci=Ce&&Ce.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Bp(e,i,t)};Object.defineProperty(Ce,"__esModule",{value:!0});Ci(ie(),Ce);Ci(ja(),Ce);Ci(Ba(),Ce)});var Ga=T((Ie,Wa)=>{"use strict";var zp=Ie&&Ie.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Wp=Ie&&Ie.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Gp=Ie&&Ie.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),n=0;n<r.length;n++)r[n]!=="default"&&zp(t,e,r[n]);return Wp(t,e),t}})(),Hp=Ie&&Ie.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},Yp=Hp(qa()),$p=Gp(za()),Ii=function(i,e){return new Yp.default(i,e)};Object.assign(Ii,$p);delete Ii.__esModule;Wa.exports=Ii});var Xa=Sr(Sn());var q=Sr(aa(),1),ua=q.default,$d=q.default.stringify,Vd=q.default.fromJSON,Qd=q.default.plugin,Xd=q.default.parse,Kd=q.default.list,Jd=q.default.document,Zd=q.default.comment,em=q.default.atRule,tm=q.default.rule,rm=q.default.decl,nm=q.default.root,im=q.default.CssSyntaxError,sm=q.default.Declaration,om=q.default.Container,am=q.default.Processor,um=q.default.Document,lm=q.default.Comment,cm=q.default.Warning,fm=q.default.AtRule,hm=q.default.Result,pm=q.default.Input,dm=q.default.Rule,mm=q.default.Root,gm=q.default.Node;var Ka=Sr(Ga());var or=Sr(Sn());or.default.addHook("afterSanitizeAttributes",i=>{if(i.tagName==="A"&&i.getAttribute("target")==="_blank"&&i.setAttribute("rel","noopener noreferrer"),!Le)return;for(let t of Vp){let r=i.getAttribute?.(t);if(r==null)continue;let n=s=>t==="id"||Qr.has(s);i.setAttribute(t,r.trim().split(/\s+/).filter(Boolean).map(s=>n(s)?Le+s:s).join(" "))}let e=i.tagName==="A"?i.getAttribute("href"):null;e&&e.startsWith("#")&&Qr.has(e.slice(1))&&i.setAttribute("href",`#${Le}${e.slice(1)}`)});var Vp=["id","popovertarget","aria-controls","aria-labelledby","aria-describedby"],Le="",Qr=new Set,sr={ALLOWED_TAGS:["p","br","hr","span","div","section","article","header","footer","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","small","sup","sub","mark","ul","ol","li","blockquote","a","img","picture","source","figure","figcaption","video","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","title","alt","src","srcset","sizes","class","style","target","rel","width","height","loading","poster","controls"],ALLOW_DATA_ATTR:!1},Ha={...sr,ALLOWED_TAGS:[...sr.ALLOWED_TAGS,"button","details","summary"],ALLOWED_ATTR:[...sr.ALLOWED_ATTR,"id","type","popover","popovertarget","popovertargetaction","open","aria-controls","aria-labelledby","aria-describedby"]};function Ya(i,e={}){let t=e.idPrefix&&/^[A-Za-z][\w-]*$/.test(e.idPrefix)?e.idPrefix:"";Qr=t?Li(i):new Set,Le=t;try{return or.default.sanitize(i,Le?Ha:sr)}finally{Le="",Qr=new Set}}function Li(i){let e=new Set,t=Le;Le="";try{let r=or.default.sanitize(i,{...Ha,RETURN_DOM_FRAGMENT:!0});for(let n of Array.from(r.querySelectorAll("[id]")))for(let s of(n.getAttribute("id")??"").trim().split(/\s+/))s&&e.add(s)}finally{Le=t}return e}function Km(i){return or.default.sanitize(i,{...sr,RETURN_DOM_FRAGMENT:!0})}var Di="data-sf-custom-html",Ja=/^[A-Za-z][\w-]*$/;function Za(i){return Ja.test(i)?`${i}-`:""}function Qp(i,e=Di){return`[${e}="${i}"]`}var $a=new Set(["media","supports","container"]),Xp=new Set(["behavior","-moz-binding"]),Kp=/expression\s*\(|javascript:|vbscript:/i,Jp=/^[a-z][a-z0-9+.-]*:/i,Zp=new Set(["none","initial","inherit","unset","revert","revert-layer","default","auto","normal","ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end","infinite","reverse","alternate","alternate-reverse","forwards","backwards","both","running","paused"]);function ed(i){return i.replace(/\\([0-9a-f]{1,6})\s?|\\(.)/gi,(e,t,r)=>t?String.fromCodePoint(Math.min(+`0x${t}`,1114111)||65533):r??"")}function Va(i){let e=i.trim();return e.startsWith("//")?!0:Jp.test(e)&&!/^https:\/\//i.test(e)}var Qa=/\/\*[\s\S]*?(?:\*\/|$)/g;function td(i,e){let t=ed(e.replace(Qa,"")).replace(Qa,"");if(Kp.test(t))return!1;for(let r of t.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(Va(r[2]))return!1;if(i.startsWith("--")||/(?:image-set|image|src)\(/i.test(t)){for(let r of t.matchAll(/(['"])(.*?)\1/g))if(Va(r[2]))return!1}return!0}function rd(i){let e=i.find(t=>t.type==="combinator");return e?e.value.trim()||" ":null}function nd(i,e,t="",r=new Set){let n;try{n=(0,Ka.default)().astSync(i)}catch{return null}let s=[];for(let o of n.nodes){let l=o.nodes;if(l.length===0)return null;let a=!1;if(o.walkNesting(()=>{a=!0}),a)continue;t&&o.walkIds(d=>{r.has(d.value)&&(d.value=t+d.value)});let h=l[0],f=h.type==="tag"&&/^(html|body)$/i.test(h.value)||h.type==="pseudo"&&h.value.toLowerCase()===":root",_=h.type==="universal",p=rd(l.slice(1));if((f||_)&&(p==="~"||p==="+"))_&&s.push(`${e} ${String(o).trim()}`);else if(f||_){let d=l.slice(1).map(String).join("").trimEnd();s.push(d?e+d:_?`${e} *`:e)}else{if(h.type==="combinator"&&/^[~+]$/.test(h.value.trim()))continue;s.push(`${e} ${String(o).trim()}`)}}return s.length?s.join(", "):null}function rg(i,e,t=Di,r=new Set){if(!Ja.test(e))return"";let n;try{n=ua.parse(i)}catch{return""}let s=Qp(e,t),o=new Map;n.walkComments(h=>{h.remove()});let l=h=>{for(let f of[...h.nodes??[]])f.type==="atrule"?$a.has(f.name.toLowerCase())&&f.nodes?l(f):f.remove():f.type==="rule"&&f.remove()},a=h=>{for(let f of[...h.nodes??[]])if(f.type==="atrule"){let _=f.name.toLowerCase();if(/^(-[a-z]+-)?keyframes$/.test(_)){let p=f.params.trim();if(!/^[A-Za-z_][\w-]*$/.test(p)||Zp.has(p.toLowerCase()))f.remove();else{let d=`${p}-${e}`;o.set(p,d),f.params=d}}else $a.has(_)&&f.nodes?a(f):f.remove()}else if(f.type==="rule"){let _=nd(f.selector,s,t===Di?Za(e):"",r);_===null?f.remove():(f.selector=_,l(f))}else f.type==="decl"&&f.remove()};return a(n),n.walkDecls(h=>{if(Xp.has(h.prop.toLowerCase())||!td(h.prop,h.raws.value?.raw??h.value)){h.remove();return}o.size>0&&/^(-[a-z]+-)?animation(-name)?$/i.test(h.prop)&&(h.value=h.value.replace(/(?<![\w-])[A-Za-z_][\w-]*(?![\w(-])/g,f=>o.get(f)??f))}),n.walkAtRules(h=>{h.nodes&&h.nodes.length===0&&h.remove()}),cs(n.toString()).trim()}var id={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function ng(i,e=""){let t=Ya(i,{idPrefix:Za(e)});if(!/<style/i.test(i))return{css:"",markup:t,ids:new Set};let r=Li(i),n=Xa.default.sanitize(i,id).querySelectorAll("style");return{css:Array.from(n,s=>s.textContent??"").join(`
|
|
34
|
+
`),markup:t,ids:r}}export{Km as a,Di as b,rg as c,ng as d};
|