efficient-storefront-blocks 0.124.1 → 0.125.0

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-6QU56I6L.js → CustomHtmlCodeWindow-ROUI64CY.js} +3 -3
  3. package/dist/chunks/{EditorPreviewCheckout-TRX42H6I.js → EditorPreviewCheckout-F2HXHGBN.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-B7766ULW.js +1 -0
  5. package/dist/chunks/{chunk-S5N6H2MP.js → chunk-2KEZPQPW.js} +1 -1
  6. package/dist/chunks/{chunk-ESQTNC7T.js → chunk-ESVLXH7T.js} +3 -3
  7. package/dist/chunks/chunk-KFZLLS45.js +2 -0
  8. package/dist/chunks/chunk-MU65AZLZ.js +96 -0
  9. package/dist/chunks/{chunk-CDKQFBBA.js → chunk-O3YXHDC6.js} +1 -1
  10. package/dist/chunks/chunk-SEA3MICI.js +7 -0
  11. package/dist/chunks/{chunk-YCL4MPLF.js → chunk-T2LZCAFH.js} +1 -1
  12. package/dist/chunks/chunk-WWQ5LOLU.js +337 -0
  13. package/dist/chunks/{fitment-data-MXT6XIW5.js → fitment-data-X7PIIXMU.js} +1 -1
  14. package/dist/chunks/section-css-style-Q23EN42Q.js +1 -0
  15. package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/commerce/ProductSku/fields.d.ts +2 -0
  18. package/dist/editor/lib/document/blocks/commerce/ProductSku/fields.js +1 -0
  19. package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  21. package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
  22. package/dist/editor/lib/document/config.js +1 -1
  23. package/dist/editor/lib/document/section-text-regions.js +1 -1
  24. package/dist/editor/lib/storefront-editor-words.d.ts +5 -0
  25. package/dist/editor/lib/storefront-editor-words.js +1 -1
  26. package/dist/editor.css +1 -1
  27. package/dist/index.js +38 -29
  28. package/dist/render/built-with.json +1 -1
  29. package/dist/render/components/GalleryGrid.js +3 -3
  30. package/dist/render/components/GalleryItem.d.ts +6 -0
  31. package/dist/render/components/GalleryItem.js +1 -1
  32. package/dist/render/components/LinkedProductHero.d.ts +1 -0
  33. package/dist/render/components/ProductGallery.d.ts +1 -1
  34. package/dist/render/components/ProductGallery.js +1 -1
  35. package/dist/render/components/ProductHeroPanel.d.ts +2 -1
  36. package/dist/render/components/ProductHeroPanel.js +1 -1
  37. package/dist/render/components/card-pieces/HeadlineName.js +1 -1
  38. package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
  39. package/dist/render/components/pdp-dynamic/DynamicProductHero.d.ts +1 -0
  40. package/dist/render/components/pdp-dynamic/DynamicSpecTable.d.ts +1 -0
  41. package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
  42. package/dist/render/components/product-hero/hero-view.d.ts +1 -0
  43. package/dist/render/components/product-hero/hero-view.js +1 -1
  44. package/dist/render/components/useStickyColumns.d.ts +2 -0
  45. package/dist/render/components/useStickyColumns.js +1 -0
  46. package/dist/render/lib/catalog/from-wheel.js +1 -1
  47. package/dist/render/lib/catalog/part-skus.d.ts +2 -0
  48. package/dist/render/lib/catalog/part-skus.js +1 -0
  49. package/dist/render/lib/content/hero-seed.d.ts +1 -1
  50. package/dist/render/lib/content/hero-seed.js +1 -1
  51. package/dist/render/lib/content/product-card-seed.d.ts +1 -0
  52. package/dist/render/lib/content/product-card-seed.js +1 -1
  53. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  54. package/dist/render/lib/document/blocks/commerce/ProductName/meta.js +1 -1
  55. package/dist/render/lib/document/blocks/commerce/ProductSku/meta.d.ts +2 -0
  56. package/dist/render/lib/document/blocks/commerce/ProductSku/meta.js +1 -0
  57. package/dist/render/lib/document/blocks/commerce/ProductSku/render.d.ts +2 -0
  58. package/dist/render/lib/document/blocks/commerce/ProductSku/render.js +1 -0
  59. package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
  60. package/dist/render/lib/document/blocks/commerce/metas.d.ts +1 -0
  61. package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
  62. package/dist/render/lib/document/blocks/commerce/renders.d.ts +1 -0
  63. package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
  64. package/dist/render/lib/document/card-templates.js +1 -1
  65. package/dist/render/lib/document/lazy-draws.js +1 -1
  66. package/dist/render/lib/sections/hero-gallery.d.ts +2 -2
  67. package/dist/render/lib/sections/hero-gallery.js +1 -1
  68. package/dist/render/lib/sections/hero-sticky.d.ts +4 -0
  69. package/dist/render/lib/sections/hero-sticky.js +1 -0
  70. package/dist/render/lib/sections/product-card-text-regions.d.ts +1 -0
  71. package/dist/render/lib/sections/product-card-text-regions.js +1 -1
  72. package/dist/render/lib/wheels/spec-sheet.d.ts +19 -0
  73. package/dist/render/lib/wheels/spec-sheet.js +1 -1
  74. package/dist/routine-index.json +1 -1
  75. package/dist/value-index.json +1 -1
  76. package/dist/words.d.ts +10 -0
  77. package/dist/words.js +4 -4
  78. package/package.json +3 -3
  79. package/dist/chunks/SiteEditorProvider-IBJ5A5V3.js +0 -1
  80. package/dist/chunks/chunk-EKCLPISP.js +0 -96
  81. package/dist/chunks/chunk-MC6E4ZLD.js +0 -339
  82. package/dist/chunks/chunk-O5WPKRAC.js +0 -2
  83. package/dist/chunks/chunk-T7CS442T.js +0 -4
  84. package/dist/chunks/section-css-style-ZZ3ZOGPR.js +0 -1
  85. /package/dist/chunks/{chunk-27GSFHNV.js → chunk-AUQZLQEO.js} +0 -0
  86. /package/dist/chunks/{chunk-ESQTNC7T.js.LEGAL.txt → chunk-ESVLXH7T.js.LEGAL.txt} +0 -0
  87. /package/dist/chunks/{chunk-JJ5MCDPE.js → chunk-NMB6BD73.js} +0 -0
  88. /package/dist/chunks/{chunk-MC6E4ZLD.js.LEGAL.txt → chunk-WWQ5LOLU.js.LEGAL.txt} +0 -0
@@ -1,4 +1,4 @@
1
- import{d as fs,g as hs}from"./chunk-O5WPKRAC.js";import{a as T,b as Sr}from"./chunk-Y6SLVHK3.js";var Sn=T((ud,Ds)=>{"use strict";function Iu(i,e){this.v=i,this.k=e}function ps(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 Lu(i){if(Array.isArray(i))return i}function Du(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 Ru(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{f as fs,g as hs}from"./chunk-KFZLLS45.js";import{a as T,b as Sr}from"./chunk-Y6SLVHK3.js";var Sn=T((ud,Ds)=>{"use strict";function Iu(i,e){this.v=i,this.k=e}function ps(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 Lu(i){if(Array.isArray(i))return i}function Du(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 Ru(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nu(i,e){return Lu(i)||Du(i,e)||ku(i,e)||Ru()}function ku(i,e){if(i){if(typeof i=="string")return ps(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)?ps(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 Iu;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 xs=Object.entries,ds=Object.setPrototypeOf,Mu=Object.isFrozen,Fu=Object.getPrototypeOf,qu=Object.getOwnPropertyDescriptor,J=Object.freeze,re=Object.seal,vt=Object.create,Cs=typeof Reflect<"u"&&Reflect,vn=Cs.apply,wn=Cs.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 Ge=X(Array.prototype.forEach);Array.prototype.indexOf;var ju=X(Array.prototype.lastIndexOf),ms=X(Array.prototype.pop),kt=X(Array.prototype.push);Array.prototype.slice;var Uu=X(Array.prototype.splice),wt=Array.isArray,qt=X(String.prototype.toLowerCase),pn=X(String.prototype.toString),gs=X(String.prototype.match),Mt=X(String.prototype.replace),ys=X(String.prototype.indexOf),Bu=X(String.prototype.trim),zu=X(Number.prototype.toString),Wu=X(Boolean.prototype.toString),_s=typeof BigInt>"u"?null:X(BigInt.prototype.toString),vs=typeof Symbol>"u"?null:X(Symbol.prototype.toString),ue=X(Object.prototype.hasOwnProperty),Ft=X(Object.prototype.toString),oe=X(RegExp.prototype.test),ke=Hu(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 Hu(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(ds&&ds(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&&(Mu(e)||(e[r]=s),n=s)}i[n]=!0}return i}function Gu(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 xs(i)){var t=Nu(r,2);let n=t[0],s=t[1];ue(i,n)&&(wt(s)?e[n]=Gu(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=he(s):e[n]=s)}return e}function Yu(i){switch(typeof i){case"string":return i;case"number":return zu(i);case"boolean":return Wu(i);case"bigint":return _s?_s(i):"0";case"symbol":return vs?vs(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=qu(i,e);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=Fu(i)}function t(){return null}return t}function $u(i){try{return oe(i,""),!0}catch{return!1}}var ws=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"]),Vu=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"]),Qu=J(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ss=J(["#text"]),bs=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"]),Ts=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"]),Xu=re(/{{[\w\W]*|^[\w\W]*}}/g),Ku=re(/<%[\w\W]*|^[\w\W]*%>/g),Ju=re(/\${[\w\W]*/g),Zu=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),el=re(/^aria-[\-\w]+$/),Es=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tl=re(/^(?:\w+script|data):/i),rl=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nl=re(/^html$/i),il=re(/^[a-z][.\w]*(-[.\w]+)+$/i),Os=re(/<[/\w!]/g),As=re(/<[/\w]/g),sl=re(/<\/no(script|embed|frames)/i),ol=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},Is=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],al=J(D({},Is)),ul=(function(){let i={};return Ge(Is,e=>{i[e]=re(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),J(i)})(),ll=function(){return typeof window>"u"?null:window},cl=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}},Ps=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 Ls(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ll(),e=y=>Ls(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,Ni=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){Ni(),Be++;try{return te.createHTML(u)}finally{Be--}},ru=function(u){Ni(),Be++;try{return te.createScriptURL(u)}finally{Be--}},nu=function(){return ar||(Lt=cl(f,n),ar=!0),Lt},ur=t,Xr=ur.implementation,ki=ur.createNodeIterator,iu=ur.createDocumentFragment,su=ur.getElementsByTagName,ou=r.importNode,B=Ps();e.isSupported=typeof xs=="function"&&typeof U=="function"&&Xr&&Xr.createHTMLDocument!==void 0;let au=Xu,uu=Ku,lu=Ju,cu=Zu,fu=el,hu=tl,Mi=rl,pu=il,Fi=Es,z=null,Kr=D({},[...ws,...dn,...mn,...gn,...Ss]),W=null,Jr=D({},[...bs,...yn,...Ts,...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,qi=null,De=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ji=!0,Zr=!0,Ui=!1,Bi=!0,Re=!1,ze=!0,We=!1,en=!1,lr=null,cr=null,tn=!1,ft=!1,fr=!1,hr=!1,zi=!0,Wi=!1,Hi="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"]),Yi=null,$i=D({},["audio","video","img","source","image","track"]),Vi=null,Qi=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,du=D({},[pr,dr,Te],pn),Xi=J(["mi","mo","mn","ms","mtext"]),an=D({},Xi),Ki=J(["annotation-xml"]),un=D({},Ki),mu=D({},["title","style","font","a","script"]),Rt=null,gu=["application/xhtml+xml","text/html"],yu="text/html",$=null,mt=null,_u=t.createElement("form"),Ji=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=gu.indexOf(u.PARSER_MEDIA_TYPE)===-1?yu: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",du,{transform:pn}),Vi=Me(u,"ADD_URI_SAFE_ATTR",Qi,{transform:$,base:Qi}),Yi=Me(u,"ADD_DATA_URI_TAGS",$i,{transform:$,base:$i}),pt=Me(u,"FORBID_CONTENTS",Gi,{transform:$}),Dt=Me(u,"FORBID_TAGS",he({}),{transform:$}),qi=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,ji=u.ALLOW_ARIA_ATTR!==!1,Zr=u.ALLOW_DATA_ATTR!==!1,Ui=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Bi=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,zi=u.SANITIZE_DOM!==!1,Wi=u.SANITIZE_NAMED_PROPS||!1,rn=u.KEEP_CONTENT!==!1,nn=u.IN_PLACE||!1,Fi=$u(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:Es,dt=typeof u.NAMESPACE=="string"?u.NAMESPACE:Te,an=_n(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},Xi)),un=_n(u,"HTML_INTEGRATION_POINTS",()=>D({},Ki));let c=_n(u,"CUSTOM_ELEMENT_HANDLING",()=>vt(null));if(be=vt(null),ue(c,"tagNameCheck")&&Ji(c.tagNameCheck)&&(be.tagNameCheck=c.tagNameCheck),ue(c,"attributeNameCheck")&&Ji(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({},Ss),W=vt(null),ht.html===!0&&(D(z,ws),D(W,bs)),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,Ts),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=nu()),te&&typeof pe=="string"&&(pe=ct("")));J&&J(u),mt=u},Zi=D({},[...dn,...mn,...Vu]),es=D({},[...gn,...Qu]),vu=function(u,c,g){return c.namespaceURI===Te?u==="svg":c.namespaceURI===pr?u==="svg"&&(g==="annotation-xml"||an[g]):!!Zi[u]},wu=function(u,c,g){return c.namespaceURI===Te?u==="math":c.namespaceURI===dr?u==="math"&&un[g]:!!es[u]},Su=function(u,c,g){return c.namespaceURI===dr&&!un[g]||c.namespaceURI===pr&&!an[g]?!1:!es[u]&&(mu[u]||!Zi[u])},bu=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?vu(g,c,w):u.namespaceURI===pr?wu(g,c,w):u.namespaceURI===Te?Su(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")}},ts=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=[];Ge(c,A=>{kt(w,A)}),Ge(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"&&ts(u,A,C)}},He=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{}},Tu=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)]||ts(u,w,A)}},gr=function(u){let c=[u];for(;c.length>0;){let g=c.pop();ee(g)===fe.element&&Tu(g);let w=E(g);if(w)for(let A=w.length-1;A>=0;--A)c.push(w[A])}},rs=function(u,c){return ze?u==="patchsrc"?!0:u==="for"&&c!=="label"&&c!=="output":!1},Eu=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(As,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")&&rs("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])}},ns=function(u){let c=null,g=null;if(tn)u="<remove></remove>"+u;else{let C=gs(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?su.call(c,We?"html":"body")[0]:We?c.documentElement:A},is=function(u){let c=Q?Q(u):u.ownerDocument;return ki.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,au," "),u=Mt(u,uu," "),u=Mt(u,lu," "),u},cn=function(u){var c;u.normalize();let g=Q?Q(u):u.ownerDocument,w=ki.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&&Ge(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&&Ge(y,g=>{g.call(e,u,c,mt)})}let Ou=function(u,c){return!!(ze&&u.hasChildNodes()&&!Nt(u.firstElementChild)&&oe(Os,u.textContent)&&oe(Os,u.innerHTML)||ze&&u.namespaceURI===Te&&al[c]&&(Nt(u.firstElementChild)||typeof u.textContent=="string"&&oe(ul[c],u.textContent))||u.nodeType===fe.processingInstruction||ze&&u.nodeType===fe.comment&&oe(As,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},Au=function(u,c,g){if(!Dt[c]&&us(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 G=u===g?p(A[L],!0):A[L];w.insertBefore(G,x(u))}}}return Ne(u),!0},ss=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)},os=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=ss(B.uponSanitizeElement,z,Kr,lr),Ee(B.uponSanitizeElement,u,{tagName:g,allowedTags:z}),yt(u,c))return!0;if(Ou(u,g))return Ne(u),!0;if(Dt[g]||!(De.tagCheck instanceof Function&&De.tagCheck(g))&&!z[g]){let w=Au(u,g,c);return w===!1&&(Ee(B.afterSanitizeElements,u,null),yt(u,c))?!0:w}if(ee(u)===fe.element&&!bu(u)||(g==="noscript"||g==="noembed"||g==="noframes")&&oe(sl,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)},as=function(u,c,g){if(qi[c]||rs(c,u)||zi&&(c==="id"||c==="name")&&(g in t||g in _u))return!1;let w=W[c]||De.attributeCheck instanceof Function&&De.attributeCheck(c,u);return Zr&&oe(cu,c)||ji&&oe(fu,c)?!0:w?Vi[c]||oe(Fi,Mt(g,Mi,""))||(c==="src"||c==="xlink:href"||c==="href")&&u!=="script"&&ys(g,"data:")===0&&Yi[u]||Ui&&!oe(hu,Mt(g,Mi,""))?!0:!g:us(u)&&vr(be.tagNameCheck,u)&&vr(be.attributeNameCheck,c,u)||c==="is"&&be.allowCustomizedBuiltInElements&&vr(be.tagNameCheck,g)},Pu=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),us=function(u){return!Pu[qt(u)]&&oe(pu,u)},xu=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 ru(w)}return w},Cu=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 He(c,u),!1}},ls=function(u,c){if(Ee(B.beforeSanitizeAttributes,u,null),yt(u,c))return;let g=u.attributes;if(!g||_r(u))return;W=ss(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],G=L.name,de=L.namespaceURI,ce=L.value,_t=$(G),hn=ce,ae=G==="value"?hn:Bu(hn),cs=!1;if(w.attrName=_t,w.attrValue=ae,w.keepAttr=!0,w.forceKeepAttr=void 0,Ee(B.uponSanitizeAttribute,u,w),ae=w.attrValue,Wi&&(_t==="id"||_t==="name")&&ys(ae,Hi)!==0&&(He(G,u,L),ae=Hi+ae,cs=!0),ze&&oe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ae)){He(G,u,L);continue}if(_t==="attributename"&&gs(ae,"href")){He(G,u,L);continue}if(!w.forceKeepAttr){if(!w.keepAttr){He(G,u,L);continue}if(!Bi&&oe(ol,ae)){He(G,u,L);continue}if(Re&&(ae=yr(ae)),!as(C,_t,ae)){He(G,u,L);continue}ae=xu(C,_t,de,ae),ae!==hn&&Cu(u,G,de,ae)&&cs&&ms(e.removed)}}Ee(B.afterSanitizeAttributes,u,null),yt(u,c)},wr=function(u){let c=null,g=is(u);for(Ee(B.beforeSanitizeShadowDOM,u,null);c=g.nextNode();)if(Ee(B.uponSanitizeShadowNode,c,null),os(c,u),ls(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 G=w.content;gt(G)&&c.push({node:G,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=Yu(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){Eu(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=ns("<!---->"),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=ns(y),!c)return ft?null:hr?pe:""}c&&tn&&Ne(c.firstChild);let L=C?y:c;try{let de=is(L);for(;w=de.nextNode();)os(w,L),ls(w,L),gt(w.content)&&wr(w.content)}catch(de){throw C&&(mr(y),Ge(e.removed,ce=>{ce.element&&gr(ce.element)})),de}if(C){let de=!1;if(Ge(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=iu.call(c.ownerDocument);c.firstChild;)A.appendChild(c.firstChild);else A=c;return(W.shadowroot||W.shadowrootmode)&&(A=ou.call(r,A,!0)),A}let G=We?c.outerHTML:c.innerHTML;return We&&z["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&oe(nl,c.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
3
3
  `+G),Re&&(G=yr(G)),te&&hr?ct(G):G},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 as(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=ju(B[y],u);return c===-1?void 0:Uu(B[y],c,1)[0]}return ms(B[y])}},e.removeHooks=function(y){ue(B,y)&&(B[y]=[])},e.removeAllHooks=function(){B=Ps()},e}var fl=Ls();Ds.exports=fl});var Ns=T((ld,bn)=>{"use strict";var P=String,Rs=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=Rs();bn.exports.createColors=Rs});var Tn=T(()=>{"use strict"});var Er=T((hd,Fs)=>{"use strict";var ks=Ns(),Ms=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=ks.isColorSupported);let r=f=>f,n=f=>f,s=f=>f;if(e){let{bold:f,gray:_,red:p}=ks.createColors(!0);n=d=>f(p(d)),r=d=>_(d),Ms&&(s=d=>Ms(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
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)+`
@@ -30,6 +30,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30
30
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Gn().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=Gc;N.parse=Wc;N.fromJSON=qc;N.list=Bc;N.comment=i=>new na(i);N.atRule=i=>new ra(i);N.decl=i=>new ia(i);N.rule=i=>new aa(i);N.root=i=>new oa(i);N.document=i=>new sa(i);N.CssSyntaxError=Fc;N.Declaration=ia;N.Container=Mc;N.Processor=Gn;N.Document=sa;N.Comment=na;N.Warning=Yc;N.AtRule=ra;N.Result=Hc;N.Input=jc;N.Rule=aa;N.Root=oa;N.Node=zc;Uc.registerPostcss(N);ua.exports=N;N.default=N});var $n=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=Qc;function $c(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
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 Vc=/\\/;function Qc(i){var e=Vc.test(i);if(!e)return i;for(var t="",r=0;r<i.length;r++){if(i[r]==="\\"){var n=$c(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 fa=T(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=Xc;function Xc(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 ha=T(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=Kc;function Kc(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 pa=T(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=Jc;function Jc(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 da=T(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.MAX_NESTING_DEPTH=void 0;At.default=Zc;At.MAX_NESTING_DEPTH=256;function Zc(i){return Number.isSafeInteger(i)&&i>=0?i:At.MAX_NESTING_DEPTH}});var ma=T(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=ef;function ef(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 tf=$n();Object.defineProperty(ne,"unesc",{enumerable:!0,get:function(){return Pt(tf).default}});var rf=fa();Object.defineProperty(ne,"getProp",{enumerable:!0,get:function(){return Pt(rf).default}});var nf=ha();Object.defineProperty(ne,"ensureObject",{enumerable:!0,get:function(){return Pt(nf).default}});var sf=pa();Object.defineProperty(ne,"stripComments",{enumerable:!0,get:function(){return Pt(sf).default}});var ga=da();Object.defineProperty(ne,"resolveMaxNestingDepth",{enumerable:!0,get:function(){return Pt(ga).default}});Object.defineProperty(ne,"MAX_NESTING_DEPTH",{enumerable:!0,get:function(){return ga.MAX_NESTING_DEPTH}});var of=ma();Object.defineProperty(ne,"resolveMaxInputLength",{enumerable:!0,get:function(){return Pt(of).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},af=(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=af});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 uf=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)}})(),lf=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]})),cf=Z&&Z.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),ff=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"&&lf(t,e,r[n]);return cf(t,e),t}})(),hf=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.")},ya=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},_a=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))},pf=Z&&Z.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Z,"__esModule",{value:!0});var ei=xt(),df=pf(Pe()),xe=ff(ie()),mf=(function(i){uf(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=hf(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,_a([s+1,0,r],ya(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,_a([s,0,r],ya(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})(df.default);Z.default=mf});var ti=T(Ve=>{"use strict";var gf=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)}})(),yf=Ve&&Ve.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ve,"__esModule",{value:!0});var _f=yf(zr()),vf=ie(),wf=(function(i){gf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=vf.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})(_f.default);Ve.default=wf});var ri=T(Qe=>{"use strict";var Sf=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)}})(),bf=Qe&&Qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qe,"__esModule",{value:!0});var Tf=bf(zr()),Ef=ie(),Of=(function(i){Sf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Ef.SELECTOR,r}return e})(Tf.default);Qe.default=Of});var Wr=T(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.default=Rf;var Af={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Pf=Object.prototype.hasOwnProperty;function xf(i,e){if(!i)return e;var t={};for(var r in e)t[r]=Pf.call(i,r)?i[r]:e[r];return t}var Cf=/[ -,./:-@[-^`{-~]/,If=/[ -,./:-@[\]^`{-~]/,va=92,wa=32;function Sa(i){return i>=48&&i<=57||i>=65&&i<=70}function Lf(i){return Sa(i)||i>=97&&i<=102||i===wa}function Df(i){for(var e=i.length,t="",r=0,n=0;n<e;){if(i.charCodeAt(n)!==va){n++;continue}for(var s=n+1;s<e&&i.charCodeAt(s)===va;)s++;for(var o=s;o<e&&o-s<7&&Sa(i.charCodeAt(o));)o++;var l=o-s;l>=1&&l<=6&&i.charCodeAt(o)===wa&&!Lf(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 Rf(i,e){e=xf(e,Af),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?Cf.test(a)?f="\\"+a:f="\\"+h.toString(16).toUpperCase()+" ":a==="\\"||!r&&(a==='"'&&t===a||a==="'"&&t===a)||r&&If.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=Df(s),!r&&e.wrap?t+s+t:s}});var ii=T(Xe=>{"use strict";var Nf=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)}})(),ba=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xe,"__esModule",{value:!0});var kf=ba(Wr()),Mf=xt(),Ff=ba(Pe()),qf=ie(),jf=(function(i){Nf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=qf.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,kf.default)(t,{isIdentifier:!0});r!==t?((0,Mf.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})(Ff.default);Xe.default=jf});var si=T(Ke=>{"use strict";var Uf=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)}})(),Bf=Ke&&Ke.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ke,"__esModule",{value:!0});var zf=Bf(Pe()),Wf=ie(),Hf=(function(i){Uf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Wf.COMMENT,r}return e})(zf.default);Ke.default=Hf});var oi=T(Je=>{"use strict";var Gf=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)}})(),Yf=Je&&Je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Je,"__esModule",{value:!0});var $f=Yf(Pe()),Vf=ie(),Qf=(function(i){Gf(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Vf.ID,r}return e.prototype.valueToString=function(){return"#"+i.prototype.valueToString.call(this)},e})($f.default);Je.default=Qf});var Hr=T(Ze=>{"use strict";var Xf=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)}})(),Ta=Ze&&Ze.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ze,"__esModule",{value:!0});var Kf=Ta(Wr()),Jf=xt(),Zf=Ta(Pe()),eh=(function(i){Xf(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,Kf.default)(t,{isIdentifier:!0});this._namespace=t,r!==t?((0,Jf.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})(Zf.default);Ze.default=eh});var ai=T(et=>{"use strict";var th=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)}})(),rh=et&&et.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(et,"__esModule",{value:!0});var nh=rh(Hr()),ih=ie(),sh=(function(i){th(e,i);function e(t){var r=i.call(this,t)||this;return r.type=ih.TAG,r}return e})(nh.default);et.default=sh});var ui=T(tt=>{"use strict";var oh=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 "+Ea(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)}})(),ah=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tt,"__esModule",{value:!0});var uh=ah(Pe()),lh=ie(),Ea=(function(i){oh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=lh.STRING,r}return e})(uh.default);tt.default=Ea});var li=T(rt=>{"use strict";var ch=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)}})(),fh=rt&&rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rt,"__esModule",{value:!0});var hh=fh(zr()),ph=ie(),dh=(function(i){ch(e,i);function e(t){var r=i.call(this,t)||this;return r.type=ph.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})(hh.default);rt.default=dh});var Aa=T((Bm,Oa)=>{"use strict";Oa.exports=mh;function mh(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 gh=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()),yh=pi($n()),_h=pi(Hr()),vh=ie(),ir=Aa(),wh=/^('|")([^]*)\1$/,Sh=ir(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),bh=ir(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Th=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(wh);return n&&(t=n[1],r=n[2]),r=(0,yh.default)(r),r!==i&&(e=!0),{deprecatedUsage:e,unescaped:r,quoteMark:t}}function Eh(i){if(i.quoteMark!==void 0||i.value===void 0)return i;Th();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 Oh=(function(i){gh(e,i);function e(t){t===void 0&&(t={});var r=i.call(this,Eh(t))||this;return r.type=vh.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){bh()},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&&Sh(),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=Pa);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=" "),Pa(s,o)}))}return r.push("]"),r.push(this.rawSpaceAfter),r.join("")},e.NO_QUOTE=null,e.SINGLE_QUOTE="'",e.DOUBLE_QUOTE='"',e})(_h.default);Ue.default=Oh;var hi=(fi={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},fi[null]={isIdentifier:!0},fi);function Pa(i,e){return"".concat(e.before).concat(i).concat(e.after)}});var gi=T(nt=>{"use strict";var Ah=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)}})(),Ph=nt&&nt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nt,"__esModule",{value:!0});var xh=Ph(Hr()),Ch=ie(),Ih=(function(i){Ah(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Ch.UNIVERSAL,r.value="*",r}return e})(xh.default);nt.default=Ih});var yi=T(it=>{"use strict";var Lh=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)}})(),Dh=it&&it.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(it,"__esModule",{value:!0});var Rh=Dh(Pe()),Nh=ie(),kh=(function(i){Lh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=Nh.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})(Rh.default);it.default=kh});var _i=T(st=>{"use strict";var Mh=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)}})(),Fh=st&&st.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(st,"__esModule",{value:!0});var qh=Fh(Pe()),jh=ie(),Uh=(function(i){Mh(e,i);function e(t){var r=i.call(this,t)||this;return r.type=jh.NESTING,r.value="&",r}return e})(qh.default);st.default=Uh});var xa=T(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.default=Bh;function Bh(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 Ia=T(we=>{"use strict";var zh=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]})),Wh=we&&we.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Hh=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"&&zh(t,e,r[n]);return Wh(t,e),t}})(),Ct,F;Object.defineProperty(we,"__esModule",{value:!0});we.FIELDS=void 0;we.default=Qh;var S=Hh(wi()),Gh=(Ct={},Ct[S.tab]=!0,Ct[S.newline]=!0,Ct[S.cr]=!0,Ct[S.feed]=!0,Ct),Yh=(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={},Ca="0123456789abcdefABCDEF";for(Gr=0;Gr<Ca.length;Gr++)Si[Ca.charCodeAt(Gr)]=!0;var Gr;function $h(i,e){var t=e,r;do{if(r=i.charCodeAt(t),Yh[r])return t-1;r===S.backslash?t=Vh(i,t)+1:t++}while(t<i.length);return t-1}function Vh(i,e){var t=e,r=i.charCodeAt(t+1);if(!Gh[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 Qh(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=$h(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 ja=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)},Xh=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]})),Kh=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"&&Xh(t,e,r[n]);return Kh(t,e),t}})(),La=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},Da=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 Jh=ge(ti()),Ti=ge(ri()),Zh=ge(ii()),Ra=ge(si()),ep=ge(oi()),tp=ge(ai()),Yr=ge(ui()),rp=ge(li()),Na=Vr(mi()),np=ge(gi()),Ei=ge(yi()),ip=ge(_i()),sp=ge(xa()),m=Vr(Ia()),b=Vr(wi()),ka=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),op=$r($r({},Pi),(bi={},bi[b.comment]=!0,bi));function Ma(i){return{line:i[m.FIELDS.START_LINE],column:i[m.FIELDS.START_COL]}}function Fa(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 qa(i,e){for(var t=e;i[t-1]==="\\";)t--;return(e-t)%2===1}function ap(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 up(){return Array.from(new Set(Array.prototype.concat.apply([],arguments)))}var lp=(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 Jh.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"&&ap(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,Na.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 Na.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 Ra.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:Ma(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 Ra.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 ip.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===ka.PSEUDO){var n=new Ti.default({source:{start:Ma(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=Fa(this.currToken),this.current.parent.source.end=Fa(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 rp.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===ka.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 np.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!qa(s,E)}),f=Ai(s,"#").filter(function(E){return!qa(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,sp.default)(up(Da(Da([0],La(h),!1),La(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 Zh.default(It(Se,"value"))}else if(v.has(E)){var te={value:K.slice(1),source:ee,sourceIndex:Q};k=new ep.default(It(te,"value"))}else{var pe={value:K,source:ee,sourceIndex:Q};It(pe,"value"),k=new tp.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(op[this.tokens[t][m.FIELDS.TYPE]]){t++;continue}else return t;return-1},i})();se.default=lp});var Ua=T(lt=>{"use strict";var cp=lt&&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.")},fp=lt&&lt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(lt,"__esModule",{value:!0});var hp=fp(ja()),pp=["ast","astSync","transform","transformSync","process","processSync"],dp=(function(){function i(e,t){var r,n;this.func=e||function(){},this.funcRes=null,this.options=t;try{for(var s=cp(pp),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 hp.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=dp});var Ba=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 mp=ye(mi()),gp=ye(ii()),yp=ye(yi()),_p=ye(si()),vp=ye(oi()),wp=ye(_i()),Sp=ye(li()),bp=ye(ti()),Tp=ye(ri()),Ep=ye(ui()),Op=ye(ai()),Ap=ye(gi()),Pp=function(i){return new mp.default(i)};M.attribute=Pp;var xp=function(i){return new gp.default(i)};M.className=xp;var Cp=function(i){return new yp.default(i)};M.combinator=Cp;var Ip=function(i){return new _p.default(i)};M.comment=Ip;var Lp=function(i){return new vp.default(i)};M.id=Lp;var Dp=function(i){return new wp.default(i)};M.nesting=Dp;var Rp=function(i){return new Sp.default(i)};M.pseudo=Rp;var Np=function(i){return new bp.default(i)};M.root=Np;var kp=function(i){return new Tp.default(i)};M.selector=kp;var Mp=function(i){return new Ep.default(i)};M.string=Mp;var Fp=function(i){return new Op.default(i)};M.tag=Fp;var qp=function(i){return new Ap.default(i)};M.universal=qp});var Wa=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=za;I.isPseudoClass=Up;I.isContainer=Bp;I.isNamespace=zp;var H=ie(),jp=(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 xi(i){return typeof i=="object"&&jp[i.type]}function _e(i,e){return xi(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 za(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 Up(i){return(0,I.isPseudo)(i)&&!za(i)}function Bp(i){return!!(xi(i)&&i.walk)}function zp(i){return(0,I.isAttribute)(i)||(0,I.isTag)(i)}});var Ha=T(Ce=>{"use strict";var Wp=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)&&Wp(e,i,t)};Object.defineProperty(Ce,"__esModule",{value:!0});Ci(ie(),Ce);Ci(Ba(),Ce);Ci(Wa(),Ce)});var Ya=T((Ie,Ga)=>{"use strict";var Hp=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]})),Gp=Ie&&Ie.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Yp=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"&&Hp(t,e,r[n]);return Gp(t,e),t}})(),$p=Ie&&Ie.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},Vp=$p(Ua()),Qp=Yp(Ha()),Ii=function(i,e){return new Vp.default(i,e)};Object.assign(Ii,Qp);delete Ii.__esModule;Ga.exports=Ii});var Ja=Sr(Sn());var q=Sr(la(),1),ca=q.default,Xd=q.default.stringify,Kd=q.default.fromJSON,Jd=q.default.plugin,Zd=q.default.parse,em=q.default.list,tm=q.default.document,rm=q.default.comment,nm=q.default.atRule,im=q.default.rule,sm=q.default.decl,om=q.default.root,am=q.default.CssSyntaxError,um=q.default.Declaration,lm=q.default.Container,cm=q.default.Processor,fm=q.default.Document,hm=q.default.Comment,pm=q.default.Warning,dm=q.default.AtRule,mm=q.default.Result,gm=q.default.Input,ym=q.default.Rule,_m=q.default.Root,vm=q.default.Node;var Za=Sr(Ya());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 Xp){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 Xp=["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},$a={...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 Va(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?$a:sr)}finally{Le="",Qr=new Set}}function Li(i){let e=new Set,t=Le;Le="";try{let r=or.default.sanitize(i,{...$a,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 eg(i){return or.default.sanitize(i,{...sr,RETURN_DOM_FRAGMENT:!0})}var Di="data-sf-custom-html",Ri=/^[A-Za-z][\w-]*$/;function eu(i){return Ri.test(i)?`${i}-`:""}function tu(i,e=Di){return`[${e}="${i}"]`}var Qa=new Set(["media","supports","container"]),Kp=new Set(["behavior","-moz-binding"]),Jp=/expression\s*\(|javascript:|vbscript:/i,Zp=/^[a-z][a-z0-9+.-]*:/i,ed=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 td(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 Xa(i){let e=i.trim();return e.startsWith("//")?!0:Zp.test(e)&&!/^https:\/\//i.test(e)}var Ka=/\/\*[\s\S]*?(?:\*\/|$)/g;function rd(i,e){let t=td(e.replace(Ka,"")).replace(Ka,"");if(Jp.test(t))return!1;for(let r of t.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(Xa(r[2]))return!1;if(i.startsWith("--")||/(?:image-set|image|src)\(/i.test(t)){for(let r of t.matchAll(/(['"])(.*?)\1/g))if(Xa(r[2]))return!1}return!0}function nd(i){let e=i.find(t=>t.type==="combinator");return e?e.value.trim()||" ":null}function id(i,e,t="",r=new Set){let n;try{n=(0,Za.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=nd(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 sd(i,e,t=Di,r=new Set){if(!Ri.test(e))return"";let n;try{n=ca.parse(i)}catch{return""}let s=tu(e,t),o=new Map;n.walkComments(h=>{h.remove()});let l=h=>{for(let f of[...h.nodes??[]])f.type==="atrule"?Qa.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)||ed.has(p.toLowerCase()))f.remove();else{let d=`${p}-${e}`;o.set(p,d),f.params=d}}else Qa.has(_)&&f.nodes?a(f):f.remove()}else if(f.type==="rule"){let _=id(f.selector,s,t===Di?eu(e):"",r);_===null?f.remove():(f.selector=_,l(f))}else f.type==="decl"&&f.remove()};return a(n),n.walkDecls(h=>{if(Kp.has(h.prop.toLowerCase())||!rd(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()}),fs(n.toString()).trim()}var od={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function ad(i,e=""){let t=Va(i,{idPrefix:eu(e)});if(!/<style/i.test(i))return{css:"",markup:t,ids:new Set};let r=Li(i),n=Ja.default.sanitize(i,od).querySelectorAll("style");return{css:Array.from(n,s=>s.textContent??"").join(`
34
- `),markup:t,ids:r}}function og(i,e){let{css:t,markup:r,ids:n}=ad(i,e),s=t?sd(t,e,void 0,n):"",o=[Ri.test(e)?hs(tu(e),r):"",s].filter(Boolean).join(`
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=$h(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 ja=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)},Xh=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]})),Kh=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"&&Xh(t,e,r[n]);return Kh(t,e),t}})(),La=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},Da=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 Jh=ge(ti()),Ti=ge(ri()),Zh=ge(ii()),Ra=ge(si()),ep=ge(oi()),tp=ge(ai()),Yr=ge(ui()),rp=ge(li()),Na=Vr(mi()),np=ge(gi()),Ei=ge(yi()),ip=ge(_i()),sp=ge(xa()),m=Vr(Ia()),b=Vr(wi()),ka=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),op=$r($r({},Pi),(bi={},bi[b.comment]=!0,bi));function Ma(i){return{line:i[m.FIELDS.START_LINE],column:i[m.FIELDS.START_COL]}}function Fa(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 qa(i,e){for(var t=e;i[t-1]==="\\";)t--;return(e-t)%2===1}function ap(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 up(){return Array.from(new Set(Array.prototype.concat.apply([],arguments)))}var lp=(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 Jh.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"&&ap(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,Na.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 Na.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 Ra.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:Ma(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 Ra.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 ip.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===ka.PSEUDO){var n=new Ti.default({source:{start:Ma(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=Fa(this.currToken),this.current.parent.source.end=Fa(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 rp.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===ka.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 np.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!qa(s,E)}),f=Ai(s,"#").filter(function(E){return!qa(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,sp.default)(up(Da(Da([0],La(h),!1),La(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 Zh.default(It(Se,"value"))}else if(v.has(E)){var te={value:K.slice(1),source:ee,sourceIndex:Q};k=new ep.default(It(te,"value"))}else{var pe={value:K,source:ee,sourceIndex:Q};It(pe,"value"),k=new tp.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(op[this.tokens[t][m.FIELDS.TYPE]]){t++;continue}else return t;return-1},i})();se.default=lp});var Ua=T(lt=>{"use strict";var cp=lt&&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.")},fp=lt&&lt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(lt,"__esModule",{value:!0});var hp=fp(ja()),pp=["ast","astSync","transform","transformSync","process","processSync"],dp=(function(){function i(e,t){var r,n;this.func=e||function(){},this.funcRes=null,this.options=t;try{for(var s=cp(pp),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 hp.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=dp});var Ba=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 mp=ye(mi()),gp=ye(ii()),yp=ye(yi()),_p=ye(si()),vp=ye(oi()),wp=ye(_i()),Sp=ye(li()),bp=ye(ti()),Tp=ye(ri()),Ep=ye(ui()),Op=ye(ai()),Ap=ye(gi()),Pp=function(i){return new mp.default(i)};M.attribute=Pp;var xp=function(i){return new gp.default(i)};M.className=xp;var Cp=function(i){return new yp.default(i)};M.combinator=Cp;var Ip=function(i){return new _p.default(i)};M.comment=Ip;var Lp=function(i){return new vp.default(i)};M.id=Lp;var Dp=function(i){return new wp.default(i)};M.nesting=Dp;var Rp=function(i){return new Sp.default(i)};M.pseudo=Rp;var Np=function(i){return new bp.default(i)};M.root=Np;var kp=function(i){return new Tp.default(i)};M.selector=kp;var Mp=function(i){return new Ep.default(i)};M.string=Mp;var Fp=function(i){return new Op.default(i)};M.tag=Fp;var qp=function(i){return new Ap.default(i)};M.universal=qp});var Wa=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=za;I.isPseudoClass=Up;I.isContainer=Bp;I.isNamespace=zp;var H=ie(),jp=(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 xi(i){return typeof i=="object"&&jp[i.type]}function _e(i,e){return xi(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 za(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 Up(i){return(0,I.isPseudo)(i)&&!za(i)}function Bp(i){return!!(xi(i)&&i.walk)}function zp(i){return(0,I.isAttribute)(i)||(0,I.isTag)(i)}});var Ha=T(Ce=>{"use strict";var Wp=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)&&Wp(e,i,t)};Object.defineProperty(Ce,"__esModule",{value:!0});Ci(ie(),Ce);Ci(Ba(),Ce);Ci(Wa(),Ce)});var Ya=T((Ie,Ga)=>{"use strict";var Hp=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]})),Gp=Ie&&Ie.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Yp=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"&&Hp(t,e,r[n]);return Gp(t,e),t}})(),$p=Ie&&Ie.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},Vp=$p(Ua()),Qp=Yp(Ha()),Ii=function(i,e){return new Vp.default(i,e)};Object.assign(Ii,Qp);delete Ii.__esModule;Ga.exports=Ii});var Ja=Sr(Sn());var q=Sr(la(),1),ca=q.default,Xd=q.default.stringify,Kd=q.default.fromJSON,Jd=q.default.plugin,Zd=q.default.parse,em=q.default.list,tm=q.default.document,rm=q.default.comment,nm=q.default.atRule,im=q.default.rule,sm=q.default.decl,om=q.default.root,am=q.default.CssSyntaxError,um=q.default.Declaration,lm=q.default.Container,cm=q.default.Processor,fm=q.default.Document,hm=q.default.Comment,pm=q.default.Warning,dm=q.default.AtRule,mm=q.default.Result,gm=q.default.Input,ym=q.default.Rule,_m=q.default.Root,vm=q.default.Node;var Za=Sr(Ya());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 Xp){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 Xp=["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},$a={...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 Va(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?$a:sr)}finally{Le="",Qr=new Set}}function Li(i){let e=new Set,t=Le;Le="";try{let r=or.default.sanitize(i,{...$a,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 eg(i){return or.default.sanitize(i,{...sr,RETURN_DOM_FRAGMENT:!0})}var Di="data-sf-custom-html",Ri=/^[A-Za-z][\w-]*$/;function eu(i){return Ri.test(i)?`${i}-`:""}function tu(i,e=Di){return`[${e}="${i}"]`}var Qa=new Set(["media","supports","container"]),Kp=new Set(["behavior","-moz-binding"]),Jp=/expression\s*\(|javascript:|vbscript:/i,Zp=/^[a-z][a-z0-9+.-]*:/i,ed=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 td(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 Xa(i){let e=i.trim();return e.startsWith("//")?!0:Zp.test(e)&&!/^https:\/\//i.test(e)}var Ka=/\/\*[\s\S]*?(?:\*\/|$)/g;function rd(i,e){let t=td(e.replace(Ka,"")).replace(Ka,"");if(Jp.test(t))return!1;for(let r of t.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(Xa(r[2]))return!1;if(i.startsWith("--")||/(?:image-set|image|src)\(/i.test(t)){for(let r of t.matchAll(/(['"])(.*?)\1/g))if(Xa(r[2]))return!1}return!0}function nd(i){let e=i.find(t=>t.type==="combinator");return e?e.value.trim()||" ":null}function id(i,e,t="",r=new Set){let n;try{n=(0,Za.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=nd(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 sd(i,e,t=Di,r=new Set){if(!Ri.test(e))return"";let n;try{n=ca.parse(i)}catch{return""}let s=tu(e,t),o=new Map;n.walkComments(h=>{h.remove()});let l=h=>{for(let f of[...h.nodes??[]])f.type==="atrule"?Qa.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)||ed.has(p.toLowerCase()))f.remove();else{let d=`${p}-${e}`;o.set(p,d),f.params=d}}else Qa.has(_)&&f.nodes?a(f):f.remove()}else if(f.type==="rule"){let _=id(f.selector,s,t===Di?eu(e):"",r);_===null?f.remove():(f.selector=_,l(f))}else f.type==="decl"&&f.remove()};return a(n),n.walkDecls(h=>{if(Kp.has(h.prop.toLowerCase())||!rd(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()}),hs(n.toString()).trim()}var od={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function ad(i,e=""){let t=Va(i,{idPrefix:eu(e)});if(!/<style/i.test(i))return{css:"",markup:t,ids:new Set};let r=Li(i),n=Ja.default.sanitize(i,od).querySelectorAll("style");return{css:Array.from(n,s=>s.textContent??"").join(`
34
+ `),markup:t,ids:r}}function og(i,e){let{css:t,markup:r,ids:n}=ad(i,e),s=t?sd(t,e,void 0,n):"",o=[Ri.test(e)?fs(tu(e),r):"",s].filter(Boolean).join(`
35
35
  `);return o?{scoped:!0,inner:`<style>${o}</style>${r}`}:{scoped:!1,inner:r}}export{eg as a,Di as b,sd as c,ad as d,og as e};
@@ -0,0 +1,2 @@
1
+ var b="data-sf-section-css",g="customCss";function p(e,a=g){let t=e?.[a];return typeof t=="string"&&t.trim()!==""?t:""}function l(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var i="var(--sf-heading-weight, 500)",u={"heading-1":{step:"headingLarge",fallbackPx:76,weight:i},"heading-2":{step:"headingMedium",fallbackPx:44,weight:`var(--sf-heading-2-weight, ${i})`},"heading-3":{step:"headingSmall",fallbackPx:30,weight:`var(--sf-heading-3-weight, ${i})`},"body-1":{step:"body",fallbackPx:16},"body-5":{step:"label",fallbackPx:12}};function w(e,a){let t=new Set;for(let s of a.matchAll(/\bclass="([^"]*)"/g))for(let n of s[1].split(/\s+/))n&&t.add(n);let o=[];for(let[s,{step:n,fallbackPx:d,weight:c}]of Object.entries(u)){let f=l({id:s});if(!t.has(f))continue;let r=`var(--size-${n}, ${d}px)`,h=c?[`font-size: min(${r}, var(--sf-heading-max, 9999px))`,`font-weight: ${c}`]:[`font-size: ${r}`];o.push(`:where(${e} .${f}) { ${h.join("; ")} }`)}return o.join(`
2
+ `)}function $(e){return e.replace(/<(?=\/)/g,"\\3c ")}export{b as a,g as b,p as c,l as d,u as e,w as f,$ as g};