monowind 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/cdn.js +164 -116
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/glyph-box.d.ts +25 -7
- package/dist/glyph-box.d.ts.map +1 -1
- package/dist/glyphs.d.ts +10 -0
- package/dist/glyphs.d.ts.map +1 -1
- package/dist/index.js +1857 -1640
- package/dist/index.js.map +1 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/paint.d.ts +1 -1
- package/dist/paint.d.ts.map +1 -1
- package/dist/plain-text.d.ts +12 -5
- package/dist/plain-text.d.ts.map +1 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/styles.css +88 -69
- package/src/variants.css +8 -2
package/dist/cdn.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
(function(){(()=>{function e(e){return{kind:`combinator`,value:e}}function t(e){return{kind:`complex`,nodes:e}}function n(e){return{kind:`compound`,nodes:e}}function r(e,t){return{kind:`function`,value:e,nodes:t}}function i(e){return{kind:`list`,nodes:e}}function a(e){return{kind:`selector`,value:e}}function o(e){return{kind:`value`,value:e}}function s(e){return e.kind===`selector`&&e.value.charCodeAt(0)===h}function c(e){if(e.kind!==`selector`)return!1;switch(e.value.charCodeAt(0)){case h:case m:case d:case f:case u:case p:return!1;default:return!0}}function l(e,t=!1){let n=``;for(let r of e)switch(r.kind){case`selector`:case`value`:n+=r.value;break;case`combinator`:t||r.value===` `?n+=r.value:n+=` ${r.value} `;break;case`function`:n+=`${r.value}(${l(r.nodes,t)})`;break;case`complex`:case`compound`:n+=l(r.nodes,t);break;case`list`:n+=r.nodes.map(e=>l([e],t)).join(t?`,`:`, `)}return n}var u=58,d=46,f=35,p=91,m=38,h=42;function g(s){s=s.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let c=[],l=c,u=!1,d=[],f=null,p=``,m;function h(e=l){return e.length===1?e[0]:u?t(e):n(e)}function _(e){let t=l[l.length-1];t?.kind===`compound`?t.nodes.push(e):t&&t.kind!==`list`&&t.kind!==`combinator`?l[l.length-1]=n([t,e]):l.push(e)}for(let n=0;n<s.length;n++){let v=s.charCodeAt(n);switch(v){case 44:for(p.length>0&&(_(a(p)),p=``);n+1<s.length&&(m=s.charCodeAt(n+1),m===10||m===32||m===9);n++);if(f)f.nodes.push(h()),l=[],u=!1;else{let e=i([h(l.splice(0))]);l.push(e),f=e,l=[],u=!1}break;case 62:case 10:case 32:case 43:case 9:case 126:{p.length>0&&(_(a(p)),p=``);let t=n,r=n+1;for(;r<s.length&&(m=s.charCodeAt(r),m===62||m===10||m===32||m===43||m===9||m===126);r++);n=r-1;let i=s.slice(t,r).trim();if(i===``&&(l.length===0||r>=s.length||s.charCodeAt(r)===44))break;l.push(e(i===``?` `:i)),u=!0;break}case 40:{let e=r(p,[]);if(p=``,e.value!==`:not`&&e.value!==`:where`&&e.value!==`:has`&&e.value!==`:is`){let t=n+1,r=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===40){r++;continue}if(m===41){if(r===0){n=e;break}r--}}let i=n,a=s.slice(t,i);if(e.value===`:nth-child`||e.value===`:nth-last-child`){let t=a.indexOf(`of `);if(t!==-1){e.nodes.push(o(a.slice(0,t+3)),...g(a.slice(t+3))),p=``,n=i,_(e);break}}e.nodes.push(o(a)),p=``,n=i,_(e);break}_(e),d.push({target:l,currentList:f,containsCombinator:u}),l=e.nodes,u=!1,f=null;break}case 41:{p.length>0&&(_(a(p)),p=``),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0)));let e=d.pop();l=e?.target??c,f=e?.currentList??null,u=e?.containsCombinator??!1;break}case 46:case 58:case 35:if(v===58&&p===`:`){p+=s[n];break}p.length>0&&_(a(p)),p=s[n];break;case 91:{p.length>0&&(_(a(p)),p=``);let e=n,t=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===91){t++;continue}if(m===93){if(t===0){n=e;break}t--}}_(a(s.slice(e,n+1)));break}case 39:case 34:{let e=n;for(let e=n+1;e<s.length;e++)if(m=s.charCodeAt(e),m===92)e+=1;else if(m===v){n=e;break}p+=s.slice(e,n+1);break}case 38:case 42:p.length>0&&(_(a(p)),p=``),_(a(s[n]));break;case 92:p+=s[n]+s[n+1],n+=1;break;default:p+=s[n]}}return p.length>0&&_(a(p)),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0))),c}function _(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var v=class e extends Error{loc;constructor(t,n){if(n){let e=n[0],r=_(e.code).find(n[1]);t=`${e.file}:${r.line}:${r.column+1}: ${t}`}super(t),this.name=`CssSyntaxError`,this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function y(e,t){let n=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let r=[],i=[],a=[],o=null,s=null,c=``,l=``,u=0,d;for(let t=0;t<e.length;t++){let f=e.charCodeAt(t);if(!(f===13&&(d=e.charCodeAt(t+1),d===10))){if(f===92)c===``&&(u=t),c+=e.slice(t,t+2),t+=1;else if(f===47&&e.charCodeAt(t+1)===42){let r=t;for(let n=t+2;n<e.length;n++)if(d=e.charCodeAt(n),d===92)n+=1;else if(d===42&&e.charCodeAt(n+1)===47){t=n+1;break}let a=e.slice(r,t+1);if(a.charCodeAt(2)===33){let e=Ce(a.slice(2,-2));i.push(e),n&&(e.src=[n,r,t+1],e.dst=[n,r,t+1])}}else if(f===39||f===34){let r=S(e,t,f,n);c+=e.slice(t,r+1),t=r}else{if((f===32||f===10||f===9)&&(d=e.charCodeAt(t+1))&&(d===32||d===10||d===9||d===13&&(d=e.charCodeAt(t+2))&&d==10))continue;if(f===10){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==32&&d!==10&&d!==9&&(c+=` `)}else if(f===45&&e.charCodeAt(t+1)===45&&c.length===0){let i=``,a=t,s=-1;for(let r=t+2;r<e.length;r++)if(d=e.charCodeAt(r),d===92)r+=1;else if(d===39||d===34)r=S(e,r,d,n);else if(d===47&&e.charCodeAt(r+1)===42){for(let t=r+2;t<e.length;t++)if(d=e.charCodeAt(t),d===92)t+=1;else if(d===42&&e.charCodeAt(t+1)===47){r=t+1;break}}else if(s===-1&&d===58)s=c.length+r-a;else if(d===59&&i.length===0){c+=e.slice(a,r),t=r;break}else if(d===40)i+=`)`;else if(d===91)i+=`]`;else if(d===123)i+=`}`;else if((d===125||e.length-1===r)&&i.length===0){t=r-1,c+=e.slice(a,r);break}else(d===41||d===93||d===125)&&i.length>0&&e[r]===i[i.length-1]&&(i=i.slice(0,-1));let l=x(c,s);if(!l)throw new v(`Invalid custom property, expected a value`,n?[n,a,t]:null);n&&(l.src=[n,a,t],l.dst=[n,a,t]),o?o.nodes.push(l):r.push(l),c=``}else if(f===59&&c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else if(f===59&&l[l.length-1]!==`)`){let e=x(c);if(!e){if(c.length===0)continue;throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null)}n&&(e.src=[n,u,t],e.dst=[n,u,t]),o?o.nodes.push(e):r.push(e),c=``}else if(f===123&&l[l.length-1]!==`)`)l+=`}`,s=Se(c.trim()),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o&&o.nodes.push(s),a.push(o),o=s,c=``,s=null;else if(f===125&&l[l.length-1]!==`)`){if(l===``)throw new v(`Missing opening {`,n?[n,t,t]:null);if(l=l.slice(0,-1),c.length>0){if(c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else{let e=c.indexOf(`:`);if(o){let r=x(c,e);if(!r)throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null);n&&(r.src=[n,u,t],r.dst=[n,u,t]),o.nodes.push(r)}}}let e=a.pop()??null;e===null&&o&&r.push(o),o=e,c=``,s=null}else if(f===40)l+=`)`,c+=`(`;else if(f===41){if(l[l.length-1]!==`)`)throw new v(`Missing opening (`,n?[n,t,t]:null);l=l.slice(0,-1),c+=`)`}else{if(c.length===0&&(f===32||f===10||f===9))continue;c===``&&(u=t),c+=String.fromCharCode(f)}}}}if(c.charCodeAt(0)===64){let t=b(c);n&&(t.src=[n,u,e.length],t.dst=[n,u,e.length]),r.push(t)}if(l.length>0&&o){if(o.kind===`rule`)throw new v(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind===`at-rule`)throw new v(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return i.length>0?i.concat(r):r}function b(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===32||i===9||i===40){n=e.slice(0,t),r=e.slice(t);break}}return L(n.trim(),r.trim(),t)}function x(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return R(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function S(e,t,n,r=null){let i;for(let a=t+1;a<e.length;a++)if(i=e.charCodeAt(a),i===92)a+=1;else{if(i===n)return a;if(i===59&&(e.charCodeAt(a+1)===10||e.charCodeAt(a+1)===13&&e.charCodeAt(a+2)===10))throw new v(`Unterminated string: ${e.slice(t,a+1)+String.fromCharCode(n)}`,r?[r,t,a+1]:null);if(i===10||i===13&&e.charCodeAt(a+1)===10)throw new v(`Unterminated string: ${e.slice(t,a)+String.fromCharCode(n)}`,r?[r,t,a+1]:null)}return t}function C(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function w(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>{if(e.length<=2)return e[1];let t=Number.parseInt(e.slice(1).trim(),16);return t===0||t>1114111||t>=55296&&t<=57343?`�`:String.fromCodePoint(t)})}var T=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function E(e,t){return(T.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var D=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}values;keyframes;prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(E(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=w(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=T.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t)){if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue}if(!E(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${C(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=w(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(i[e]=n.options&1?n.value:this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},O=class extends Map{constructor(e){super(),this.factory=e}factory;get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}},k=new Uint8Array(256);function A(e,t){let n=0,r=[],i=0,a=e.length,o=t.charCodeAt(0);for(let t=0;t<a;t++){let s=e.charCodeAt(t);if(n===0&&s===o){r.push(e.slice(i,t)),i=t+1;continue}switch(s){case 92:t+=1;break;case 39:case 34:for(;++t<a;){let n=e.charCodeAt(t);if(n===92){t+=1;continue}if(n===s)break}break;case 40:k[n]=41,n++;break;case 91:k[n]=93,n++;break;case 123:k[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===k[n-1]&&n--}}return r.push(e.slice(i)),r}function j(e){return{kind:`word`,value:e}}function ee(e,t){return{kind:`function`,value:e,nodes:t}}function te(e){return{kind:`separator`,value:e}}function M(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+M(n.nodes)+`)`}return t}var ne=92,re=41,ie=58,ae=44,oe=34,se=61,ce=62,le=60,ue=10,de=40,fe=39,pe=47,me=32,he=9;function N(e){e=e.replaceAll(`\r
|
|
3
|
+
`);let c=[],l=c,u=!1,d=[],f=null,p=``,m;function h(e=l){return e.length===1?e[0]:u?t(e):n(e)}function _(e){let t=l[l.length-1];t?.kind===`compound`?t.nodes.push(e):t&&t.kind!==`list`&&t.kind!==`combinator`?l[l.length-1]=n([t,e]):l.push(e)}for(let n=0;n<s.length;n++){let v=s.charCodeAt(n);switch(v){case 44:for(p.length>0&&(_(a(p)),p=``);n+1<s.length&&(m=s.charCodeAt(n+1),m===10||m===32||m===9);n++);if(f)f.nodes.push(h()),l=[],u=!1;else{let e=i([h(l.splice(0))]);l.push(e),f=e,l=[],u=!1}break;case 62:case 10:case 32:case 43:case 9:case 126:{p.length>0&&(_(a(p)),p=``);let t=n,r=n+1;for(;r<s.length&&(m=s.charCodeAt(r),m===62||m===10||m===32||m===43||m===9||m===126);r++);n=r-1;let i=s.slice(t,r).trim();if(i===``&&(l.length===0||r>=s.length||s.charCodeAt(r)===44))break;l.push(e(i===``?` `:i)),u=!0;break}case 40:{let e=r(p,[]);if(p=``,e.value!==`:not`&&e.value!==`:where`&&e.value!==`:has`&&e.value!==`:is`){let t=n+1,r=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===40){r++;continue}if(m===41){if(r===0){n=e;break}r--}}let i=n,a=s.slice(t,i);if(e.value===`:nth-child`||e.value===`:nth-last-child`){let t=a.indexOf(`of `);if(t!==-1){e.nodes.push(o(a.slice(0,t+3)),...g(a.slice(t+3))),p=``,n=i,_(e);break}}e.nodes.push(o(a)),p=``,n=i,_(e);break}_(e),d.push({target:l,currentList:f,containsCombinator:u}),l=e.nodes,u=!1,f=null;break}case 41:{p.length>0&&(_(a(p)),p=``),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0)));let e=d.pop();l=e?.target??c,f=e?.currentList??null,u=e?.containsCombinator??!1;break}case 46:case 58:case 35:if(v===58&&p===`:`){p+=s[n];break}p.length>0&&_(a(p)),p=s[n];break;case 91:{p.length>0&&(_(a(p)),p=``);let e=n,t=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===91){t++;continue}if(m===93){if(t===0){n=e;break}t--}}_(a(s.slice(e,n+1)));break}case 39:case 34:{let e=n;for(let e=n+1;e<s.length;e++)if(m=s.charCodeAt(e),m===92)e+=1;else if(m===v){n=e;break}p+=s.slice(e,n+1);break}case 38:case 42:p.length>0&&(_(a(p)),p=``),_(a(s[n]));break;case 92:p+=s[n]+s[n+1],n+=1;break;default:p+=s[n]}}return p.length>0&&_(a(p)),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0))),c}function _(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var v=class e extends Error{loc;constructor(t,n){if(n){let e=n[0],r=_(e.code).find(n[1]);t=`${e.file}:${r.line}:${r.column+1}: ${t}`}super(t),this.name=`CssSyntaxError`,this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function y(e,t){let n=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let r=[],i=[],a=[],o=null,s=null,c=``,l=``,u=0,d;for(let t=0;t<e.length;t++){let f=e.charCodeAt(t);if(!(f===13&&(d=e.charCodeAt(t+1),d===10))){if(f===92)c===``&&(u=t),c+=e.slice(t,t+2),t+=1;else if(f===47&&e.charCodeAt(t+1)===42){let r=t;for(let n=t+2;n<e.length;n++)if(d=e.charCodeAt(n),d===92)n+=1;else if(d===42&&e.charCodeAt(n+1)===47){t=n+1;break}let a=e.slice(r,t+1);if(a.charCodeAt(2)===33){let e=xe(a.slice(2,-2));i.push(e),n&&(e.src=[n,r,t+1],e.dst=[n,r,t+1])}}else if(f===39||f===34){let r=S(e,t,f,n);c+=e.slice(t,r+1),t=r}else{if((f===32||f===10||f===9)&&(d=e.charCodeAt(t+1))&&(d===32||d===10||d===9||d===13&&(d=e.charCodeAt(t+2))&&d==10))continue;if(f===10){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==32&&d!==10&&d!==9&&(c+=` `)}else if(f===45&&e.charCodeAt(t+1)===45&&c.length===0){let i=``,a=t,s=-1;for(let r=t+2;r<e.length;r++)if(d=e.charCodeAt(r),d===92)r+=1;else if(d===39||d===34)r=S(e,r,d,n);else if(d===47&&e.charCodeAt(r+1)===42){for(let t=r+2;t<e.length;t++)if(d=e.charCodeAt(t),d===92)t+=1;else if(d===42&&e.charCodeAt(t+1)===47){r=t+1;break}}else if(s===-1&&d===58)s=c.length+r-a;else if(d===59&&i.length===0){c+=e.slice(a,r),t=r;break}else if(d===40)i+=`)`;else if(d===91)i+=`]`;else if(d===123)i+=`}`;else if((d===125||e.length-1===r)&&i.length===0){t=r-1,c+=e.slice(a,r);break}else(d===41||d===93||d===125)&&i.length>0&&e[r]===i[i.length-1]&&(i=i.slice(0,-1));let l=x(c,s);if(!l)throw new v(`Invalid custom property, expected a value`,n?[n,a,t]:null);n&&(l.src=[n,a,t],l.dst=[n,a,t]),o?o.nodes.push(l):r.push(l),c=``}else if(f===59&&c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else if(f===59&&l[l.length-1]!==`)`){let e=x(c);if(!e){if(c.length===0)continue;throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null)}n&&(e.src=[n,u,t],e.dst=[n,u,t]),o?o.nodes.push(e):r.push(e),c=``}else if(f===123&&l[l.length-1]!==`)`)l+=`}`,s=z(c.trim()),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o&&o.nodes.push(s),a.push(o),o=s,c=``,s=null;else if(f===125&&l[l.length-1]!==`)`){if(l===``)throw new v(`Missing opening {`,n?[n,t,t]:null);if(l=l.slice(0,-1),c.length>0){if(c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else{let e=c.indexOf(`:`);if(o){let r=x(c,e);if(!r)throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null);n&&(r.src=[n,u,t],r.dst=[n,u,t]),o.nodes.push(r)}}}let e=a.pop()??null;e===null&&o&&r.push(o),o=e,c=``,s=null}else if(f===40)l+=`)`,c+=`(`;else if(f===41){if(l[l.length-1]!==`)`)throw new v(`Missing opening (`,n?[n,t,t]:null);l=l.slice(0,-1),c+=`)`}else{if(c.length===0&&(f===32||f===10||f===9))continue;c===``&&(u=t),c+=String.fromCharCode(f)}}}}if(c.charCodeAt(0)===64){let t=b(c);n&&(t.src=[n,u,e.length],t.dst=[n,u,e.length]),r.push(t)}if(l.length>0&&o){if(o.kind===`rule`)throw new v(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind===`at-rule`)throw new v(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return i.length>0?i.concat(r):r}function b(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===32||i===9||i===40){n=e.slice(0,t),r=e.slice(t);break}}return R(n.trim(),r.trim(),t)}function x(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return B(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function S(e,t,n,r=null){let i;for(let a=t+1;a<e.length;a++)if(i=e.charCodeAt(a),i===92)a+=1;else{if(i===n)return a;if(i===59&&(e.charCodeAt(a+1)===10||e.charCodeAt(a+1)===13&&e.charCodeAt(a+2)===10))throw new v(`Unterminated string: ${e.slice(t,a+1)+String.fromCharCode(n)}`,r?[r,t,a+1]:null);if(i===10||i===13&&e.charCodeAt(a+1)===10)throw new v(`Unterminated string: ${e.slice(t,a)+String.fromCharCode(n)}`,r?[r,t,a+1]:null)}return t}function C(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function w(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>{if(e.length<=2)return e[1];let t=Number.parseInt(e.slice(1).trim(),16);return t===0||t>1114111||t>=55296&&t<=57343?`�`:String.fromCodePoint(t)})}var T=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function E(e,t){return(T.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var D=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}values;keyframes;prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(E(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=w(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=T.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t)){if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue}if(!E(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${C(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=w(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(i[e]=n.options&1?n.value:this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},O=class extends Map{constructor(e){super(),this.factory=e}factory;get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}},k=new Uint8Array(256);function A(e,t){let n=0,r=[],i=0,a=e.length,o=t.charCodeAt(0);for(let t=0;t<a;t++){let s=e.charCodeAt(t);if(n===0&&s===o){r.push(e.slice(i,t)),i=t+1;continue}switch(s){case 92:t+=1;break;case 39:case 34:for(;++t<a;){let n=e.charCodeAt(t);if(n===92){t+=1;continue}if(n===s)break}break;case 40:k[n]=41,n++;break;case 91:k[n]=93,n++;break;case 123:k[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===k[n-1]&&n--}}return r.push(e.slice(i)),r}function j(e){return{kind:`word`,value:e}}function M(e,t){return{kind:`function`,value:e,nodes:t}}function ee(e){return{kind:`separator`,value:e}}function N(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+N(n.nodes)+`)`}return t}var te=92,ne=41,re=58,ie=44,ae=34,oe=61,se=62,ce=60,le=10,ue=40,de=39,fe=47,pe=32,me=9;function P(e){e=e.replaceAll(`\r
|
|
4
4
|
`,`
|
|
5
|
-
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case ne:i+=e[o]+e[o+1],o++;break;case pe:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=j(e[o]);r?r.nodes.push(n):t.push(n);break}case ie:case ae:case se:case ce:case le:case ue:case me:case he:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),a===ie||a===ae||a===se||a===ce||a===le||a===ue||a===me||a===he);s++);o=s-1;let c=te(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case fe:case oe:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===ne)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case de:{let e=ee(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case re:{let e=n.pop();if(i.length>0){let t=j(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(j(i)),t}var ge=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(ge||{}),P={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function F(e,t){typeof t==`function`?_e(e,t):_e(e,t.enter,t.exit)}function _e(e,t=()=>P.Continue,n=()=>P.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,i.siblings=a,o>=0){i.index=o;let n=a[o],s=t(n,i)??P.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${ge[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??P.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${ge[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var ve=new O(e=>{let t=[];return F(N(e),e=>{if(e.kind===`function`&&e.value===`var`)return F(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),P.Skip}),t});function ye(e){return ve.get(e)}var be=64,xe=124;function I(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function L(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function Se(e,t=[]){return e.charCodeAt(0)===be?b(e,t):I(e,t)}function R(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function Ce(e){return{kind:`comment`,value:e}}function we(e,t){return{kind:`context`,context:e,nodes:t}}function z(e){return{kind:`at-root`,nodes:e}}function Te(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function Ee(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,"context",{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function De(e,t,n=3){let r=[],i=new Set,a=new O(()=>new Set),o=new O(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new O(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`)){if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ye(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of B(e.value))c.add(t);n&2&&!m.supportsColorMix&&!m.keyframes&&e.value.includes(`color-mix(`)&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);t.length>0&&p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=R(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`||t.name===`@apply`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Ne(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of B(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=Me(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(1);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=N(r.value),a=!1;if(F(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(F(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?N(o)[0]:null}while(i);return P.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?P.Replace(n):void 0}if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:M(i)},s=Se(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=Se(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=Se(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>e.kind!==`comment`&&(e.kind!==`at-rule`||e.name!==`@charset`&&e.name!==`@import`)),n=L(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=Se(`@layer properties`,[L(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return Oe(p)}function Oe(e){let t=new O(g),n=[],r=[],i=null,a=new Set,o=new Set,u=[],d=new Set;F(e,{enter(e){switch(e.kind){case`rule`:if(i=null,n.length===0){if(e.selector.includes(`&`)){let t=g(e.selector),r=!1;F(t,e=>{e.kind===`selector`&&e.value===`&`&&(r=!0,e.value=`:scope`)}),r?n.push([l(t),e.src,e.dst]):n.push([e.selector,e.src,e.dst])}else n.push([e.selector,e.src,e.dst])}else{if(e.selector===`&`){d.add(e);return}let r=n[n.length-1][0],i=A(e.selector,`,`).map(e=>{if(!e.includes(`&`)){let n=t.get(r);return`${n.length===1&&n[0].kind===`list`?`:is(${r})`:r} ${e}`}{let n=g(e),i=!1;if(F(n,{enter(e,n){if(e.kind!==`selector`||e.value!==`&`||(i=!0,e.value=`:is(${r})`,n.parent===null))return;let a=t.get(r);if(a.length!==1||a[0].kind!==`list`){if(n.parent.kind===`complex`){if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`)return;e.value=r;return}if(a[0].kind===`complex`)return;e.value=r;return}if(n.parent.kind===`compound`){if(a[0].kind===`complex`){let e=n.path(),t=e[e.length-2];if(t&&t.kind===`complex`&&t.nodes[0]!==n.parent)return}if(n.siblings.slice(n.index+1).some(e=>s(e)||c(e)))return;if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(n.parent.kind===`function`){e.value=r;return}}},exit(e,t){if(t.index===0&&t.siblings.length>1&&t.parent?.kind===`compound`&&s(e)){let e=t.siblings[1];return e.kind===`selector`&&e.value.charCodeAt(0)===xe?void 0:P.ReplaceSkip([])}}}),i)return l(n);let a=t.get(r);return`${a.length===1&&a[0].kind===`list`?`:is(${r})`:r} ${e}`}}).join(`, `);n.push([i,e.src,e.dst])}if(e.nodes.some(e=>e.kind===`declaration`)){for(let t of e.nodes)f(t);return P.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Ae.has(e.name))return f(e),d.add(e),P.Skip;if(ke.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),P.Skip;break;case`declaration`:case`comment`:f(e)}},exit(e){if(!d.delete(e))switch(e.kind){case`rule`:i=null,n.pop();break;case`at-rule`:i=null,r.pop()}}});for(let e of o){let t=new Set;for(let n=e.length-1;n>=0;--n){let r=e[n];if(r.kind!==`declaration`)continue;let i=`${r.property}\0${r.value}\0${r.important}`;t.has(i)?e.splice(n,1):t.add(i)}}return u;function f(e){if(i){e.kind===`declaration`&&(a.has(e.property)?o.add(i):a.add(e.property)),i.push(e);return}{if(n.length===0&&r.length===0){let t=u,n=t[t.length-1];if(n&&n.kind===`at-rule`&&e.kind===`at-rule`&&n.nodes.length===0&&e.nodes.length===0&&n.name===e.name&&n.params===e.params)return;u.push(e);return}i=[e],a.clear(),e.kind===`declaration`&&a.add(e.property);let t=null,s=u,c=0;{let e=s[s.length-1];if(e&&e.kind===`at-rule`)for(let t=0;t<r.length;t++){let n=r[t];if(!e||e.kind!==`at-rule`||e.name!==n[0]||e.params!==n[1])break;c++,s=e.nodes,e=e.nodes[e.nodes.length-1]}}if(n.length>0){let[e,a,l]=n[n.length-1];if(r.length-c<=0){let t=s[s.length-1];if(t&&t.kind===`rule`&&t.selector===e){t.nodes.push(...i),i=t.nodes,o.add(i);return}}t=Se(e,i),(a||l)&&Object.assign(t,{src:a,dst:l})}for(let e=r.length-1;e>=c;--e){let[n,a,o,s]=r[e];t=L(n,a,t?[t]:i),(o||s)&&Object.assign(t,{src:o,dst:s})}t?s.push(t):s.push(...i)}}}var ke=new Set([`@container`,`@layer`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]),Ae=new Set([`@container`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]);function je(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
|
|
5
|
+
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case te:i+=e[o]+e[o+1],o++;break;case fe:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=j(e[o]);r?r.nodes.push(n):t.push(n);break}case re:case ie:case oe:case se:case ce:case le:case pe:case me:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),a===re||a===ie||a===oe||a===se||a===ce||a===le||a===pe||a===me);s++);o=s-1;let c=ee(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case de:case ae:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===te)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case ue:{let e=M(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ne:{let e=n.pop();if(i.length>0){let t=j(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(j(i)),t}var he=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(he||{}),F={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function I(e,t){typeof t==`function`?ge(e,t):ge(e,t.enter,t.exit)}function ge(e,t=()=>F.Continue,n=()=>F.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,i.siblings=a,o>=0){i.index=o;let n=a[o],s=t(n,i)??F.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${he[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??F.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${he[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var _e=new O(e=>{let t=[];return I(P(e),e=>{if(e.kind===`function`&&e.value===`var`)return I(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),F.Skip}),t});function ve(e){return _e.get(e)}var ye=64,be=124;function L(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function R(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function z(e,t=[]){return e.charCodeAt(0)===ye?b(e,t):L(e,t)}function B(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function xe(e){return{kind:`comment`,value:e}}function Se(e,t){return{kind:`context`,context:e,nodes:t}}function V(e){return{kind:`at-root`,nodes:e}}function Ce(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function we(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,"context",{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Te(e,t,n=3){let r=[],i=new Set,a=new O(()=>new Set),o=new O(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new O(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`)){if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ve(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of Me(e.value))c.add(t);n&2&&!m.supportsColorMix&&!m.keyframes&&e.value.includes(`color-mix(`)&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);t.length>0&&p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=B(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`||t.name===`@apply`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(je(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Me(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=Ae(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(1);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=P(r.value),a=!1;if(I(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(I(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?P(o)[0]:null}while(i);return F.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?F.Replace(n):void 0}if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:N(i)},s=z(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=z(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=z(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>e.kind!==`comment`&&(e.kind!==`at-rule`||e.name!==`@charset`&&e.name!==`@import`)),n=R(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=z(`@layer properties`,[R(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return Ee(p)}function Ee(e){let t=new O(g),n=[],r=[],i=null,a=new Set,o=new Set,u=[],d=new Set;I(e,{enter(e){switch(e.kind){case`rule`:if(i=null,n.length===0){if(e.selector.includes(`&`)){let t=g(e.selector),r=!1;I(t,e=>{e.kind===`selector`&&e.value===`&`&&(r=!0,e.value=`:scope`)}),r?n.push([l(t),e.src,e.dst]):n.push([e.selector,e.src,e.dst])}else n.push([e.selector,e.src,e.dst])}else{if(e.selector===`&`){d.add(e);return}let r=n[n.length-1][0],i=A(e.selector,`,`).map(e=>{if(!e.includes(`&`)){let n=t.get(r);return`${n.length===1&&n[0].kind===`list`?`:is(${r})`:r} ${e}`}{let n=g(e),i=!1;if(I(n,{enter(e,n){if(e.kind!==`selector`||e.value!==`&`||(i=!0,e.value=`:is(${r})`,n.parent===null))return;let a=t.get(r);if(a.length!==1||a[0].kind!==`list`){if(n.parent.kind===`complex`){if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`)return;e.value=r;return}if(a[0].kind===`complex`)return;e.value=r;return}if(n.parent.kind===`compound`){if(a[0].kind===`complex`){let e=n.path(),t=e[e.length-2];if(t&&t.kind===`complex`&&t.nodes[0]!==n.parent)return}if(n.siblings.slice(n.index+1).some(e=>s(e)||c(e)))return;if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(n.parent.kind===`function`){e.value=r;return}}},exit(e,t){if(t.index===0&&t.siblings.length>1&&t.parent?.kind===`compound`&&s(e)){let e=t.siblings[1];return e.kind===`selector`&&e.value.charCodeAt(0)===be?void 0:F.ReplaceSkip([])}}}),i)return l(n);let a=t.get(r);return`${a.length===1&&a[0].kind===`list`?`:is(${r})`:r} ${e}`}}).join(`, `);n.push([i,e.src,e.dst])}if(e.nodes.some(e=>e.kind===`declaration`)){for(let t of e.nodes)f(t);return F.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Oe.has(e.name))return f(e),d.add(e),F.Skip;if(De.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),F.Skip;break;case`declaration`:case`comment`:f(e)}},exit(e){if(!d.delete(e))switch(e.kind){case`rule`:i=null,n.pop();break;case`at-rule`:i=null,r.pop()}}});for(let e of o){let t=new Set;for(let n=e.length-1;n>=0;--n){let r=e[n];if(r.kind!==`declaration`)continue;let i=`${r.property}\0${r.value}\0${r.important}`;t.has(i)?e.splice(n,1):t.add(i)}}return u;function f(e){if(i){e.kind===`declaration`&&(a.has(e.property)?o.add(i):a.add(e.property)),i.push(e);return}{if(n.length===0&&r.length===0){let t=u,n=t[t.length-1];if(n&&n.kind===`at-rule`&&e.kind===`at-rule`&&n.nodes.length===0&&e.nodes.length===0&&n.name===e.name&&n.params===e.params)return;u.push(e);return}i=[e],a.clear(),e.kind===`declaration`&&a.add(e.property);let t=null,s=u,c=0;{let e=s[s.length-1];if(e&&e.kind===`at-rule`)for(let t=0;t<r.length;t++){let n=r[t];if(!e||e.kind!==`at-rule`||e.name!==n[0]||e.params!==n[1])break;c++,s=e.nodes,e=e.nodes[e.nodes.length-1]}}if(n.length>0){let[e,a,l]=n[n.length-1];if(r.length-c<=0){let t=s[s.length-1];if(t&&t.kind===`rule`&&t.selector===e){t.nodes.push(...i),i=t.nodes,o.add(i);return}}t=z(e,i),(a||l)&&Object.assign(t,{src:a,dst:l})}for(let e=r.length-1;e>=c;--e){let[n,a,o,s]=r[e];t=R(n,a,t?[t]:i),(o||s)&&Object.assign(t,{src:o,dst:s})}t?s.push(t):s.push(...i)}}}var De=new Set([`@container`,`@layer`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]),Oe=new Set([`@container`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]);function ke(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
|
|
6
6
|
`,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
|
|
7
7
|
`,t){n+=s.length;let t=n;n+=e.selector.length,n+=1,e.dst=[r,t,n],n+=2}for(let t of e.nodes)o+=i(t,a+1);o+=`${s}}
|
|
8
8
|
`,t&&(n+=s.length,n+=2)}else if(e.kind===`at-rule`){if(e.nodes.length===0){let i=`${s}${e.name} ${e.params};
|
|
9
9
|
`;if(t){n+=s.length;let t=n;n+=e.name.length,n+=1,n+=e.params.length;let i=n;n+=2,e.dst=[r,t,i]}return i}if(o+=`${s}${e.name}${e.params?` ${e.params} `:` `}{
|
|
10
10
|
`,t){n+=s.length;let t=n;n+=e.name.length,e.params&&(n+=1,n+=e.params.length),n+=1,e.dst=[r,t,n],n+=2}for(let t of e.nodes)o+=i(t,a+1);o+=`${s}}
|
|
11
11
|
`,t&&(n+=s.length,n+=2)}else if(e.kind===`comment`){if(o+=`${s}/*${e.value}*/
|
|
12
|
-
`,t){n+=s.length;let t=n;n+=2+e.value.length+2,e.dst=[r,t,n],n+=1}}else if(e.kind===`context`||e.kind===`at-root`)return``;return o}let a=``;for(let t of e)a+=i(t,0);return r.code=a,a}function Me(e,t){let n=[];return F(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),P.Stop}),n}function Ne(e,t,n,r=new Set){if(r.has(e)||(r.add(e),t.getOptions(e)&24))return!0;{let i=n.get(e)??[];for(let e of i)if(Ne(e,t,n,r))return!0}return!1}function B(e){return e.split(/[\s,]+/)}var Pe=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Fe(e){return e.indexOf(`(`)!==-1&&Pe.some(t=>e.includes(`${t}(`))}function Ie(e){if(!Pe.some(t=>e.includes(t)))return e;let t=``,n=[],r=null,i=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||r!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?r=a:(i=r,r=null),o===40){t+=e[a];let r=a;for(let t=a-1;t>=0;t--){let n=e.charCodeAt(t);if(n>=48&&n<=57)r=t;else if(n>=97&&n<=122)r=t;else break}let i=e.slice(r,a);if(Pe.includes(i)){n.unshift(!0);continue}if(n[0]&&i===``){n.unshift(!0);continue}n.unshift(!1);continue}if(o===41)t+=e[a],n.shift();else if(o===44&&n[0]){t+=`, `;continue}else{if(o===32&&n[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&n[0]){let n=t.trimEnd(),r=n.charCodeAt(n.length-1),o=n.charCodeAt(n.length-2),s=e.charCodeAt(a+1);if((r===101||r===69)&&o>=48&&o<=57){t+=e[a];continue}if(r===43||r===42||r===47||r===45){t+=e[a];continue}if(r===40||r===44){t+=e[a];continue}e.charCodeAt(a-1)===32?t+=`${e[a]} `:r>=48&&r<=57||s>=48&&s<=57||r===41||s===40||s===43||s===42||s===47||s===45||i!==null&&i===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}}return t}function Le(e){if(e.indexOf(`(`)===-1)return Re(e);let t=N(e);return ze(t),e=M(t),e=Ie(e),e}function Re(e,t=!1){let n=``;for(let r=0;r<e.length;r++){let i=e[r];i===`\\`&&e[r+1]===`_`?(n+=`_`,r+=1):n+=i===`_`&&!t?` `:i}return n}function ze(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=Re(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=Re(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=Re(t.nodes[e].value,!0);continue}ze([t.nodes[e]])}break}t.value=Re(t.value),ze(t.nodes);break;case`separator`:case`word`:t.value=Re(t.value);break;default:Be(t)}}function Be(e){throw Error(`Unexpected value: ${e}`)}var Ve=new Uint8Array(256);function He(e){let t=0,n=e.length;for(let r=0;r<n;r++){let i=e.charCodeAt(r);switch(i){case 92:r+=1;break;case 39:case 34:for(;++r<n;){let t=e.charCodeAt(r);if(t===92){r+=1;continue}if(t===i)break}break;case 40:Ve[t]=41,t++;break;case 91:Ve[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Ve[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var Ue=58,We=45,Ge=97,Ke=122,qe=/^[a-zA-Z0-9_.%-]+$/;function*Je(e,t){let n=A(e,`:`);if(t.theme.prefix){if(n.length===1||n[0]!==t.theme.prefix)return null;n.shift()}let r=n.pop(),i=[];for(let e=n.length-1;e>=0;--e){let r=t.parseVariant(n[e]);if(r===null)return;i.push(r)}let a=!1;r[r.length-1]===`!`?(a=!0,r=r.slice(0,-1)):r[0]===`!`&&(a=!0,r=r.slice(1)),t.utilities.has(r,`static`)&&!r.includes(`[`)&&(yield{kind:`static`,root:r,variants:i,important:a,raw:e});let[o,s=null,c]=A(r,`/`);if(c)return;let l=s===null?null:Ye(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==We&&!(t>=Ge&&t<=Ke))return;o=o.slice(1,-1);let n=o.indexOf(`:`);if(n===-1||n===0||n===o.length-1)return;let r=o.slice(0,n),s=Le(o.slice(n+1));if(!He(s))return;yield{kind:`arbitrary`,property:r,value:s,modifier:l,variants:i,important:a,raw:e};return}let u;if(o[o.length-1]===`]`){let e=o.indexOf(`-[`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;u=[[n,o.slice(e+1)]]}else if(o[o.length-1]===`)`){let e=o.indexOf(`-(`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;let r=o.slice(e+2,-1),i=A(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!He(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Ze(o,e=>t.utilities.has(e,`functional`));for(let[t,n]of u){let r={kind:`functional`,root:t,modifier:l,value:null,variants:i,important:a,raw:e};if(n===null){yield r;continue}{let e=n.indexOf(`[`);if(e!==-1){if(n[n.length-1]!==`]`)return;let t=Le(n.slice(e+1,-1));if(!He(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===Ue){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===We||n>=Ge&&n<=Ke))break}if(t.length===0||t.trim().length===0||i===``)continue;r.value={kind:`arbitrary`,dataType:i||null,value:t}}else{let e=s===null||r.modifier?.kind===`arbitrary`?null:`${n}/${s}`;if(!qe.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Ye(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=Le(e.slice(1,-1));return!He(t)||t.length===0||t.trim().length===0?null:{kind:`arbitrary`,value:t}}return e[0]===`(`&&e[e.length-1]===`)`?(e=e.slice(1,-1),e[0]!==`-`||e[1]!==`-`||!He(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Le(e)})):qe.test(e)?{kind:`named`,value:e}:null}function Xe(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=Le(e.slice(1,-1));if(!He(t)||t.length===0||t.trim().length===0)return null;let n=t[0]===`>`||t[0]===`+`||t[0]===`~`;return!n&&t[0]!==`@`&&!t.includes(`&`)&&(t=`&:is(${t})`),{kind:`arbitrary`,selector:t,relative:n}}{let[n,r=null,i]=A(e,`/`);if(i)return null;let a=Ze(n,e=>t.variants.has(e));for(let[e,n]of a)switch(t.variants.kind(e)){case`static`:return n!==null||r!==null?null:{kind:`static`,root:e};case`functional`:{let t=r===null?null:Ye(r);if(r!==null&&t===null)return null;if(n===null)return{kind:`functional`,root:e,modifier:t,value:null};if(n[n.length-1]===`]`){if(n[0]!==`[`)continue;let r=Le(n.slice(1,-1));return!He(r)||r.length===0||r.trim().length===0?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:r}}}if(n[n.length-1]===`)`){if(n[0]!==`(`)continue;let r=Le(n.slice(1,-1));return!He(r)||r.length===0||r.trim().length===0||r[0]!==`-`||r[1]!==`-`?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:`var(${r})`}}}if(!qe.test(n))continue;return{kind:`functional`,root:e,modifier:t,value:{kind:`named`,value:n}}}case`compound`:{if(n===null)return null;r&&(e===`not`||e===`has`||e===`in`)&&(n=`${n}/${r}`,r=null);let i=t.parseVariant(n);if(i===null||!t.variants.compoundsWith(e,i))return null;let a=r===null?null:Ye(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Ze(e,t){t(e)&&(yield[e,null]);let n=e.lastIndexOf(`-`);for(;n>0;){let r=e.slice(0,n);if(t(r)){let i=[r,e.slice(n+1)];if(i[1]===``||i[0]===`@`&&t(`@`)&&e[n]===`-`)break;yield i}n=e.lastIndexOf(`-`,n-1)}e[0]===`@`&&t(`@`)&&(yield[`@`,e.slice(1)])}function Qe(e,t){let n=[];for(let e of t.variants)n.unshift(et(e));e.theme.prefix&&n.unshift(e.theme.prefix);let r=``;if(t.kind===`static`&&(r+=t.root),t.kind===`functional`&&(r+=t.root,t.value)){if(t.value.kind===`arbitrary`){if(t.value!==null){let e=st(t.value.value),n=e?t.value.value.slice(4,-1):t.value.value,[i,a]=e?[`(`,`)`]:[`[`,`]`];t.value.dataType?r+=`-${i}${t.value.dataType}:${nt(n)}${a}`:r+=`-${i}${nt(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${nt(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=$e(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function $e(e){if(e===null)return``;let t=st(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${nt(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function et(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${nt(it(e.selector))}]`;let t=``;if(e.kind===`functional`){t+=e.root;let n=e.root!==`@`;if(e.value){if(e.value.kind===`arbitrary`){let r=st(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${nt(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=et(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=$e(e.modifier)),t}var tt=new O(e=>{let t=N(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return F(t,(e,t)=>{if(e.kind===`word`&&r.has(e.value)){let e=t.index;if(e===-1)return;let i=t.siblings[e-1];if(i?.kind!==`separator`||i.value!==` `)return;let a=t.siblings[e+1];if(a?.kind!==`separator`||a.value!==` `)return;let o=t.siblings[e-2];if(o&&r.has(o.value))return;let s=t.siblings[e+2];if(s&&r.has(s.value))return;n.add(i),n.add(a)}else if(e.kind===`separator`&&e.value.length>0&&e.value.trim()===``)(t.siblings[0]===e||t.siblings[t.siblings.length-1]===e)&&n.add(e);else if(e.kind===`separator`&&e.value.trim()===`,`)e.value=`,`;else if(e.kind===`function`&&e.value.startsWith(`--`)){let n=t.index;if(n<=0)return;let i=t.siblings[n-1];if(i?.kind===`separator`&&i.value===`,`)return;let a=t.siblings[n-2];return a&&!r.has(a.value)?void 0:P.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&F(t,e=>{if(n.has(e))return n.delete(e),P.ReplaceSkip([])}),at(t),M(t)});function nt(e){return tt.get(e)}var rt=new O(e=>{let t=N(e);return t.length===3&&t[0].kind===`word`&&t[0].value===`&`&&t[1].kind===`separator`&&t[1].value===`:`&&t[2].kind===`function`&&t[2].value===`is`?M(t[2].nodes):e});function it(e){return rt.get(e)}function at(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=lt(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=lt(t.value);for(let e=0;e<t.nodes.length;e++)at([t.nodes[e]]);break}t.value=lt(t.value),at(t.nodes);break;case`separator`:t.value=lt(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=lt(t.value));break;default:ct(t)}}var ot=new O(e=>{let t=N(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function st(e){return ot.get(e)}function ct(e){throw Error(`Unexpected value: ${e}`)}function lt(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function ut(e,t,n){if(e===t)return 0;let r=e.indexOf(`(`),i=t.indexOf(`(`),a=r===-1?e.replace(/[\d.]+/g,``):e.slice(0,r),o=i===-1?t.replace(/[\d.]+/g,``):t.slice(0,i),s=(a===o?0:a<o?-1:1)||(n===`asc`?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var dt=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,ft=new O(e=>{let t=dt.exec(e);if(!t)return null;let n=t.groups?.value;if(n===void 0)return null;let r=Number(n);if(Number.isNaN(r))return null;let i=t.groups?.unit;return i===void 0?[r,null]:[r,i]}),pt=new Set(`black.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aqua.aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent.currentcolor.canvas.canvastext.linktext.visitedtext.activetext.buttonface.buttontext.buttonborder.field.fieldtext.highlight.highlighttext.selecteditem.selecteditemtext.mark.marktext.graytext.accentcolor.accentcolortext`.split(`.`)),mt=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function ht(e){return e.charCodeAt(0)===35||mt.test(e)||pt.has(e.toLowerCase())}function gt(e){return pt.has(e.toLowerCase())}var _t={color:ht,length:Lt,percentage:Mt,ratio:Pt,number:At,integer:H,url:yt,position:Rt,"bg-size":zt,"line-width":bt,image:Ct,"family-name":Tt,"generic-name":wt,"absolute-size":Et,"relative-size":Dt,angle:Vt,vector:Ut};function V(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(_t[n]?.(e))return n;return null}var vt=/^url\(.*\)$/;function yt(e){return vt.test(e)}function bt(e){return A(e,` `).every(e=>Lt(e)||At(e)||e===`thin`||e===`medium`||e===`thick`)}var xt=/^(?:element|image|cross-fade|image-set)\(/,St=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Ct(e){let t=0;for(let n of A(e,`,`))if(!n.startsWith(`var(`)){if(yt(n)){t+=1;continue}if(St.test(n)){t+=1;continue}if(xt.test(n)){t+=1;continue}return!1}return t>0}function wt(e){return e===`serif`||e===`sans-serif`||e===`monospace`||e===`cursive`||e===`fantasy`||e===`system-ui`||e===`ui-serif`||e===`ui-sans-serif`||e===`ui-monospace`||e===`ui-rounded`||e===`math`||e===`emoji`||e===`fangsong`}function Tt(e){let t=0;for(let n of A(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function Et(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function Dt(e){return e===`larger`||e===`smaller`}var Ot=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,kt=RegExp(`^${Ot.source}$`);function At(e){return kt.test(e)||Fe(e)}var jt=RegExp(`^${Ot.source}%$`);function Mt(e){return jt.test(e)||Fe(e)}var Nt=RegExp(`^${Ot.source}\\s*/\\s*${Ot.source}$`);function Pt(e){return Nt.test(e)||Fe(e)}var Ft=RegExp(`^${Ot.source}(${`cm.mm.Q.in.pc.pt.px.em.ex.ch.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.lvw.lvh.dvw.dvh.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`).join(`|`)})$`),It=/^(--spacing)\(/i;function Lt(e){return Ft.test(e)||It.test(e)||Fe(e)}function Rt(e){let t=0;for(let n of A(e,` `)){if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`){t+=1;continue}if(!n.startsWith(`var(`)){if(Lt(n)||Mt(n)){t+=1;continue}return!1}}return t>0}function zt(e){let t=0;for(let n of A(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=A(n,` `);if(e.length!==1&&e.length!==2)return!1;if(e.every(e=>e===`auto`||Lt(e)||Mt(e))){t+=1;continue}}return t>0}var Bt=RegExp(`^${Ot.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function Vt(e){return Bt.test(e)}var Ht=RegExp(`^${Ot.source} +${Ot.source} +${Ot.source}$`);function Ut(e){return Ht.test(e)}function H(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Wt(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function Gt(e){return qt(e,.25)}function Kt(e){return qt(e,.25)}function qt(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}var Jt=new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),Yt=new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Xt=new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Zt=/^-?(\d+|\.\d+)(.*?)$/;function Qt(e,t){function n(e){return N(t(M([e])))}return A(e,`,`).map(e=>{e=e.trim();let r=N(e),i=null,a=0,o=0,s=!1;return F(r,e=>{switch(e.kind){case`word`:if(Jt.has(e.value.toLowerCase()))return P.Continue;if(Zt.test(e.value.toLowerCase()))return o++,P.Continue;if(e.value[0]===`#`||gt(e.value))return s=!0,P.ReplaceStop(n(e));i=e,a++;break;case`function`:return Xt.has(e.value.toLowerCase())?(s=!0,P.ReplaceStop(n(e))):Yt.has(e.value.toLowerCase())?(o++,P.Skip):(i=e,a++,P.Skip);case`separator`:return P.Continue}}),s?M(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&F(r,e=>e===i?(s=!0,P.ReplaceStop(n(e))):P.Skip),s?M(r):e)}).join(`, `)}var $t=`0,0.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96`.split(`,`),en=class{utilities=new O(()=>[]);completions=new Map;static(e,t){this.utilities.get(e).push({kind:`static`,compileFn:t})}functional(e,t,n){this.utilities.get(e).push({kind:`functional`,compileFn:t,options:n})}has(e,t){return this.utilities.has(e)&&this.utilities.get(e).some(e=>e.kind===t)}get(e){return this.utilities.has(e)?this.utilities.get(e):[]}getCompletions(e){return this.has(e,`static`)?this.completions.get(e)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(e)?.()??[]}suggest(e,t){let n=this.completions.get(e);n?this.completions.set(e,()=>[...n?.(),...t?.()]):this.completions.set(e,t)}keys(e){let t=[];for(let[n,r]of this.utilities.entries())for(let i of r)if(i.kind===e){t.push(n);break}return t}};function U(e,t,n){return L(`@property`,e,[R(`syntax`,n?`"${n}"`:`"*"`),R(`inherits`,`false`),...t?[R(`initial-value`,t)]:[]])}function tn(e,t){if(t===null)return e;let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),t===`100%`?e:`color-mix(in oklab, ${e} ${t}, transparent)`}function nn(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function W(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return tn(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?tn(e,r):Kt(t.value)?tn(e,`${t.value}%`):null}function rn(e,t,n){let r=null;switch(e.value.value){case`inherit`:r=`inherit`;break;case`transparent`:r=`transparent`;break;case`current`:r=`currentcolor`;break;default:r=t.resolve(e.value.value,n)}return r?W(r,e.modifier,t):null}var an=/(\d+)_(\d+)/g;function on(e){let t=new en;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(an,(e,t,n)=>`${t}.${n}`)}let a=`1/2.1/3.2/3.1/4.2/4.3/4.1/5.2/5.3/5.4/5.1/6.2/6.3/6.4/6.5/6.1/12.2/12.3/12.4/12.5/12.6/12.7/12.8/12.9/12.10/12.11/12`.split(`.`);t.suggest(n,()=>{let e=[];for(let t of r()){if(typeof t==`string`){e.push({values:[t],modifiers:[]});continue}let n=[...t.values??[],...i(t.valueThemeKeys??[])],r=[...t.modifiers??[],...i(t.modifierThemeKeys??[])];t.supportsFractions&&n.push(...a),t.hasDefaultValue&&n.unshift(null),e.push({supportsNegative:t.supportsNegative,values:n,modifiers:r})}return e})}function r(e,n){t.static(e,()=>n.map(e=>typeof e==`function`?e():R(e[0],e[1])))}function i(r,i){i.staticValues&&=Object.assign(Object.create(null),i.staticValues);function a({negative:t}){return n=>{let r=null,a=null;if(n.value){if(n.value.kind===`arbitrary`){if(n.modifier)return;r=n.value.value,a=n.value.dataType}else{if(r=e.resolve(n.value.fraction??n.value.value,i.themeKeys??[]),r===null&&i.supportsFractions&&n.value.fraction){let[e,t]=A(n.value.fraction,`/`);if(!H(e)||!H(t))return;r=`calc(${e} / ${t} * 100%)`}if(r===null&&t&&i.handleNegativeBareValue){if(r=i.handleNegativeBareValue(n.value),!r?.includes(`/`)&&n.modifier)return;if(r!==null)return i.handle(r,null)}if(r===null&&i.handleBareValue&&(r=i.handleBareValue(n.value),!r?.includes(`/`)&&n.modifier))return;if(r===null&&!t&&i.staticValues&&!n.modifier){let e=i.staticValues[n.value.value];if(e)return e.map(Te)}}}else{if(n.modifier)return;r=i.defaultValue===void 0?e.resolve(null,i.themeKeys??[]):i.defaultValue}if(r!==null)return i.handle(t?Ie(`calc(${r} * -1)`):r,a)}}if(i.supportsNegative&&t.functional(`-${r}`,a({negative:!0})),t.functional(r,a({negative:!1})),n(r,()=>[{supportsNegative:i.supportsNegative,valueThemeKeys:i.themeKeys??[],hasDefaultValue:i.defaultValue!==void 0&&i.defaultValue!==null,supportsFractions:i.supportsFractions}]),i.staticValues&&Object.keys(i.staticValues).length>0){let e=Object.keys(i.staticValues);n(r,()=>[{values:e}])}}function a(r,i){t.functional(r,t=>{if(!t.value)return;let n=null;if(t.value.kind===`arbitrary`?(n=t.value.value,n=W(n,t.modifier,e)):n=rn(t,e,i.themeKeys),n!==null)return i.handle(n)}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:i.themeKeys,modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}function o(r,a,o,{supportsNegative:s=!1,supportsFractions:c=!1,staticValues:l}={}){s&&t.static(`-${r}-px`,()=>o(`-1px`)),t.static(`${r}-px`,()=>o(`1px`)),i(r,{themeKeys:a,supportsFractions:c,supportsNegative:s,defaultValue:null,handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?$t:[],supportsNegative:s,supportsFractions:c,valueThemeKeys:a}])}r(`sr-only`,[[`position`,`absolute`],[`width`,`1px`],[`height`,`1px`],[`padding`,`0`],[`margin`,`-1px`],[`overflow`,`hidden`],[`clip-path`,`inset(50%)`],[`white-space`,`nowrap`],[`border-width`,`0`]]),r(`not-sr-only`,[[`position`,`static`],[`width`,`auto`],[`height`,`auto`],[`padding`,`0`],[`margin`,`0`],[`overflow`,`visible`],[`clip-path`,`none`],[`white-space`,`normal`]]),r(`pointer-events-none`,[[`pointer-events`,`none`]]),r(`pointer-events-auto`,[[`pointer-events`,`auto`]]),r(`visible`,[[`visibility`,`visible`]]),r(`invisible`,[[`visibility`,`hidden`]]),r(`collapse`,[[`visibility`,`collapse`]]),r(`static`,[[`position`,`static`]]),r(`fixed`,[[`position`,`fixed`]]),r(`absolute`,[[`position`,`absolute`]]),r(`relative`,[[`position`,`relative`]]),r(`sticky`,[[`position`,`sticky`]]);for(let[e,t]of[[`inset`,`inset`],[`inset-x`,`inset-inline`],[`inset-y`,`inset-block`],[`inset-s`,`inset-inline-start`],[`inset-e`,`inset-inline-end`],[`inset-bs`,`inset-block-start`],[`inset-be`,`inset-block-end`],[`top`,`top`],[`right`,`right`],[`bottom`,`bottom`],[`left`,`left`]])r(`${e}-auto`,[[t,`auto`]]),r(`${e}-full`,[[t,`100%`]]),r(`-${e}-full`,[[t,`-100%`]]),o(e,[`--inset`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--z-index`],handle:e=>[R(`z-index`,e)],staticValues:{auto:[R(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--order`],handle:e=>[R(`order`,e)],staticValues:{first:[R(`order`,`-9999`)],last:[R(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[R(`grid-column`,e)],staticValues:{auto:[R(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[R(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[R(`grid-column-start`,e)],staticValues:{auto:[R(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[R(`grid-column-end`,e)],staticValues:{auto:[R(`grid-column-end`,`auto`)]}}),n(`col-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`col-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-start`]}]),n(`col-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-end`]}]),i(`row`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[R(`grid-row`,e)],staticValues:{auto:[R(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[R(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[R(`grid-row-start`,e)],staticValues:{auto:[R(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[R(`grid-row-end`,e)],staticValues:{auto:[R(`grid-row-end`,`auto`)]}}),n(`row-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`row-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-start`]}]),n(`row-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-end`]}]),r(`float-start`,[[`float`,`inline-start`]]),r(`float-end`,[[`float`,`inline-end`]]),r(`float-right`,[[`float`,`right`]]),r(`float-left`,[[`float`,`left`]]),r(`float-none`,[[`float`,`none`]]),r(`clear-start`,[[`clear`,`inline-start`]]),r(`clear-end`,[[`clear`,`inline-end`]]),r(`clear-right`,[[`clear`,`right`]]),r(`clear-left`,[[`clear`,`left`]]),r(`clear-both`,[[`clear`,`both`]]),r(`clear-none`,[[`clear`,`none`]]);for(let[e,t]of[[`m`,`margin`],[`mx`,`margin-inline`],[`my`,`margin-block`],[`ms`,`margin-inline-start`],[`me`,`margin-inline-end`],[`mbs`,`margin-block-start`],[`mbe`,`margin-block-end`],[`mt`,`margin-top`],[`mr`,`margin-right`],[`mb`,`margin-bottom`],[`ml`,`margin-left`]])r(`${e}-auto`,[[t,`auto`]]),o(e,[`--margin`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0});r(`box-border`,[[`box-sizing`,`border-box`]]),r(`box-content`,[[`box-sizing`,`content-box`]]),i(`line-clamp`,{themeKeys:[`--line-clamp`],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`overflow`,`hidden`),R(`display`,`-webkit-box`),R(`-webkit-box-orient`,`vertical`),R(`-webkit-line-clamp`,e)],staticValues:{none:[R(`overflow`,`visible`),R(`display`,`block`),R(`-webkit-box-orient`,`horizontal`),R(`-webkit-line-clamp`,`unset`)]}}),n(`line-clamp`,()=>[{values:[`1`,`2`,`3`,`4`,`5`,`6`],valueThemeKeys:[`--line-clamp`]}]),r(`block`,[[`display`,`block`]]),r(`inline-block`,[[`display`,`inline-block`]]),r(`inline`,[[`display`,`inline`]]),r(`hidden`,[[`display`,`none`]]),r(`inline-flex`,[[`display`,`inline-flex`]]),r(`table`,[[`display`,`table`]]),r(`inline-table`,[[`display`,`inline-table`]]),r(`table-caption`,[[`display`,`table-caption`]]),r(`table-cell`,[[`display`,`table-cell`]]),r(`table-column`,[[`display`,`table-column`]]),r(`table-column-group`,[[`display`,`table-column-group`]]),r(`table-footer-group`,[[`display`,`table-footer-group`]]),r(`table-header-group`,[[`display`,`table-header-group`]]),r(`table-row-group`,[[`display`,`table-row-group`]]),r(`table-row`,[[`display`,`table-row`]]),r(`flow-root`,[[`display`,`flow-root`]]),r(`flex`,[[`display`,`flex`]]),r(`grid`,[[`display`,`grid`]]),r(`inline-grid`,[[`display`,`inline-grid`]]),r(`contents`,[[`display`,`contents`]]),r(`list-item`,[[`display`,`list-item`]]),r(`field-sizing-content`,[[`field-sizing`,`content`]]),r(`field-sizing-fixed`,[[`field-sizing`,`fixed`]]),i(`aspect`,{themeKeys:[`--aspect`],handleBareValue:({fraction:e})=>{if(e===null)return null;let[t,n]=A(e,`/`);return!Gt(t)||!Gt(n)?null:e},handle:e=>[R(`aspect-ratio`,e)],staticValues:{auto:[R(`aspect-ratio`,`auto`)],square:[R(`aspect-ratio`,`1 / 1`)]}});for(let[e,t]of[[`full`,`100%`],[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`],[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`size-${e}`,[[`--tw-sort`,`size`],[`width`,t],[`height`,t]]),r(`w-${e}`,[[`width`,t]]),r(`h-${e}`,[[`height`,t]]),r(`min-w-${e}`,[[`min-width`,t]]),r(`min-h-${e}`,[[`min-height`,t]]),r(`max-w-${e}`,[[`max-width`,t]]),r(`max-h-${e}`,[[`max-height`,t]]);r(`size-auto`,[[`--tw-sort`,`size`],[`width`,`auto`],[`height`,`auto`]]),r(`w-auto`,[[`width`,`auto`]]),r(`h-auto`,[[`height`,`auto`]]),r(`min-w-auto`,[[`min-width`,`auto`]]),r(`min-h-auto`,[[`min-height`,`auto`]]),r(`h-lh`,[[`height`,`1lh`]]),r(`min-h-lh`,[[`min-height`,`1lh`]]),r(`max-h-lh`,[[`max-height`,`1lh`]]),r(`w-screen`,[[`width`,`100vw`]]),r(`min-w-screen`,[[`min-width`,`100vw`]]),r(`max-w-screen`,[[`max-width`,`100vw`]]),r(`h-screen`,[[`height`,`100vh`]]),r(`min-h-screen`,[[`min-height`,`100vh`]]),r(`max-h-screen`,[[`max-height`,`100vh`]]),r(`max-w-none`,[[`max-width`,`none`]]),r(`max-h-none`,[[`max-height`,`none`]]),o(`size`,[`--size`,`--spacing`],e=>[R(`--tw-sort`,`size`),R(`width`,e),R(`height`,e)],{supportsFractions:!0});for(let[e,t,n]of[[`w`,[`--width`,`--spacing`,`--container`],`width`],[`min-w`,[`--min-width`,`--spacing`,`--container`],`min-width`],[`max-w`,[`--max-width`,`--spacing`,`--container`],`max-width`],[`h`,[`--height`,`--spacing`],`height`],[`min-h`,[`--min-height`,`--height`,`--spacing`],`min-height`],[`max-h`,[`--max-height`,`--height`,`--spacing`],`max-height`]])o(e,t,e=>[R(n,e)],{supportsFractions:!0});for(let[e,t]of[[`full`,`100%`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`block-${e}`,[[`block-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);for(let[e,t]of[[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]);for(let[e,t]of[[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`]])r(`block-${e}`,[[`block-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);r(`inline-auto`,[[`inline-size`,`auto`]]),r(`block-auto`,[[`block-size`,`auto`]]),r(`min-inline-auto`,[[`min-inline-size`,`auto`]]),r(`min-block-auto`,[[`min-block-size`,`auto`]]),r(`block-lh`,[[`block-size`,`1lh`]]),r(`min-block-lh`,[[`min-block-size`,`1lh`]]),r(`max-block-lh`,[[`max-block-size`,`1lh`]]),r(`inline-screen`,[[`inline-size`,`100vw`]]),r(`min-inline-screen`,[[`min-inline-size`,`100vw`]]),r(`max-inline-screen`,[[`max-inline-size`,`100vw`]]),r(`block-screen`,[[`block-size`,`100vh`]]),r(`min-block-screen`,[[`min-block-size`,`100vh`]]),r(`max-block-screen`,[[`max-block-size`,`100vh`]]),r(`max-inline-none`,[[`max-inline-size`,`none`]]),r(`max-block-none`,[[`max-block-size`,`none`]]);for(let[e,t,n]of[[`inline`,[`--spacing`,`--container`],`inline-size`],[`min-inline`,[`--spacing`,`--container`],`min-inline-size`],[`max-inline`,[`--spacing`,`--container`],`max-inline-size`],[`block`,[`--spacing`],`block-size`],[`min-block`,[`--spacing`],`min-block-size`],[`max-block`,[`--spacing`],`max-block-size`]])o(e,t,e=>[R(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>ut(e,t,`asc`));let n=[R(`--tw-sort`,`--tw-container-component`),R(`width`,`100%`)];for(let e of t)n.push(L(`@media`,`(width >= ${e})`,[R(`max-width`,e)]));return n}),r(`flex-auto`,[[`flex`,`auto`]]),r(`flex-initial`,[[`flex`,`0 auto`]]),r(`flex-none`,[[`flex`,`none`]]),t.functional(`flex`,e=>{if(e.value){if(e.value.kind===`arbitrary`)return e.modifier?void 0:[R(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=A(e.value.fraction,`/`);return!H(t)||!H(n)?void 0:[R(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(H(e.value.value))return e.modifier?void 0:[R(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`flex-grow`,e)]}),n(`shrink`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),n(`grow`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),r(`basis-auto`,[[`flex-basis`,`auto`]]),r(`basis-full`,[[`flex-basis`,`100%`]]),o(`basis`,[`--flex-basis`,`--spacing`,`--container`],e=>[R(`flex-basis`,e)],{supportsFractions:!0}),r(`table-auto`,[[`table-layout`,`auto`]]),r(`table-fixed`,[[`table-layout`,`fixed`]]),r(`caption-top`,[[`caption-side`,`top`]]),r(`caption-bottom`,[[`caption-side`,`bottom`]]),r(`border-collapse`,[[`border-collapse`,`collapse`]]),r(`border-separate`,[[`border-collapse`,`separate`]]);let s=()=>z([U(`--tw-border-spacing-x`,`0`,`<length>`),U(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-x`,e),R(`--tw-border-spacing-y`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-x`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-y`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[R(`transform-origin`,e)],staticValues:{center:[R(`transform-origin`,`center`)],top:[R(`transform-origin`,`top`)],"top-right":[R(`transform-origin`,`100% 0`)],right:[R(`transform-origin`,`100%`)],"bottom-right":[R(`transform-origin`,`100% 100%`)],bottom:[R(`transform-origin`,`bottom`)],"bottom-left":[R(`transform-origin`,`0 100%`)],left:[R(`transform-origin`,`0`)],"top-left":[R(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[R(`perspective-origin`,e)],staticValues:{center:[R(`perspective-origin`,`center`)],top:[R(`perspective-origin`,`top`)],"top-right":[R(`perspective-origin`,`100% 0`)],right:[R(`perspective-origin`,`100%`)],"bottom-right":[R(`perspective-origin`,`100% 100%`)],bottom:[R(`perspective-origin`,`bottom`)],"bottom-left":[R(`perspective-origin`,`0 100%`)],left:[R(`perspective-origin`,`0`)],"top-left":[R(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[R(`perspective`,e)],staticValues:{none:[R(`perspective`,`none`)]}});let c=()=>z([U(`--tw-translate-x`,`0`),U(`--tw-translate-y`,`0`),U(`--tw-translate-z`,`0`)]);r(`translate-none`,[[`translate`,`none`]]),r(`-translate-full`,[c,[`--tw-translate-x`,`-100%`],[`--tw-translate-y`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-full`,[c,[`--tw-translate-x`,`100%`],[`--tw-translate-y`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate`,[`--translate`,`--spacing`],e=>[c(),R(`--tw-translate-x`,e),R(`--tw-translate-y`,e),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});for(let e of[`x`,`y`])r(`-translate-${e}-full`,[c,[`--tw-translate-${e}`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-${e}-full`,[c,[`--tw-translate-${e}`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate-${e}`,[`--translate`,`--spacing`],t=>[c(),R(`--tw-translate-${e}`,t),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),R(`--tw-translate-z`,e),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`)],{supportsNegative:!0}),r(`translate-3d`,[c,[`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`]]);let l=()=>z([U(`--tw-scale-x`,`1`),U(`--tw-scale-y`,`1`),U(`--tw-scale-z`,`1`)]);r(`scale-none`,[[`scale`,`none`]]);function u({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;return n.value.kind===`arbitrary`?(r=n.value.value,r=t?`calc(${r} * -1)`:r,[R(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&H(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),R(`--tw-scale-x`,r),R(`--tw-scale-y`,r),R(`--tw-scale-z`,r),R(`scale`,`var(--tw-scale-x) var(--tw-scale-y)`)]):void 0)}}t.functional(`-scale`,u({negative:!0})),t.functional(`scale`,u({negative:!1})),n(`scale`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);for(let e of[`x`,`y`,`z`])i(`scale-${e}`,{supportsNegative:!0,themeKeys:[`--scale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:t=>[l(),R(`--tw-scale-${e}`,t),R(`scale`,`var(--tw-scale-x) var(--tw-scale-y)${e===`z`?` var(--tw-scale-z)`:``}`)]}),n(`scale-${e}`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);r(`scale-3d`,[l,[`scale`,`var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)`]]),r(`rotate-none`,[[`rotate`,`none`]]);function d({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;if(n.value.kind===`arbitrary`){r=n.value.value;let e=n.value.dataType??V(r,[`angle`,`vector`]);if(e===`vector`)return[R(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[R(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&H(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[R(`rotate`,t?`calc(${r} * -1)`:r)]}}t.functional(`-rotate`,d({negative:!0})),t.functional(`rotate`,d({negative:!1})),n(`rotate`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);{let e=[`var(--tw-rotate-x,)`,`var(--tw-rotate-y,)`,`var(--tw-rotate-z,)`,`var(--tw-skew-x,)`,`var(--tw-skew-y,)`].join(` `),a=()=>z([U(`--tw-rotate-x`),U(`--tw-rotate-y`),U(`--tw-rotate-z`),U(`--tw-skew-x`),U(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:n=>[a(),R(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),R(`transform`,e)]}),n(`rotate-${t}`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);i(`skew`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-x`,`skewX(${t})`),R(`--tw-skew-y`,`skewY(${t})`),R(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-x`,`skewX(${t})`),R(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-y`,`skewY(${t})`),R(`transform`,e)]}),n(`skew`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-x`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-y`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),t.functional(`transform`,t=>{if(t.modifier)return;let n=null;if(t.value?t.value.kind===`arbitrary`&&(n=t.value.value):n=e,n!==null)return[a(),R(`transform`,n)]}),n(`transform`,()=>[{hasDefaultValue:!0}]),r(`transform-cpu`,[[`transform`,e]]),r(`transform-gpu`,[[`transform`,`translateZ(0) ${e}`]]),r(`transform-none`,[[`transform`,`none`]])}i(`zoom`,{handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[R(`zoom`,e)]}),n(`zoom`,()=>[{values:[`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`]}]),r(`transform-flat`,[[`transform-style`,`flat`]]),r(`transform-3d`,[[`transform-style`,`preserve-3d`]]),r(`transform-content`,[[`transform-box`,`content-box`]]),r(`transform-border`,[[`transform-box`,`border-box`]]),r(`transform-fill`,[[`transform-box`,`fill-box`]]),r(`transform-stroke`,[[`transform-box`,`stroke-box`]]),r(`transform-view`,[[`transform-box`,`view-box`]]),r(`backface-visible`,[[`backface-visibility`,`visible`]]),r(`backface-hidden`,[[`backface-visibility`,`hidden`]]);for(let e of`auto.default.pointer.wait.text.move.help.not-allowed.none.context-menu.progress.cell.crosshair.vertical-text.alias.copy.no-drop.grab.grabbing.all-scroll.col-resize.row-resize.n-resize.e-resize.s-resize.w-resize.ne-resize.nw-resize.se-resize.sw-resize.ew-resize.ns-resize.nesw-resize.nwse-resize.zoom-in.zoom-out`.split(`.`))r(`cursor-${e}`,[[`cursor`,e]]);i(`cursor`,{themeKeys:[`--cursor`],handle:e=>[R(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>z([U(`--tw-pan-x`),U(`--tw-pan-y`),U(`--tw-pinch-zoom`)]);for(let e of[`x`,`left`,`right`])r(`touch-pan-${e}`,[f,[`--tw-pan-x`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`y`,`up`,`down`])r(`touch-pan-${e}`,[f,[`--tw-pan-y`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);r(`touch-pinch-zoom`,[f,[`--tw-pinch-zoom`,`pinch-zoom`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`none`,`text`,`all`,`auto`])r(`select-${e}`,[[`-webkit-user-select`,e],[`user-select`,e]]);r(`resize-none`,[[`resize`,`none`]]),r(`resize-x`,[[`resize`,`horizontal`]]),r(`resize-y`,[[`resize`,`vertical`]]),r(`resize`,[[`resize`,`both`]]),r(`snap-none`,[[`scroll-snap-type`,`none`]]);let p=()=>z([U(`--tw-scroll-snap-strictness`,`proximity`,`*`)]);for(let e of[`x`,`y`,`both`])r(`snap-${e}`,[p,[`scroll-snap-type`,`${e} var(--tw-scroll-snap-strictness)`]]);r(`snap-mandatory`,[p,[`--tw-scroll-snap-strictness`,`mandatory`]]),r(`snap-proximity`,[p,[`--tw-scroll-snap-strictness`,`proximity`]]),r(`snap-align-none`,[[`scroll-snap-align`,`none`]]),r(`snap-start`,[[`scroll-snap-align`,`start`]]),r(`snap-end`,[[`scroll-snap-align`,`end`]]),r(`snap-center`,[[`scroll-snap-align`,`center`]]),r(`snap-normal`,[[`scroll-snap-stop`,`normal`]]),r(`snap-always`,[[`scroll-snap-stop`,`always`]]);for(let[e,t]of[[`scroll-m`,`scroll-margin`],[`scroll-mx`,`scroll-margin-inline`],[`scroll-my`,`scroll-margin-block`],[`scroll-ms`,`scroll-margin-inline-start`],[`scroll-me`,`scroll-margin-inline-end`],[`scroll-mbs`,`scroll-margin-block-start`],[`scroll-mbe`,`scroll-margin-block-end`],[`scroll-mt`,`scroll-margin-top`],[`scroll-mr`,`scroll-margin-right`],[`scroll-mb`,`scroll-margin-bottom`],[`scroll-ml`,`scroll-margin-left`]])o(e,[`--scroll-margin`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0});for(let[e,t]of[[`scroll-p`,`scroll-padding`],[`scroll-px`,`scroll-padding-inline`],[`scroll-py`,`scroll-padding-block`],[`scroll-ps`,`scroll-padding-inline-start`],[`scroll-pe`,`scroll-padding-inline-end`],[`scroll-pbs`,`scroll-padding-block-start`],[`scroll-pbe`,`scroll-padding-block-end`],[`scroll-pt`,`scroll-padding-top`],[`scroll-pr`,`scroll-padding-right`],[`scroll-pb`,`scroll-padding-bottom`],[`scroll-pl`,`scroll-padding-left`]])o(e,[`--scroll-padding`,`--spacing`],e=>[R(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[R(`list-style-type`,e)],staticValues:{none:[R(`list-style-type`,`none`)],disc:[R(`list-style-type`,`disc`)],decimal:[R(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[R(`list-style-image`,e)],staticValues:{none:[R(`list-style-image`,`none`)]}}),r(`appearance-none`,[[`appearance`,`none`]]),r(`appearance-auto`,[[`appearance`,`auto`]]),r(`scheme-normal`,[[`color-scheme`,`normal`]]),r(`scheme-dark`,[[`color-scheme`,`dark`]]),r(`scheme-light`,[[`color-scheme`,`light`]]),r(`scheme-light-dark`,[[`color-scheme`,`light dark`]]),r(`scheme-only-dark`,[[`color-scheme`,`only dark`]]),r(`scheme-only-light`,[[`color-scheme`,`only light`]]),i(`columns`,{themeKeys:[`--columns`,`--container`],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`columns`,e)],staticValues:{auto:[R(`columns`,`auto`)]}}),n(`columns`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--columns`,`--container`]}]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-before-${e}`,[[`break-before`,e]]);for(let e of[`auto`,`avoid`,`avoid-page`,`avoid-column`])r(`break-inside-${e}`,[[`break-inside`,e]]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-after-${e}`,[[`break-after`,e]]);r(`grid-flow-row`,[[`grid-auto-flow`,`row`]]),r(`grid-flow-col`,[[`grid-auto-flow`,`column`]]),r(`grid-flow-dense`,[[`grid-auto-flow`,`dense`]]),r(`grid-flow-row-dense`,[[`grid-auto-flow`,`row dense`]]),r(`grid-flow-col-dense`,[[`grid-auto-flow`,`column dense`]]),i(`auto-cols`,{themeKeys:[`--grid-auto-columns`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handle:e=>[R(`grid-auto-columns`,e)],staticValues:{auto:[R(`grid-auto-columns`,`auto`)],min:[R(`grid-auto-columns`,`min-content`)],max:[R(`grid-auto-columns`,`max-content`)],fr:[R(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handle:e=>[R(`grid-auto-rows`,e)],staticValues:{auto:[R(`grid-auto-rows`,`auto`)],min:[R(`grid-auto-rows`,`min-content`)],max:[R(`grid-auto-rows`,`max-content`)],fr:[R(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>Wt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[R(`grid-template-columns`,e)],staticValues:{none:[R(`grid-template-columns`,`none`)],subgrid:[R(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>Wt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[R(`grid-template-rows`,e)],staticValues:{none:[R(`grid-template-rows`,`none`)],subgrid:[R(`grid-template-rows`,`subgrid`)]}}),n(`grid-cols`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-columns`]}]),n(`grid-rows`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-rows`]}]),r(`flex-row`,[[`flex-direction`,`row`]]),r(`flex-row-reverse`,[[`flex-direction`,`row-reverse`]]),r(`flex-col`,[[`flex-direction`,`column`]]),r(`flex-col-reverse`,[[`flex-direction`,`column-reverse`]]),r(`flex-wrap`,[[`flex-wrap`,`wrap`]]),r(`flex-nowrap`,[[`flex-wrap`,`nowrap`]]),r(`flex-wrap-reverse`,[[`flex-wrap`,`wrap-reverse`]]),r(`place-content-center`,[[`place-content`,`center`]]),r(`place-content-start`,[[`place-content`,`start`]]),r(`place-content-end`,[[`place-content`,`end`]]),r(`place-content-center-safe`,[[`place-content`,`safe center`]]),r(`place-content-end-safe`,[[`place-content`,`safe end`]]),r(`place-content-between`,[[`place-content`,`space-between`]]),r(`place-content-around`,[[`place-content`,`space-around`]]),r(`place-content-evenly`,[[`place-content`,`space-evenly`]]),r(`place-content-baseline`,[[`place-content`,`baseline`]]),r(`place-content-stretch`,[[`place-content`,`stretch`]]),r(`place-items-center`,[[`place-items`,`center`]]),r(`place-items-start`,[[`place-items`,`start`]]),r(`place-items-end`,[[`place-items`,`end`]]),r(`place-items-center-safe`,[[`place-items`,`safe center`]]),r(`place-items-end-safe`,[[`place-items`,`safe end`]]),r(`place-items-baseline`,[[`place-items`,`baseline`]]),r(`place-items-stretch`,[[`place-items`,`stretch`]]),r(`content-normal`,[[`align-content`,`normal`]]),r(`content-center`,[[`align-content`,`center`]]),r(`content-start`,[[`align-content`,`flex-start`]]),r(`content-end`,[[`align-content`,`flex-end`]]),r(`content-center-safe`,[[`align-content`,`safe center`]]),r(`content-end-safe`,[[`align-content`,`safe flex-end`]]),r(`content-between`,[[`align-content`,`space-between`]]),r(`content-around`,[[`align-content`,`space-around`]]),r(`content-evenly`,[[`align-content`,`space-evenly`]]),r(`content-baseline`,[[`align-content`,`baseline`]]),r(`content-stretch`,[[`align-content`,`stretch`]]),r(`items-center`,[[`align-items`,`center`]]),r(`items-start`,[[`align-items`,`flex-start`]]),r(`items-end`,[[`align-items`,`flex-end`]]),r(`items-center-safe`,[[`align-items`,`safe center`]]),r(`items-end-safe`,[[`align-items`,`safe flex-end`]]),r(`items-baseline`,[[`align-items`,`baseline`]]),r(`items-baseline-last`,[[`align-items`,`last baseline`]]),r(`items-stretch`,[[`align-items`,`stretch`]]),r(`justify-normal`,[[`justify-content`,`normal`]]),r(`justify-center`,[[`justify-content`,`center`]]),r(`justify-start`,[[`justify-content`,`flex-start`]]),r(`justify-end`,[[`justify-content`,`flex-end`]]),r(`justify-center-safe`,[[`justify-content`,`safe center`]]),r(`justify-end-safe`,[[`justify-content`,`safe flex-end`]]),r(`justify-between`,[[`justify-content`,`space-between`]]),r(`justify-around`,[[`justify-content`,`space-around`]]),r(`justify-evenly`,[[`justify-content`,`space-evenly`]]),r(`justify-baseline`,[[`justify-content`,`baseline`]]),r(`justify-stretch`,[[`justify-content`,`stretch`]]),r(`justify-items-normal`,[[`justify-items`,`normal`]]),r(`justify-items-center`,[[`justify-items`,`center`]]),r(`justify-items-start`,[[`justify-items`,`start`]]),r(`justify-items-end`,[[`justify-items`,`end`]]),r(`justify-items-center-safe`,[[`justify-items`,`safe center`]]),r(`justify-items-end-safe`,[[`justify-items`,`safe end`]]),r(`justify-items-stretch`,[[`justify-items`,`stretch`]]),o(`gap`,[`--gap`,`--spacing`],e=>[R(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[R(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[R(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ft.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-x-reverse`,`0`)]),I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`row-gap`),R(`--tw-space-x-reverse`,`0`),R(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),R(`margin-inline-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-x-reverse)))`)])]},{supportsNegative:!0}),o(`space-y`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ft.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-y-reverse`,`0`)]),I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`column-gap`),R(`--tw-space-y-reverse`,`0`),R(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),R(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>z([U(`--tw-space-x-reverse`,`0`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`row-gap`),R(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>z([U(`--tw-space-y-reverse`,`0`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`column-gap`),R(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[R(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[R(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-color`),R(`border-color`,e)])]}),r(`place-self-auto`,[[`place-self`,`auto`]]),r(`place-self-start`,[[`place-self`,`start`]]),r(`place-self-end`,[[`place-self`,`end`]]),r(`place-self-center`,[[`place-self`,`center`]]),r(`place-self-end-safe`,[[`place-self`,`safe end`]]),r(`place-self-center-safe`,[[`place-self`,`safe center`]]),r(`place-self-stretch`,[[`place-self`,`stretch`]]),r(`self-auto`,[[`align-self`,`auto`]]),r(`self-start`,[[`align-self`,`flex-start`]]),r(`self-end`,[[`align-self`,`flex-end`]]),r(`self-center`,[[`align-self`,`center`]]),r(`self-end-safe`,[[`align-self`,`safe flex-end`]]),r(`self-center-safe`,[[`align-self`,`safe center`]]),r(`self-stretch`,[[`align-self`,`stretch`]]),r(`self-baseline`,[[`align-self`,`baseline`]]),r(`self-baseline-last`,[[`align-self`,`last baseline`]]),r(`justify-self-auto`,[[`justify-self`,`auto`]]),r(`justify-self-start`,[[`justify-self`,`flex-start`]]),r(`justify-self-end`,[[`justify-self`,`flex-end`]]),r(`justify-self-center`,[[`justify-self`,`center`]]),r(`justify-self-end-safe`,[[`justify-self`,`safe flex-end`]]),r(`justify-self-center-safe`,[[`justify-self`,`safe center`]]),r(`justify-self-stretch`,[[`justify-self`,`stretch`]]);for(let e of[`auto`,`hidden`,`clip`,`visible`,`scroll`])r(`overflow-${e}`,[[`overflow`,e]]),r(`overflow-x-${e}`,[[`overflow-x`,e]]),r(`overflow-y-${e}`,[[`overflow-y`,e]]);for(let e of[`auto`,`contain`,`none`])r(`overscroll-${e}`,[[`overscroll-behavior`,e]]),r(`overscroll-x-${e}`,[[`overscroll-behavior-x`,e]]),r(`overscroll-y-${e}`,[[`overscroll-behavior-y`,e]]);r(`scroll-auto`,[[`scroll-behavior`,`auto`]]),r(`scroll-smooth`,[[`scroll-behavior`,`smooth`]]),r(`scrollbar-auto`,[[`scrollbar-width`,`auto`]]),r(`scrollbar-thin`,[[`scrollbar-width`,`thin`]]),r(`scrollbar-none`,[[`scrollbar-width`,`none`]]);{let e=()=>z([U(`--tw-scrollbar-thumb`,`#0000`,`<color>`),U(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),R(`--tw-scrollbar-thumb`,t),R(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),R(`--tw-scrollbar-track`,t),R(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]})}r(`scrollbar-gutter-auto`,[[`scrollbar-gutter`,`auto`]]),r(`scrollbar-gutter-stable`,[[`scrollbar-gutter`,`stable`]]),r(`scrollbar-gutter-both`,[[`scrollbar-gutter`,`stable both-edges`]]),r(`truncate`,[[`overflow`,`hidden`],[`text-overflow`,`ellipsis`],[`white-space`,`nowrap`]]),r(`text-ellipsis`,[[`text-overflow`,`ellipsis`]]),r(`text-clip`,[[`text-overflow`,`clip`]]),r(`hyphens-none`,[[`-webkit-hyphens`,`none`],[`hyphens`,`none`]]),r(`hyphens-manual`,[[`-webkit-hyphens`,`manual`],[`hyphens`,`manual`]]),r(`hyphens-auto`,[[`-webkit-hyphens`,`auto`],[`hyphens`,`auto`]]),r(`whitespace-normal`,[[`white-space`,`normal`]]),r(`whitespace-nowrap`,[[`white-space`,`nowrap`]]),r(`whitespace-pre`,[[`white-space`,`pre`]]),r(`whitespace-pre-line`,[[`white-space`,`pre-line`]]),r(`whitespace-pre-wrap`,[[`white-space`,`pre-wrap`]]),r(`whitespace-break-spaces`,[[`white-space`,`break-spaces`]]),i(`tab`,{handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`tab-size`,e)]}),n(`tab`,()=>[{values:[`2`,`4`,`8`]}]),r(`text-wrap`,[[`text-wrap`,`wrap`]]),r(`text-nowrap`,[[`text-wrap`,`nowrap`]]),r(`text-balance`,[[`text-wrap`,`balance`]]),r(`text-pretty`,[[`text-wrap`,`pretty`]]),r(`break-normal`,[[`overflow-wrap`,`normal`],[`word-break`,`normal`]]),r(`break-all`,[[`word-break`,`break-all`]]),r(`break-keep`,[[`word-break`,`keep-all`]]),r(`wrap-anywhere`,[[`overflow-wrap`,`anywhere`]]),r(`wrap-break-word`,[[`overflow-wrap`,`break-word`]]),r(`wrap-normal`,[[`overflow-wrap`,`normal`]]);for(let[e,t]of[[`rounded`,[`border-radius`]],[`rounded-s`,[`border-start-start-radius`,`border-end-start-radius`]],[`rounded-e`,[`border-start-end-radius`,`border-end-end-radius`]],[`rounded-t`,[`border-top-left-radius`,`border-top-right-radius`]],[`rounded-r`,[`border-top-right-radius`,`border-bottom-right-radius`]],[`rounded-b`,[`border-bottom-right-radius`,`border-bottom-left-radius`]],[`rounded-l`,[`border-top-left-radius`,`border-bottom-left-radius`]],[`rounded-ss`,[`border-start-start-radius`]],[`rounded-se`,[`border-start-end-radius`]],[`rounded-ee`,[`border-end-end-radius`]],[`rounded-es`,[`border-end-start-radius`]],[`rounded-tl`,[`border-top-left-radius`]],[`rounded-tr`,[`border-top-right-radius`]],[`rounded-br`,[`border-bottom-right-radius`]],[`rounded-bl`,[`border-bottom-left-radius`]]])i(e,{themeKeys:[`--radius`],handle:e=>t.map(t=>R(t,e)),staticValues:{none:t.map(e=>R(e,`0`)),full:t.map(e=>R(e,`calc(infinity * 1px)`))}});r(`border-solid`,[[`--tw-border-style`,`solid`],[`border-style`,`solid`]]),r(`border-dashed`,[[`--tw-border-style`,`dashed`],[`border-style`,`dashed`]]),r(`border-dotted`,[[`--tw-border-style`,`dotted`],[`border-style`,`dotted`]]),r(`border-double`,[[`--tw-border-style`,`double`],[`border-style`,`double`]]),r(`border-hidden`,[[`--tw-border-style`,`hidden`],[`border-style`,`hidden`]]),r(`border-none`,[[`--tw-border-style`,`none`],[`border-style`,`none`]]);{let a=function(r,i){t.functional(r,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-border-width`])??`1px`,r=i.width(n);return r?[o(),...r]:void 0}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`line-width`,`length`])){case`line-width`:case`length`:{if(t.modifier)return;let e=i.width(n);return e?[o(),...e]:void 0}default:return n=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=rn(t,e,[`--border-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--border-width`]);if(n){let e=i.width(n);return e?[o(),...e]:void 0}if(H(t.value.value)){let e=i.width(`${t.value.value}px`);return e?[o(),...e]:void 0}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--border-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--border-width`]}])},o=()=>z([U(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[R(`border-style`,`var(--tw-border-style)`),R(`border-width`,e)],color:e=>[R(`border-color`,e)]}),a(`border-x`,{width:e=>[R(`border-inline-style`,`var(--tw-border-style)`),R(`border-inline-width`,e)],color:e=>[R(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[R(`border-block-style`,`var(--tw-border-style)`),R(`border-block-width`,e)],color:e=>[R(`border-block-color`,e)]}),a(`border-s`,{width:e=>[R(`border-inline-start-style`,`var(--tw-border-style)`),R(`border-inline-start-width`,e)],color:e=>[R(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[R(`border-inline-end-style`,`var(--tw-border-style)`),R(`border-inline-end-width`,e)],color:e=>[R(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[R(`border-block-start-style`,`var(--tw-border-style)`),R(`border-block-start-width`,e)],color:e=>[R(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[R(`border-block-end-style`,`var(--tw-border-style)`),R(`border-block-end-width`,e)],color:e=>[R(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[R(`border-top-style`,`var(--tw-border-style)`),R(`border-top-width`,e)],color:e=>[R(`border-top-color`,e)]}),a(`border-r`,{width:e=>[R(`border-right-style`,`var(--tw-border-style)`),R(`border-right-width`,e)],color:e=>[R(`border-right-color`,e)]}),a(`border-b`,{width:e=>[R(`border-bottom-style`,`var(--tw-border-style)`),R(`border-bottom-width`,e)],color:e=>[R(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[R(`border-left-style`,`var(--tw-border-style)`),R(`border-left-width`,e)],color:e=>[R(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[z([U(`--tw-divide-x-reverse`,`0`)]),I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-x-width`),o(),R(`--tw-divide-x-reverse`,`0`),R(`border-inline-style`,`var(--tw-border-style)`),R(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),R(`border-inline-end-width`,`calc(${e} * calc(1 - var(--tw-divide-x-reverse)))`)])]}),i(`divide-y`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[z([U(`--tw-divide-y-reverse`,`0`)]),I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-y-width`),o(),R(`--tw-divide-y-reverse`,`0`),R(`border-bottom-style`,`var(--tw-border-style)`),R(`border-top-style`,`var(--tw-border-style)`),R(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),R(`border-bottom-width`,`calc(${e} * calc(1 - var(--tw-divide-y-reverse)))`)])]}),n(`divide-x`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),n(`divide-y`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),r(`divide-x-reverse`,[()=>z([U(`--tw-divide-x-reverse`,`0`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([U(`--tw-divide-y-reverse`,`0`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>I(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-style`),R(`--tw-border-style`,e),R(`border-style`,e)])])}r(`bg-auto`,[[`background-size`,`auto`]]),r(`bg-cover`,[[`background-size`,`cover`]]),r(`bg-contain`,[[`background-size`,`contain`]]),i(`bg-size`,{handle(e){if(e)return[R(`background-size`,e)]}}),r(`bg-fixed`,[[`background-attachment`,`fixed`]]),r(`bg-local`,[[`background-attachment`,`local`]]),r(`bg-scroll`,[[`background-attachment`,`scroll`]]),r(`bg-top`,[[`background-position`,`top`]]),r(`bg-top-left`,[[`background-position`,`left top`]]),r(`bg-top-right`,[[`background-position`,`right top`]]),r(`bg-bottom`,[[`background-position`,`bottom`]]),r(`bg-bottom-left`,[[`background-position`,`left bottom`]]),r(`bg-bottom-right`,[[`background-position`,`right bottom`]]),r(`bg-left`,[[`background-position`,`left`]]),r(`bg-right`,[[`background-position`,`right`]]),r(`bg-center`,[[`background-position`,`center`]]),i(`bg-position`,{handle(e){if(e)return[R(`background-position`,e)]}}),r(`bg-repeat`,[[`background-repeat`,`repeat`]]),r(`bg-no-repeat`,[[`background-repeat`,`no-repeat`]]),r(`bg-repeat-x`,[[`background-repeat`,`repeat-x`]]),r(`bg-repeat-y`,[[`background-repeat`,`repeat-y`]]),r(`bg-repeat-round`,[[`background-repeat`,`round`]]),r(`bg-repeat-space`,[[`background-repeat`,`space`]]),r(`bg-none`,[[`background-image`,`none`]]);{let e=function(e){let t=`in oklab`;if(e?.kind===`named`)switch(e.value){case`longer`:case`shorter`:case`increasing`:case`decreasing`:t=`in oklch ${e.value} hue`;break;default:t=`in ${e.value}`}else e?.kind===`arbitrary`&&(t=e.value);return t},r=function({negative:t}){return n=>{if(!n.value)return;if(n.value.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return(n.value.dataType??V(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[R(`--tw-gradient-position`,e),R(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[R(`--tw-gradient-position`,e),R(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]}let r=n.value.value;if(!t&&o.has(r))r=o.get(r);else if(H(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[R(`--tw-gradient-position`,`${r}`),Se(`@supports (background-image: linear-gradient(in lab, red, red))`,[R(`--tw-gradient-position`,`${r} ${i}`)]),R(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]}},i=function({negative:t}){return n=>{if(n.value?.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return[R(`--tw-gradient-position`,e),R(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[R(`--tw-gradient-position`,r),R(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(H(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[R(`--tw-gradient-position`,`from ${i} ${r}`),R(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)]}},a=[`oklab`,`oklch`,`srgb`,`hsl`,`longer`,`shorter`,`increasing`,`decreasing`],o=new Map([[`to-t`,`to top`],[`to-tr`,`to top right`],[`to-r`,`to right`],[`to-br`,`to bottom right`],[`to-b`,`to bottom`],[`to-bl`,`to bottom left`],[`to-l`,`to left`],[`to-tl`,`to top left`]]);t.functional(`-bg-linear`,r({negative:!0})),t.functional(`bg-linear`,r({negative:!1})),n(`bg-linear`,()=>[{values:[...o.keys()],modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`-bg-conic`,i({negative:!0})),t.functional(`bg-conic`,i({negative:!1})),n(`bg-conic`,()=>[{hasDefaultValue:!0,modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`bg-radial`,t=>{if(!t.value)return[R(`--tw-gradient-position`,e(t.modifier)),R(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[R(`--tw-gradient-position`,e),R(`background-image`,`radial-gradient(var(--tw-gradient-stops,${e}))`)]}}),n(`bg-radial`,()=>[{hasDefaultValue:!0,modifiers:a}])}t.functional(`bg`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[R(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[R(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[R(`background-image`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[R(`background-color`,n)]}}{let n=rn(t,e,[`--background-color`,`--color`]);if(n)return[R(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[R(`background-image`,n)]}}}),n(`bg`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--background-image`]}]);let m=()=>z([U(`--tw-gradient-position`),U(`--tw-gradient-from`,`#0000`,`<color>`),U(`--tw-gradient-via`,`#0000`,`<color>`),U(`--tw-gradient-to`,`#0000`,`<color>`),U(`--tw-gradient-stops`),U(`--tw-gradient-via-stops`),U(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),U(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),U(`--tw-gradient-to-position`,`100%`,`<length-percentage>`)]);function h(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=rn(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--gradient-color-stop-positions`]);if(n)return i.position(n);if(t.value.value[t.value.value.length-1]===`%`&&H(t.value.value.slice(0,-1)))return i.position(t.value.value)}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}])}h(`from`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-from`),R(`--tw-gradient-from`,e),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),R(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-via`),R(`--tw-gradient-via`,e),R(`--tw-gradient-via-stops`,`var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position)`),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),R(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-to`),R(`--tw-gradient-to`,e),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),R(`--tw-gradient-to-position`,e)]}),r(`mask-none`,[[`mask-image`,`none`]]),t.functional(`mask`,e=>{if(!e.value||e.modifier||e.value.kind!==`arbitrary`)return;let t=e.value.value;switch(e.value.dataType??V(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[R(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[R(`mask-size`,t)];default:return[R(`mask-image`,t)]}}),r(`mask-add`,[[`mask-composite`,`add`]]),r(`mask-subtract`,[[`mask-composite`,`subtract`]]),r(`mask-intersect`,[[`mask-composite`,`intersect`]]),r(`mask-exclude`,[[`mask-composite`,`exclude`]]),r(`mask-alpha`,[[`mask-mode`,`alpha`]]),r(`mask-luminance`,[[`mask-mode`,`luminance`]]),r(`mask-match`,[[`mask-mode`,`match-source`]]),r(`mask-type-alpha`,[[`mask-type`,`alpha`]]),r(`mask-type-luminance`,[[`mask-type`,`luminance`]]),r(`mask-auto`,[[`mask-size`,`auto`]]),r(`mask-cover`,[[`mask-size`,`cover`]]),r(`mask-contain`,[[`mask-size`,`contain`]]),i(`mask-size`,{handle(e){if(e)return[R(`mask-size`,e)]}}),r(`mask-top`,[[`mask-position`,`top`]]),r(`mask-top-left`,[[`mask-position`,`left top`]]),r(`mask-top-right`,[[`mask-position`,`right top`]]),r(`mask-bottom`,[[`mask-position`,`bottom`]]),r(`mask-bottom-left`,[[`mask-position`,`left bottom`]]),r(`mask-bottom-right`,[[`mask-position`,`right bottom`]]),r(`mask-left`,[[`mask-position`,`left`]]),r(`mask-right`,[[`mask-position`,`right`]]),r(`mask-center`,[[`mask-position`,`center`]]),i(`mask-position`,{handle(e){if(e)return[R(`mask-position`,e)]}}),r(`mask-repeat`,[[`mask-repeat`,`repeat`]]),r(`mask-no-repeat`,[[`mask-repeat`,`no-repeat`]]),r(`mask-repeat-x`,[[`mask-repeat`,`repeat-x`]]),r(`mask-repeat-y`,[[`mask-repeat`,`repeat-y`]]),r(`mask-repeat-round`,[[`mask-repeat`,`round`]]),r(`mask-repeat-space`,[[`mask-repeat`,`space`]]),r(`mask-clip-border`,[[`mask-clip`,`border-box`]]),r(`mask-clip-padding`,[[`mask-clip`,`padding-box`]]),r(`mask-clip-content`,[[`mask-clip`,`content-box`]]),r(`mask-clip-fill`,[[`mask-clip`,`fill-box`]]),r(`mask-clip-stroke`,[[`mask-clip`,`stroke-box`]]),r(`mask-clip-view`,[[`mask-clip`,`view-box`]]),r(`mask-no-clip`,[[`mask-clip`,`no-clip`]]),r(`mask-origin-border`,[[`mask-origin`,`border-box`]]),r(`mask-origin-padding`,[[`mask-origin`,`padding-box`]]),r(`mask-origin-content`,[[`mask-origin`,`content-box`]]),r(`mask-origin-fill`,[[`mask-origin`,`fill-box`]]),r(`mask-origin-stroke`,[[`mask-origin`,`stroke-box`]]),r(`mask-origin-view`,[[`mask-origin`,`view-box`]]);let g=()=>z([U(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-conic`,`linear-gradient(#fff, #fff)`)]);function _(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`length`,`percentage`,`color`])){case`color`:return n=W(n,t.modifier,e),n===null?void 0:i.color(n);case`percentage`:return t.modifier||!H(n.slice(0,-1))?void 0:i.position(n);default:return t.modifier?void 0:i.position(n)}}{let n=rn(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=V(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!Gt(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return H(t.value.value.slice(0,-1))?i.position(t.value.value):void 0;default:return}}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}]),n(r,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}%`)},{values:e.get([`--spacing`])?$t:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>z([U(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(R(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(z([U(`--tw-mask-${i}-from-position`,`0%`),U(`--tw-mask-${i}-to-position`,`100%`),U(`--tw-mask-${i}-from-color`,`black`),U(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(R(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(R(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(z([U(`--tw-mask-${i}-from-position`,`0%`),U(`--tw-mask-${i}-to-position`,`100%`),U(`--tw-mask-${i}-from-color`,`black`),U(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(R(`--tw-mask-${i}-${t}-position`,e)));return r}})}y(`mask-x-from`,`from`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-x-to`,`to`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-y-from`,`from`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-y-to`,`to`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-t-from`,`from`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-t-to`,`to`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-r-from`,`from`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-r-to`,`to`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-b-from`,`from`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-b-to`,`to`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-l-from`,`from`,{top:!1,right:!1,bottom:!1,left:!0}),y(`mask-l-to`,`to`,{top:!1,right:!1,bottom:!1,left:!0});let b=()=>z([U(`--tw-mask-linear-position`,`0deg`),U(`--tw-mask-linear-from-position`,`0%`),U(`--tw-mask-linear-to-position`,`100%`),U(`--tw-mask-linear-from-color`,`black`),U(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),R(`--tw-mask-linear-position`,e)]}),n(`mask-linear`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-linear-from`,{color:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-to-position`,e)]});let x=()=>z([U(`--tw-mask-radial-from-position`,`0%`),U(`--tw-mask-radial-to-position`,`100%`),U(`--tw-mask-radial-from-color`,`black`),U(`--tw-mask-radial-to-color`,`transparent`),U(`--tw-mask-radial-shape`,`ellipse`),U(`--tw-mask-radial-size`,`farthest-corner`),U(`--tw-mask-radial-position`,`center`)]);r(`mask-circle`,[[`--tw-mask-radial-shape`,`circle`]]),r(`mask-ellipse`,[[`--tw-mask-radial-shape`,`ellipse`]]),r(`mask-radial-closest-side`,[[`--tw-mask-radial-size`,`closest-side`]]),r(`mask-radial-farthest-side`,[[`--tw-mask-radial-size`,`farthest-side`]]),r(`mask-radial-closest-corner`,[[`--tw-mask-radial-size`,`closest-corner`]]),r(`mask-radial-farthest-corner`,[[`--tw-mask-radial-size`,`farthest-corner`]]),r(`mask-radial-at-top`,[[`--tw-mask-radial-position`,`top`]]),r(`mask-radial-at-top-left`,[[`--tw-mask-radial-position`,`top left`]]),r(`mask-radial-at-top-right`,[[`--tw-mask-radial-position`,`top right`]]),r(`mask-radial-at-bottom`,[[`--tw-mask-radial-position`,`bottom`]]),r(`mask-radial-at-bottom-left`,[[`--tw-mask-radial-position`,`bottom left`]]),r(`mask-radial-at-bottom-right`,[[`--tw-mask-radial-position`,`bottom right`]]),r(`mask-radial-at-left`,[[`--tw-mask-radial-position`,`left`]]),r(`mask-radial-at-right`,[[`--tw-mask-radial-position`,`right`]]),r(`mask-radial-at-center`,[[`--tw-mask-radial-position`,`center`]]),i(`mask-radial-at`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[R(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),R(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-to-position`,e)]});let S=()=>z([U(`--tw-mask-conic-position`,`0deg`),U(`--tw-mask-conic-from-position`,`0%`),U(`--tw-mask-conic-to-position`,`100%`),U(`--tw-mask-conic-from-color`,`black`),U(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),R(`--tw-mask-conic-position`,e)]}),n(`mask-conic`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-conic-from`,{color:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-to-position`,e)]}),r(`box-decoration-slice`,[[`-webkit-box-decoration-break`,`slice`],[`box-decoration-break`,`slice`]]),r(`box-decoration-clone`,[[`-webkit-box-decoration-break`,`clone`],[`box-decoration-break`,`clone`]]),r(`bg-clip-text`,[[`background-clip`,`text`]]),r(`bg-clip-border`,[[`background-clip`,`border-box`]]),r(`bg-clip-padding`,[[`background-clip`,`padding-box`]]),r(`bg-clip-content`,[[`background-clip`,`content-box`]]),r(`bg-origin-border`,[[`background-origin`,`border-box`]]),r(`bg-origin-padding`,[[`background-origin`,`padding-box`]]),r(`bg-origin-content`,[[`background-origin`,`content-box`]]);for(let e of[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`])r(`bg-blend-${e}`,[[`background-blend-mode`,e]]),r(`mix-blend-${e}`,[[`mix-blend-mode`,e]]);r(`mix-blend-plus-darker`,[[`mix-blend-mode`,`plus-darker`]]),r(`mix-blend-plus-lighter`,[[`mix-blend-mode`,`plus-lighter`]]),r(`fill-none`,[[`fill`,`none`]]),t.functional(`fill`,t=>{if(!t.value)return;if(t.value.kind===`arbitrary`){let n=W(t.value.value,t.modifier,e);return n===null?void 0:[R(`fill`,n)]}let n=rn(t,e,[`--fill`,`--color`]);if(n)return[R(`fill`,n)]}),n(`fill`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--fill`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}]),r(`stroke-none`,[[`stroke`,`none`]]),t.functional(`stroke`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[R(`stroke-width`,n)];default:return n=W(t.value.value,t.modifier,e),n===null?void 0:[R(`stroke`,n)]}}{let n=rn(t,e,[`--stroke`,`--color`]);if(n)return[R(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[R(`stroke-width`,n)];if(H(t.value.value))return[R(`stroke-width`,t.value.value)]}}}),n(`stroke`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--stroke`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`3`],valueThemeKeys:[`--stroke-width`]}]),r(`object-contain`,[[`object-fit`,`contain`]]),r(`object-cover`,[[`object-fit`,`cover`]]),r(`object-fill`,[[`object-fit`,`fill`]]),r(`object-none`,[[`object-fit`,`none`]]),r(`object-scale-down`,[[`object-fit`,`scale-down`]]),i(`object`,{themeKeys:[`--object-position`],handle:e=>[R(`object-position`,e)],staticValues:{top:[R(`object-position`,`top`)],"top-left":[R(`object-position`,`left top`)],"top-right":[R(`object-position`,`right top`)],bottom:[R(`object-position`,`bottom`)],"bottom-left":[R(`object-position`,`left bottom`)],"bottom-right":[R(`object-position`,`right bottom`)],left:[R(`object-position`,`left`)],right:[R(`object-position`,`right`)],center:[R(`object-position`,`center`)]}});for(let[e,t]of[[`p`,`padding`],[`px`,`padding-inline`],[`py`,`padding-block`],[`ps`,`padding-inline-start`],[`pe`,`padding-inline-end`],[`pbs`,`padding-block-start`],[`pbe`,`padding-block-end`],[`pt`,`padding-top`],[`pr`,`padding-right`],[`pb`,`padding-bottom`],[`pl`,`padding-left`]])o(e,[`--padding`,`--spacing`],e=>[R(t,e)]);r(`text-left`,[[`text-align`,`left`]]),r(`text-center`,[[`text-align`,`center`]]),r(`text-right`,[[`text-align`,`right`]]),r(`text-justify`,[[`text-align`,`justify`]]),r(`text-start`,[[`text-align`,`start`]]),r(`text-end`,[[`text-align`,`end`]]),o(`indent`,[`--text-indent`,`--spacing`],e=>[R(`text-indent`,e)],{supportsNegative:!0}),r(`align-baseline`,[[`vertical-align`,`baseline`]]),r(`align-top`,[[`vertical-align`,`top`]]),r(`align-middle`,[[`vertical-align`,`middle`]]),r(`align-bottom`,[[`vertical-align`,`bottom`]]),r(`align-text-top`,[[`vertical-align`,`text-top`]]),r(`align-text-bottom`,[[`vertical-align`,`text-bottom`]]),r(`align-sub`,[[`vertical-align`,`sub`]]),r(`align-super`,[[`vertical-align`,`super`]]),i(`align`,{themeKeys:[],handle:e=>[R(`vertical-align`,e)]}),t.functional(`font`,t=>{if(t.value&&!t.modifier){if(t.value.kind===`arbitrary`){let e=t.value.value;switch(t.value.dataType??V(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[R(`font-family`,e)];default:return[z([U(`--tw-font-weight`)]),R(`--tw-font-weight`,e),R(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[R(`font-family`,e),R(`font-feature-settings`,t[`--font-feature-settings`]),R(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[z([U(`--tw-font-weight`)]),R(`--tw-font-weight`,n),R(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[R(`font-feature-settings`,e)]}),r(`uppercase`,[[`text-transform`,`uppercase`]]),r(`lowercase`,[[`text-transform`,`lowercase`]]),r(`capitalize`,[[`text-transform`,`capitalize`]]),r(`normal-case`,[[`text-transform`,`none`]]),r(`italic`,[[`font-style`,`italic`]]),r(`not-italic`,[[`font-style`,`normal`]]),r(`underline`,[[`text-decoration-line`,`underline`]]),r(`overline`,[[`text-decoration-line`,`overline`]]),r(`line-through`,[[`text-decoration-line`,`line-through`]]),r(`no-underline`,[[`text-decoration-line`,`none`]]),r(`font-stretch-normal`,[[`font-stretch`,`normal`]]),r(`font-stretch-ultra-condensed`,[[`font-stretch`,`ultra-condensed`]]),r(`font-stretch-extra-condensed`,[[`font-stretch`,`extra-condensed`]]),r(`font-stretch-condensed`,[[`font-stretch`,`condensed`]]),r(`font-stretch-semi-condensed`,[[`font-stretch`,`semi-condensed`]]),r(`font-stretch-semi-expanded`,[[`font-stretch`,`semi-expanded`]]),r(`font-stretch-expanded`,[[`font-stretch`,`expanded`]]),r(`font-stretch-extra-expanded`,[[`font-stretch`,`extra-expanded`]]),r(`font-stretch-ultra-expanded`,[[`font-stretch`,`ultra-expanded`]]),i(`font-stretch`,{handleBareValue:({value:e})=>{if(!e.endsWith(`%`))return null;let t=Number(e.slice(0,-1));return!H(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[R(`font-stretch`,e)]}),n(`font-stretch`,()=>[{values:[`50%`,`75%`,`90%`,`95%`,`100%`,`105%`,`110%`,`125%`,`150%`,`200%`]}]),a(`placeholder`,{themeKeys:[`--placeholder-color`,`--color`],handle:e=>[I(`&::placeholder`,[R(`--tw-sort`,`placeholder-color`),R(`color`,e)])]}),r(`decoration-solid`,[[`text-decoration-style`,`solid`]]),r(`decoration-double`,[[`text-decoration-style`,`double`]]),r(`decoration-dotted`,[[`text-decoration-style`,`dotted`]]),r(`decoration-dashed`,[[`text-decoration-style`,`dashed`]]),r(`decoration-wavy`,[[`text-decoration-style`,`wavy`]]),r(`decoration-auto`,[[`text-decoration-thickness`,`auto`]]),r(`decoration-from-font`,[[`text-decoration-thickness`,`from-font`]]),t.functional(`decoration`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[R(`text-decoration-thickness`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[R(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[R(`text-decoration-thickness`,n)];if(H(t.value.value))return t.modifier?void 0:[R(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=rn(t,e,[`--text-decoration-color`,`--color`]);if(n)return[R(`text-decoration-color`,n)]}}}),n(`decoration`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-decoration-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`],valueThemeKeys:[`--text-decoration-thickness`]}]),i(`animate`,{themeKeys:[`--animate`],handle:e=>[R(`animation`,e)],staticValues:{none:[R(`animation`,`none`)]}});{let a=[`var(--tw-blur,)`,`var(--tw-brightness,)`,`var(--tw-contrast,)`,`var(--tw-grayscale,)`,`var(--tw-hue-rotate,)`,`var(--tw-invert,)`,`var(--tw-saturate,)`,`var(--tw-sepia,)`,`var(--tw-drop-shadow,)`].join(` `),o=[`var(--tw-backdrop-blur,)`,`var(--tw-backdrop-brightness,)`,`var(--tw-backdrop-contrast,)`,`var(--tw-backdrop-grayscale,)`,`var(--tw-backdrop-hue-rotate,)`,`var(--tw-backdrop-invert,)`,`var(--tw-backdrop-opacity,)`,`var(--tw-backdrop-saturate,)`,`var(--tw-backdrop-sepia,)`].join(` `),s=()=>z([U(`--tw-blur`),U(`--tw-brightness`),U(`--tw-contrast`),U(`--tw-grayscale`),U(`--tw-hue-rotate`),U(`--tw-invert`),U(`--tw-opacity`),U(`--tw-saturate`),U(`--tw-sepia`),U(`--tw-drop-shadow`),U(`--tw-drop-shadow-color`),U(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-drop-shadow-size`)]),c=()=>z([U(`--tw-backdrop-blur`),U(`--tw-backdrop-brightness`),U(`--tw-backdrop-contrast`),U(`--tw-backdrop-grayscale`),U(`--tw-backdrop-hue-rotate`),U(`--tw-backdrop-invert`),U(`--tw-backdrop-opacity`),U(`--tw-backdrop-saturate`),U(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),R(`filter`,a)];if(e.value.kind===`arbitrary`)return[R(`filter`,e.value.value)];if(e.value.value===`none`)return[R(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[R(`-webkit-backdrop-filter`,e.value.value),R(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[R(`-webkit-backdrop-filter`,`none`),R(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),R(`--tw-blur`,`blur(${e})`),R(`filter`,a)],staticValues:{none:[s(),R(`--tw-blur`,` `),R(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),R(`--tw-backdrop-blur`,`blur(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)],staticValues:{none:[c(),R(`--tw-backdrop-blur`,` `),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-brightness`,`brightness(${e})`),R(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-brightness`,`brightness(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--brightness`]}]),n(`backdrop-brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-brightness`,`--brightness`]}]),i(`contrast`,{themeKeys:[`--contrast`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-contrast`,`contrast(${e})`),R(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-contrast`,`contrast(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--contrast`]}]),n(`backdrop-contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-contrast`,`--contrast`]}]),i(`grayscale`,{themeKeys:[`--grayscale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-grayscale`,`grayscale(${e})`),R(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-grayscale`,`grayscale(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--grayscale`],hasDefaultValue:!0}]),n(`backdrop-grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-grayscale`,`--grayscale`],hasDefaultValue:!0}]),i(`hue-rotate`,{supportsNegative:!0,themeKeys:[`--hue-rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:e=>[s(),R(`--tw-hue-rotate`,`hue-rotate(${e})`),R(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:e=>[c(),R(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--hue-rotate`]}]),n(`backdrop-hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`]}]),i(`invert`,{themeKeys:[`--invert`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-invert`,`invert(${e})`),R(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-invert`,`invert(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--invert`],hasDefaultValue:!0}]),n(`backdrop-invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-invert`,`--invert`],hasDefaultValue:!0}]),i(`saturate`,{themeKeys:[`--saturate`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-saturate`,`saturate(${e})`),R(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-saturate`,`saturate(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--saturate`]}]),n(`backdrop-saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--backdrop-saturate`,`--saturate`]}]),i(`sepia`,{themeKeys:[`--sepia`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-sepia`,`sepia(${e})`),R(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-sepia`,`sepia(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--sepia`],hasDefaultValue:!0}]),n(`backdrop-sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--backdrop-sepia`,`--sepia`],hasDefaultValue:!0}]),r(`drop-shadow-none`,[s,[`--tw-drop-shadow`,` `],[`filter`,a]]),t.functional(`drop-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--drop-shadow`]),r=e.resolve(null,[`--drop-shadow`]);return t===null||r===null?void 0:[s(),R(`--tw-drop-shadow-alpha`,n),...dn(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,A(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[s(),R(`--tw-drop-shadow-color`,tn(r,`var(--tw-drop-shadow-alpha)`)),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),R(`--tw-drop-shadow-alpha`,n),...dn(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),R(`filter`,a)]}{let r=e.get([`--drop-shadow-${t.value.value}`]),i=e.resolve(t.value.value,[`--drop-shadow`]);if(r&&i)return t.modifier&&!n?void 0:n?[s(),R(`--tw-drop-shadow-alpha`,n),...dn(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),R(`filter`,a)]:[s(),R(`--tw-drop-shadow-alpha`,n),...dn(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,A(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}{let n=rn(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),R(`--tw-drop-shadow-color`,`inherit`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),R(`--tw-drop-shadow-color`,tn(n,`var(--tw-drop-shadow-alpha)`)),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]}}),n(`drop-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--drop-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{valueThemeKeys:[`--drop-shadow`]}]),i(`backdrop-opacity`,{themeKeys:[`--backdrop-opacity`,`--opacity`],handleBareValue:({value:e})=>Kt(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-opacity`,`opacity(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`backdrop-opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--backdrop-opacity`,`--opacity`]}])}{let a=`var(--tw-ease, ${e.resolve(null,[`--default-transition-timing-function`])??`ease`})`,o=`var(--tw-duration, ${e.resolve(null,[`--default-transition-duration`])??`0s`})`;i(`transition`,{defaultValue:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events`,themeKeys:[`--transition-property`],handle:e=>[R(`transition-property`,e),R(`transition-timing-function`,a),R(`transition-duration`,o)],staticValues:{none:[R(`transition-property`,`none`)],all:[R(`transition-property`,`all`),R(`transition-timing-function`,a),R(`transition-duration`,o)],colors:[R(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),R(`transition-timing-function`,a),R(`transition-duration`,o)],opacity:[R(`transition-property`,`opacity`),R(`transition-timing-function`,a),R(`transition-duration`,o)],shadow:[R(`transition-property`,`box-shadow`),R(`transition-timing-function`,a),R(`transition-duration`,o)],transform:[R(`transition-property`,`transform, translate, scale, rotate`),R(`transition-timing-function`,a),R(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>H(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[R(`transition-delay`,e)]});{let n=()=>z([U(`--tw-duration`)]);r(`duration-initial`,[n,[`--tw-duration`,`initial`]]),t.functional(`duration`,t=>{if(t.modifier||!t.value)return;let r=null;if(t.value.kind===`arbitrary`?r=t.value.value:(r=e.resolve(t.value.fraction??t.value.value,[`--transition-duration`]),r===null&&H(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),R(`--tw-duration`,r),R(`transition-duration`,r)]})}n(`delay`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-delay`]}]),n(`duration`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-duration`]}])}{let e=()=>z([U(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),R(`--tw-ease`,t),R(`transition-timing-function`,t)],staticValues:{initial:[e(),R(`--tw-ease`,`initial`)],linear:[e(),R(`--tw-ease`,`linear`),R(`transition-timing-function`,`linear`)]}})}r(`will-change-auto`,[[`will-change`,`auto`]]),r(`will-change-scroll`,[[`will-change`,`scroll-position`]]),r(`will-change-contents`,[[`will-change`,`contents`]]),r(`will-change-transform`,[[`will-change`,`transform`]]),i(`will-change`,{themeKeys:[],handle:e=>[R(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[z([U(`--tw-content`,`""`)]),R(`--tw-content`,e),R(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>z([U(`--tw-contain-size`),U(`--tw-contain-layout`),U(`--tw-contain-paint`),U(`--tw-contain-style`)]);r(`contain-none`,[[`contain`,`none`]]),r(`contain-content`,[[`contain`,`content`]]),r(`contain-strict`,[[`contain`,`strict`]]),r(`contain-size`,[t,[`--tw-contain-size`,`size`],[`contain`,e]]),r(`contain-inline-size`,[t,[`--tw-contain-size`,`inline-size`],[`contain`,e]]),r(`contain-layout`,[t,[`--tw-contain-layout`,`layout`],[`contain`,e]]),r(`contain-paint`,[t,[`--tw-contain-paint`,`paint`],[`contain`,e]]),r(`contain-style`,[t,[`--tw-contain-style`,`style`],[`contain`,e]]),i(`contain`,{themeKeys:[],handle:e=>[R(`contain`,e)]})}r(`forced-color-adjust-none`,[[`forced-color-adjust`,`none`]]),r(`forced-color-adjust-auto`,[[`forced-color-adjust`,`auto`]]),o(`leading`,[`--leading`,`--spacing`],e=>[z([U(`--tw-leading`)]),R(`--tw-leading`,e),R(`line-height`,e)],{staticValues:{none:[z([U(`--tw-leading`)]),R(`--tw-leading`,`1`),R(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[z([U(`--tw-tracking`)]),R(`--tw-tracking`,e),R(`letter-spacing`,e)]}),r(`antialiased`,[[`-webkit-font-smoothing`,`antialiased`],[`-moz-osx-font-smoothing`,`grayscale`]]),r(`subpixel-antialiased`,[[`-webkit-font-smoothing`,`auto`],[`-moz-osx-font-smoothing`,`auto`]]);{let e=`var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)`,t=()=>z([U(`--tw-ordinal`),U(`--tw-slashed-zero`),U(`--tw-numeric-figure`),U(`--tw-numeric-spacing`),U(`--tw-numeric-fraction`)]);r(`normal-nums`,[[`font-variant-numeric`,`normal`]]),r(`ordinal`,[t,[`--tw-ordinal`,`ordinal`],[`font-variant-numeric`,e]]),r(`slashed-zero`,[t,[`--tw-slashed-zero`,`slashed-zero`],[`font-variant-numeric`,e]]),r(`lining-nums`,[t,[`--tw-numeric-figure`,`lining-nums`],[`font-variant-numeric`,e]]),r(`oldstyle-nums`,[t,[`--tw-numeric-figure`,`oldstyle-nums`],[`font-variant-numeric`,e]]),r(`proportional-nums`,[t,[`--tw-numeric-spacing`,`proportional-nums`],[`font-variant-numeric`,e]]),r(`tabular-nums`,[t,[`--tw-numeric-spacing`,`tabular-nums`],[`font-variant-numeric`,e]]),r(`diagonal-fractions`,[t,[`--tw-numeric-fraction`,`diagonal-fractions`],[`font-variant-numeric`,e]]),r(`stacked-fractions`,[t,[`--tw-numeric-fraction`,`stacked-fractions`],[`font-variant-numeric`,e]])}{let a=()=>z([U(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[R(`--tw-outline-style`,`none`),R(`outline-style`,`none`),L(`@media`,`(forced-colors: active)`,[R(`outline`,`2px solid transparent`),R(`outline-offset`,`2px`)])]),r(`outline-none`,[[`--tw-outline-style`,`none`],[`outline-style`,`none`]]),r(`outline-solid`,[[`--tw-outline-style`,`solid`],[`outline-style`,`solid`]]),r(`outline-dashed`,[[`--tw-outline-style`,`dashed`],[`outline-style`,`dashed`]]),r(`outline-dotted`,[[`--tw-outline-style`,`dotted`],[`outline-style`,`dotted`]]),r(`outline-double`,[[`--tw-outline-style`,`double`],[`outline-style`,`double`]]),t.functional(`outline`,t=>{if(t.value===null){if(t.modifier)return;let n=e.get([`--default-outline-width`])??`1px`;return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[R(`outline-color`,n)]}}{let n=rn(t,e,[`--outline-color`,`--color`]);if(n)return[R(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)];if(H(t.value.value))return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,`${t.value.value}px`)]}}),n(`outline`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--outline-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-width`]}]),i(`outline-offset`,{supportsNegative:!0,themeKeys:[`--outline-offset`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[R(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>Kt(e)?`${e}%`:null,handle:e=>[R(`opacity`,e)]}),n(`opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--opacity`]}]),i(`underline-offset`,{supportsNegative:!0,themeKeys:[`--text-underline-offset`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[R(`text-underline-offset`,e)],staticValues:{auto:[R(`text-underline-offset`,`auto`)]}}),n(`underline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--text-underline-offset`]}]),t.functional(`text`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`,`absolute-size`,`relative-size`])){case`size`:case`length`:case`percentage`:case`absolute-size`:case`relative-size`:if(t.modifier){let r=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!r&&Gt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[R(`font-size`,n),R(`line-height`,r)]:null}return[R(`font-size`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[R(`color`,n)]}}{let n=rn(t,e,[`--text-color`,`--color`]);if(n)return[R(`color`,n)]}{let n=e.resolveWith(t.value.value,[`--text`],[`--line-height`,`--letter-spacing`,`--font-weight`]);if(n){let[r,i={}]=Array.isArray(n)?n:[n];if(t.modifier){let n=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!n&&Gt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;n=`--spacing(${t.modifier.value})`}if(!n&&t.modifier.value===`none`&&(n=`1`),!n)return null;let i=[R(`font-size`,r)];return n&&i.push(R(`line-height`,n)),i}return typeof i==`string`?[R(`font-size`,r),R(`line-height`,i)]:[R(`font-size`,r),R(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),R(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),R(`font-weight`,i[`--font-weight`]?`var(--tw-font-weight, ${i[`--font-weight`]})`:void 0)]}}}}),n(`text`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--text`],modifiers:[],modifierThemeKeys:[`--leading`]}]);let C=()=>z([U(`--tw-text-shadow-color`),U(`--tw-text-shadow-alpha`,`100%`,`<percentage>`)]);r(`text-shadow-initial`,[C,[`--tw-text-shadow-color`,`initial`]]),t.functional(`text-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),R(`--tw-text-shadow-alpha`,n),...un(`text-shadow`,t,n,e=>`var(--tw-text-shadow-color, ${e})`)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[C(),R(`--tw-text-shadow-color`,tn(r,`var(--tw-text-shadow-alpha)`))]):[C(),R(`--tw-text-shadow-alpha`,n),...un(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),R(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),R(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),R(`--tw-text-shadow-alpha`,n),...un(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=rn(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),R(`--tw-text-shadow-color`,tn(n,`var(--tw-text-shadow-alpha)`))]}}),n(`text-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--text-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--text-shadow`])!==null}]);{let i=function(e){return`var(--tw-ring-inset,) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${l})`},a=function(e){return`inset 0 0 0 ${e} var(--tw-inset-ring-color, currentcolor)`},o=[`var(--tw-inset-shadow)`,`var(--tw-inset-ring-shadow)`,`var(--tw-ring-offset-shadow)`,`var(--tw-ring-shadow)`,`var(--tw-shadow)`].join(`, `),s=`0 0 #0000`,c=()=>z([U(`--tw-shadow`,s),U(`--tw-shadow-color`),U(`--tw-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-inset-shadow`,s),U(`--tw-inset-shadow-color`),U(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-ring-color`),U(`--tw-ring-shadow`,s),U(`--tw-inset-ring-color`),U(`--tw-inset-ring-shadow`,s),U(`--tw-ring-inset`),U(`--tw-ring-offset-width`,`0px`,`<length>`),U(`--tw-ring-offset-color`,`#fff`),U(`--tw-ring-offset-shadow`,s)]);r(`shadow-initial`,[c,[`--tw-shadow-color`,`initial`]]),t.functional(`shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),R(`--tw-shadow-alpha`,n),...un(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-shadow-color`,tn(r,`var(--tw-shadow-alpha)`))]):[c(),R(`--tw-shadow-alpha`,n),...un(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),R(`--tw-shadow`,s),R(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),R(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),R(`--tw-shadow-alpha`,n),...un(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-shadow-color`,tn(n,`var(--tw-shadow-alpha)`))]}}),n(`shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--shadow`])!==null}]),r(`inset-shadow-initial`,[c,[`--tw-inset-shadow-color`,`initial`]]),t.functional(`inset-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),R(`--tw-inset-shadow-alpha`,n),...un(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-inset-shadow-color`,tn(r,`var(--tw-inset-shadow-alpha)`))]):[c(),R(`--tw-inset-shadow-alpha`,n),...un(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),R(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),R(`--tw-inset-shadow`,`inset ${s}`),R(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),R(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),R(`--tw-inset-shadow-alpha`,n),...un(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-inset-shadow-color`,tn(n,`var(--tw-inset-shadow-alpha)`))]}}),n(`inset-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--inset-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--inset-shadow`])!==null}]),r(`ring-inset`,[c,[`--tw-ring-inset`,`inset`]]);let l=e.get([`--default-ring-color`])??`currentcolor`;t.functional(`ring`,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-ring-width`])??`1px`;return[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-color`,n)])}{let n=rn(t,e,[`--ring-color`,`--color`]);if(n)return[R(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&H(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]}}),n(`ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]),t.functional(`inset-ring`,t=>{if(!t.value)return t.modifier?void 0:[c(),R(`--tw-inset-ring-shadow`,a(`1px`)),R(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-inset-ring-shadow`,a(n)),R(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[R(`--tw-inset-ring-color`,n)])}{let n=rn(t,e,[`--ring-color`,`--color`]);if(n)return[R(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&H(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),R(`--tw-inset-ring-shadow`,a(n)),R(`box-shadow`,o)]}}),n(`inset-ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]);let u=`var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`;t.functional(`ring-offset`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[R(`--tw-ring-offset-width`,n),R(`--tw-ring-offset-shadow`,u)]:(n=W(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[R(`--tw-ring-offset-width`,n),R(`--tw-ring-offset-shadow`,u)];if(H(t.value.value))return t.modifier?void 0:[R(`--tw-ring-offset-width`,`${t.value.value}px`),R(`--tw-ring-offset-shadow`,u)]}{let n=rn(t,e,[`--ring-offset-color`,`--color`]);if(n)return[R(`--tw-ring-offset-color`,n)]}}})}return n(`ring-offset`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-offset-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-offset-width`]}]),t.functional(`@container`,e=>{let t=null;if(e.value===null?t=`inline-size`:e.value.kind===`arbitrary`?t=e.value.value:e.value.kind===`named`&&e.value.value===`normal`?t=`normal`:e.value.kind===`named`&&e.value.value===`size`&&(t=`size`),t!==null)return e.modifier?[R(`container-type`,t),R(`container-name`,e.modifier.value)]:[R(`container-type`,t)]}),n(`@container`,()=>[{values:[`normal`],valueThemeKeys:[],hasDefaultValue:!0}]),t}var sn=[`number`,`integer`,`ratio`,`percentage`];function cn(e){let t=w(e.params);return Tn(t)?n=>{let r={"--value":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set},"--modifier":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set}};F(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=N(e.value);F(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return F(e.nodes,e=>{if(e.kind!==`function`||e.value!==`--value`&&e.value!==`--modifier`)return;let t=e.value;for(let n of e.nodes)if(n.kind===`word`){if(n.value===`integer`)r[t].usedSpacingInteger||=!0;else if(n.value===`number`&&(r[t].usedSpacingNumber||=!0,r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return P.Stop}}),P.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=A(M(e.nodes),`,`);for(let[e,n]of t.entries())n=n.replace(/\\\*/g,`*`),n=n.replace(/--(.*?)\s--(.*?)/g,`--$1-*--$2`),n=n.replace(/\s+/g,``),n=n.replace(/(-\*){2,}/g,`-*`),n[0]===`-`&&n[1]===`-`&&!n.includes(`(`)&&!n.includes(`-*`)&&(n+=`-*`),t[e]=n;e.nodes=N(t.join(`,`));for(let t of e.nodes)if(t.kind===`word`&&(t.value[0]===`"`||t.value[0]===`'`)&&t.value[0]===t.value[t.value.length-1]){let n=t.value.slice(1,-1);r[e.value].literals.add(n)}else if(t.kind===`word`&&t.value[0]===`-`&&t.value[1]===`-`){let n=t.value.replace(/-\*.*$/g,``);r[e.value].themeKeys.add(n)}else if(t.kind===`word`&&(t.value[0]!==`[`||t.value[t.value.length-1]!==`]`)&&!sn.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
|
|
13
|
-
Only valid data types are: ${
|
|
14
|
-
`);let n=t.value,r=structuredClone(e);
|
|
15
|
-
`);console.warn(o)}}),e.value=M(t)}),n.utilities.functional(t.slice(0,-2),t=>{let r=Te(e),i=t.value,a=t.modifier,o=!1,s=!1,c=!1,l=!1,u=new Map,d=!1;if(F([r],(e,t)=>{let r=t.parent;if(r?.kind!==`rule`&&r?.kind!==`at-rule`||e.kind!==`declaration`||!e.value)return;let f=!1,p=N(e.value);if(F(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=ln(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),P.ReplaceSkip(a.nodes)):(f=!0,P.Stop)}if(t.value===`--modifier`){c=!0;let e=ln(a,t,n);return e?(l=!0,P.ReplaceSkip(e.nodes)):(f=!0,P.Stop)}}}),f)return P.ReplaceSkip([]);e.value=M(p)}),!o||!s||c&&!l&&a!==null||d&&l||a&&!d&&!l)return null;if(d)for(let[e,t]of u){let n=t.nodes.indexOf(e);n!==-1&&t.nodes.splice(n,1)}return r.nodes}),n.utilities.suggest(t.slice(0,-2),()=>{let e=[],t=[];for(let[i,{literals:a,usedSpacingNumber:o,usedSpacingInteger:s,themeKeys:c}]of[[e,r[`--value`]],[t,r[`--modifier`]]]){for(let e of a)i.push(e);if(o)i.push(...$t);else if(s)for(let e of $t)H(e)&&i.push(e);for(let e of n.theme.keysInNamespaces(c))i.push(e.replace(an,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:wn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}:null}function ln(e,t,n){if(e===null){for(let e of t.nodes)if(e.kind===`function`&&e.value===`--default`)return{nodes:e.nodes};return}for(let r of t.nodes){if(e.kind===`named`&&r.kind===`word`&&(r.value[0]===`'`||r.value[0]===`"`)&&r.value[r.value.length-1]===r.value[0]&&r.value.slice(1,-1)===e.value)return{nodes:N(e.value)};if(e.kind===`named`&&r.kind===`word`&&r.value[0]===`-`&&r.value[1]===`-`){let t=r.value;if(t.endsWith(`-*`)){t=t.slice(0,-2);let r=n.theme.resolve(e.value,[t]);if(r)return{nodes:N(r)}}else{let r=t.split(`-*`);if(r.length<=1)continue;let i=[r.shift()],a=n.theme.resolveWith(e.value,i,r);if(a){let[,e={}]=a;{let t=e[r.pop()];if(t)return{nodes:N(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!sn.includes(r.value))continue;let t=r.value===`ratio`&&`fraction`in e?e.fraction:e.value;if(!t)continue;let n=V(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=A(t,`/`).map(Number);if(!H(e)||!H(n))continue}else if(n===`number`&&!Gt(t)||n===`percentage`&&!H(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=A(t,`/`);return{nodes:N(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:N(t),ratio:!1}}else if(e.kind===`arbitrary`&&r.kind===`word`&&r.value[0]===`[`&&r.value[r.value.length-1]===`]`){let t=r.value.slice(1,-1);if(t===`*`)return{nodes:N(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||V(e.value,[t])!==null)return{nodes:N(e.value)}}}}function un(e,t,n,r,i=``){let a=!1,o=Qt(t,e=>n==null?r(e):e.startsWith(`current`)?r(tn(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))));function s(e){return i?A(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[R(e,s(Qt(t,r))),Se(`@supports (color: lab(from red l a b))`,[R(e,s(o))])]:[R(e,s(o))]}function dn(e,t,n,r,i=``){let a=!1,o=A(t,`,`).map(e=>Qt(e,e=>n==null?r(e):e.startsWith(`current`)?r(tn(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[R(e,i+A(t,`,`).map(e=>`drop-shadow(${Qt(e,r)})`).join(` `)),Se(`@supports (color: lab(from red l a b))`,[R(e,i+o)])]:[R(e,i+o)]}var fn=/^-?[a-z][a-zA-Z0-9_-]*/,pn=37,mn=47,hn=46,gn=97,_n=122,vn=65,yn=90,bn=48,xn=57,Sn=95,Cn=45;function wn(e){let t=fn.exec(e);if(t===null)return!1;let n=t[0],r=e.slice(n.length);if(r.length===0&&n.endsWith(`-`))return!1;if(r.length===0)return!0;let i=!1;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);switch(t){case pn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<bn||t>xn)return!1;break}case mn:if(e===r.length-1||i)return!1;i=!0;break;case hn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<bn||t>xn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<bn||i>xn)return!1;break}case Sn:case Cn:continue;default:if(t>=gn&&t<=_n||t>=vn&&t<=yn||t>=bn&&t<=xn)continue;return!1}}return!0}function Tn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=fn.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var En={"--alpha":Dn,"--spacing":On,"--theme":kn,theme:An};function Dn(e,t,n,...r){let[i,a]=A(n,`/`).map(e=>e.trim());if(!i||!a)throw Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);if(r.length>0)throw Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);return tn(i,a)}function On(e,t,n,...r){if(!n)throw Error(`The --spacing(…) function requires an argument, but received none.`);if(r.length>0)throw Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.length+1}.`);let i=e.theme.resolve(null,[`--spacing`]);if(!i)throw Error("The --spacing(…) function requires that the `--spacing` theme variable exists, but it was not found.");let a=ft.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function kn(e,t,n,...r){if(!n.startsWith(`--`))throw Error(`The --theme(…) function can only be used with CSS variables from your theme.`);let i=!1;n.endsWith(` inline`)&&(i=!0,n=n.slice(0,-7)),t.kind===`at-rule`&&(i=!0);let a=e.resolveThemeValue(n,i);if(!a){if(r.length>0)return r.join(`, `);throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(r.length===0)return a;let o=r.join(`, `);if(o===`initial`)return a;if(a===`initial`)return o;if(a.startsWith(`var(`)||a.startsWith(`theme(`)||a.startsWith(`--theme(`)){let e=N(a);return Fn(e,o),M(e)}return a}function An(e,t,n,...r){n=Pn(n);let i=e.resolveThemeValue(n);if(!i&&r.length>0)return r.join(`, `);if(!i)throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var jn=new RegExp(Object.keys(En).map(e=>`${e}\\(`).join(`|`));function Mn(e,t){let n=0;return F(e,e=>{if(e.kind===`declaration`&&e.value&&jn.test(e.value)){n|=8,e.value=Nn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&jn.test(e.params)&&(n|=8,e.params=Nn(e.params,e,t))}),n}function Nn(e,t,n){let r=N(e);return F(r,e=>{if(e.kind===`function`&&e.value in En){let r=A(M(e.nodes).trim(),`,`).map(e=>e.trim()),i=En[e.value](n,t,...r);return P.Replace(N(i))}}),M(r)}function Pn(e){if(e[0]!==`'`&&e[0]!==`"`)return e;let t=``,n=e[0];for(let r=1;r<e.length-1;r++){let i=e[r],a=e[r+1];i===`\\`&&(a===n||a===`\\`)?(t+=a,r++):t+=i}return t}function Fn(e,t){F(e,e=>{if(e.kind===`function`&&(e.value===`var`||e.value===`theme`||e.value===`--theme`)){if(e.nodes.length===1)e.nodes.push({kind:`word`,value:`, ${t}`});else{let n=e.nodes[e.nodes.length-1];n.kind===`word`&&n.value===`initial`&&(n.value=t)}}})}function In(){return[]}function Ln(){return[]}function Rn(){return[]}function zn(e,t){let{astNodes:n,nodeSorting:r}=Qn(Array.from(t),e),i=new Map(t.map(e=>[e,null])),a=0n;for(let e of n){let t=r.get(e)?.candidate;t&&i.set(t,i.get(t)??a++)}return t.map(e=>[e,i.get(e)??null])}function Bn(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;Vn(e.charCodeAt(t));)t++;for(n=t;t<r;t++){let n=e.charCodeAt(t);if(n===92){t++;continue}if(!(n>=65&&n<=90)&&!(n>=97&&n<=122)&&!(n>=48&&n<=57)&&n!==45&&n!==95&&!(n>=128))break}if(n===t)return null;let i=e.slice(n,t);for(;Vn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let a=null,o=e.charCodeAt(t);if(o===61)a=`=`,t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)a=e[t]+`=`,t+=2;else return null;for(;Vn(e.charCodeAt(t));)t++;if(t===r)return null;let s=``,c=null;if(o=e.charCodeAt(t),o===39||o===34){c=e[t],t++,n=t;for(let n=t;n<r;n++){let r=e.charCodeAt(n);r===o?t=n+1:r===92&&n++}s=e.slice(n,t-1)}else{for(n=t;t<r&&!Vn(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;Vn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:a,quote:c,value:s,sensitivity:null};let l=null;switch(e.charCodeAt(t)){case 105:case 73:l=`i`,t++;break;case 115:case 83:l=`s`,t++;break;default:return null}for(;Vn(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function Vn(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Hn=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Un=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;static(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`static`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}fromAst(e,t,n){let r=[],i=!1;F(t,e=>{e.kind===`rule`?r.push(e.selector):e.kind===`at-rule`&&e.name===`@variant`?i=!0:e.kind===`at-rule`&&e.name!==`@slot`&&r.push(`${e.name} ${e.params}`)}),this.static(e,e=>{let r=t.map(Te);i&&Jn(r,n),qn(r,e.nodes),e.nodes=r},{compounds:Wn(r)})}functional(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`functional`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}compound(e,t,n,{compounds:r,order:i}={}){this.set(e,{kind:`compound`,applyFn:n,compoundsWith:t,compounds:r??2,order:i})}group(e,t){this.groupOrder=this.nextOrder(),t&&this.compareFns.set(this.groupOrder,t),e(),this.groupOrder=null}has(e){return this.variants.has(e)}get(e){return this.variants.get(e)}kind(e){return this.variants.get(e)?.kind}compoundsWith(e,t){let n=this.variants.get(e),r=typeof t==`string`?this.variants.get(t):t.kind===`arbitrary`?{compounds:Wn([t.selector])}:this.variants.get(t.root);return!(!n||!r||n.kind!==`compound`||r.compounds===0||n.compoundsWith===0||(n.compoundsWith&r.compounds)===0)}suggest(e,t){this.completions.set(e,t)}getCompletions(e){return this.completions.get(e)?.()??[]}compare(e,t){if(e===t)return 0;if(e===null)return-1;if(t===null)return 1;if(e.kind===`arbitrary`&&t.kind===`arbitrary`)return e.selector<t.selector?-1:1;if(e.kind===`arbitrary`)return 1;if(t.kind===`arbitrary`)return-1;let n=this.variants.get(e.root).order,r=n-this.variants.get(t.root).order;if(r!==0)return r;if(e.kind===`compound`&&t.kind===`compound`){let n=this.compare(e.variant,t.variant);return n===0?e.modifier&&t.modifier?e.modifier.value<t.modifier.value?-1:1:e.modifier?1:t.modifier?-1:0:n}let i=this.compareFns.get(n);if(i!==void 0)return i(e,t);if(e.root!==t.root)return e.root<t.root?-1:1;let a=e.value,o=t.value;return a===null?-1:o===null||a.kind===`arbitrary`&&o.kind!==`arbitrary`?1:a.kind!==`arbitrary`&&o.kind===`arbitrary`||a.value<o.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(e,{kind:t,applyFn:n,compounds:r,compoundsWith:i,order:a}){let o=this.variants.get(e);o?Object.assign(o,{kind:t,applyFn:n,compounds:r}):(a===void 0&&(this.lastOrder=this.nextOrder(),a=this.lastOrder),this.variants.set(e,{kind:t,applyFn:n,order:a,compoundsWith:i,compounds:r}))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Wn(e){let t=0;for(let n of e){if(n[0]===`@`){if(!n.startsWith(`@media`)&&!n.startsWith(`@supports`)&&!n.startsWith(`@container`))return 0;t|=1;continue}if(n.includes(`::`))return 0;t|=2}return t}function Gn(e){let t=new Un;function n(e,n,{compounds:r}={}){r??=Wn(n),t.static(e,e=>{e.nodes=n.map(t=>Se(t,e.nodes))},{compounds:r})}n(`*`,[`:is(& > *)`],{compounds:0}),n(`**`,[`:is(& *)`],{compounds:0});function r(e,t){return t.map(t=>{if(e===`@container`){let e=N(t.trim());return e.length>=1&&e[0].kind===`function`?`not ${t}`:e.length>=3&&e[0].kind===`word`&&e[0].value===`not`&&e[2].kind===`function`?(e.splice(0,2),M(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),M(e)):e.length>=3&&e[0].kind===`word`&&e[0].value!==`not`&&e[2].kind===`function`?(e.splice(1,0,{kind:`separator`,value:` `},{kind:`word`,value:`not`}),M(e)):`not ${t}`}{t=t.trim();let e=A(t,` `);return e[0]===`not`?e.slice(1).join(` `):`not ${t}`}})}let i=[`@media`,`@supports`,`@container`];function a(e){for(let t of i){if(t!==e.name)continue;let n=A(e.params,`,`);return n.length>1?null:(n=r(e.name,n),L(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${A(e,`,`).map(e=>(e=e.replaceAll(`&`,`*`),e)).join(`, `)})`}t.compound(`not`,3,(e,t)=>{if(t.variant.kind===`arbitrary`&&t.variant.relative||t.modifier)return null;let n=!1;if(F([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return P.Continue;let i=[],s=[],c=r.path();c.push(t);for(let e of c)e.kind===`at-rule`?i.push(e):e.kind===`rule`&&s.push(e);if(i.length>1||s.length>1)return P.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,P.Stop;l.push(I(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,P.Stop;l.push(t)}return Object.assign(e,I(`&`,l)),n=!0,P.Skip}),e.kind===`rule`&&e.selector===`&`&&e.nodes.length===1&&Object.assign(e,e.nodes[0]),!n)return null}),t.suggest(`not`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`not`,e))),t.compound(`group`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}group\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}group)`,i=!1;if(F([t],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,P.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} *)`,i=!0}),!i)return null}),t.suggest(`group`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`group`,e))),t.compound(`peer`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}peer\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}peer)`,i=!1;if(F([t],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,P.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} ~ *)`,i=!0}),!i)return null}),t.suggest(`peer`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`peer`,e))),n(`first-letter`,[`&::first-letter`]),n(`first-line`,[`&::first-line`]),n(`marker`,[`& *::marker`,`&::marker`,`& *::-webkit-details-marker`,`&::-webkit-details-marker`]),n(`selection`,[`& *::selection`,`&::selection`]),n(`file`,[`&::file-selector-button`]),n(`placeholder`,[`&::placeholder`]),n(`backdrop`,[`&::backdrop`]),n(`details-content`,[`&::details-content`]);{let e=function(){return z([L(`@property`,`--tw-content`,[R(`syntax`,`"*"`),R(`initial-value`,`""`),R(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[I(`&::before`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[I(`&::after`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0})}n(`first`,[`&:first-child`]),n(`last`,[`&:last-child`]),n(`only`,[`&:only-child`]),n(`odd`,[`&:nth-child(odd)`]),n(`even`,[`&:nth-child(even)`]),n(`first-of-type`,[`&:first-of-type`]),n(`last-of-type`,[`&:last-of-type`]),n(`only-of-type`,[`&:only-of-type`]),n(`visited`,[`&:visited`]),n(`target`,[`&:target`]),n(`open`,[`&:is([open], :popover-open, :open)`]),n(`default`,[`&:default`]),n(`checked`,[`&:checked`]),n(`indeterminate`,[`&:indeterminate`]),n(`placeholder-shown`,[`&:placeholder-shown`]),n(`autofill`,[`&:autofill`]),n(`optional`,[`&:optional`]),n(`required`,[`&:required`]),n(`valid`,[`&:valid`]),n(`invalid`,[`&:invalid`]),n(`user-valid`,[`&:user-valid`]),n(`user-invalid`,[`&:user-invalid`]),n(`in-range`,[`&:in-range`]),n(`out-of-range`,[`&:out-of-range`]),n(`read-only`,[`&:read-only`]),n(`empty`,[`&:empty`]),n(`focus-within`,[`&:focus-within`]),t.static(`hover`,e=>{e.nodes=[I(`&:hover`,[L(`@media`,`(hover: hover)`,e.nodes)])]}),n(`focus`,[`&:focus`]),n(`focus-visible`,[`&:focus-visible`]),n(`active`,[`&:active`]),n(`enabled`,[`&:enabled`]),n(`disabled`,[`&:disabled`]),n(`inert`,[`&:is([inert], [inert] *)`]),t.compound(`in`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(F([e],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,P.Stop;e.selector=`:where(${e.selector.replaceAll(`&`,`*`)}) &`,n=!0}),!n)return null}),t.suggest(`in`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`in`,e))),t.compound(`has`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(F([e],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,P.Stop;e.selector=`&:has(${e.selector.replaceAll(`&`,`*`)})`,n=!0}),!n)return null}),t.suggest(`has`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`has`,e))),t.functional(`aria`,(e,t)=>{if(!t.value||t.modifier)return null;if(t.value.kind===`arbitrary`){let n=`[aria-${Kn(t.value.value)}]`;if(Bn(n)===null)return null;e.nodes=[I(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Bn(n)===null)return null;e.nodes=[I(`&${n}`,e.nodes)]}}),t.suggest(`aria`,()=>[`busy`,`checked`,`disabled`,`expanded`,`hidden`,`pressed`,`readonly`,`required`,`selected`]),t.functional(`data`,(e,t)=>{if(!t.value||t.modifier)return null;let n=`[data-${Kn(t.value.value)}]`;if(Bn(n)===null)return null;e.nodes=[I(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[I(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[I(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[I(`&:nth-of-type(${t.value.value})`,e.nodes)]}),t.functional(`nth-last-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[I(`&:nth-last-of-type(${t.value.value})`,e.nodes)]}),t.functional(`supports`,(e,t)=>{if(!t.value||t.modifier)return null;let n=t.value.value;if(n===null)return null;if(/^[\w-]*\s*\(/.test(n)){e.nodes=[L(`@supports`,n.replace(/\b(and|or|not)\b/g,` $1 `),e.nodes)];return}n.includes(`:`)||(n=`${n}: var(--tw)`),(n[0]!==`(`||n[n.length-1]!==`)`)&&(n=`(${n})`),e.nodes=[L(`@supports`,n,e.nodes)]},{compounds:1}),n(`motion-safe`,[`@media (prefers-reduced-motion: no-preference)`]),n(`motion-reduce`,[`@media (prefers-reduced-motion: reduce)`]),n(`contrast-more`,[`@media (prefers-contrast: more)`]),n(`contrast-less`,[`@media (prefers-contrast: less)`]);{let n=function(e,t,n,r){if(e===t)return 0;let i=r.get(e);if(i===null)return n===`asc`?-1:1;let a=r.get(t);return a===null?n===`asc`?1:-1:ut(i,a,n)};{let r=e.namespace(`--breakpoint`),i=new O(t=>{switch(t.kind){case`static`:return e.resolveValue(t.root,[`--breakpoint`])??null;case`functional`:{if(!t.value||t.modifier)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--breakpoint`])),!n||n.includes(`var(`)?null:n}case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`max`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[L(`@media`,`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{for(let[n,r]of e.namespace(`--breakpoint`))n!==null&&t.static(n,e=>{e.nodes=[L(`@media`,`(width >= ${r})`,e.nodes)]},{compounds:1});t.functional(`min`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[L(`@media`,`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`min`,()=>Array.from(r.keys()).filter(e=>e!==null))}{let r=e.namespace(`--container`),i=new O(t=>{switch(t.kind){case`functional`:{if(t.value===null)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--container`])),!n||n.includes(`var(`)?null:n}case`static`:case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`@max`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[L(`@container`,t.modifier?`${t.modifier.value} (width < ${n})`:`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`@max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{t.functional(`@`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[L(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1}),t.functional(`@min`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[L(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`@min`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.suggest(`@`,()=>Array.from(r.keys()).filter(e=>e!==null))}}return n(`portrait`,[`@media (orientation: portrait)`]),n(`landscape`,[`@media (orientation: landscape)`]),n(`ltr`,[`&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)`]),n(`rtl`,[`&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)`]),n(`dark`,[`@media (prefers-color-scheme: dark)`]),n(`starting`,[`@starting-style`]),n(`print`,[`@media print`]),n(`forced-colors`,[`@media (forced-colors: active)`]),n(`inverted-colors`,[`@media (inverted-colors: inverted)`]),n(`pointer-none`,[`@media (pointer: none)`]),n(`pointer-coarse`,[`@media (pointer: coarse)`]),n(`pointer-fine`,[`@media (pointer: fine)`]),n(`any-pointer-none`,[`@media (any-pointer: none)`]),n(`any-pointer-coarse`,[`@media (any-pointer: coarse)`]),n(`any-pointer-fine`,[`@media (any-pointer: fine)`]),n(`noscript`,[`@media (scripting: none)`]),t}function Kn(e){if(e.includes(`=`)){let[t,...n]=A(e,`=`),r=n.join(`=`).trim();if(r[0]===`'`||r[0]===`"`)return e;if(r.length>1){let e=r[r.length-1];if(r[r.length-2]===` `&&(e===`i`||e===`I`||e===`s`||e===`S`))return`${t}="${r.slice(0,-2)}" ${e}`}return`${t}="${r}"`}return e}function qn(e,t){F(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return P.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,z([L(e.name,e.params,e.nodes)])),P.Skip})}function Jn(e,t){let n=0;return F(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=A(e.params,`,`);for(let[n,a]of i.entries()){let o=I(`&`,n===i.length-1?e.nodes:e.nodes.map(Te)),s=A(a,`:`);for(let e=s.length-1;e>=0;--e){let n=s[e].trim();if(!n)throw Error("Cannot use `@variant` with empty variant");let r=t.parseVariant(n);if(r===null)throw Error(`Cannot use \`@variant\` with unknown variant: ${n}`);if(er(o,r,t.variants)===null)throw Error(`Cannot use \`@variant\` with variant: ${n}`)}o.selector===`&`?r.push(...o.nodes):r.push(o)}return n|=32,P.Replace(r)}),n}function Yn(e,t){let n=on(e),r=Gn(e),i=new O(e=>Xe(e,u)),a=new O(e=>Array.from(Je(e,u))),o=new O(e=>new O(t=>{let n=$n(t,u,e);try{let e=n.map(e=>e.node);Mn(e,u),Jn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of ye(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=Qn([r],u,{onInvalidCandidate(){e=!1}});t&&F(i,e=>(e.src??=t,P.Continue)),i=De(i,u,0),n.push(e?i:[])}return n}function l(e){return c(e).map(e=>e.length>0?je(e):null)}let u={theme:e,utilities:n,variants:r,invalidCandidates:new Set,important:!1,candidatesToCss:l,candidatesToAst:c,getClassOrder(e){return zn(this,e)},getClassList(){return In(this)},getVariants(){return Ln(this)},parseCandidate(e){return a.get(e)},parseVariant(e){return i.get(e)},compileAstNodes(e,t=1){return o.get(t).get(e)},printCandidate(e){return Qe(u,e)},printVariant(e){return et(e)},getVariantOrder(){let e=Array.from(i.values());e.sort((e,t)=>this.variants.compare(e,t));let t=new Map,n,r=0;for(let i of e)i!==null&&(n!==void 0&&this.variants.compare(n,i)!==0&&r++,t.set(i,r),n=i);return t},resolveThemeValue(t,n=!0){let r=t.lastIndexOf(`/`),i=null;r!==-1&&(i=t.slice(r+1).trim(),t=t.slice(0,r).trim());let a=e.resolve(null,[t],+!!n)??void 0;return i&&a?tn(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return Rn(this,e,t)},storage:{}};return u}var Xn=`container-type.pointer-events.visibility.position.inset.inset-inline.inset-block.inset-inline-start.inset-inline-end.inset-block-start.inset-block-end.top.right.bottom.left.isolation.z-index.order.grid-column.grid-column-start.grid-column-end.grid-row.grid-row-start.grid-row-end.float.clear.--tw-container-component.margin.margin-inline.margin-block.margin-inline-start.margin-inline-end.margin-block-start.margin-block-end.margin-top.margin-right.margin-bottom.margin-left.box-sizing.display.field-sizing.aspect-ratio.height.max-height.min-height.width.max-width.min-width.flex.flex-shrink.flex-grow.flex-basis.table-layout.caption-side.border-collapse.border-spacing.transform-origin.translate.--tw-translate-x.--tw-translate-y.--tw-translate-z.scale.--tw-scale-x.--tw-scale-y.--tw-scale-z.rotate.--tw-rotate-x.--tw-rotate-y.--tw-rotate-z.--tw-skew-x.--tw-skew-y.transform.zoom.animation.cursor.touch-action.--tw-pan-x.--tw-pan-y.--tw-pinch-zoom.resize.scroll-snap-type.--tw-scroll-snap-strictness.scroll-snap-align.scroll-snap-stop.scroll-margin.scroll-margin-inline.scroll-margin-block.scroll-margin-inline-start.scroll-margin-inline-end.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-padding.scroll-padding-inline.scroll-padding-block.scroll-padding-inline-start.scroll-padding-inline-end.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scrollbar-width.scrollbar-color.scrollbar-gutter.list-style-position.list-style-type.list-style-image.appearance.columns.break-before.break-inside.break-after.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-template-columns.grid-template-rows.flex-direction.flex-wrap.place-content.place-items.align-content.align-items.justify-content.justify-items.gap.column-gap.row-gap.--tw-space-x-reverse.--tw-space-y-reverse.divide-x-width.divide-y-width.--tw-divide-y-reverse.divide-style.divide-color.place-self.align-self.justify-self.overflow.overflow-x.overflow-y.overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.scroll-behavior.border-radius.border-start-radius.border-end-radius.border-top-radius.border-right-radius.border-bottom-radius.border-left-radius.border-start-start-radius.border-start-end-radius.border-end-end-radius.border-end-start-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-inline-width.border-block-width.border-inline-start-width.border-inline-end-width.border-block-start-width.border-block-end-width.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.border-inline-style.border-block-style.border-inline-start-style.border-inline-end-style.border-block-start-style.border-block-end-style.border-top-style.border-right-style.border-bottom-style.border-left-style.border-color.border-inline-color.border-block-color.border-inline-start-color.border-inline-end-color.border-block-start-color.border-block-end-color.border-top-color.border-right-color.border-bottom-color.border-left-color.background-color.background-image.--tw-gradient-position.--tw-gradient-stops.--tw-gradient-via-stops.--tw-gradient-from.--tw-gradient-from-position.--tw-gradient-via.--tw-gradient-via-position.--tw-gradient-to.--tw-gradient-to-position.mask-image.--tw-mask-top.--tw-mask-top-from-color.--tw-mask-top-from-position.--tw-mask-top-to-color.--tw-mask-top-to-position.--tw-mask-right.--tw-mask-right-from-color.--tw-mask-right-from-position.--tw-mask-right-to-color.--tw-mask-right-to-position.--tw-mask-bottom.--tw-mask-bottom-from-color.--tw-mask-bottom-from-position.--tw-mask-bottom-to-color.--tw-mask-bottom-to-position.--tw-mask-left.--tw-mask-left-from-color.--tw-mask-left-from-position.--tw-mask-left-to-color.--tw-mask-left-to-position.--tw-mask-linear.--tw-mask-linear-position.--tw-mask-linear-from-color.--tw-mask-linear-from-position.--tw-mask-linear-to-color.--tw-mask-linear-to-position.--tw-mask-radial.--tw-mask-radial-shape.--tw-mask-radial-size.--tw-mask-radial-position.--tw-mask-radial-from-color.--tw-mask-radial-from-position.--tw-mask-radial-to-color.--tw-mask-radial-to-position.--tw-mask-conic.--tw-mask-conic-position.--tw-mask-conic-from-color.--tw-mask-conic-from-position.--tw-mask-conic-to-color.--tw-mask-conic-to-position.box-decoration-break.background-size.background-attachment.background-clip.background-position.background-repeat.background-origin.mask-composite.mask-mode.mask-type.mask-size.mask-clip.mask-position.mask-repeat.mask-origin.fill.stroke.stroke-width.object-fit.object-position.padding.padding-inline.padding-block.padding-inline-start.padding-inline-end.padding-block-start.padding-block-end.padding-top.padding-right.padding-bottom.padding-left.text-align.text-indent.vertical-align.font-family.font-feature-settings.font-size.line-height.font-weight.letter-spacing.text-wrap.overflow-wrap.word-break.text-overflow.hyphens.white-space.tab-size.color.text-transform.font-style.font-stretch.font-variant-numeric.text-decoration-line.text-decoration-color.text-decoration-style.text-decoration-thickness.text-underline-offset.-webkit-font-smoothing.placeholder-color.caret-color.accent-color.color-scheme.opacity.background-blend-mode.mix-blend-mode.box-shadow.--tw-shadow.--tw-shadow-color.--tw-ring-shadow.--tw-ring-color.--tw-inset-shadow.--tw-inset-shadow-color.--tw-inset-ring-shadow.--tw-inset-ring-color.--tw-ring-offset-width.--tw-ring-offset-color.outline.outline-width.outline-offset.outline-color.--tw-blur.--tw-brightness.--tw-contrast.--tw-drop-shadow.--tw-grayscale.--tw-hue-rotate.--tw-invert.--tw-saturate.--tw-sepia.filter.--tw-backdrop-blur.--tw-backdrop-brightness.--tw-backdrop-contrast.--tw-backdrop-grayscale.--tw-backdrop-hue-rotate.--tw-backdrop-invert.--tw-backdrop-opacity.--tw-backdrop-saturate.--tw-backdrop-sepia.backdrop-filter.transition-property.transition-behavior.transition-delay.transition-duration.transition-timing-function.will-change.contain.content.forced-color-adjust`.split(`.`);function Zn(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;n++){let r=e.charCodeAt(n),i=t.charCodeAt(n);if(r>=48&&r<=57&&i>=48&&i<=57){let a=n,o=n+1,s=n,c=n+1;for(r=e.charCodeAt(o);r>=48&&r<=57;)r=e.charCodeAt(++o);for(i=t.charCodeAt(c);i>=48&&i<=57;)i=t.charCodeAt(++c);let l=e.slice(a,o),u=t.slice(s,c),d=Number(l)-Number(u);if(d)return d;if(l<u)return-1;if(l>u)return 1;continue}if(r!==i)return r-i}return e.length-t.length}function Qn(e,t,{onInvalidCandidate:n,respectImportant:r}={}){let i=new Map,a=[],o=new Map;for(let r of e){if(t.invalidCandidates.has(r)){n?.(r);continue}let e=t.parseCandidate(r);if(e.length===0){n?.(r);continue}o.set(r,e)}let s=0;(r??!0)&&(s|=1);let c=t.getVariantOrder();for(let[e,r]of o){let o=!1;for(let n of r){let r=t.compileAstNodes(n,s);if(r.length!==0){o=!0;for(let{node:t,propertySort:o}of r){let r=0n;for(let e of n.variants)r|=1n<<BigInt(c.get(e));i.set(t,{properties:o,variants:r,candidate:e}),a.push(t)}}}o||n?.(e)}return a.sort((e,t)=>{let n=i.get(e),r=i.get(t);if(n.variants-r.variants!==0n)return Number(n.variants-r.variants);let a=0;for(;a<n.properties.order.length&&a<r.properties.order.length&&n.properties.order[a]===r.properties.order[a];)a+=1;return(n.properties.order[a]??1/0)-(r.properties.order[a]??1/0)||r.properties.count-n.properties.count||Zn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function $n(e,t,n){let r=nr(e,t);if(r.length===0)return[];let i=t.important&&!!(n&1),a=[],o=`.${C(e.raw)}`;for(let n of r){let r=ir(n);(e.important||i)&&rr(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(er(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function er(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[Se(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=L(`@slot`);if(er(a,t.variant,n,r+1)===null||t.root===`not`&&a.nodes.length>1)return null;for(let e of a.nodes)if(e.kind!==`rule`&&e.kind!==`at-rule`||i(e,t)===null)return null;F(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,P.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function tr(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function nr(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=W(n,e.modifier,t.theme)),n===null?[]:[[R(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!tr(e));for(let t of i){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}if(r.length>0)return r;let a=n.filter(e=>tr(e));for(let t of a){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}return r}function rr(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&rr(t.nodes))}function ir(e){let t=new Set,n=0,r=e.slice(),i=!1;for(;r.length>0;){let e=r.shift();if(e.kind===`declaration`){if(e.value===void 0||(n++,i))continue;if(e.property===`--tw-sort`){let n=Xn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Xn.indexOf(e.property);r!==-1&&t.add(r)}else if(e.kind===`rule`||e.kind===`at-rule`)for(let t of e.nodes)r.push(t)}return{order:Array.from(t).sort((e,t)=>e-t),count:n}}function ar(e,t){let n=0,r=Se(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);F([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return F(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),P.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),F(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of or(n,t))a.get(e).add(r)}});return}if(e.name===`@apply`){if(r.parent===null)return;n|=1,i.add(r.parent);for(let n of or(e,t))for(let e of r.path())i.has(e)&&a.get(e).add(n)}}});let s=new Set,c=[],l=new Set;function u(e,n=[]){if(!s.has(e)){if(l.has(e)){let r=n[(n.indexOf(e)+1)%n.length];throw e.kind===`at-rule`&&e.name===`@utility`&&r.kind===`at-rule`&&r.name===`@utility`&&F(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/\s+/g);for(let e of n)for(let n of t.parseCandidate(e))switch(n.kind){case`arbitrary`:break;case`static`:case`functional`:if(r.params.replace(/-\*$/,``)===n.root)throw Error(`You cannot \`@apply\` the \`${e}\` utility here because it creates a circular dependency.`)}}),Error(`Circular dependency detected:
|
|
12
|
+
`,t){n+=s.length;let t=n;n+=2+e.value.length+2,e.dst=[r,t,n],n+=1}}else if(e.kind===`context`||e.kind===`at-root`)return``;return o}let a=``;for(let t of e)a+=i(t,0);return r.code=a,a}function Ae(e,t){let n=[];return I(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),F.Stop}),n}function je(e,t,n,r=new Set){if(r.has(e)||(r.add(e),t.getOptions(e)&24))return!0;{let i=n.get(e)??[];for(let e of i)if(je(e,t,n,r))return!0}return!1}function Me(e){return e.split(/[\s,]+/)}var Ne=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Pe(e){return e.indexOf(`(`)!==-1&&Ne.some(t=>e.includes(`${t}(`))}function Fe(e){if(!Ne.some(t=>e.includes(t)))return e;let t=``,n=[],r=null,i=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||r!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?r=a:(i=r,r=null),o===40){t+=e[a];let r=a;for(let t=a-1;t>=0;t--){let n=e.charCodeAt(t);if(n>=48&&n<=57)r=t;else if(n>=97&&n<=122)r=t;else break}let i=e.slice(r,a);if(Ne.includes(i)){n.unshift(!0);continue}if(n[0]&&i===``){n.unshift(!0);continue}n.unshift(!1);continue}if(o===41)t+=e[a],n.shift();else if(o===44&&n[0]){t+=`, `;continue}else{if(o===32&&n[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&n[0]){let n=t.trimEnd(),r=n.charCodeAt(n.length-1),o=n.charCodeAt(n.length-2),s=e.charCodeAt(a+1);if((r===101||r===69)&&o>=48&&o<=57){t+=e[a];continue}if(r===43||r===42||r===47||r===45){t+=e[a];continue}if(r===40||r===44){t+=e[a];continue}e.charCodeAt(a-1)===32?t+=`${e[a]} `:r>=48&&r<=57||s>=48&&s<=57||r===41||s===40||s===43||s===42||s===47||s===45||i!==null&&i===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}}return t}function Ie(e){if(e.indexOf(`(`)===-1)return H(e);let t=P(e);return Le(t),e=N(t),e=Fe(e),e}function H(e,t=!1){let n=``;for(let r=0;r<e.length;r++){let i=e[r];i===`\\`&&e[r+1]===`_`?(n+=`_`,r+=1):n+=i===`_`&&!t?` `:i}return n}function Le(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=H(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=H(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=H(t.nodes[e].value,!0);continue}Le([t.nodes[e]])}break}t.value=H(t.value),Le(t.nodes);break;case`separator`:case`word`:t.value=H(t.value);break;default:Re(t)}}function Re(e){throw Error(`Unexpected value: ${e}`)}var ze=new Uint8Array(256);function Be(e){let t=0,n=e.length;for(let r=0;r<n;r++){let i=e.charCodeAt(r);switch(i){case 92:r+=1;break;case 39:case 34:for(;++r<n;){let t=e.charCodeAt(r);if(t===92){r+=1;continue}if(t===i)break}break;case 40:ze[t]=41,t++;break;case 91:ze[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===ze[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var Ve=58,He=45,Ue=97,We=122,Ge=/^[a-zA-Z0-9_.%-]+$/;function*Ke(e,t){let n=A(e,`:`);if(t.theme.prefix){if(n.length===1||n[0]!==t.theme.prefix)return null;n.shift()}let r=n.pop(),i=[];for(let e=n.length-1;e>=0;--e){let r=t.parseVariant(n[e]);if(r===null)return;i.push(r)}let a=!1;r[r.length-1]===`!`?(a=!0,r=r.slice(0,-1)):r[0]===`!`&&(a=!0,r=r.slice(1)),t.utilities.has(r,`static`)&&!r.includes(`[`)&&(yield{kind:`static`,root:r,variants:i,important:a,raw:e});let[o,s=null,c]=A(r,`/`);if(c)return;let l=s===null?null:qe(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==He&&!(t>=Ue&&t<=We))return;o=o.slice(1,-1);let n=o.indexOf(`:`);if(n===-1||n===0||n===o.length-1)return;let r=o.slice(0,n),s=Ie(o.slice(n+1));if(!Be(s))return;yield{kind:`arbitrary`,property:r,value:s,modifier:l,variants:i,important:a,raw:e};return}let u;if(o[o.length-1]===`]`){let e=o.indexOf(`-[`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;u=[[n,o.slice(e+1)]]}else if(o[o.length-1]===`)`){let e=o.indexOf(`-(`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;let r=o.slice(e+2,-1),i=A(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!Be(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Ye(o,e=>t.utilities.has(e,`functional`));for(let[t,n]of u){let r={kind:`functional`,root:t,modifier:l,value:null,variants:i,important:a,raw:e};if(n===null){yield r;continue}{let e=n.indexOf(`[`);if(e!==-1){if(n[n.length-1]!==`]`)return;let t=Ie(n.slice(e+1,-1));if(!Be(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===Ve){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===He||n>=Ue&&n<=We))break}if(t.length===0||t.trim().length===0||i===``)continue;r.value={kind:`arbitrary`,dataType:i||null,value:t}}else{let e=s===null||r.modifier?.kind===`arbitrary`?null:`${n}/${s}`;if(!Ge.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function qe(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=Ie(e.slice(1,-1));return!Be(t)||t.length===0||t.trim().length===0?null:{kind:`arbitrary`,value:t}}return e[0]===`(`&&e[e.length-1]===`)`?(e=e.slice(1,-1),e[0]!==`-`||e[1]!==`-`||!Be(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Ie(e)})):Ge.test(e)?{kind:`named`,value:e}:null}function Je(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=Ie(e.slice(1,-1));if(!Be(t)||t.length===0||t.trim().length===0)return null;let n=t[0]===`>`||t[0]===`+`||t[0]===`~`;return!n&&t[0]!==`@`&&!t.includes(`&`)&&(t=`&:is(${t})`),{kind:`arbitrary`,selector:t,relative:n}}{let[n,r=null,i]=A(e,`/`);if(i)return null;let a=Ye(n,e=>t.variants.has(e));for(let[e,n]of a)switch(t.variants.kind(e)){case`static`:return n!==null||r!==null?null:{kind:`static`,root:e};case`functional`:{let t=r===null?null:qe(r);if(r!==null&&t===null)return null;if(n===null)return{kind:`functional`,root:e,modifier:t,value:null};if(n[n.length-1]===`]`){if(n[0]!==`[`)continue;let r=Ie(n.slice(1,-1));return!Be(r)||r.length===0||r.trim().length===0?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:r}}}if(n[n.length-1]===`)`){if(n[0]!==`(`)continue;let r=Ie(n.slice(1,-1));return!Be(r)||r.length===0||r.trim().length===0||r[0]!==`-`||r[1]!==`-`?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:`var(${r})`}}}if(!Ge.test(n))continue;return{kind:`functional`,root:e,modifier:t,value:{kind:`named`,value:n}}}case`compound`:{if(n===null)return null;r&&(e===`not`||e===`has`||e===`in`)&&(n=`${n}/${r}`,r=null);let i=t.parseVariant(n);if(i===null||!t.variants.compoundsWith(e,i))return null;let a=r===null?null:qe(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Ye(e,t){t(e)&&(yield[e,null]);let n=e.lastIndexOf(`-`);for(;n>0;){let r=e.slice(0,n);if(t(r)){let i=[r,e.slice(n+1)];if(i[1]===``||i[0]===`@`&&t(`@`)&&e[n]===`-`)break;yield i}n=e.lastIndexOf(`-`,n-1)}e[0]===`@`&&t(`@`)&&(yield[`@`,e.slice(1)])}function Xe(e,t){let n=[];for(let e of t.variants)n.unshift(Qe(e));e.theme.prefix&&n.unshift(e.theme.prefix);let r=``;if(t.kind===`static`&&(r+=t.root),t.kind===`functional`&&(r+=t.root,t.value)){if(t.value.kind===`arbitrary`){if(t.value!==null){let e=at(t.value.value),n=e?t.value.value.slice(4,-1):t.value.value,[i,a]=e?[`(`,`)`]:[`[`,`]`];t.value.dataType?r+=`-${i}${t.value.dataType}:${et(n)}${a}`:r+=`-${i}${et(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${et(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=Ze(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function Ze(e){if(e===null)return``;let t=at(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${et(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function Qe(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${et(nt(e.selector))}]`;let t=``;if(e.kind===`functional`){t+=e.root;let n=e.root!==`@`;if(e.value){if(e.value.kind===`arbitrary`){let r=at(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${et(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=Qe(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=Ze(e.modifier)),t}var $e=new O(e=>{let t=P(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return I(t,(e,t)=>{if(e.kind===`word`&&r.has(e.value)){let e=t.index;if(e===-1)return;let i=t.siblings[e-1];if(i?.kind!==`separator`||i.value!==` `)return;let a=t.siblings[e+1];if(a?.kind!==`separator`||a.value!==` `)return;let o=t.siblings[e-2];if(o&&r.has(o.value))return;let s=t.siblings[e+2];if(s&&r.has(s.value))return;n.add(i),n.add(a)}else if(e.kind===`separator`&&e.value.length>0&&e.value.trim()===``)(t.siblings[0]===e||t.siblings[t.siblings.length-1]===e)&&n.add(e);else if(e.kind===`separator`&&e.value.trim()===`,`)e.value=`,`;else if(e.kind===`function`&&e.value.startsWith(`--`)){let n=t.index;if(n<=0)return;let i=t.siblings[n-1];if(i?.kind===`separator`&&i.value===`,`)return;let a=t.siblings[n-2];return a&&!r.has(a.value)?void 0:F.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&I(t,e=>{if(n.has(e))return n.delete(e),F.ReplaceSkip([])}),rt(t),N(t)});function et(e){return $e.get(e)}var tt=new O(e=>{let t=P(e);return t.length===3&&t[0].kind===`word`&&t[0].value===`&`&&t[1].kind===`separator`&&t[1].value===`:`&&t[2].kind===`function`&&t[2].value===`is`?N(t[2].nodes):e});function nt(e){return tt.get(e)}function rt(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=st(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=st(t.value);for(let e=0;e<t.nodes.length;e++)rt([t.nodes[e]]);break}t.value=st(t.value),rt(t.nodes);break;case`separator`:t.value=st(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=st(t.value));break;default:ot(t)}}var it=new O(e=>{let t=P(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function at(e){return it.get(e)}function ot(e){throw Error(`Unexpected value: ${e}`)}function st(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function ct(e,t,n){if(e===t)return 0;let r=e.indexOf(`(`),i=t.indexOf(`(`),a=r===-1?e.replace(/[\d.]+/g,``):e.slice(0,r),o=i===-1?t.replace(/[\d.]+/g,``):t.slice(0,i),s=(a===o?0:a<o?-1:1)||(n===`asc`?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var lt=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,ut=new O(e=>{let t=lt.exec(e);if(!t)return null;let n=t.groups?.value;if(n===void 0)return null;let r=Number(n);if(Number.isNaN(r))return null;let i=t.groups?.unit;return i===void 0?[r,null]:[r,i]}),dt=new Set(`black.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aqua.aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent.currentcolor.canvas.canvastext.linktext.visitedtext.activetext.buttonface.buttontext.buttonborder.field.fieldtext.highlight.highlighttext.selecteditem.selecteditemtext.mark.marktext.graytext.accentcolor.accentcolortext`.split(`.`)),ft=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function pt(e){return e.charCodeAt(0)===35||ft.test(e)||dt.has(e.toLowerCase())}function mt(e){return dt.has(e.toLowerCase())}var ht={color:pt,length:Ft,percentage:At,ratio:Mt,number:Ot,integer:W,url:_t,position:It,"bg-size":Lt,"line-width":vt,image:xt,"family-name":Ct,"generic-name":St,"absolute-size":wt,"relative-size":Tt,angle:zt,vector:Vt};function U(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(ht[n]?.(e))return n;return null}var gt=/^url\(.*\)$/;function _t(e){return gt.test(e)}function vt(e){return A(e,` `).every(e=>Ft(e)||Ot(e)||e===`thin`||e===`medium`||e===`thick`)}var yt=/^(?:element|image|cross-fade|image-set)\(/,bt=/^(repeating-)?(conic|linear|radial)-gradient\(/;function xt(e){let t=0;for(let n of A(e,`,`))if(!n.startsWith(`var(`)){if(_t(n)){t+=1;continue}if(bt.test(n)){t+=1;continue}if(yt.test(n)){t+=1;continue}return!1}return t>0}function St(e){return e===`serif`||e===`sans-serif`||e===`monospace`||e===`cursive`||e===`fantasy`||e===`system-ui`||e===`ui-serif`||e===`ui-sans-serif`||e===`ui-monospace`||e===`ui-rounded`||e===`math`||e===`emoji`||e===`fangsong`}function Ct(e){let t=0;for(let n of A(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function wt(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function Tt(e){return e===`larger`||e===`smaller`}var Et=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Dt=RegExp(`^${Et.source}$`);function Ot(e){return Dt.test(e)||Pe(e)}var kt=RegExp(`^${Et.source}%$`);function At(e){return kt.test(e)||Pe(e)}var jt=RegExp(`^${Et.source}\\s*/\\s*${Et.source}$`);function Mt(e){return jt.test(e)||Pe(e)}var Nt=RegExp(`^${Et.source}(${`cm.mm.Q.in.pc.pt.px.em.ex.ch.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.lvw.lvh.dvw.dvh.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`).join(`|`)})$`),Pt=/^(--spacing)\(/i;function Ft(e){return Nt.test(e)||Pt.test(e)||Pe(e)}function It(e){let t=0;for(let n of A(e,` `)){if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`){t+=1;continue}if(!n.startsWith(`var(`)){if(Ft(n)||At(n)){t+=1;continue}return!1}}return t>0}function Lt(e){let t=0;for(let n of A(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=A(n,` `);if(e.length!==1&&e.length!==2)return!1;if(e.every(e=>e===`auto`||Ft(e)||At(e))){t+=1;continue}}return t>0}var Rt=RegExp(`^${Et.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function zt(e){return Rt.test(e)}var Bt=RegExp(`^${Et.source} +${Et.source} +${Et.source}$`);function Vt(e){return Bt.test(e)}function W(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Ht(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function Ut(e){return Gt(e,.25)}function Wt(e){return Gt(e,.25)}function Gt(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}var Kt=new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),qt=new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Jt=new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Yt=/^-?(\d+|\.\d+)(.*?)$/;function Xt(e,t){function n(e){return P(t(N([e])))}return A(e,`,`).map(e=>{e=e.trim();let r=P(e),i=null,a=0,o=0,s=!1;return I(r,e=>{switch(e.kind){case`word`:if(Kt.has(e.value.toLowerCase()))return F.Continue;if(Yt.test(e.value.toLowerCase()))return o++,F.Continue;if(e.value[0]===`#`||mt(e.value))return s=!0,F.ReplaceStop(n(e));i=e,a++;break;case`function`:return Jt.has(e.value.toLowerCase())?(s=!0,F.ReplaceStop(n(e))):qt.has(e.value.toLowerCase())?(o++,F.Skip):(i=e,a++,F.Skip);case`separator`:return F.Continue}}),s?N(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&I(r,e=>e===i?(s=!0,F.ReplaceStop(n(e))):F.Skip),s?N(r):e)}).join(`, `)}var Zt=`0,0.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96`.split(`,`),Qt=class{utilities=new O(()=>[]);completions=new Map;static(e,t){this.utilities.get(e).push({kind:`static`,compileFn:t})}functional(e,t,n){this.utilities.get(e).push({kind:`functional`,compileFn:t,options:n})}has(e,t){return this.utilities.has(e)&&this.utilities.get(e).some(e=>e.kind===t)}get(e){return this.utilities.has(e)?this.utilities.get(e):[]}getCompletions(e){return this.has(e,`static`)?this.completions.get(e)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(e)?.()??[]}suggest(e,t){let n=this.completions.get(e);n?this.completions.set(e,()=>[...n?.(),...t?.()]):this.completions.set(e,t)}keys(e){let t=[];for(let[n,r]of this.utilities.entries())for(let i of r)if(i.kind===e){t.push(n);break}return t}};function G(e,t,n){return R(`@property`,e,[B(`syntax`,n?`"${n}"`:`"*"`),B(`inherits`,`false`),...t?[B(`initial-value`,t)]:[]])}function $t(e,t){if(t===null)return e;let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),t===`100%`?e:`color-mix(in oklab, ${e} ${t}, transparent)`}function en(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function K(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return $t(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?$t(e,r):Wt(t.value)?$t(e,`${t.value}%`):null}function tn(e,t,n){let r=null;switch(e.value.value){case`inherit`:r=`inherit`;break;case`transparent`:r=`transparent`;break;case`current`:r=`currentcolor`;break;default:r=t.resolve(e.value.value,n)}return r?K(r,e.modifier,t):null}var nn=/(\d+)_(\d+)/g;function rn(e){let t=new Qt;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(nn,(e,t,n)=>`${t}.${n}`)}let a=`1/2.1/3.2/3.1/4.2/4.3/4.1/5.2/5.3/5.4/5.1/6.2/6.3/6.4/6.5/6.1/12.2/12.3/12.4/12.5/12.6/12.7/12.8/12.9/12.10/12.11/12`.split(`.`);t.suggest(n,()=>{let e=[];for(let t of r()){if(typeof t==`string`){e.push({values:[t],modifiers:[]});continue}let n=[...t.values??[],...i(t.valueThemeKeys??[])],r=[...t.modifiers??[],...i(t.modifierThemeKeys??[])];t.supportsFractions&&n.push(...a),t.hasDefaultValue&&n.unshift(null),e.push({supportsNegative:t.supportsNegative,values:n,modifiers:r})}return e})}function r(e,n){t.static(e,()=>n.map(e=>typeof e==`function`?e():B(e[0],e[1])))}function i(r,i){i.staticValues&&=Object.assign(Object.create(null),i.staticValues);function a({negative:t}){return n=>{let r=null,a=null;if(n.value){if(n.value.kind===`arbitrary`){if(n.modifier)return;r=n.value.value,a=n.value.dataType}else{if(r=e.resolve(n.value.fraction??n.value.value,i.themeKeys??[]),r===null&&i.supportsFractions&&n.value.fraction){let[e,t]=A(n.value.fraction,`/`);if(!W(e)||!W(t))return;r=`calc(${e} / ${t} * 100%)`}if(r===null&&t&&i.handleNegativeBareValue){if(r=i.handleNegativeBareValue(n.value),!r?.includes(`/`)&&n.modifier)return;if(r!==null)return i.handle(r,null)}if(r===null&&i.handleBareValue&&(r=i.handleBareValue(n.value),!r?.includes(`/`)&&n.modifier))return;if(r===null&&!t&&i.staticValues&&!n.modifier){let e=i.staticValues[n.value.value];if(e)return e.map(Ce)}}}else{if(n.modifier)return;r=i.defaultValue===void 0?e.resolve(null,i.themeKeys??[]):i.defaultValue}if(r!==null)return i.handle(t?Fe(`calc(${r} * -1)`):r,a)}}if(i.supportsNegative&&t.functional(`-${r}`,a({negative:!0})),t.functional(r,a({negative:!1})),n(r,()=>[{supportsNegative:i.supportsNegative,valueThemeKeys:i.themeKeys??[],hasDefaultValue:i.defaultValue!==void 0&&i.defaultValue!==null,supportsFractions:i.supportsFractions}]),i.staticValues&&Object.keys(i.staticValues).length>0){let e=Object.keys(i.staticValues);n(r,()=>[{values:e}])}}function a(r,i){t.functional(r,t=>{if(!t.value)return;let n=null;if(t.value.kind===`arbitrary`?(n=t.value.value,n=K(n,t.modifier,e)):n=tn(t,e,i.themeKeys),n!==null)return i.handle(n)}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:i.themeKeys,modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}function o(r,a,o,{supportsNegative:s=!1,supportsFractions:c=!1,staticValues:l}={}){s&&t.static(`-${r}-px`,()=>o(`-1px`)),t.static(`${r}-px`,()=>o(`1px`)),i(r,{themeKeys:a,supportsFractions:c,supportsNegative:s,defaultValue:null,handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Ut(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Ut(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?Zt:[],supportsNegative:s,supportsFractions:c,valueThemeKeys:a}])}r(`sr-only`,[[`position`,`absolute`],[`width`,`1px`],[`height`,`1px`],[`padding`,`0`],[`margin`,`-1px`],[`overflow`,`hidden`],[`clip-path`,`inset(50%)`],[`white-space`,`nowrap`],[`border-width`,`0`]]),r(`not-sr-only`,[[`position`,`static`],[`width`,`auto`],[`height`,`auto`],[`padding`,`0`],[`margin`,`0`],[`overflow`,`visible`],[`clip-path`,`none`],[`white-space`,`normal`]]),r(`pointer-events-none`,[[`pointer-events`,`none`]]),r(`pointer-events-auto`,[[`pointer-events`,`auto`]]),r(`visible`,[[`visibility`,`visible`]]),r(`invisible`,[[`visibility`,`hidden`]]),r(`collapse`,[[`visibility`,`collapse`]]),r(`static`,[[`position`,`static`]]),r(`fixed`,[[`position`,`fixed`]]),r(`absolute`,[[`position`,`absolute`]]),r(`relative`,[[`position`,`relative`]]),r(`sticky`,[[`position`,`sticky`]]);for(let[e,t]of[[`inset`,`inset`],[`inset-x`,`inset-inline`],[`inset-y`,`inset-block`],[`inset-s`,`inset-inline-start`],[`inset-e`,`inset-inline-end`],[`inset-bs`,`inset-block-start`],[`inset-be`,`inset-block-end`],[`top`,`top`],[`right`,`right`],[`bottom`,`bottom`],[`left`,`left`]])r(`${e}-auto`,[[t,`auto`]]),r(`${e}-full`,[[t,`100%`]]),r(`-${e}-full`,[[t,`-100%`]]),o(e,[`--inset`,`--spacing`],e=>[B(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--z-index`],handle:e=>[B(`z-index`,e)],staticValues:{auto:[B(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--order`],handle:e=>[B(`order`,e)],staticValues:{first:[B(`order`,`-9999`)],last:[B(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[B(`grid-column`,e)],staticValues:{auto:[B(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[B(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[B(`grid-column-start`,e)],staticValues:{auto:[B(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[B(`grid-column-end`,e)],staticValues:{auto:[B(`grid-column-end`,`auto`)]}}),n(`col-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`col-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-start`]}]),n(`col-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-end`]}]),i(`row`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[B(`grid-row`,e)],staticValues:{auto:[B(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[B(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[B(`grid-row-start`,e)],staticValues:{auto:[B(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>W(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[B(`grid-row-end`,e)],staticValues:{auto:[B(`grid-row-end`,`auto`)]}}),n(`row-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`row-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-start`]}]),n(`row-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-end`]}]),r(`float-start`,[[`float`,`inline-start`]]),r(`float-end`,[[`float`,`inline-end`]]),r(`float-right`,[[`float`,`right`]]),r(`float-left`,[[`float`,`left`]]),r(`float-none`,[[`float`,`none`]]),r(`clear-start`,[[`clear`,`inline-start`]]),r(`clear-end`,[[`clear`,`inline-end`]]),r(`clear-right`,[[`clear`,`right`]]),r(`clear-left`,[[`clear`,`left`]]),r(`clear-both`,[[`clear`,`both`]]),r(`clear-none`,[[`clear`,`none`]]);for(let[e,t]of[[`m`,`margin`],[`mx`,`margin-inline`],[`my`,`margin-block`],[`ms`,`margin-inline-start`],[`me`,`margin-inline-end`],[`mbs`,`margin-block-start`],[`mbe`,`margin-block-end`],[`mt`,`margin-top`],[`mr`,`margin-right`],[`mb`,`margin-bottom`],[`ml`,`margin-left`]])r(`${e}-auto`,[[t,`auto`]]),o(e,[`--margin`,`--spacing`],e=>[B(t,e)],{supportsNegative:!0});r(`box-border`,[[`box-sizing`,`border-box`]]),r(`box-content`,[[`box-sizing`,`content-box`]]),i(`line-clamp`,{themeKeys:[`--line-clamp`],handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`overflow`,`hidden`),B(`display`,`-webkit-box`),B(`-webkit-box-orient`,`vertical`),B(`-webkit-line-clamp`,e)],staticValues:{none:[B(`overflow`,`visible`),B(`display`,`block`),B(`-webkit-box-orient`,`horizontal`),B(`-webkit-line-clamp`,`unset`)]}}),n(`line-clamp`,()=>[{values:[`1`,`2`,`3`,`4`,`5`,`6`],valueThemeKeys:[`--line-clamp`]}]),r(`block`,[[`display`,`block`]]),r(`inline-block`,[[`display`,`inline-block`]]),r(`inline`,[[`display`,`inline`]]),r(`hidden`,[[`display`,`none`]]),r(`inline-flex`,[[`display`,`inline-flex`]]),r(`table`,[[`display`,`table`]]),r(`inline-table`,[[`display`,`inline-table`]]),r(`table-caption`,[[`display`,`table-caption`]]),r(`table-cell`,[[`display`,`table-cell`]]),r(`table-column`,[[`display`,`table-column`]]),r(`table-column-group`,[[`display`,`table-column-group`]]),r(`table-footer-group`,[[`display`,`table-footer-group`]]),r(`table-header-group`,[[`display`,`table-header-group`]]),r(`table-row-group`,[[`display`,`table-row-group`]]),r(`table-row`,[[`display`,`table-row`]]),r(`flow-root`,[[`display`,`flow-root`]]),r(`flex`,[[`display`,`flex`]]),r(`grid`,[[`display`,`grid`]]),r(`inline-grid`,[[`display`,`inline-grid`]]),r(`contents`,[[`display`,`contents`]]),r(`list-item`,[[`display`,`list-item`]]),r(`field-sizing-content`,[[`field-sizing`,`content`]]),r(`field-sizing-fixed`,[[`field-sizing`,`fixed`]]),i(`aspect`,{themeKeys:[`--aspect`],handleBareValue:({fraction:e})=>{if(e===null)return null;let[t,n]=A(e,`/`);return!Ut(t)||!Ut(n)?null:e},handle:e=>[B(`aspect-ratio`,e)],staticValues:{auto:[B(`aspect-ratio`,`auto`)],square:[B(`aspect-ratio`,`1 / 1`)]}});for(let[e,t]of[[`full`,`100%`],[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`],[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`size-${e}`,[[`--tw-sort`,`size`],[`width`,t],[`height`,t]]),r(`w-${e}`,[[`width`,t]]),r(`h-${e}`,[[`height`,t]]),r(`min-w-${e}`,[[`min-width`,t]]),r(`min-h-${e}`,[[`min-height`,t]]),r(`max-w-${e}`,[[`max-width`,t]]),r(`max-h-${e}`,[[`max-height`,t]]);r(`size-auto`,[[`--tw-sort`,`size`],[`width`,`auto`],[`height`,`auto`]]),r(`w-auto`,[[`width`,`auto`]]),r(`h-auto`,[[`height`,`auto`]]),r(`min-w-auto`,[[`min-width`,`auto`]]),r(`min-h-auto`,[[`min-height`,`auto`]]),r(`h-lh`,[[`height`,`1lh`]]),r(`min-h-lh`,[[`min-height`,`1lh`]]),r(`max-h-lh`,[[`max-height`,`1lh`]]),r(`w-screen`,[[`width`,`100vw`]]),r(`min-w-screen`,[[`min-width`,`100vw`]]),r(`max-w-screen`,[[`max-width`,`100vw`]]),r(`h-screen`,[[`height`,`100vh`]]),r(`min-h-screen`,[[`min-height`,`100vh`]]),r(`max-h-screen`,[[`max-height`,`100vh`]]),r(`max-w-none`,[[`max-width`,`none`]]),r(`max-h-none`,[[`max-height`,`none`]]),o(`size`,[`--size`,`--spacing`],e=>[B(`--tw-sort`,`size`),B(`width`,e),B(`height`,e)],{supportsFractions:!0});for(let[e,t,n]of[[`w`,[`--width`,`--spacing`,`--container`],`width`],[`min-w`,[`--min-width`,`--spacing`,`--container`],`min-width`],[`max-w`,[`--max-width`,`--spacing`,`--container`],`max-width`],[`h`,[`--height`,`--spacing`],`height`],[`min-h`,[`--min-height`,`--height`,`--spacing`],`min-height`],[`max-h`,[`--max-height`,`--height`,`--spacing`],`max-height`]])o(e,t,e=>[B(n,e)],{supportsFractions:!0});for(let[e,t]of[[`full`,`100%`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`block-${e}`,[[`block-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);for(let[e,t]of[[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]);for(let[e,t]of[[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`]])r(`block-${e}`,[[`block-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);r(`inline-auto`,[[`inline-size`,`auto`]]),r(`block-auto`,[[`block-size`,`auto`]]),r(`min-inline-auto`,[[`min-inline-size`,`auto`]]),r(`min-block-auto`,[[`min-block-size`,`auto`]]),r(`block-lh`,[[`block-size`,`1lh`]]),r(`min-block-lh`,[[`min-block-size`,`1lh`]]),r(`max-block-lh`,[[`max-block-size`,`1lh`]]),r(`inline-screen`,[[`inline-size`,`100vw`]]),r(`min-inline-screen`,[[`min-inline-size`,`100vw`]]),r(`max-inline-screen`,[[`max-inline-size`,`100vw`]]),r(`block-screen`,[[`block-size`,`100vh`]]),r(`min-block-screen`,[[`min-block-size`,`100vh`]]),r(`max-block-screen`,[[`max-block-size`,`100vh`]]),r(`max-inline-none`,[[`max-inline-size`,`none`]]),r(`max-block-none`,[[`max-block-size`,`none`]]);for(let[e,t,n]of[[`inline`,[`--spacing`,`--container`],`inline-size`],[`min-inline`,[`--spacing`,`--container`],`min-inline-size`],[`max-inline`,[`--spacing`,`--container`],`max-inline-size`],[`block`,[`--spacing`],`block-size`],[`min-block`,[`--spacing`],`min-block-size`],[`max-block`,[`--spacing`],`max-block-size`]])o(e,t,e=>[B(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>ct(e,t,`asc`));let n=[B(`--tw-sort`,`--tw-container-component`),B(`width`,`100%`)];for(let e of t)n.push(R(`@media`,`(width >= ${e})`,[B(`max-width`,e)]));return n}),r(`flex-auto`,[[`flex`,`auto`]]),r(`flex-initial`,[[`flex`,`0 auto`]]),r(`flex-none`,[[`flex`,`none`]]),t.functional(`flex`,e=>{if(e.value){if(e.value.kind===`arbitrary`)return e.modifier?void 0:[B(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=A(e.value.fraction,`/`);return!W(t)||!W(n)?void 0:[B(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(W(e.value.value))return e.modifier?void 0:[B(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`flex-grow`,e)]}),n(`shrink`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),n(`grow`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),r(`basis-auto`,[[`flex-basis`,`auto`]]),r(`basis-full`,[[`flex-basis`,`100%`]]),o(`basis`,[`--flex-basis`,`--spacing`,`--container`],e=>[B(`flex-basis`,e)],{supportsFractions:!0}),r(`table-auto`,[[`table-layout`,`auto`]]),r(`table-fixed`,[[`table-layout`,`fixed`]]),r(`caption-top`,[[`caption-side`,`top`]]),r(`caption-bottom`,[[`caption-side`,`bottom`]]),r(`border-collapse`,[[`border-collapse`,`collapse`]]),r(`border-separate`,[[`border-collapse`,`separate`]]);let s=()=>V([G(`--tw-border-spacing-x`,`0`,`<length>`),G(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),B(`--tw-border-spacing-x`,e),B(`--tw-border-spacing-y`,e),B(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),B(`--tw-border-spacing-x`,e),B(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),B(`--tw-border-spacing-y`,e),B(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[B(`transform-origin`,e)],staticValues:{center:[B(`transform-origin`,`center`)],top:[B(`transform-origin`,`top`)],"top-right":[B(`transform-origin`,`100% 0`)],right:[B(`transform-origin`,`100%`)],"bottom-right":[B(`transform-origin`,`100% 100%`)],bottom:[B(`transform-origin`,`bottom`)],"bottom-left":[B(`transform-origin`,`0 100%`)],left:[B(`transform-origin`,`0`)],"top-left":[B(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[B(`perspective-origin`,e)],staticValues:{center:[B(`perspective-origin`,`center`)],top:[B(`perspective-origin`,`top`)],"top-right":[B(`perspective-origin`,`100% 0`)],right:[B(`perspective-origin`,`100%`)],"bottom-right":[B(`perspective-origin`,`100% 100%`)],bottom:[B(`perspective-origin`,`bottom`)],"bottom-left":[B(`perspective-origin`,`0 100%`)],left:[B(`perspective-origin`,`0`)],"top-left":[B(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[B(`perspective`,e)],staticValues:{none:[B(`perspective`,`none`)]}});let c=()=>V([G(`--tw-translate-x`,`0`),G(`--tw-translate-y`,`0`),G(`--tw-translate-z`,`0`)]);r(`translate-none`,[[`translate`,`none`]]),r(`-translate-full`,[c,[`--tw-translate-x`,`-100%`],[`--tw-translate-y`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-full`,[c,[`--tw-translate-x`,`100%`],[`--tw-translate-y`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate`,[`--translate`,`--spacing`],e=>[c(),B(`--tw-translate-x`,e),B(`--tw-translate-y`,e),B(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});for(let e of[`x`,`y`])r(`-translate-${e}-full`,[c,[`--tw-translate-${e}`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-${e}-full`,[c,[`--tw-translate-${e}`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate-${e}`,[`--translate`,`--spacing`],t=>[c(),B(`--tw-translate-${e}`,t),B(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),B(`--tw-translate-z`,e),B(`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`)],{supportsNegative:!0}),r(`translate-3d`,[c,[`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`]]);let l=()=>V([G(`--tw-scale-x`,`1`),G(`--tw-scale-y`,`1`),G(`--tw-scale-z`,`1`)]);r(`scale-none`,[[`scale`,`none`]]);function u({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;return n.value.kind===`arbitrary`?(r=n.value.value,r=t?`calc(${r} * -1)`:r,[B(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&W(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),B(`--tw-scale-x`,r),B(`--tw-scale-y`,r),B(`--tw-scale-z`,r),B(`scale`,`var(--tw-scale-x) var(--tw-scale-y)`)]):void 0)}}t.functional(`-scale`,u({negative:!0})),t.functional(`scale`,u({negative:!1})),n(`scale`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);for(let e of[`x`,`y`,`z`])i(`scale-${e}`,{supportsNegative:!0,themeKeys:[`--scale`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:t=>[l(),B(`--tw-scale-${e}`,t),B(`scale`,`var(--tw-scale-x) var(--tw-scale-y)${e===`z`?` var(--tw-scale-z)`:``}`)]}),n(`scale-${e}`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);r(`scale-3d`,[l,[`scale`,`var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)`]]),r(`rotate-none`,[[`rotate`,`none`]]);function d({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;if(n.value.kind===`arbitrary`){r=n.value.value;let e=n.value.dataType??U(r,[`angle`,`vector`]);if(e===`vector`)return[B(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[B(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&W(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[B(`rotate`,t?`calc(${r} * -1)`:r)]}}t.functional(`-rotate`,d({negative:!0})),t.functional(`rotate`,d({negative:!1})),n(`rotate`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);{let e=[`var(--tw-rotate-x,)`,`var(--tw-rotate-y,)`,`var(--tw-rotate-z,)`,`var(--tw-skew-x,)`,`var(--tw-skew-y,)`].join(` `),a=()=>V([G(`--tw-rotate-x`),G(`--tw-rotate-y`),G(`--tw-rotate-z`),G(`--tw-skew-x`),G(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:n=>[a(),B(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),B(`transform`,e)]}),n(`rotate-${t}`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);i(`skew`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:t=>[a(),B(`--tw-skew-x`,`skewX(${t})`),B(`--tw-skew-y`,`skewY(${t})`),B(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:t=>[a(),B(`--tw-skew-x`,`skewX(${t})`),B(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:t=>[a(),B(`--tw-skew-y`,`skewY(${t})`),B(`transform`,e)]}),n(`skew`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-x`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-y`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),t.functional(`transform`,t=>{if(t.modifier)return;let n=null;if(t.value?t.value.kind===`arbitrary`&&(n=t.value.value):n=e,n!==null)return[a(),B(`transform`,n)]}),n(`transform`,()=>[{hasDefaultValue:!0}]),r(`transform-cpu`,[[`transform`,e]]),r(`transform-gpu`,[[`transform`,`translateZ(0) ${e}`]]),r(`transform-none`,[[`transform`,`none`]])}i(`zoom`,{handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[B(`zoom`,e)]}),n(`zoom`,()=>[{values:[`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`]}]),r(`transform-flat`,[[`transform-style`,`flat`]]),r(`transform-3d`,[[`transform-style`,`preserve-3d`]]),r(`transform-content`,[[`transform-box`,`content-box`]]),r(`transform-border`,[[`transform-box`,`border-box`]]),r(`transform-fill`,[[`transform-box`,`fill-box`]]),r(`transform-stroke`,[[`transform-box`,`stroke-box`]]),r(`transform-view`,[[`transform-box`,`view-box`]]),r(`backface-visible`,[[`backface-visibility`,`visible`]]),r(`backface-hidden`,[[`backface-visibility`,`hidden`]]);for(let e of`auto.default.pointer.wait.text.move.help.not-allowed.none.context-menu.progress.cell.crosshair.vertical-text.alias.copy.no-drop.grab.grabbing.all-scroll.col-resize.row-resize.n-resize.e-resize.s-resize.w-resize.ne-resize.nw-resize.se-resize.sw-resize.ew-resize.ns-resize.nesw-resize.nwse-resize.zoom-in.zoom-out`.split(`.`))r(`cursor-${e}`,[[`cursor`,e]]);i(`cursor`,{themeKeys:[`--cursor`],handle:e=>[B(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>V([G(`--tw-pan-x`),G(`--tw-pan-y`),G(`--tw-pinch-zoom`)]);for(let e of[`x`,`left`,`right`])r(`touch-pan-${e}`,[f,[`--tw-pan-x`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`y`,`up`,`down`])r(`touch-pan-${e}`,[f,[`--tw-pan-y`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);r(`touch-pinch-zoom`,[f,[`--tw-pinch-zoom`,`pinch-zoom`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`none`,`text`,`all`,`auto`])r(`select-${e}`,[[`-webkit-user-select`,e],[`user-select`,e]]);r(`resize-none`,[[`resize`,`none`]]),r(`resize-x`,[[`resize`,`horizontal`]]),r(`resize-y`,[[`resize`,`vertical`]]),r(`resize`,[[`resize`,`both`]]),r(`snap-none`,[[`scroll-snap-type`,`none`]]);let p=()=>V([G(`--tw-scroll-snap-strictness`,`proximity`,`*`)]);for(let e of[`x`,`y`,`both`])r(`snap-${e}`,[p,[`scroll-snap-type`,`${e} var(--tw-scroll-snap-strictness)`]]);r(`snap-mandatory`,[p,[`--tw-scroll-snap-strictness`,`mandatory`]]),r(`snap-proximity`,[p,[`--tw-scroll-snap-strictness`,`proximity`]]),r(`snap-align-none`,[[`scroll-snap-align`,`none`]]),r(`snap-start`,[[`scroll-snap-align`,`start`]]),r(`snap-end`,[[`scroll-snap-align`,`end`]]),r(`snap-center`,[[`scroll-snap-align`,`center`]]),r(`snap-normal`,[[`scroll-snap-stop`,`normal`]]),r(`snap-always`,[[`scroll-snap-stop`,`always`]]);for(let[e,t]of[[`scroll-m`,`scroll-margin`],[`scroll-mx`,`scroll-margin-inline`],[`scroll-my`,`scroll-margin-block`],[`scroll-ms`,`scroll-margin-inline-start`],[`scroll-me`,`scroll-margin-inline-end`],[`scroll-mbs`,`scroll-margin-block-start`],[`scroll-mbe`,`scroll-margin-block-end`],[`scroll-mt`,`scroll-margin-top`],[`scroll-mr`,`scroll-margin-right`],[`scroll-mb`,`scroll-margin-bottom`],[`scroll-ml`,`scroll-margin-left`]])o(e,[`--scroll-margin`,`--spacing`],e=>[B(t,e)],{supportsNegative:!0});for(let[e,t]of[[`scroll-p`,`scroll-padding`],[`scroll-px`,`scroll-padding-inline`],[`scroll-py`,`scroll-padding-block`],[`scroll-ps`,`scroll-padding-inline-start`],[`scroll-pe`,`scroll-padding-inline-end`],[`scroll-pbs`,`scroll-padding-block-start`],[`scroll-pbe`,`scroll-padding-block-end`],[`scroll-pt`,`scroll-padding-top`],[`scroll-pr`,`scroll-padding-right`],[`scroll-pb`,`scroll-padding-bottom`],[`scroll-pl`,`scroll-padding-left`]])o(e,[`--scroll-padding`,`--spacing`],e=>[B(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[B(`list-style-type`,e)],staticValues:{none:[B(`list-style-type`,`none`)],disc:[B(`list-style-type`,`disc`)],decimal:[B(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[B(`list-style-image`,e)],staticValues:{none:[B(`list-style-image`,`none`)]}}),r(`appearance-none`,[[`appearance`,`none`]]),r(`appearance-auto`,[[`appearance`,`auto`]]),r(`scheme-normal`,[[`color-scheme`,`normal`]]),r(`scheme-dark`,[[`color-scheme`,`dark`]]),r(`scheme-light`,[[`color-scheme`,`light`]]),r(`scheme-light-dark`,[[`color-scheme`,`light dark`]]),r(`scheme-only-dark`,[[`color-scheme`,`only dark`]]),r(`scheme-only-light`,[[`color-scheme`,`only light`]]),i(`columns`,{themeKeys:[`--columns`,`--container`],handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`columns`,e)],staticValues:{auto:[B(`columns`,`auto`)]}}),n(`columns`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--columns`,`--container`]}]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-before-${e}`,[[`break-before`,e]]);for(let e of[`auto`,`avoid`,`avoid-page`,`avoid-column`])r(`break-inside-${e}`,[[`break-inside`,e]]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-after-${e}`,[[`break-after`,e]]);r(`grid-flow-row`,[[`grid-auto-flow`,`row`]]),r(`grid-flow-col`,[[`grid-auto-flow`,`column`]]),r(`grid-flow-dense`,[[`grid-auto-flow`,`dense`]]),r(`grid-flow-row-dense`,[[`grid-auto-flow`,`row dense`]]),r(`grid-flow-col-dense`,[[`grid-auto-flow`,`column dense`]]),i(`auto-cols`,{themeKeys:[`--grid-auto-columns`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Ut(t)?null:`--spacing(${t})`,handle:e=>[B(`grid-auto-columns`,e)],staticValues:{auto:[B(`grid-auto-columns`,`auto`)],min:[B(`grid-auto-columns`,`min-content`)],max:[B(`grid-auto-columns`,`max-content`)],fr:[B(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Ut(t)?null:`--spacing(${t})`,handle:e=>[B(`grid-auto-rows`,e)],staticValues:{auto:[B(`grid-auto-rows`,`auto`)],min:[B(`grid-auto-rows`,`min-content`)],max:[B(`grid-auto-rows`,`max-content`)],fr:[B(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>Ht(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[B(`grid-template-columns`,e)],staticValues:{none:[B(`grid-template-columns`,`none`)],subgrid:[B(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>Ht(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[B(`grid-template-rows`,e)],staticValues:{none:[B(`grid-template-rows`,`none`)],subgrid:[B(`grid-template-rows`,`subgrid`)]}}),n(`grid-cols`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-columns`]}]),n(`grid-rows`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-rows`]}]),r(`flex-row`,[[`flex-direction`,`row`]]),r(`flex-row-reverse`,[[`flex-direction`,`row-reverse`]]),r(`flex-col`,[[`flex-direction`,`column`]]),r(`flex-col-reverse`,[[`flex-direction`,`column-reverse`]]),r(`flex-wrap`,[[`flex-wrap`,`wrap`]]),r(`flex-nowrap`,[[`flex-wrap`,`nowrap`]]),r(`flex-wrap-reverse`,[[`flex-wrap`,`wrap-reverse`]]),r(`place-content-center`,[[`place-content`,`center`]]),r(`place-content-start`,[[`place-content`,`start`]]),r(`place-content-end`,[[`place-content`,`end`]]),r(`place-content-center-safe`,[[`place-content`,`safe center`]]),r(`place-content-end-safe`,[[`place-content`,`safe end`]]),r(`place-content-between`,[[`place-content`,`space-between`]]),r(`place-content-around`,[[`place-content`,`space-around`]]),r(`place-content-evenly`,[[`place-content`,`space-evenly`]]),r(`place-content-baseline`,[[`place-content`,`baseline`]]),r(`place-content-stretch`,[[`place-content`,`stretch`]]),r(`place-items-center`,[[`place-items`,`center`]]),r(`place-items-start`,[[`place-items`,`start`]]),r(`place-items-end`,[[`place-items`,`end`]]),r(`place-items-center-safe`,[[`place-items`,`safe center`]]),r(`place-items-end-safe`,[[`place-items`,`safe end`]]),r(`place-items-baseline`,[[`place-items`,`baseline`]]),r(`place-items-stretch`,[[`place-items`,`stretch`]]),r(`content-normal`,[[`align-content`,`normal`]]),r(`content-center`,[[`align-content`,`center`]]),r(`content-start`,[[`align-content`,`flex-start`]]),r(`content-end`,[[`align-content`,`flex-end`]]),r(`content-center-safe`,[[`align-content`,`safe center`]]),r(`content-end-safe`,[[`align-content`,`safe flex-end`]]),r(`content-between`,[[`align-content`,`space-between`]]),r(`content-around`,[[`align-content`,`space-around`]]),r(`content-evenly`,[[`align-content`,`space-evenly`]]),r(`content-baseline`,[[`align-content`,`baseline`]]),r(`content-stretch`,[[`align-content`,`stretch`]]),r(`items-center`,[[`align-items`,`center`]]),r(`items-start`,[[`align-items`,`flex-start`]]),r(`items-end`,[[`align-items`,`flex-end`]]),r(`items-center-safe`,[[`align-items`,`safe center`]]),r(`items-end-safe`,[[`align-items`,`safe flex-end`]]),r(`items-baseline`,[[`align-items`,`baseline`]]),r(`items-baseline-last`,[[`align-items`,`last baseline`]]),r(`items-stretch`,[[`align-items`,`stretch`]]),r(`justify-normal`,[[`justify-content`,`normal`]]),r(`justify-center`,[[`justify-content`,`center`]]),r(`justify-start`,[[`justify-content`,`flex-start`]]),r(`justify-end`,[[`justify-content`,`flex-end`]]),r(`justify-center-safe`,[[`justify-content`,`safe center`]]),r(`justify-end-safe`,[[`justify-content`,`safe flex-end`]]),r(`justify-between`,[[`justify-content`,`space-between`]]),r(`justify-around`,[[`justify-content`,`space-around`]]),r(`justify-evenly`,[[`justify-content`,`space-evenly`]]),r(`justify-baseline`,[[`justify-content`,`baseline`]]),r(`justify-stretch`,[[`justify-content`,`stretch`]]),r(`justify-items-normal`,[[`justify-items`,`normal`]]),r(`justify-items-center`,[[`justify-items`,`center`]]),r(`justify-items-start`,[[`justify-items`,`start`]]),r(`justify-items-end`,[[`justify-items`,`end`]]),r(`justify-items-center-safe`,[[`justify-items`,`safe center`]]),r(`justify-items-end-safe`,[[`justify-items`,`safe end`]]),r(`justify-items-stretch`,[[`justify-items`,`stretch`]]),o(`gap`,[`--gap`,`--spacing`],e=>[B(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[B(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[B(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ut.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Ft(e))})();return[V([G(`--tw-space-x-reverse`,`0`)]),L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`row-gap`),B(`--tw-space-x-reverse`,`0`),B(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),B(`margin-inline-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-x-reverse)))`)])]},{supportsNegative:!0}),o(`space-y`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ut.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Ft(e))})();return[V([G(`--tw-space-y-reverse`,`0`)]),L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`column-gap`),B(`--tw-space-y-reverse`,`0`),B(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),B(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>V([G(`--tw-space-x-reverse`,`0`)]),()=>L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`row-gap`),B(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>V([G(`--tw-space-y-reverse`,`0`)]),()=>L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`column-gap`),B(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[B(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[B(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`divide-color`),B(`border-color`,e)])]}),r(`place-self-auto`,[[`place-self`,`auto`]]),r(`place-self-start`,[[`place-self`,`start`]]),r(`place-self-end`,[[`place-self`,`end`]]),r(`place-self-center`,[[`place-self`,`center`]]),r(`place-self-end-safe`,[[`place-self`,`safe end`]]),r(`place-self-center-safe`,[[`place-self`,`safe center`]]),r(`place-self-stretch`,[[`place-self`,`stretch`]]),r(`self-auto`,[[`align-self`,`auto`]]),r(`self-start`,[[`align-self`,`flex-start`]]),r(`self-end`,[[`align-self`,`flex-end`]]),r(`self-center`,[[`align-self`,`center`]]),r(`self-end-safe`,[[`align-self`,`safe flex-end`]]),r(`self-center-safe`,[[`align-self`,`safe center`]]),r(`self-stretch`,[[`align-self`,`stretch`]]),r(`self-baseline`,[[`align-self`,`baseline`]]),r(`self-baseline-last`,[[`align-self`,`last baseline`]]),r(`justify-self-auto`,[[`justify-self`,`auto`]]),r(`justify-self-start`,[[`justify-self`,`flex-start`]]),r(`justify-self-end`,[[`justify-self`,`flex-end`]]),r(`justify-self-center`,[[`justify-self`,`center`]]),r(`justify-self-end-safe`,[[`justify-self`,`safe flex-end`]]),r(`justify-self-center-safe`,[[`justify-self`,`safe center`]]),r(`justify-self-stretch`,[[`justify-self`,`stretch`]]);for(let e of[`auto`,`hidden`,`clip`,`visible`,`scroll`])r(`overflow-${e}`,[[`overflow`,e]]),r(`overflow-x-${e}`,[[`overflow-x`,e]]),r(`overflow-y-${e}`,[[`overflow-y`,e]]);for(let e of[`auto`,`contain`,`none`])r(`overscroll-${e}`,[[`overscroll-behavior`,e]]),r(`overscroll-x-${e}`,[[`overscroll-behavior-x`,e]]),r(`overscroll-y-${e}`,[[`overscroll-behavior-y`,e]]);r(`scroll-auto`,[[`scroll-behavior`,`auto`]]),r(`scroll-smooth`,[[`scroll-behavior`,`smooth`]]),r(`scrollbar-auto`,[[`scrollbar-width`,`auto`]]),r(`scrollbar-thin`,[[`scrollbar-width`,`thin`]]),r(`scrollbar-none`,[[`scrollbar-width`,`none`]]);{let e=()=>V([G(`--tw-scrollbar-thumb`,`#0000`,`<color>`),G(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),B(`--tw-scrollbar-thumb`,t),B(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),B(`--tw-scrollbar-track`,t),B(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]})}r(`scrollbar-gutter-auto`,[[`scrollbar-gutter`,`auto`]]),r(`scrollbar-gutter-stable`,[[`scrollbar-gutter`,`stable`]]),r(`scrollbar-gutter-both`,[[`scrollbar-gutter`,`stable both-edges`]]),r(`truncate`,[[`overflow`,`hidden`],[`text-overflow`,`ellipsis`],[`white-space`,`nowrap`]]),r(`text-ellipsis`,[[`text-overflow`,`ellipsis`]]),r(`text-clip`,[[`text-overflow`,`clip`]]),r(`hyphens-none`,[[`-webkit-hyphens`,`none`],[`hyphens`,`none`]]),r(`hyphens-manual`,[[`-webkit-hyphens`,`manual`],[`hyphens`,`manual`]]),r(`hyphens-auto`,[[`-webkit-hyphens`,`auto`],[`hyphens`,`auto`]]),r(`whitespace-normal`,[[`white-space`,`normal`]]),r(`whitespace-nowrap`,[[`white-space`,`nowrap`]]),r(`whitespace-pre`,[[`white-space`,`pre`]]),r(`whitespace-pre-line`,[[`white-space`,`pre-line`]]),r(`whitespace-pre-wrap`,[[`white-space`,`pre-wrap`]]),r(`whitespace-break-spaces`,[[`white-space`,`break-spaces`]]),i(`tab`,{handleBareValue:({value:e})=>W(e)?e:null,handle:e=>[B(`tab-size`,e)]}),n(`tab`,()=>[{values:[`2`,`4`,`8`]}]),r(`text-wrap`,[[`text-wrap`,`wrap`]]),r(`text-nowrap`,[[`text-wrap`,`nowrap`]]),r(`text-balance`,[[`text-wrap`,`balance`]]),r(`text-pretty`,[[`text-wrap`,`pretty`]]),r(`break-normal`,[[`overflow-wrap`,`normal`],[`word-break`,`normal`]]),r(`break-all`,[[`word-break`,`break-all`]]),r(`break-keep`,[[`word-break`,`keep-all`]]),r(`wrap-anywhere`,[[`overflow-wrap`,`anywhere`]]),r(`wrap-break-word`,[[`overflow-wrap`,`break-word`]]),r(`wrap-normal`,[[`overflow-wrap`,`normal`]]);for(let[e,t]of[[`rounded`,[`border-radius`]],[`rounded-s`,[`border-start-start-radius`,`border-end-start-radius`]],[`rounded-e`,[`border-start-end-radius`,`border-end-end-radius`]],[`rounded-t`,[`border-top-left-radius`,`border-top-right-radius`]],[`rounded-r`,[`border-top-right-radius`,`border-bottom-right-radius`]],[`rounded-b`,[`border-bottom-right-radius`,`border-bottom-left-radius`]],[`rounded-l`,[`border-top-left-radius`,`border-bottom-left-radius`]],[`rounded-ss`,[`border-start-start-radius`]],[`rounded-se`,[`border-start-end-radius`]],[`rounded-ee`,[`border-end-end-radius`]],[`rounded-es`,[`border-end-start-radius`]],[`rounded-tl`,[`border-top-left-radius`]],[`rounded-tr`,[`border-top-right-radius`]],[`rounded-br`,[`border-bottom-right-radius`]],[`rounded-bl`,[`border-bottom-left-radius`]]])i(e,{themeKeys:[`--radius`],handle:e=>t.map(t=>B(t,e)),staticValues:{none:t.map(e=>B(e,`0`)),full:t.map(e=>B(e,`calc(infinity * 1px)`))}});r(`border-solid`,[[`--tw-border-style`,`solid`],[`border-style`,`solid`]]),r(`border-dashed`,[[`--tw-border-style`,`dashed`],[`border-style`,`dashed`]]),r(`border-dotted`,[[`--tw-border-style`,`dotted`],[`border-style`,`dotted`]]),r(`border-double`,[[`--tw-border-style`,`double`],[`border-style`,`double`]]),r(`border-hidden`,[[`--tw-border-style`,`hidden`],[`border-style`,`hidden`]]),r(`border-none`,[[`--tw-border-style`,`none`],[`border-style`,`none`]]);{let a=function(r,i){t.functional(r,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-border-width`])??`1px`,r=i.width(n);return r?[o(),...r]:void 0}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`line-width`,`length`])){case`line-width`:case`length`:{if(t.modifier)return;let e=i.width(n);return e?[o(),...e]:void 0}default:return n=K(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=tn(t,e,[`--border-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--border-width`]);if(n){let e=i.width(n);return e?[o(),...e]:void 0}if(W(t.value.value)){let e=i.width(`${t.value.value}px`);return e?[o(),...e]:void 0}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--border-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--border-width`]}])},o=()=>V([G(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[B(`border-style`,`var(--tw-border-style)`),B(`border-width`,e)],color:e=>[B(`border-color`,e)]}),a(`border-x`,{width:e=>[B(`border-inline-style`,`var(--tw-border-style)`),B(`border-inline-width`,e)],color:e=>[B(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[B(`border-block-style`,`var(--tw-border-style)`),B(`border-block-width`,e)],color:e=>[B(`border-block-color`,e)]}),a(`border-s`,{width:e=>[B(`border-inline-start-style`,`var(--tw-border-style)`),B(`border-inline-start-width`,e)],color:e=>[B(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[B(`border-inline-end-style`,`var(--tw-border-style)`),B(`border-inline-end-width`,e)],color:e=>[B(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[B(`border-block-start-style`,`var(--tw-border-style)`),B(`border-block-start-width`,e)],color:e=>[B(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[B(`border-block-end-style`,`var(--tw-border-style)`),B(`border-block-end-width`,e)],color:e=>[B(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[B(`border-top-style`,`var(--tw-border-style)`),B(`border-top-width`,e)],color:e=>[B(`border-top-color`,e)]}),a(`border-r`,{width:e=>[B(`border-right-style`,`var(--tw-border-style)`),B(`border-right-width`,e)],color:e=>[B(`border-right-color`,e)]}),a(`border-b`,{width:e=>[B(`border-bottom-style`,`var(--tw-border-style)`),B(`border-bottom-width`,e)],color:e=>[B(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[B(`border-left-style`,`var(--tw-border-style)`),B(`border-left-width`,e)],color:e=>[B(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>W(e)?`${e}px`:null,handle:e=>[V([G(`--tw-divide-x-reverse`,`0`)]),L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`divide-x-width`),o(),B(`--tw-divide-x-reverse`,`0`),B(`border-inline-style`,`var(--tw-border-style)`),B(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),B(`border-inline-end-width`,`calc(${e} * calc(1 - var(--tw-divide-x-reverse)))`)])]}),i(`divide-y`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>W(e)?`${e}px`:null,handle:e=>[V([G(`--tw-divide-y-reverse`,`0`)]),L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`divide-y-width`),o(),B(`--tw-divide-y-reverse`,`0`),B(`border-bottom-style`,`var(--tw-border-style)`),B(`border-top-style`,`var(--tw-border-style)`),B(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),B(`border-bottom-width`,`calc(${e} * calc(1 - var(--tw-divide-y-reverse)))`)])]}),n(`divide-x`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),n(`divide-y`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),r(`divide-x-reverse`,[()=>V([G(`--tw-divide-x-reverse`,`0`)]),()=>L(`:where(& > :not(:last-child))`,[B(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>V([G(`--tw-divide-y-reverse`,`0`)]),()=>L(`:where(& > :not(:last-child))`,[B(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>L(`:where(& > :not(:last-child))`,[B(`--tw-sort`,`divide-style`),B(`--tw-border-style`,e),B(`border-style`,e)])])}r(`bg-auto`,[[`background-size`,`auto`]]),r(`bg-cover`,[[`background-size`,`cover`]]),r(`bg-contain`,[[`background-size`,`contain`]]),i(`bg-size`,{handle(e){if(e)return[B(`background-size`,e)]}}),r(`bg-fixed`,[[`background-attachment`,`fixed`]]),r(`bg-local`,[[`background-attachment`,`local`]]),r(`bg-scroll`,[[`background-attachment`,`scroll`]]),r(`bg-top`,[[`background-position`,`top`]]),r(`bg-top-left`,[[`background-position`,`left top`]]),r(`bg-top-right`,[[`background-position`,`right top`]]),r(`bg-bottom`,[[`background-position`,`bottom`]]),r(`bg-bottom-left`,[[`background-position`,`left bottom`]]),r(`bg-bottom-right`,[[`background-position`,`right bottom`]]),r(`bg-left`,[[`background-position`,`left`]]),r(`bg-right`,[[`background-position`,`right`]]),r(`bg-center`,[[`background-position`,`center`]]),i(`bg-position`,{handle(e){if(e)return[B(`background-position`,e)]}}),r(`bg-repeat`,[[`background-repeat`,`repeat`]]),r(`bg-no-repeat`,[[`background-repeat`,`no-repeat`]]),r(`bg-repeat-x`,[[`background-repeat`,`repeat-x`]]),r(`bg-repeat-y`,[[`background-repeat`,`repeat-y`]]),r(`bg-repeat-round`,[[`background-repeat`,`round`]]),r(`bg-repeat-space`,[[`background-repeat`,`space`]]),r(`bg-none`,[[`background-image`,`none`]]);{let e=function(e){let t=`in oklab`;if(e?.kind===`named`)switch(e.value){case`longer`:case`shorter`:case`increasing`:case`decreasing`:t=`in oklch ${e.value} hue`;break;default:t=`in ${e.value}`}else e?.kind===`arbitrary`&&(t=e.value);return t},r=function({negative:t}){return n=>{if(!n.value)return;if(n.value.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return(n.value.dataType??U(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[B(`--tw-gradient-position`,e),B(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[B(`--tw-gradient-position`,e),B(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]}let r=n.value.value;if(!t&&o.has(r))r=o.get(r);else if(W(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[B(`--tw-gradient-position`,`${r}`),z(`@supports (background-image: linear-gradient(in lab, red, red))`,[B(`--tw-gradient-position`,`${r} ${i}`)]),B(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]}},i=function({negative:t}){return n=>{if(n.value?.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return[B(`--tw-gradient-position`,e),B(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[B(`--tw-gradient-position`,r),B(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(W(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[B(`--tw-gradient-position`,`from ${i} ${r}`),B(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)]}},a=[`oklab`,`oklch`,`srgb`,`hsl`,`longer`,`shorter`,`increasing`,`decreasing`],o=new Map([[`to-t`,`to top`],[`to-tr`,`to top right`],[`to-r`,`to right`],[`to-br`,`to bottom right`],[`to-b`,`to bottom`],[`to-bl`,`to bottom left`],[`to-l`,`to left`],[`to-tl`,`to top left`]]);t.functional(`-bg-linear`,r({negative:!0})),t.functional(`bg-linear`,r({negative:!1})),n(`bg-linear`,()=>[{values:[...o.keys()],modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`-bg-conic`,i({negative:!0})),t.functional(`bg-conic`,i({negative:!1})),n(`bg-conic`,()=>[{hasDefaultValue:!0,modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`bg-radial`,t=>{if(!t.value)return[B(`--tw-gradient-position`,e(t.modifier)),B(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[B(`--tw-gradient-position`,e),B(`background-image`,`radial-gradient(var(--tw-gradient-stops,${e}))`)]}}),n(`bg-radial`,()=>[{hasDefaultValue:!0,modifiers:a}])}t.functional(`bg`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[B(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[B(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[B(`background-image`,n)];default:return n=K(n,t.modifier,e),n===null?void 0:[B(`background-color`,n)]}}{let n=tn(t,e,[`--background-color`,`--color`]);if(n)return[B(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[B(`background-image`,n)]}}}),n(`bg`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--background-image`]}]);let m=()=>V([G(`--tw-gradient-position`),G(`--tw-gradient-from`,`#0000`,`<color>`),G(`--tw-gradient-via`,`#0000`,`<color>`),G(`--tw-gradient-to`,`#0000`,`<color>`),G(`--tw-gradient-stops`),G(`--tw-gradient-via-stops`),G(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),G(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),G(`--tw-gradient-to-position`,`100%`,`<length-percentage>`)]);function h(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=K(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=tn(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--gradient-color-stop-positions`]);if(n)return i.position(n);if(t.value.value[t.value.value.length-1]===`%`&&W(t.value.value.slice(0,-1)))return i.position(t.value.value)}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}])}h(`from`,{color:e=>[m(),B(`--tw-sort`,`--tw-gradient-from`),B(`--tw-gradient-from`,e),B(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),B(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),B(`--tw-sort`,`--tw-gradient-via`),B(`--tw-gradient-via`,e),B(`--tw-gradient-via-stops`,`var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position)`),B(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),B(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),B(`--tw-sort`,`--tw-gradient-to`),B(`--tw-gradient-to`,e),B(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),B(`--tw-gradient-to-position`,e)]}),r(`mask-none`,[[`mask-image`,`none`]]),t.functional(`mask`,e=>{if(!e.value||e.modifier||e.value.kind!==`arbitrary`)return;let t=e.value.value;switch(e.value.dataType??U(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[B(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[B(`mask-size`,t)];default:return[B(`mask-image`,t)]}}),r(`mask-add`,[[`mask-composite`,`add`]]),r(`mask-subtract`,[[`mask-composite`,`subtract`]]),r(`mask-intersect`,[[`mask-composite`,`intersect`]]),r(`mask-exclude`,[[`mask-composite`,`exclude`]]),r(`mask-alpha`,[[`mask-mode`,`alpha`]]),r(`mask-luminance`,[[`mask-mode`,`luminance`]]),r(`mask-match`,[[`mask-mode`,`match-source`]]),r(`mask-type-alpha`,[[`mask-type`,`alpha`]]),r(`mask-type-luminance`,[[`mask-type`,`luminance`]]),r(`mask-auto`,[[`mask-size`,`auto`]]),r(`mask-cover`,[[`mask-size`,`cover`]]),r(`mask-contain`,[[`mask-size`,`contain`]]),i(`mask-size`,{handle(e){if(e)return[B(`mask-size`,e)]}}),r(`mask-top`,[[`mask-position`,`top`]]),r(`mask-top-left`,[[`mask-position`,`left top`]]),r(`mask-top-right`,[[`mask-position`,`right top`]]),r(`mask-bottom`,[[`mask-position`,`bottom`]]),r(`mask-bottom-left`,[[`mask-position`,`left bottom`]]),r(`mask-bottom-right`,[[`mask-position`,`right bottom`]]),r(`mask-left`,[[`mask-position`,`left`]]),r(`mask-right`,[[`mask-position`,`right`]]),r(`mask-center`,[[`mask-position`,`center`]]),i(`mask-position`,{handle(e){if(e)return[B(`mask-position`,e)]}}),r(`mask-repeat`,[[`mask-repeat`,`repeat`]]),r(`mask-no-repeat`,[[`mask-repeat`,`no-repeat`]]),r(`mask-repeat-x`,[[`mask-repeat`,`repeat-x`]]),r(`mask-repeat-y`,[[`mask-repeat`,`repeat-y`]]),r(`mask-repeat-round`,[[`mask-repeat`,`round`]]),r(`mask-repeat-space`,[[`mask-repeat`,`space`]]),r(`mask-clip-border`,[[`mask-clip`,`border-box`]]),r(`mask-clip-padding`,[[`mask-clip`,`padding-box`]]),r(`mask-clip-content`,[[`mask-clip`,`content-box`]]),r(`mask-clip-fill`,[[`mask-clip`,`fill-box`]]),r(`mask-clip-stroke`,[[`mask-clip`,`stroke-box`]]),r(`mask-clip-view`,[[`mask-clip`,`view-box`]]),r(`mask-no-clip`,[[`mask-clip`,`no-clip`]]),r(`mask-origin-border`,[[`mask-origin`,`border-box`]]),r(`mask-origin-padding`,[[`mask-origin`,`padding-box`]]),r(`mask-origin-content`,[[`mask-origin`,`content-box`]]),r(`mask-origin-fill`,[[`mask-origin`,`fill-box`]]),r(`mask-origin-stroke`,[[`mask-origin`,`stroke-box`]]),r(`mask-origin-view`,[[`mask-origin`,`view-box`]]);let g=()=>V([G(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-conic`,`linear-gradient(#fff, #fff)`)]);function _(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`length`,`percentage`,`color`])){case`color`:return n=K(n,t.modifier,e),n===null?void 0:i.color(n);case`percentage`:return t.modifier||!W(n.slice(0,-1))?void 0:i.position(n);default:return t.modifier?void 0:i.position(n)}}{let n=tn(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=U(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!Ut(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return W(t.value.value.slice(0,-1))?i.position(t.value.value):void 0;default:return}}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}]),n(r,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}%`)},{values:e.get([`--spacing`])?Zt:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>V([G(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(B(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(V([G(`--tw-mask-${i}-from-position`,`0%`),G(`--tw-mask-${i}-to-position`,`100%`),G(`--tw-mask-${i}-from-color`,`black`),G(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(B(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(B(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(V([G(`--tw-mask-${i}-from-position`,`0%`),G(`--tw-mask-${i}-to-position`,`100%`),G(`--tw-mask-${i}-from-color`,`black`),G(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(B(`--tw-mask-${i}-${t}-position`,e)));return r}})}y(`mask-x-from`,`from`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-x-to`,`to`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-y-from`,`from`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-y-to`,`to`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-t-from`,`from`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-t-to`,`to`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-r-from`,`from`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-r-to`,`to`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-b-from`,`from`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-b-to`,`to`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-l-from`,`from`,{top:!1,right:!1,bottom:!1,left:!0}),y(`mask-l-to`,`to`,{top:!1,right:!1,bottom:!1,left:!0});let b=()=>V([G(`--tw-mask-linear-position`,`0deg`),G(`--tw-mask-linear-from-position`,`0%`),G(`--tw-mask-linear-to-position`,`100%`),G(`--tw-mask-linear-from-color`,`black`),G(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!W(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!W(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),B(`--tw-mask-linear-position`,e)]}),n(`mask-linear`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-linear-from`,{color:e=>[g(),b(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),B(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),B(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),B(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),B(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),B(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),B(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),B(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),B(`--tw-mask-linear-to-position`,e)]});let x=()=>V([G(`--tw-mask-radial-from-position`,`0%`),G(`--tw-mask-radial-to-position`,`100%`),G(`--tw-mask-radial-from-color`,`black`),G(`--tw-mask-radial-to-color`,`transparent`),G(`--tw-mask-radial-shape`,`ellipse`),G(`--tw-mask-radial-size`,`farthest-corner`),G(`--tw-mask-radial-position`,`center`)]);r(`mask-circle`,[[`--tw-mask-radial-shape`,`circle`]]),r(`mask-ellipse`,[[`--tw-mask-radial-shape`,`ellipse`]]),r(`mask-radial-closest-side`,[[`--tw-mask-radial-size`,`closest-side`]]),r(`mask-radial-farthest-side`,[[`--tw-mask-radial-size`,`farthest-side`]]),r(`mask-radial-closest-corner`,[[`--tw-mask-radial-size`,`closest-corner`]]),r(`mask-radial-farthest-corner`,[[`--tw-mask-radial-size`,`farthest-corner`]]),r(`mask-radial-at-top`,[[`--tw-mask-radial-position`,`top`]]),r(`mask-radial-at-top-left`,[[`--tw-mask-radial-position`,`top left`]]),r(`mask-radial-at-top-right`,[[`--tw-mask-radial-position`,`top right`]]),r(`mask-radial-at-bottom`,[[`--tw-mask-radial-position`,`bottom`]]),r(`mask-radial-at-bottom-left`,[[`--tw-mask-radial-position`,`bottom left`]]),r(`mask-radial-at-bottom-right`,[[`--tw-mask-radial-position`,`bottom right`]]),r(`mask-radial-at-left`,[[`--tw-mask-radial-position`,`left`]]),r(`mask-radial-at-right`,[[`--tw-mask-radial-position`,`right`]]),r(`mask-radial-at-center`,[[`--tw-mask-radial-position`,`center`]]),i(`mask-radial-at`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[B(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),B(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),B(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),B(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),B(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),B(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),B(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),B(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),B(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),B(`--tw-mask-radial-to-position`,e)]});let S=()=>V([G(`--tw-mask-conic-position`,`0deg`),G(`--tw-mask-conic-from-position`,`0%`),G(`--tw-mask-conic-to-position`,`100%`),G(`--tw-mask-conic-from-color`,`black`),G(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!W(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!W(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),B(`--tw-mask-conic-position`,e)]}),n(`mask-conic`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-conic-from`,{color:e=>[g(),S(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),B(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),B(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),B(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),B(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),B(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),B(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),B(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),B(`mask-composite`,`intersect`),B(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),B(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),B(`--tw-mask-conic-to-position`,e)]}),r(`box-decoration-slice`,[[`-webkit-box-decoration-break`,`slice`],[`box-decoration-break`,`slice`]]),r(`box-decoration-clone`,[[`-webkit-box-decoration-break`,`clone`],[`box-decoration-break`,`clone`]]),r(`bg-clip-text`,[[`background-clip`,`text`]]),r(`bg-clip-border`,[[`background-clip`,`border-box`]]),r(`bg-clip-padding`,[[`background-clip`,`padding-box`]]),r(`bg-clip-content`,[[`background-clip`,`content-box`]]),r(`bg-origin-border`,[[`background-origin`,`border-box`]]),r(`bg-origin-padding`,[[`background-origin`,`padding-box`]]),r(`bg-origin-content`,[[`background-origin`,`content-box`]]);for(let e of[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`])r(`bg-blend-${e}`,[[`background-blend-mode`,e]]),r(`mix-blend-${e}`,[[`mix-blend-mode`,e]]);r(`mix-blend-plus-darker`,[[`mix-blend-mode`,`plus-darker`]]),r(`mix-blend-plus-lighter`,[[`mix-blend-mode`,`plus-lighter`]]),r(`fill-none`,[[`fill`,`none`]]),t.functional(`fill`,t=>{if(!t.value)return;if(t.value.kind===`arbitrary`){let n=K(t.value.value,t.modifier,e);return n===null?void 0:[B(`fill`,n)]}let n=tn(t,e,[`--fill`,`--color`]);if(n)return[B(`fill`,n)]}),n(`fill`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--fill`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}]),r(`stroke-none`,[[`stroke`,`none`]]),t.functional(`stroke`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[B(`stroke-width`,n)];default:return n=K(t.value.value,t.modifier,e),n===null?void 0:[B(`stroke`,n)]}}{let n=tn(t,e,[`--stroke`,`--color`]);if(n)return[B(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[B(`stroke-width`,n)];if(W(t.value.value))return[B(`stroke-width`,t.value.value)]}}}),n(`stroke`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--stroke`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`3`],valueThemeKeys:[`--stroke-width`]}]),r(`object-contain`,[[`object-fit`,`contain`]]),r(`object-cover`,[[`object-fit`,`cover`]]),r(`object-fill`,[[`object-fit`,`fill`]]),r(`object-none`,[[`object-fit`,`none`]]),r(`object-scale-down`,[[`object-fit`,`scale-down`]]),i(`object`,{themeKeys:[`--object-position`],handle:e=>[B(`object-position`,e)],staticValues:{top:[B(`object-position`,`top`)],"top-left":[B(`object-position`,`left top`)],"top-right":[B(`object-position`,`right top`)],bottom:[B(`object-position`,`bottom`)],"bottom-left":[B(`object-position`,`left bottom`)],"bottom-right":[B(`object-position`,`right bottom`)],left:[B(`object-position`,`left`)],right:[B(`object-position`,`right`)],center:[B(`object-position`,`center`)]}});for(let[e,t]of[[`p`,`padding`],[`px`,`padding-inline`],[`py`,`padding-block`],[`ps`,`padding-inline-start`],[`pe`,`padding-inline-end`],[`pbs`,`padding-block-start`],[`pbe`,`padding-block-end`],[`pt`,`padding-top`],[`pr`,`padding-right`],[`pb`,`padding-bottom`],[`pl`,`padding-left`]])o(e,[`--padding`,`--spacing`],e=>[B(t,e)]);r(`text-left`,[[`text-align`,`left`]]),r(`text-center`,[[`text-align`,`center`]]),r(`text-right`,[[`text-align`,`right`]]),r(`text-justify`,[[`text-align`,`justify`]]),r(`text-start`,[[`text-align`,`start`]]),r(`text-end`,[[`text-align`,`end`]]),o(`indent`,[`--text-indent`,`--spacing`],e=>[B(`text-indent`,e)],{supportsNegative:!0}),r(`align-baseline`,[[`vertical-align`,`baseline`]]),r(`align-top`,[[`vertical-align`,`top`]]),r(`align-middle`,[[`vertical-align`,`middle`]]),r(`align-bottom`,[[`vertical-align`,`bottom`]]),r(`align-text-top`,[[`vertical-align`,`text-top`]]),r(`align-text-bottom`,[[`vertical-align`,`text-bottom`]]),r(`align-sub`,[[`vertical-align`,`sub`]]),r(`align-super`,[[`vertical-align`,`super`]]),i(`align`,{themeKeys:[],handle:e=>[B(`vertical-align`,e)]}),t.functional(`font`,t=>{if(t.value&&!t.modifier){if(t.value.kind===`arbitrary`){let e=t.value.value;switch(t.value.dataType??U(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[B(`font-family`,e)];default:return[V([G(`--tw-font-weight`)]),B(`--tw-font-weight`,e),B(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[B(`font-family`,e),B(`font-feature-settings`,t[`--font-feature-settings`]),B(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[V([G(`--tw-font-weight`)]),B(`--tw-font-weight`,n),B(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[B(`font-feature-settings`,e)]}),r(`uppercase`,[[`text-transform`,`uppercase`]]),r(`lowercase`,[[`text-transform`,`lowercase`]]),r(`capitalize`,[[`text-transform`,`capitalize`]]),r(`normal-case`,[[`text-transform`,`none`]]),r(`italic`,[[`font-style`,`italic`]]),r(`not-italic`,[[`font-style`,`normal`]]),r(`underline`,[[`text-decoration-line`,`underline`]]),r(`overline`,[[`text-decoration-line`,`overline`]]),r(`line-through`,[[`text-decoration-line`,`line-through`]]),r(`no-underline`,[[`text-decoration-line`,`none`]]),r(`font-stretch-normal`,[[`font-stretch`,`normal`]]),r(`font-stretch-ultra-condensed`,[[`font-stretch`,`ultra-condensed`]]),r(`font-stretch-extra-condensed`,[[`font-stretch`,`extra-condensed`]]),r(`font-stretch-condensed`,[[`font-stretch`,`condensed`]]),r(`font-stretch-semi-condensed`,[[`font-stretch`,`semi-condensed`]]),r(`font-stretch-semi-expanded`,[[`font-stretch`,`semi-expanded`]]),r(`font-stretch-expanded`,[[`font-stretch`,`expanded`]]),r(`font-stretch-extra-expanded`,[[`font-stretch`,`extra-expanded`]]),r(`font-stretch-ultra-expanded`,[[`font-stretch`,`ultra-expanded`]]),i(`font-stretch`,{handleBareValue:({value:e})=>{if(!e.endsWith(`%`))return null;let t=Number(e.slice(0,-1));return!W(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[B(`font-stretch`,e)]}),n(`font-stretch`,()=>[{values:[`50%`,`75%`,`90%`,`95%`,`100%`,`105%`,`110%`,`125%`,`150%`,`200%`]}]),a(`placeholder`,{themeKeys:[`--placeholder-color`,`--color`],handle:e=>[L(`&::placeholder`,[B(`--tw-sort`,`placeholder-color`),B(`color`,e)])]}),r(`decoration-solid`,[[`text-decoration-style`,`solid`]]),r(`decoration-double`,[[`text-decoration-style`,`double`]]),r(`decoration-dotted`,[[`text-decoration-style`,`dotted`]]),r(`decoration-dashed`,[[`text-decoration-style`,`dashed`]]),r(`decoration-wavy`,[[`text-decoration-style`,`wavy`]]),r(`decoration-auto`,[[`text-decoration-thickness`,`auto`]]),r(`decoration-from-font`,[[`text-decoration-thickness`,`from-font`]]),t.functional(`decoration`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[B(`text-decoration-thickness`,n)];default:return n=K(n,t.modifier,e),n===null?void 0:[B(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[B(`text-decoration-thickness`,n)];if(W(t.value.value))return t.modifier?void 0:[B(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=tn(t,e,[`--text-decoration-color`,`--color`]);if(n)return[B(`text-decoration-color`,n)]}}}),n(`decoration`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-decoration-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`],valueThemeKeys:[`--text-decoration-thickness`]}]),i(`animate`,{themeKeys:[`--animate`],handle:e=>[B(`animation`,e)],staticValues:{none:[B(`animation`,`none`)]}});{let a=[`var(--tw-blur,)`,`var(--tw-brightness,)`,`var(--tw-contrast,)`,`var(--tw-grayscale,)`,`var(--tw-hue-rotate,)`,`var(--tw-invert,)`,`var(--tw-saturate,)`,`var(--tw-sepia,)`,`var(--tw-drop-shadow,)`].join(` `),o=[`var(--tw-backdrop-blur,)`,`var(--tw-backdrop-brightness,)`,`var(--tw-backdrop-contrast,)`,`var(--tw-backdrop-grayscale,)`,`var(--tw-backdrop-hue-rotate,)`,`var(--tw-backdrop-invert,)`,`var(--tw-backdrop-opacity,)`,`var(--tw-backdrop-saturate,)`,`var(--tw-backdrop-sepia,)`].join(` `),s=()=>V([G(`--tw-blur`),G(`--tw-brightness`),G(`--tw-contrast`),G(`--tw-grayscale`),G(`--tw-hue-rotate`),G(`--tw-invert`),G(`--tw-opacity`),G(`--tw-saturate`),G(`--tw-sepia`),G(`--tw-drop-shadow`),G(`--tw-drop-shadow-color`),G(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-drop-shadow-size`)]),c=()=>V([G(`--tw-backdrop-blur`),G(`--tw-backdrop-brightness`),G(`--tw-backdrop-contrast`),G(`--tw-backdrop-grayscale`),G(`--tw-backdrop-hue-rotate`),G(`--tw-backdrop-invert`),G(`--tw-backdrop-opacity`),G(`--tw-backdrop-saturate`),G(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),B(`filter`,a)];if(e.value.kind===`arbitrary`)return[B(`filter`,e.value.value)];if(e.value.value===`none`)return[B(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[B(`-webkit-backdrop-filter`,e.value.value),B(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[B(`-webkit-backdrop-filter`,`none`),B(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),B(`--tw-blur`,`blur(${e})`),B(`filter`,a)],staticValues:{none:[s(),B(`--tw-blur`,` `),B(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),B(`--tw-backdrop-blur`,`blur(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)],staticValues:{none:[c(),B(`--tw-backdrop-blur`,` `),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[s(),B(`--tw-brightness`,`brightness(${e})`),B(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[c(),B(`--tw-backdrop-brightness`,`brightness(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--brightness`]}]),n(`backdrop-brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-brightness`,`--brightness`]}]),i(`contrast`,{themeKeys:[`--contrast`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[s(),B(`--tw-contrast`,`contrast(${e})`),B(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[c(),B(`--tw-backdrop-contrast`,`contrast(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--contrast`]}]),n(`backdrop-contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-contrast`,`--contrast`]}]),i(`grayscale`,{themeKeys:[`--grayscale`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),B(`--tw-grayscale`,`grayscale(${e})`),B(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),B(`--tw-backdrop-grayscale`,`grayscale(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--grayscale`],hasDefaultValue:!0}]),n(`backdrop-grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-grayscale`,`--grayscale`],hasDefaultValue:!0}]),i(`hue-rotate`,{supportsNegative:!0,themeKeys:[`--hue-rotate`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:e=>[s(),B(`--tw-hue-rotate`,`hue-rotate(${e})`),B(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>W(e)?`${e}deg`:null,handle:e=>[c(),B(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--hue-rotate`]}]),n(`backdrop-hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`]}]),i(`invert`,{themeKeys:[`--invert`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),B(`--tw-invert`,`invert(${e})`),B(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),B(`--tw-backdrop-invert`,`invert(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--invert`],hasDefaultValue:!0}]),n(`backdrop-invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-invert`,`--invert`],hasDefaultValue:!0}]),i(`saturate`,{themeKeys:[`--saturate`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[s(),B(`--tw-saturate`,`saturate(${e})`),B(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,handle:e=>[c(),B(`--tw-backdrop-saturate`,`saturate(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--saturate`]}]),n(`backdrop-saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--backdrop-saturate`,`--saturate`]}]),i(`sepia`,{themeKeys:[`--sepia`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),B(`--tw-sepia`,`sepia(${e})`),B(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>W(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),B(`--tw-backdrop-sepia`,`sepia(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--sepia`],hasDefaultValue:!0}]),n(`backdrop-sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--backdrop-sepia`,`--sepia`],hasDefaultValue:!0}]),r(`drop-shadow-none`,[s,[`--tw-drop-shadow`,` `],[`filter`,a]]),t.functional(`drop-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Wt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--drop-shadow`]),r=e.resolve(null,[`--drop-shadow`]);return t===null||r===null?void 0:[s(),B(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),B(`--tw-drop-shadow`,A(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),B(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??U(r,[`color`]))===`color`?(r=K(r,t.modifier,e),r===null?void 0:[s(),B(`--tw-drop-shadow-color`,$t(r,`var(--tw-drop-shadow-alpha)`)),B(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),B(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),B(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),B(`filter`,a)]}{let r=e.get([`--drop-shadow-${t.value.value}`]),i=e.resolve(t.value.value,[`--drop-shadow`]);if(r&&i)return t.modifier&&!n?void 0:n?[s(),B(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),B(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),B(`filter`,a)]:[s(),B(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),B(`--tw-drop-shadow`,A(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),B(`filter`,a)]}{let n=tn(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),B(`--tw-drop-shadow-color`,`inherit`),B(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),B(`--tw-drop-shadow-color`,$t(n,`var(--tw-drop-shadow-alpha)`)),B(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]}}),n(`drop-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--drop-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{valueThemeKeys:[`--drop-shadow`]}]),i(`backdrop-opacity`,{themeKeys:[`--backdrop-opacity`,`--opacity`],handleBareValue:({value:e})=>Wt(e)?`${e}%`:null,handle:e=>[c(),B(`--tw-backdrop-opacity`,`opacity(${e})`),B(`-webkit-backdrop-filter`,o),B(`backdrop-filter`,o)]}),n(`backdrop-opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--backdrop-opacity`,`--opacity`]}])}{let a=`var(--tw-ease, ${e.resolve(null,[`--default-transition-timing-function`])??`ease`})`,o=`var(--tw-duration, ${e.resolve(null,[`--default-transition-duration`])??`0s`})`;i(`transition`,{defaultValue:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events`,themeKeys:[`--transition-property`],handle:e=>[B(`transition-property`,e),B(`transition-timing-function`,a),B(`transition-duration`,o)],staticValues:{none:[B(`transition-property`,`none`)],all:[B(`transition-property`,`all`),B(`transition-timing-function`,a),B(`transition-duration`,o)],colors:[B(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),B(`transition-timing-function`,a),B(`transition-duration`,o)],opacity:[B(`transition-property`,`opacity`),B(`transition-timing-function`,a),B(`transition-duration`,o)],shadow:[B(`transition-property`,`box-shadow`),B(`transition-timing-function`,a),B(`transition-duration`,o)],transform:[B(`transition-property`,`transform, translate, scale, rotate`),B(`transition-timing-function`,a),B(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>W(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[B(`transition-delay`,e)]});{let n=()=>V([G(`--tw-duration`)]);r(`duration-initial`,[n,[`--tw-duration`,`initial`]]),t.functional(`duration`,t=>{if(t.modifier||!t.value)return;let r=null;if(t.value.kind===`arbitrary`?r=t.value.value:(r=e.resolve(t.value.fraction??t.value.value,[`--transition-duration`]),r===null&&W(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),B(`--tw-duration`,r),B(`transition-duration`,r)]})}n(`delay`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-delay`]}]),n(`duration`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-duration`]}])}{let e=()=>V([G(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),B(`--tw-ease`,t),B(`transition-timing-function`,t)],staticValues:{initial:[e(),B(`--tw-ease`,`initial`)],linear:[e(),B(`--tw-ease`,`linear`),B(`transition-timing-function`,`linear`)]}})}r(`will-change-auto`,[[`will-change`,`auto`]]),r(`will-change-scroll`,[[`will-change`,`scroll-position`]]),r(`will-change-contents`,[[`will-change`,`contents`]]),r(`will-change-transform`,[[`will-change`,`transform`]]),i(`will-change`,{themeKeys:[],handle:e=>[B(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[V([G(`--tw-content`,`""`)]),B(`--tw-content`,e),B(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>V([G(`--tw-contain-size`),G(`--tw-contain-layout`),G(`--tw-contain-paint`),G(`--tw-contain-style`)]);r(`contain-none`,[[`contain`,`none`]]),r(`contain-content`,[[`contain`,`content`]]),r(`contain-strict`,[[`contain`,`strict`]]),r(`contain-size`,[t,[`--tw-contain-size`,`size`],[`contain`,e]]),r(`contain-inline-size`,[t,[`--tw-contain-size`,`inline-size`],[`contain`,e]]),r(`contain-layout`,[t,[`--tw-contain-layout`,`layout`],[`contain`,e]]),r(`contain-paint`,[t,[`--tw-contain-paint`,`paint`],[`contain`,e]]),r(`contain-style`,[t,[`--tw-contain-style`,`style`],[`contain`,e]]),i(`contain`,{themeKeys:[],handle:e=>[B(`contain`,e)]})}r(`forced-color-adjust-none`,[[`forced-color-adjust`,`none`]]),r(`forced-color-adjust-auto`,[[`forced-color-adjust`,`auto`]]),o(`leading`,[`--leading`,`--spacing`],e=>[V([G(`--tw-leading`)]),B(`--tw-leading`,e),B(`line-height`,e)],{staticValues:{none:[V([G(`--tw-leading`)]),B(`--tw-leading`,`1`),B(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[V([G(`--tw-tracking`)]),B(`--tw-tracking`,e),B(`letter-spacing`,e)]}),r(`antialiased`,[[`-webkit-font-smoothing`,`antialiased`],[`-moz-osx-font-smoothing`,`grayscale`]]),r(`subpixel-antialiased`,[[`-webkit-font-smoothing`,`auto`],[`-moz-osx-font-smoothing`,`auto`]]);{let e=`var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)`,t=()=>V([G(`--tw-ordinal`),G(`--tw-slashed-zero`),G(`--tw-numeric-figure`),G(`--tw-numeric-spacing`),G(`--tw-numeric-fraction`)]);r(`normal-nums`,[[`font-variant-numeric`,`normal`]]),r(`ordinal`,[t,[`--tw-ordinal`,`ordinal`],[`font-variant-numeric`,e]]),r(`slashed-zero`,[t,[`--tw-slashed-zero`,`slashed-zero`],[`font-variant-numeric`,e]]),r(`lining-nums`,[t,[`--tw-numeric-figure`,`lining-nums`],[`font-variant-numeric`,e]]),r(`oldstyle-nums`,[t,[`--tw-numeric-figure`,`oldstyle-nums`],[`font-variant-numeric`,e]]),r(`proportional-nums`,[t,[`--tw-numeric-spacing`,`proportional-nums`],[`font-variant-numeric`,e]]),r(`tabular-nums`,[t,[`--tw-numeric-spacing`,`tabular-nums`],[`font-variant-numeric`,e]]),r(`diagonal-fractions`,[t,[`--tw-numeric-fraction`,`diagonal-fractions`],[`font-variant-numeric`,e]]),r(`stacked-fractions`,[t,[`--tw-numeric-fraction`,`stacked-fractions`],[`font-variant-numeric`,e]])}{let a=()=>V([G(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[B(`--tw-outline-style`,`none`),B(`outline-style`,`none`),R(`@media`,`(forced-colors: active)`,[B(`outline`,`2px solid transparent`),B(`outline-offset`,`2px`)])]),r(`outline-none`,[[`--tw-outline-style`,`none`],[`outline-style`,`none`]]),r(`outline-solid`,[[`--tw-outline-style`,`solid`],[`outline-style`,`solid`]]),r(`outline-dashed`,[[`--tw-outline-style`,`dashed`],[`outline-style`,`dashed`]]),r(`outline-dotted`,[[`--tw-outline-style`,`dotted`],[`outline-style`,`dotted`]]),r(`outline-double`,[[`--tw-outline-style`,`double`],[`outline-style`,`double`]]),t.functional(`outline`,t=>{if(t.value===null){if(t.modifier)return;let n=e.get([`--default-outline-width`])??`1px`;return[a(),B(`outline-style`,`var(--tw-outline-style)`),B(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),B(`outline-style`,`var(--tw-outline-style)`),B(`outline-width`,n)];default:return n=K(n,t.modifier,e),n===null?void 0:[B(`outline-color`,n)]}}{let n=tn(t,e,[`--outline-color`,`--color`]);if(n)return[B(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),B(`outline-style`,`var(--tw-outline-style)`),B(`outline-width`,n)];if(W(t.value.value))return[a(),B(`outline-style`,`var(--tw-outline-style)`),B(`outline-width`,`${t.value.value}px`)]}}),n(`outline`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--outline-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-width`]}]),i(`outline-offset`,{supportsNegative:!0,themeKeys:[`--outline-offset`],handleBareValue:({value:e})=>W(e)?`${e}px`:null,handle:e=>[B(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>Wt(e)?`${e}%`:null,handle:e=>[B(`opacity`,e)]}),n(`opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--opacity`]}]),i(`underline-offset`,{supportsNegative:!0,themeKeys:[`--text-underline-offset`],handleBareValue:({value:e})=>W(e)?`${e}px`:null,handle:e=>[B(`text-underline-offset`,e)],staticValues:{auto:[B(`text-underline-offset`,`auto`)]}}),n(`underline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--text-underline-offset`]}]),t.functional(`text`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??U(n,[`color`,`length`,`percentage`,`absolute-size`,`relative-size`])){case`size`:case`length`:case`percentage`:case`absolute-size`:case`relative-size`:if(t.modifier){let r=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!r&&Ut(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[B(`font-size`,n),B(`line-height`,r)]:null}return[B(`font-size`,n)];default:return n=K(n,t.modifier,e),n===null?void 0:[B(`color`,n)]}}{let n=tn(t,e,[`--text-color`,`--color`]);if(n)return[B(`color`,n)]}{let n=e.resolveWith(t.value.value,[`--text`],[`--line-height`,`--letter-spacing`,`--font-weight`]);if(n){let[r,i={}]=Array.isArray(n)?n:[n];if(t.modifier){let n=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!n&&Ut(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;n=`--spacing(${t.modifier.value})`}if(!n&&t.modifier.value===`none`&&(n=`1`),!n)return null;let i=[B(`font-size`,r)];return n&&i.push(B(`line-height`,n)),i}return typeof i==`string`?[B(`font-size`,r),B(`line-height`,i)]:[B(`font-size`,r),B(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),B(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),B(`font-weight`,i[`--font-weight`]?`var(--tw-font-weight, ${i[`--font-weight`]})`:void 0)]}}}}),n(`text`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--text`],modifiers:[],modifierThemeKeys:[`--leading`]}]);let C=()=>V([G(`--tw-text-shadow-color`),G(`--tw-text-shadow-alpha`,`100%`,`<percentage>`)]);r(`text-shadow-initial`,[C,[`--tw-text-shadow-color`,`initial`]]),t.functional(`text-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Wt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),B(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,t,n,e=>`var(--tw-text-shadow-color, ${e})`)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??U(r,[`color`]))===`color`?(r=K(r,t.modifier,e),r===null?void 0:[C(),B(`--tw-text-shadow-color`,$t(r,`var(--tw-text-shadow-alpha)`))]):[C(),B(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),B(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),B(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),B(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=tn(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),B(`--tw-text-shadow-color`,$t(n,`var(--tw-text-shadow-alpha)`))]}}),n(`text-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--text-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--text-shadow`])!==null}]);{let i=function(e){return`var(--tw-ring-inset,) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${l})`},a=function(e){return`inset 0 0 0 ${e} var(--tw-inset-ring-color, currentcolor)`},o=[`var(--tw-inset-shadow)`,`var(--tw-inset-ring-shadow)`,`var(--tw-ring-offset-shadow)`,`var(--tw-ring-shadow)`,`var(--tw-shadow)`].join(`, `),s=`0 0 #0000`,c=()=>V([G(`--tw-shadow`,s),G(`--tw-shadow-color`),G(`--tw-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-inset-shadow`,s),G(`--tw-inset-shadow-color`),G(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-ring-color`),G(`--tw-ring-shadow`,s),G(`--tw-inset-ring-color`),G(`--tw-inset-ring-shadow`,s),G(`--tw-ring-inset`),G(`--tw-ring-offset-width`,`0px`,`<length>`),G(`--tw-ring-offset-color`,`#fff`),G(`--tw-ring-offset-shadow`,s)]);r(`shadow-initial`,[c,[`--tw-shadow-color`,`initial`]]),t.functional(`shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Wt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),B(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),B(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??U(r,[`color`]))===`color`?(r=K(r,t.modifier,e),r===null?void 0:[c(),B(`--tw-shadow-color`,$t(r,`var(--tw-shadow-alpha)`))]):[c(),B(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),B(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),B(`--tw-shadow`,s),B(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),B(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),B(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),B(`box-shadow`,o)]}{let n=tn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),B(`--tw-shadow-color`,$t(n,`var(--tw-shadow-alpha)`))]}}),n(`shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--shadow`])!==null}]),r(`inset-shadow-initial`,[c,[`--tw-inset-shadow-color`,`initial`]]),t.functional(`inset-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Wt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),B(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),B(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??U(r,[`color`]))===`color`?(r=K(r,t.modifier,e),r===null?void 0:[c(),B(`--tw-inset-shadow-color`,$t(r,`var(--tw-inset-shadow-alpha)`))]):[c(),B(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),B(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),B(`--tw-inset-shadow`,`inset ${s}`),B(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),B(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),B(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),B(`box-shadow`,o)]}{let n=tn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),B(`--tw-inset-shadow-color`,$t(n,`var(--tw-inset-shadow-alpha)`))]}}),n(`inset-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--inset-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--inset-shadow`])!==null}]),r(`ring-inset`,[c,[`--tw-ring-inset`,`inset`]]);let l=e.get([`--default-ring-color`])??`currentcolor`;t.functional(`ring`,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-ring-width`])??`1px`;return[c(),B(`--tw-ring-shadow`,i(n)),B(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??U(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),B(`--tw-ring-shadow`,i(n)),B(`box-shadow`,o)]:(n=K(n,t.modifier,e),n===null?void 0:[B(`--tw-ring-color`,n)])}{let n=tn(t,e,[`--ring-color`,`--color`]);if(n)return[B(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&W(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),B(`--tw-ring-shadow`,i(n)),B(`box-shadow`,o)]}}),n(`ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]),t.functional(`inset-ring`,t=>{if(!t.value)return t.modifier?void 0:[c(),B(`--tw-inset-ring-shadow`,a(`1px`)),B(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??U(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),B(`--tw-inset-ring-shadow`,a(n)),B(`box-shadow`,o)]:(n=K(n,t.modifier,e),n===null?void 0:[B(`--tw-inset-ring-color`,n)])}{let n=tn(t,e,[`--ring-color`,`--color`]);if(n)return[B(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&W(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),B(`--tw-inset-ring-shadow`,a(n)),B(`box-shadow`,o)]}}),n(`inset-ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]);let u=`var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`;t.functional(`ring-offset`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??U(n,[`color`,`length`]))===`length`?t.modifier?void 0:[B(`--tw-ring-offset-width`,n),B(`--tw-ring-offset-shadow`,u)]:(n=K(n,t.modifier,e),n===null?void 0:[B(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[B(`--tw-ring-offset-width`,n),B(`--tw-ring-offset-shadow`,u)];if(W(t.value.value))return t.modifier?void 0:[B(`--tw-ring-offset-width`,`${t.value.value}px`),B(`--tw-ring-offset-shadow`,u)]}{let n=tn(t,e,[`--ring-offset-color`,`--color`]);if(n)return[B(`--tw-ring-offset-color`,n)]}}})}return n(`ring-offset`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-offset-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-offset-width`]}]),t.functional(`@container`,e=>{let t=null;if(e.value===null?t=`inline-size`:e.value.kind===`arbitrary`?t=e.value.value:e.value.kind===`named`&&e.value.value===`normal`?t=`normal`:e.value.kind===`named`&&e.value.value===`size`&&(t=`size`),t!==null)return e.modifier?[B(`container-type`,t),B(`container-name`,e.modifier.value)]:[B(`container-type`,t)]}),n(`@container`,()=>[{values:[`normal`],valueThemeKeys:[],hasDefaultValue:!0}]),t}var an=[`number`,`integer`,`ratio`,`percentage`];function on(e){let t=w(e.params);return Cn(t)?n=>{let r={"--value":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set},"--modifier":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set}};I(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=P(e.value);I(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return I(e.nodes,e=>{if(e.kind!==`function`||e.value!==`--value`&&e.value!==`--modifier`)return;let t=e.value;for(let n of e.nodes)if(n.kind===`word`){if(n.value===`integer`)r[t].usedSpacingInteger||=!0;else if(n.value===`number`&&(r[t].usedSpacingNumber||=!0,r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return F.Stop}}),F.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=A(N(e.nodes),`,`);for(let[e,n]of t.entries())n=n.replace(/\\\*/g,`*`),n=n.replace(/--(.*?)\s--(.*?)/g,`--$1-*--$2`),n=n.replace(/\s+/g,``),n=n.replace(/(-\*){2,}/g,`-*`),n[0]===`-`&&n[1]===`-`&&!n.includes(`(`)&&!n.includes(`-*`)&&(n+=`-*`),t[e]=n;e.nodes=P(t.join(`,`));for(let t of e.nodes)if(t.kind===`word`&&(t.value[0]===`"`||t.value[0]===`'`)&&t.value[0]===t.value[t.value.length-1]){let n=t.value.slice(1,-1);r[e.value].literals.add(n)}else if(t.kind===`word`&&t.value[0]===`-`&&t.value[1]===`-`){let n=t.value.replace(/-\*.*$/g,``);r[e.value].themeKeys.add(n)}else if(t.kind===`word`&&(t.value[0]!==`[`||t.value[t.value.length-1]!==`]`)&&!an.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
|
|
13
|
+
Only valid data types are: ${an.map(e=>`"${e}"`).join(`, `)}.
|
|
14
|
+
`);let n=t.value,r=structuredClone(e);I(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return F.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(N([t]).length),a=N([r]).indexOf(`¶`),o=["```css",N([e]),` `.repeat(a)+i,"```"].join(`
|
|
15
|
+
`);console.warn(o)}}),e.value=N(t)}),n.utilities.functional(t.slice(0,-2),t=>{let r=Ce(e),i=t.value,a=t.modifier,o=!1,s=!1,c=!1,l=!1,u=new Map,d=!1;if(I([r],(e,t)=>{let r=t.parent;if(r?.kind!==`rule`&&r?.kind!==`at-rule`||e.kind!==`declaration`||!e.value)return;let f=!1,p=P(e.value);if(I(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=sn(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),F.ReplaceSkip(a.nodes)):(f=!0,F.Stop)}if(t.value===`--modifier`){c=!0;let e=sn(a,t,n);return e?(l=!0,F.ReplaceSkip(e.nodes)):(f=!0,F.Stop)}}}),f)return F.ReplaceSkip([]);e.value=N(p)}),!o||!s||c&&!l&&a!==null||d&&l||a&&!d&&!l)return null;if(d)for(let[e,t]of u){let n=t.nodes.indexOf(e);n!==-1&&t.nodes.splice(n,1)}return r.nodes}),n.utilities.suggest(t.slice(0,-2),()=>{let e=[],t=[];for(let[i,{literals:a,usedSpacingNumber:o,usedSpacingInteger:s,themeKeys:c}]of[[e,r[`--value`]],[t,r[`--modifier`]]]){for(let e of a)i.push(e);if(o)i.push(...Zt);else if(s)for(let e of Zt)W(e)&&i.push(e);for(let e of n.theme.keysInNamespaces(c))i.push(e.replace(nn,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:Sn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Ce))}:null}function sn(e,t,n){if(e===null){for(let e of t.nodes)if(e.kind===`function`&&e.value===`--default`)return{nodes:e.nodes};return}for(let r of t.nodes){if(e.kind===`named`&&r.kind===`word`&&(r.value[0]===`'`||r.value[0]===`"`)&&r.value[r.value.length-1]===r.value[0]&&r.value.slice(1,-1)===e.value)return{nodes:P(e.value)};if(e.kind===`named`&&r.kind===`word`&&r.value[0]===`-`&&r.value[1]===`-`){let t=r.value;if(t.endsWith(`-*`)){t=t.slice(0,-2);let r=n.theme.resolve(e.value,[t]);if(r)return{nodes:P(r)}}else{let r=t.split(`-*`);if(r.length<=1)continue;let i=[r.shift()],a=n.theme.resolveWith(e.value,i,r);if(a){let[,e={}]=a;{let t=e[r.pop()];if(t)return{nodes:P(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!an.includes(r.value))continue;let t=r.value===`ratio`&&`fraction`in e?e.fraction:e.value;if(!t)continue;let n=U(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=A(t,`/`).map(Number);if(!W(e)||!W(n))continue}else if(n===`number`&&!Ut(t)||n===`percentage`&&!W(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=A(t,`/`);return{nodes:P(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:P(t),ratio:!1}}else if(e.kind===`arbitrary`&&r.kind===`word`&&r.value[0]===`[`&&r.value[r.value.length-1]===`]`){let t=r.value.slice(1,-1);if(t===`*`)return{nodes:P(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||U(e.value,[t])!==null)return{nodes:P(e.value)}}}}function cn(e,t,n,r,i=``){let a=!1,o=Xt(t,e=>n==null?r(e):e.startsWith(`current`)?r($t(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(en(e,n))));function s(e){return i?A(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[B(e,s(Xt(t,r))),z(`@supports (color: lab(from red l a b))`,[B(e,s(o))])]:[B(e,s(o))]}function ln(e,t,n,r,i=``){let a=!1,o=A(t,`,`).map(e=>Xt(e,e=>n==null?r(e):e.startsWith(`current`)?r($t(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(en(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[B(e,i+A(t,`,`).map(e=>`drop-shadow(${Xt(e,r)})`).join(` `)),z(`@supports (color: lab(from red l a b))`,[B(e,i+o)])]:[B(e,i+o)]}var un=/^-?[a-z][a-zA-Z0-9_-]*/,dn=37,fn=47,pn=46,mn=97,hn=122,gn=65,_n=90,vn=48,yn=57,bn=95,xn=45;function Sn(e){let t=un.exec(e);if(t===null)return!1;let n=t[0],r=e.slice(n.length);if(r.length===0&&n.endsWith(`-`))return!1;if(r.length===0)return!0;let i=!1;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);switch(t){case dn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vn||t>yn)return!1;break}case fn:if(e===r.length-1||i)return!1;i=!0;break;case pn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vn||t>yn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<vn||i>yn)return!1;break}case bn:case xn:continue;default:if(t>=mn&&t<=hn||t>=gn&&t<=_n||t>=vn&&t<=yn)continue;return!1}}return!0}function Cn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=un.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var wn={"--alpha":Tn,"--spacing":En,"--theme":Dn,theme:On};function Tn(e,t,n,...r){let[i,a]=A(n,`/`).map(e=>e.trim());if(!i||!a)throw Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);if(r.length>0)throw Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);return $t(i,a)}function En(e,t,n,...r){if(!n)throw Error(`The --spacing(…) function requires an argument, but received none.`);if(r.length>0)throw Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.length+1}.`);let i=e.theme.resolve(null,[`--spacing`]);if(!i)throw Error("The --spacing(…) function requires that the `--spacing` theme variable exists, but it was not found.");let a=ut.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function Dn(e,t,n,...r){if(!n.startsWith(`--`))throw Error(`The --theme(…) function can only be used with CSS variables from your theme.`);let i=!1;n.endsWith(` inline`)&&(i=!0,n=n.slice(0,-7)),t.kind===`at-rule`&&(i=!0);let a=e.resolveThemeValue(n,i);if(!a){if(r.length>0)return r.join(`, `);throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(r.length===0)return a;let o=r.join(`, `);if(o===`initial`)return a;if(a===`initial`)return o;if(a.startsWith(`var(`)||a.startsWith(`theme(`)||a.startsWith(`--theme(`)){let e=P(a);return Nn(e,o),N(e)}return a}function On(e,t,n,...r){n=Mn(n);let i=e.resolveThemeValue(n);if(!i&&r.length>0)return r.join(`, `);if(!i)throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var kn=new RegExp(Object.keys(wn).map(e=>`${e}\\(`).join(`|`));function An(e,t){let n=0;return I(e,e=>{if(e.kind===`declaration`&&e.value&&kn.test(e.value)){n|=8,e.value=jn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&kn.test(e.params)&&(n|=8,e.params=jn(e.params,e,t))}),n}function jn(e,t,n){let r=P(e);return I(r,e=>{if(e.kind===`function`&&e.value in wn){let r=A(N(e.nodes).trim(),`,`).map(e=>e.trim()),i=wn[e.value](n,t,...r);return F.Replace(P(i))}}),N(r)}function Mn(e){if(e[0]!==`'`&&e[0]!==`"`)return e;let t=``,n=e[0];for(let r=1;r<e.length-1;r++){let i=e[r],a=e[r+1];i===`\\`&&(a===n||a===`\\`)?(t+=a,r++):t+=i}return t}function Nn(e,t){I(e,e=>{if(e.kind===`function`&&(e.value===`var`||e.value===`theme`||e.value===`--theme`)){if(e.nodes.length===1)e.nodes.push({kind:`word`,value:`, ${t}`});else{let n=e.nodes[e.nodes.length-1];n.kind===`word`&&n.value===`initial`&&(n.value=t)}}})}function Pn(){return[]}function Fn(){return[]}function In(){return[]}function Ln(e,t){let{astNodes:n,nodeSorting:r}=Xn(Array.from(t),e),i=new Map(t.map(e=>[e,null])),a=0n;for(let e of n){let t=r.get(e)?.candidate;t&&i.set(t,i.get(t)??a++)}return t.map(e=>[e,i.get(e)??null])}function Rn(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;zn(e.charCodeAt(t));)t++;for(n=t;t<r;t++){let n=e.charCodeAt(t);if(n===92){t++;continue}if(!(n>=65&&n<=90)&&!(n>=97&&n<=122)&&!(n>=48&&n<=57)&&n!==45&&n!==95&&!(n>=128))break}if(n===t)return null;let i=e.slice(n,t);for(;zn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let a=null,o=e.charCodeAt(t);if(o===61)a=`=`,t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)a=e[t]+`=`,t+=2;else return null;for(;zn(e.charCodeAt(t));)t++;if(t===r)return null;let s=``,c=null;if(o=e.charCodeAt(t),o===39||o===34){c=e[t],t++,n=t;for(let n=t;n<r;n++){let r=e.charCodeAt(n);r===o?t=n+1:r===92&&n++}s=e.slice(n,t-1)}else{for(n=t;t<r&&!zn(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;zn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:a,quote:c,value:s,sensitivity:null};let l=null;switch(e.charCodeAt(t)){case 105:case 73:l=`i`,t++;break;case 115:case 83:l=`s`,t++;break;default:return null}for(;zn(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function zn(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Bn=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Vn=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;static(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`static`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}fromAst(e,t,n){let r=[],i=!1;I(t,e=>{e.kind===`rule`?r.push(e.selector):e.kind===`at-rule`&&e.name===`@variant`?i=!0:e.kind===`at-rule`&&e.name!==`@slot`&&r.push(`${e.name} ${e.params}`)}),this.static(e,e=>{let r=t.map(Ce);i&&Kn(r,n),Gn(r,e.nodes),e.nodes=r},{compounds:Hn(r)})}functional(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`functional`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}compound(e,t,n,{compounds:r,order:i}={}){this.set(e,{kind:`compound`,applyFn:n,compoundsWith:t,compounds:r??2,order:i})}group(e,t){this.groupOrder=this.nextOrder(),t&&this.compareFns.set(this.groupOrder,t),e(),this.groupOrder=null}has(e){return this.variants.has(e)}get(e){return this.variants.get(e)}kind(e){return this.variants.get(e)?.kind}compoundsWith(e,t){let n=this.variants.get(e),r=typeof t==`string`?this.variants.get(t):t.kind===`arbitrary`?{compounds:Hn([t.selector])}:this.variants.get(t.root);return!(!n||!r||n.kind!==`compound`||r.compounds===0||n.compoundsWith===0||(n.compoundsWith&r.compounds)===0)}suggest(e,t){this.completions.set(e,t)}getCompletions(e){return this.completions.get(e)?.()??[]}compare(e,t){if(e===t)return 0;if(e===null)return-1;if(t===null)return 1;if(e.kind===`arbitrary`&&t.kind===`arbitrary`)return e.selector<t.selector?-1:1;if(e.kind===`arbitrary`)return 1;if(t.kind===`arbitrary`)return-1;let n=this.variants.get(e.root).order,r=n-this.variants.get(t.root).order;if(r!==0)return r;if(e.kind===`compound`&&t.kind===`compound`){let n=this.compare(e.variant,t.variant);return n===0?e.modifier&&t.modifier?e.modifier.value<t.modifier.value?-1:1:e.modifier?1:t.modifier?-1:0:n}let i=this.compareFns.get(n);if(i!==void 0)return i(e,t);if(e.root!==t.root)return e.root<t.root?-1:1;let a=e.value,o=t.value;return a===null?-1:o===null||a.kind===`arbitrary`&&o.kind!==`arbitrary`?1:a.kind!==`arbitrary`&&o.kind===`arbitrary`||a.value<o.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(e,{kind:t,applyFn:n,compounds:r,compoundsWith:i,order:a}){let o=this.variants.get(e);o?Object.assign(o,{kind:t,applyFn:n,compounds:r}):(a===void 0&&(this.lastOrder=this.nextOrder(),a=this.lastOrder),this.variants.set(e,{kind:t,applyFn:n,order:a,compoundsWith:i,compounds:r}))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Hn(e){let t=0;for(let n of e){if(n[0]===`@`){if(!n.startsWith(`@media`)&&!n.startsWith(`@supports`)&&!n.startsWith(`@container`))return 0;t|=1;continue}if(n.includes(`::`))return 0;t|=2}return t}function Un(e){let t=new Vn;function n(e,n,{compounds:r}={}){r??=Hn(n),t.static(e,e=>{e.nodes=n.map(t=>z(t,e.nodes))},{compounds:r})}n(`*`,[`:is(& > *)`],{compounds:0}),n(`**`,[`:is(& *)`],{compounds:0});function r(e,t){return t.map(t=>{if(e===`@container`){let e=P(t.trim());return e.length>=1&&e[0].kind===`function`?`not ${t}`:e.length>=3&&e[0].kind===`word`&&e[0].value===`not`&&e[2].kind===`function`?(e.splice(0,2),N(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),N(e)):e.length>=3&&e[0].kind===`word`&&e[0].value!==`not`&&e[2].kind===`function`?(e.splice(1,0,{kind:`separator`,value:` `},{kind:`word`,value:`not`}),N(e)):`not ${t}`}{t=t.trim();let e=A(t,` `);return e[0]===`not`?e.slice(1).join(` `):`not ${t}`}})}let i=[`@media`,`@supports`,`@container`];function a(e){for(let t of i){if(t!==e.name)continue;let n=A(e.params,`,`);return n.length>1?null:(n=r(e.name,n),R(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${A(e,`,`).map(e=>(e=e.replaceAll(`&`,`*`),e)).join(`, `)})`}t.compound(`not`,3,(e,t)=>{if(t.variant.kind===`arbitrary`&&t.variant.relative||t.modifier)return null;let n=!1;if(I([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return F.Continue;let i=[],s=[],c=r.path();c.push(t);for(let e of c)e.kind===`at-rule`?i.push(e):e.kind===`rule`&&s.push(e);if(i.length>1||s.length>1)return F.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,F.Stop;l.push(L(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,F.Stop;l.push(t)}return Object.assign(e,L(`&`,l)),n=!0,F.Skip}),e.kind===`rule`&&e.selector===`&`&&e.nodes.length===1&&Object.assign(e,e.nodes[0]),!n)return null}),t.suggest(`not`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`not`,e))),t.compound(`group`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}group\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}group)`,i=!1;if(I([t],(e,t)=>{if(e.kind!==`rule`)return F.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,F.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} *)`,i=!0}),!i)return null}),t.suggest(`group`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`group`,e))),t.compound(`peer`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}peer\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}peer)`,i=!1;if(I([t],(e,t)=>{if(e.kind!==`rule`)return F.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,F.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} ~ *)`,i=!0}),!i)return null}),t.suggest(`peer`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`peer`,e))),n(`first-letter`,[`&::first-letter`]),n(`first-line`,[`&::first-line`]),n(`marker`,[`& *::marker`,`&::marker`,`& *::-webkit-details-marker`,`&::-webkit-details-marker`]),n(`selection`,[`& *::selection`,`&::selection`]),n(`file`,[`&::file-selector-button`]),n(`placeholder`,[`&::placeholder`]),n(`backdrop`,[`&::backdrop`]),n(`details-content`,[`&::details-content`]);{let e=function(){return V([R(`@property`,`--tw-content`,[B(`syntax`,`"*"`),B(`initial-value`,`""`),B(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[L(`&::before`,[e(),B(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[L(`&::after`,[e(),B(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0})}n(`first`,[`&:first-child`]),n(`last`,[`&:last-child`]),n(`only`,[`&:only-child`]),n(`odd`,[`&:nth-child(odd)`]),n(`even`,[`&:nth-child(even)`]),n(`first-of-type`,[`&:first-of-type`]),n(`last-of-type`,[`&:last-of-type`]),n(`only-of-type`,[`&:only-of-type`]),n(`visited`,[`&:visited`]),n(`target`,[`&:target`]),n(`open`,[`&:is([open], :popover-open, :open)`]),n(`default`,[`&:default`]),n(`checked`,[`&:checked`]),n(`indeterminate`,[`&:indeterminate`]),n(`placeholder-shown`,[`&:placeholder-shown`]),n(`autofill`,[`&:autofill`]),n(`optional`,[`&:optional`]),n(`required`,[`&:required`]),n(`valid`,[`&:valid`]),n(`invalid`,[`&:invalid`]),n(`user-valid`,[`&:user-valid`]),n(`user-invalid`,[`&:user-invalid`]),n(`in-range`,[`&:in-range`]),n(`out-of-range`,[`&:out-of-range`]),n(`read-only`,[`&:read-only`]),n(`empty`,[`&:empty`]),n(`focus-within`,[`&:focus-within`]),t.static(`hover`,e=>{e.nodes=[L(`&:hover`,[R(`@media`,`(hover: hover)`,e.nodes)])]}),n(`focus`,[`&:focus`]),n(`focus-visible`,[`&:focus-visible`]),n(`active`,[`&:active`]),n(`enabled`,[`&:enabled`]),n(`disabled`,[`&:disabled`]),n(`inert`,[`&:is([inert], [inert] *)`]),t.compound(`in`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(I([e],(e,t)=>{if(e.kind!==`rule`)return F.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,F.Stop;e.selector=`:where(${e.selector.replaceAll(`&`,`*`)}) &`,n=!0}),!n)return null}),t.suggest(`in`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`in`,e))),t.compound(`has`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(I([e],(e,t)=>{if(e.kind!==`rule`)return F.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,F.Stop;e.selector=`&:has(${e.selector.replaceAll(`&`,`*`)})`,n=!0}),!n)return null}),t.suggest(`has`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`has`,e))),t.functional(`aria`,(e,t)=>{if(!t.value||t.modifier)return null;if(t.value.kind===`arbitrary`){let n=`[aria-${Wn(t.value.value)}]`;if(Rn(n)===null)return null;e.nodes=[L(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Rn(n)===null)return null;e.nodes=[L(`&${n}`,e.nodes)]}}),t.suggest(`aria`,()=>[`busy`,`checked`,`disabled`,`expanded`,`hidden`,`pressed`,`readonly`,`required`,`selected`]),t.functional(`data`,(e,t)=>{if(!t.value||t.modifier)return null;let n=`[data-${Wn(t.value.value)}]`;if(Rn(n)===null)return null;e.nodes=[L(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!W(t.value.value))return null;e.nodes=[L(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!W(t.value.value))return null;e.nodes=[L(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!W(t.value.value))return null;e.nodes=[L(`&:nth-of-type(${t.value.value})`,e.nodes)]}),t.functional(`nth-last-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!W(t.value.value))return null;e.nodes=[L(`&:nth-last-of-type(${t.value.value})`,e.nodes)]}),t.functional(`supports`,(e,t)=>{if(!t.value||t.modifier)return null;let n=t.value.value;if(n===null)return null;if(/^[\w-]*\s*\(/.test(n)){e.nodes=[R(`@supports`,n.replace(/\b(and|or|not)\b/g,` $1 `),e.nodes)];return}n.includes(`:`)||(n=`${n}: var(--tw)`),(n[0]!==`(`||n[n.length-1]!==`)`)&&(n=`(${n})`),e.nodes=[R(`@supports`,n,e.nodes)]},{compounds:1}),n(`motion-safe`,[`@media (prefers-reduced-motion: no-preference)`]),n(`motion-reduce`,[`@media (prefers-reduced-motion: reduce)`]),n(`contrast-more`,[`@media (prefers-contrast: more)`]),n(`contrast-less`,[`@media (prefers-contrast: less)`]);{let n=function(e,t,n,r){if(e===t)return 0;let i=r.get(e);if(i===null)return n===`asc`?-1:1;let a=r.get(t);return a===null?n===`asc`?1:-1:ct(i,a,n)};{let r=e.namespace(`--breakpoint`),i=new O(t=>{switch(t.kind){case`static`:return e.resolveValue(t.root,[`--breakpoint`])??null;case`functional`:{if(!t.value||t.modifier)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--breakpoint`])),!n||n.includes(`var(`)?null:n}case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`max`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[R(`@media`,`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{for(let[n,r]of e.namespace(`--breakpoint`))n!==null&&t.static(n,e=>{e.nodes=[R(`@media`,`(width >= ${r})`,e.nodes)]},{compounds:1});t.functional(`min`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[R(`@media`,`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`min`,()=>Array.from(r.keys()).filter(e=>e!==null))}{let r=e.namespace(`--container`),i=new O(t=>{switch(t.kind){case`functional`:{if(t.value===null)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--container`])),!n||n.includes(`var(`)?null:n}case`static`:case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`@max`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[R(`@container`,t.modifier?`${t.modifier.value} (width < ${n})`:`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`@max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{t.functional(`@`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[R(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1}),t.functional(`@min`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[R(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`@min`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.suggest(`@`,()=>Array.from(r.keys()).filter(e=>e!==null))}}return n(`portrait`,[`@media (orientation: portrait)`]),n(`landscape`,[`@media (orientation: landscape)`]),n(`ltr`,[`&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)`]),n(`rtl`,[`&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)`]),n(`dark`,[`@media (prefers-color-scheme: dark)`]),n(`starting`,[`@starting-style`]),n(`print`,[`@media print`]),n(`forced-colors`,[`@media (forced-colors: active)`]),n(`inverted-colors`,[`@media (inverted-colors: inverted)`]),n(`pointer-none`,[`@media (pointer: none)`]),n(`pointer-coarse`,[`@media (pointer: coarse)`]),n(`pointer-fine`,[`@media (pointer: fine)`]),n(`any-pointer-none`,[`@media (any-pointer: none)`]),n(`any-pointer-coarse`,[`@media (any-pointer: coarse)`]),n(`any-pointer-fine`,[`@media (any-pointer: fine)`]),n(`noscript`,[`@media (scripting: none)`]),t}function Wn(e){if(e.includes(`=`)){let[t,...n]=A(e,`=`),r=n.join(`=`).trim();if(r[0]===`'`||r[0]===`"`)return e;if(r.length>1){let e=r[r.length-1];if(r[r.length-2]===` `&&(e===`i`||e===`I`||e===`s`||e===`S`))return`${t}="${r.slice(0,-2)}" ${e}`}return`${t}="${r}"`}return e}function Gn(e,t){I(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return F.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,V([R(e.name,e.params,e.nodes)])),F.Skip})}function Kn(e,t){let n=0;return I(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=A(e.params,`,`);for(let[n,a]of i.entries()){let o=L(`&`,n===i.length-1?e.nodes:e.nodes.map(Ce)),s=A(a,`:`);for(let e=s.length-1;e>=0;--e){let n=s[e].trim();if(!n)throw Error("Cannot use `@variant` with empty variant");let r=t.parseVariant(n);if(r===null)throw Error(`Cannot use \`@variant\` with unknown variant: ${n}`);if(Qn(o,r,t.variants)===null)throw Error(`Cannot use \`@variant\` with variant: ${n}`)}o.selector===`&`?r.push(...o.nodes):r.push(o)}return n|=32,F.Replace(r)}),n}function qn(e,t){let n=rn(e),r=Un(e),i=new O(e=>Je(e,u)),a=new O(e=>Array.from(Ke(e,u))),o=new O(e=>new O(t=>{let n=Zn(t,u,e);try{let e=n.map(e=>e.node);An(e,u),Kn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of ve(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=Xn([r],u,{onInvalidCandidate(){e=!1}});t&&I(i,e=>(e.src??=t,F.Continue)),i=Te(i,u,0),n.push(e?i:[])}return n}function l(e){return c(e).map(e=>e.length>0?ke(e):null)}let u={theme:e,utilities:n,variants:r,invalidCandidates:new Set,important:!1,candidatesToCss:l,candidatesToAst:c,getClassOrder(e){return Ln(this,e)},getClassList(){return Pn(this)},getVariants(){return Fn(this)},parseCandidate(e){return a.get(e)},parseVariant(e){return i.get(e)},compileAstNodes(e,t=1){return o.get(t).get(e)},printCandidate(e){return Xe(u,e)},printVariant(e){return Qe(e)},getVariantOrder(){let e=Array.from(i.values());e.sort((e,t)=>this.variants.compare(e,t));let t=new Map,n,r=0;for(let i of e)i!==null&&(n!==void 0&&this.variants.compare(n,i)!==0&&r++,t.set(i,r),n=i);return t},resolveThemeValue(t,n=!0){let r=t.lastIndexOf(`/`),i=null;r!==-1&&(i=t.slice(r+1).trim(),t=t.slice(0,r).trim());let a=e.resolve(null,[t],+!!n)??void 0;return i&&a?$t(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return In(this,e,t)},storage:{}};return u}var Jn=`container-type.pointer-events.visibility.position.inset.inset-inline.inset-block.inset-inline-start.inset-inline-end.inset-block-start.inset-block-end.top.right.bottom.left.isolation.z-index.order.grid-column.grid-column-start.grid-column-end.grid-row.grid-row-start.grid-row-end.float.clear.--tw-container-component.margin.margin-inline.margin-block.margin-inline-start.margin-inline-end.margin-block-start.margin-block-end.margin-top.margin-right.margin-bottom.margin-left.box-sizing.display.field-sizing.aspect-ratio.height.max-height.min-height.width.max-width.min-width.flex.flex-shrink.flex-grow.flex-basis.table-layout.caption-side.border-collapse.border-spacing.transform-origin.translate.--tw-translate-x.--tw-translate-y.--tw-translate-z.scale.--tw-scale-x.--tw-scale-y.--tw-scale-z.rotate.--tw-rotate-x.--tw-rotate-y.--tw-rotate-z.--tw-skew-x.--tw-skew-y.transform.zoom.animation.cursor.touch-action.--tw-pan-x.--tw-pan-y.--tw-pinch-zoom.resize.scroll-snap-type.--tw-scroll-snap-strictness.scroll-snap-align.scroll-snap-stop.scroll-margin.scroll-margin-inline.scroll-margin-block.scroll-margin-inline-start.scroll-margin-inline-end.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-padding.scroll-padding-inline.scroll-padding-block.scroll-padding-inline-start.scroll-padding-inline-end.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scrollbar-width.scrollbar-color.scrollbar-gutter.list-style-position.list-style-type.list-style-image.appearance.columns.break-before.break-inside.break-after.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-template-columns.grid-template-rows.flex-direction.flex-wrap.place-content.place-items.align-content.align-items.justify-content.justify-items.gap.column-gap.row-gap.--tw-space-x-reverse.--tw-space-y-reverse.divide-x-width.divide-y-width.--tw-divide-y-reverse.divide-style.divide-color.place-self.align-self.justify-self.overflow.overflow-x.overflow-y.overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.scroll-behavior.border-radius.border-start-radius.border-end-radius.border-top-radius.border-right-radius.border-bottom-radius.border-left-radius.border-start-start-radius.border-start-end-radius.border-end-end-radius.border-end-start-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-inline-width.border-block-width.border-inline-start-width.border-inline-end-width.border-block-start-width.border-block-end-width.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.border-inline-style.border-block-style.border-inline-start-style.border-inline-end-style.border-block-start-style.border-block-end-style.border-top-style.border-right-style.border-bottom-style.border-left-style.border-color.border-inline-color.border-block-color.border-inline-start-color.border-inline-end-color.border-block-start-color.border-block-end-color.border-top-color.border-right-color.border-bottom-color.border-left-color.background-color.background-image.--tw-gradient-position.--tw-gradient-stops.--tw-gradient-via-stops.--tw-gradient-from.--tw-gradient-from-position.--tw-gradient-via.--tw-gradient-via-position.--tw-gradient-to.--tw-gradient-to-position.mask-image.--tw-mask-top.--tw-mask-top-from-color.--tw-mask-top-from-position.--tw-mask-top-to-color.--tw-mask-top-to-position.--tw-mask-right.--tw-mask-right-from-color.--tw-mask-right-from-position.--tw-mask-right-to-color.--tw-mask-right-to-position.--tw-mask-bottom.--tw-mask-bottom-from-color.--tw-mask-bottom-from-position.--tw-mask-bottom-to-color.--tw-mask-bottom-to-position.--tw-mask-left.--tw-mask-left-from-color.--tw-mask-left-from-position.--tw-mask-left-to-color.--tw-mask-left-to-position.--tw-mask-linear.--tw-mask-linear-position.--tw-mask-linear-from-color.--tw-mask-linear-from-position.--tw-mask-linear-to-color.--tw-mask-linear-to-position.--tw-mask-radial.--tw-mask-radial-shape.--tw-mask-radial-size.--tw-mask-radial-position.--tw-mask-radial-from-color.--tw-mask-radial-from-position.--tw-mask-radial-to-color.--tw-mask-radial-to-position.--tw-mask-conic.--tw-mask-conic-position.--tw-mask-conic-from-color.--tw-mask-conic-from-position.--tw-mask-conic-to-color.--tw-mask-conic-to-position.box-decoration-break.background-size.background-attachment.background-clip.background-position.background-repeat.background-origin.mask-composite.mask-mode.mask-type.mask-size.mask-clip.mask-position.mask-repeat.mask-origin.fill.stroke.stroke-width.object-fit.object-position.padding.padding-inline.padding-block.padding-inline-start.padding-inline-end.padding-block-start.padding-block-end.padding-top.padding-right.padding-bottom.padding-left.text-align.text-indent.vertical-align.font-family.font-feature-settings.font-size.line-height.font-weight.letter-spacing.text-wrap.overflow-wrap.word-break.text-overflow.hyphens.white-space.tab-size.color.text-transform.font-style.font-stretch.font-variant-numeric.text-decoration-line.text-decoration-color.text-decoration-style.text-decoration-thickness.text-underline-offset.-webkit-font-smoothing.placeholder-color.caret-color.accent-color.color-scheme.opacity.background-blend-mode.mix-blend-mode.box-shadow.--tw-shadow.--tw-shadow-color.--tw-ring-shadow.--tw-ring-color.--tw-inset-shadow.--tw-inset-shadow-color.--tw-inset-ring-shadow.--tw-inset-ring-color.--tw-ring-offset-width.--tw-ring-offset-color.outline.outline-width.outline-offset.outline-color.--tw-blur.--tw-brightness.--tw-contrast.--tw-drop-shadow.--tw-grayscale.--tw-hue-rotate.--tw-invert.--tw-saturate.--tw-sepia.filter.--tw-backdrop-blur.--tw-backdrop-brightness.--tw-backdrop-contrast.--tw-backdrop-grayscale.--tw-backdrop-hue-rotate.--tw-backdrop-invert.--tw-backdrop-opacity.--tw-backdrop-saturate.--tw-backdrop-sepia.backdrop-filter.transition-property.transition-behavior.transition-delay.transition-duration.transition-timing-function.will-change.contain.content.forced-color-adjust`.split(`.`);function Yn(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;n++){let r=e.charCodeAt(n),i=t.charCodeAt(n);if(r>=48&&r<=57&&i>=48&&i<=57){let a=n,o=n+1,s=n,c=n+1;for(r=e.charCodeAt(o);r>=48&&r<=57;)r=e.charCodeAt(++o);for(i=t.charCodeAt(c);i>=48&&i<=57;)i=t.charCodeAt(++c);let l=e.slice(a,o),u=t.slice(s,c),d=Number(l)-Number(u);if(d)return d;if(l<u)return-1;if(l>u)return 1;continue}if(r!==i)return r-i}return e.length-t.length}function Xn(e,t,{onInvalidCandidate:n,respectImportant:r}={}){let i=new Map,a=[],o=new Map;for(let r of e){if(t.invalidCandidates.has(r)){n?.(r);continue}let e=t.parseCandidate(r);if(e.length===0){n?.(r);continue}o.set(r,e)}let s=0;(r??!0)&&(s|=1);let c=t.getVariantOrder();for(let[e,r]of o){let o=!1;for(let n of r){let r=t.compileAstNodes(n,s);if(r.length!==0){o=!0;for(let{node:t,propertySort:o}of r){let r=0n;for(let e of n.variants)r|=1n<<BigInt(c.get(e));i.set(t,{properties:o,variants:r,candidate:e}),a.push(t)}}}o||n?.(e)}return a.sort((e,t)=>{let n=i.get(e),r=i.get(t);if(n.variants-r.variants!==0n)return Number(n.variants-r.variants);let a=0;for(;a<n.properties.order.length&&a<r.properties.order.length&&n.properties.order[a]===r.properties.order[a];)a+=1;return(n.properties.order[a]??1/0)-(r.properties.order[a]??1/0)||r.properties.count-n.properties.count||Yn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function Zn(e,t,n){let r=er(e,t);if(r.length===0)return[];let i=t.important&&!!(n&1),a=[],o=`.${C(e.raw)}`;for(let n of r){let r=nr(n);(e.important||i)&&tr(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(Qn(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function Qn(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[z(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=R(`@slot`);if(Qn(a,t.variant,n,r+1)===null||t.root===`not`&&a.nodes.length>1)return null;for(let e of a.nodes)if(e.kind!==`rule`&&e.kind!==`at-rule`||i(e,t)===null)return null;I(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,F.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function $n(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function er(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=K(n,e.modifier,t.theme)),n===null?[]:[[B(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!$n(e));for(let t of i){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}if(r.length>0)return r;let a=n.filter(e=>$n(e));for(let t of a){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}return r}function tr(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&tr(t.nodes))}function nr(e){let t=new Set,n=0,r=e.slice(),i=!1;for(;r.length>0;){let e=r.shift();if(e.kind===`declaration`){if(e.value===void 0||(n++,i))continue;if(e.property===`--tw-sort`){let n=Jn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Jn.indexOf(e.property);r!==-1&&t.add(r)}else if(e.kind===`rule`||e.kind===`at-rule`)for(let t of e.nodes)r.push(t)}return{order:Array.from(t).sort((e,t)=>e-t),count:n}}function rr(e,t){let n=0,r=z(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);I([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return I(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),F.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),I(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of ir(n,t))a.get(e).add(r)}});return}if(e.name===`@apply`){if(r.parent===null)return;n|=1,i.add(r.parent);for(let n of ir(e,t))for(let e of r.path())i.has(e)&&a.get(e).add(n)}}});let s=new Set,c=[],l=new Set;function u(e,n=[]){if(!s.has(e)){if(l.has(e)){let r=n[(n.indexOf(e)+1)%n.length];throw e.kind===`at-rule`&&e.name===`@utility`&&r.kind===`at-rule`&&r.name===`@utility`&&I(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/\s+/g);for(let e of n)for(let n of t.parseCandidate(e))switch(n.kind){case`arbitrary`:break;case`static`:case`functional`:if(r.params.replace(/-\*$/,``)===n.root)throw Error(`You cannot \`@apply\` the \`${e}\` utility here because it creates a circular dependency.`)}}),Error(`Circular dependency detected:
|
|
16
16
|
|
|
17
|
-
${
|
|
17
|
+
${ke([e])}
|
|
18
18
|
Relies on:
|
|
19
19
|
|
|
20
|
-
${je([r])}`)}l.add(e);for(let t of a.get(e))for(let r of o.get(t))n.push(e),u(r,n),n.pop();s.add(e),l.delete(e),c.push(e)}}for(let e of i)u(e);for(let e of c)`nodes`in e&&F(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/(\s+)/g),r={},i=[],a=[],o=0;for(let[e,t]of n.entries())e%2==0&&(t[0]===`-`&&t[1]===`-`?a.push(t):i.push(t),r[t]=o),o+=t.length;if(a.length){if(i.length===0)return P.Skip;let e=a.join(` `);throw Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${e}\` into a separate rule.`)}if(e.nodes.length>0&&i.length){let e=i.join(` `);throw Error(`The rule \`@apply ${e}\` must not have a body.`)}{let n=Qn(Object.keys(r),t,{respectImportant:!1,onInvalidCandidate:e=>{if(t.theme.prefix&&!e.startsWith(t.theme.prefix))throw Error(`Cannot apply unprefixed utility class \`${e}\`. Did you mean \`${t.theme.prefix}:${e}\`?`);if(t.invalidCandidates.has(e))throw Error(`Cannot apply utility class \`${e}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let n=A(e,`:`);if(n.length>1){let r=n.pop();if(t.candidatesToCss([r])[0]){let r=t.candidatesToCss(n.map(e=>`${e}:[--tw-variant-check:1]`)),i=n.filter((e,t)=>r[t]===null);if(i.length>0){if(i.length===1)throw Error(`Cannot apply utility class \`${e}\` because the ${i.map(e=>`\`${e}\``)} variant does not exist.`);{let t=new Intl.ListFormat(`en`,{style:`long`,type:`conjunction`});throw Error(`Cannot apply utility class \`${e}\` because the ${t.format(i.map(e=>`\`${e}\``))} variants do not exist.`)}}}}throw t.theme.size===0?Error(`Cannot apply unknown utility class \`${e}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):Error(`Cannot apply unknown utility class \`${e}\``)}}),i=e.src,a=n.astNodes.map(e=>{let t=n.nodeSorting.get(e)?.candidate,a=t?r[t]:void 0;if(e=Te(e),!i||!t||a===void 0)return F([e],e=>{e.src=i}),e;let o=[i[0],i[1],i[2]];return o[1]+=7+a,o[2]=o[1]+t.length,F([e],e=>{e.src=o}),e}),o=[];for(let e of a)if(e.kind===`rule`)for(let t of e.nodes)o.push(t);else o.push(e);return P.Replace(o)}});return n}function*or(e,t){for(let n of e.params.split(/\s+/g))for(let e of t.parseCandidate(n))switch(e.kind){case`arbitrary`:break;case`static`:case`functional`:yield e.root}}async function sr(e,t,n,r=0,i=!1){let a=0,o=[];return F(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=cr(N(e.params));if(s===null)return;e.name===`@reference`&&(s.media=`reference`),a|=2;let{uri:c,layer:l,media:u,supports:d}=s;if(c.startsWith(`data:`)||c.startsWith(`http://`)||c.startsWith(`https://`))return;let f=we({},[]);return o.push((async()=>{if(r>100)throw Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${t}\`)`);let a=await n(c,t),o=y(a.content,{from:i?a.path:void 0});await sr(o,a.base,n,r+1,i),f.nodes=lr(e,[we({base:a.base},o)],l,u,d)})()),P.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function cr(e){let t,n=null,r=null,i=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!==`separator`){if(o.kind===`word`&&!t){if(!o.value||o.value[0]!==`"`&&o.value[0]!==`'`)return null;t=o.value.slice(1,-1);continue}if(o.kind===`function`&&o.value.toLowerCase()===`url`||!t)return null;if((o.kind===`word`||o.kind===`function`)&&o.value.toLowerCase()===`layer`){if(n)return null;if(i)throw Error("`layer(…)` in an `@import` should come before any other functions or conditions");n=`nodes`in o?M(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=M(o.nodes);continue}r=M(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function lr(e,t,n,r,i){let a=t;if(n!==null){let t=L(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=L(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=L(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function ur(e,t=null){return Array.isArray(e)&&e.length===2&&typeof e[1]==`object`&&typeof e[1]!==null?t?e[1][t]??null:e[0]:Array.isArray(e)&&t===null?e.join(`, `):typeof e==`string`&&t===null?e:null}function dr(e,{theme:t},n){for(let t of n){let n=gr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of fr(t)){if(typeof r!=`string`&&typeof r!=`number`)continue;if(typeof r==`string`&&(r=r.replace(/<alpha-value>/g,`1`)),n[0]===`opacity`&&(typeof r==`number`||typeof r==`string`)){let e=typeof r==`string`?parseFloat(r):r;e>=0&&e<=1&&(r=e*100+`%`)}let t=gr(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=ur(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,ur(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,ur(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=ur(t.fontFamily.mono);n&&e.theme.hasDefault(`--font-mono`)&&(e.theme.add(`--default-mono-font-family`,n,5),e.theme.add(`--default-mono-font-feature-settings`,ur(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,ur(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function fr(e){let t=[];return yr(e,[],(e,n)=>{if(_r(e))return t.push([n,e]),1;if(vr(e)){t.push([n,e[0]]);for(let r of Reflect.ownKeys(e[1]))t.push([[...n,`-${r}`],e[1][r]]);return 1}if(Array.isArray(e)&&e.every(e=>typeof e==`string`))return n[0]===`fontSize`?(t.push([n,e[0]]),e.length>=2&&t.push([[...n,`-line-height`],e[1]])):t.push([n,e.join(`, `)]),1}),t}var pr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},mr={animation:`animate`,aspectRatio:`aspect`,borderRadius:`radius`,boxShadow:`shadow`,colors:`color`,containers:`container`,fontFamily:`font`,fontSize:`text`,letterSpacing:`tracking`,lineHeight:`leading`,maxWidth:`container`,screens:`breakpoint`,transitionTimingFunction:`ease`},hr=/^[a-zA-Z0-9-_%/.]+$/;function gr(e){let t=pr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!hr.test(t))return null;let n=mr[e[0]];return n&&(e=e.slice(),e[0]=n),e.map((e,t,n)=>e===`1`&&t!==n.length-1?``:e).map((e,t)=>(e=e.replaceAll(`.`,`_`),(t===0||e.startsWith(`-`)||e===`lineHeight`)&&(e=e.replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t}-${n.toLowerCase()}`)),e)).filter((t,n)=>t!==`DEFAULT`||n!==e.length-1).join(`-`)}function _r(e){return typeof e==`number`||typeof e==`string`}function vr(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!=`string`&&typeof e[0]!=`number`||e[1]===void 0||e[1]===null||typeof e[1]!=`object`)return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!=`string`||typeof e[1][t]!=`string`&&typeof e[1][t]!=`number`)return!1;return!0}function yr(e,t=[],n){for(let r of Reflect.ownKeys(e)){let i=e[r];if(i==null)continue;let a=[...t,r],o=n(i,a)??0;if(o!==1&&(o===2||(Array.isArray(i)||typeof i==`object`)&&yr(i,a,n)===2))return 2}}function br(e){let t=[];for(let n of A(e,`.`)){if(!n.includes(`[`)){t.push(n);continue}let e=0;for(;;){let r=n.indexOf(`[`,e),i=n.indexOf(`]`,r);if(r===-1||i===-1)break;r>e&&t.push(n.slice(e,r)),t.push(n.slice(r+1,i)),e=i+1}e<=n.length-1&&t.push(n.slice(e))}return t}function xr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Sr(e,t,n,r=[]){for(let i of t)if(i!=null)for(let t of Reflect.ownKeys(i)){r.push(t);let a=n(e[t],i[t],r);e[t]=a===void 0?!xr(e[t])||!xr(i[t])?i[t]:Sr({},[e[t],i[t]],n,r):a,r.pop()}return e}function Cr(e,t,n){return function(r,i){let a=r.lastIndexOf(`/`),o=null;a!==-1&&(o=r.slice(a+1).trim(),r=r.slice(0,a).trim());let s=(()=>{let i=br(r),[a,o]=wr(e.theme,i),s=n(Tr(t()??{},i)??null);if(typeof s==`string`&&(s=s.replace(`<alpha-value>`,`1`)),typeof a!=`object`)return typeof o!=`object`&&o&4?s??a:a;if(typeof s==`object`&&s&&!Array.isArray(s)){let e=Sr({},[s],(e,t)=>t);if(a===null&&Object.hasOwn(s,`__CSS_VALUES__`)){let t={};for(let n in s.__CSS_VALUES__)t[n]=s[n],delete e[n];a=t}for(let t in a)t!==`__CSS_VALUES__`&&(s?.__CSS_VALUES__?.[t]&4&&Tr(e,t.split(`-`))!==void 0||(e[w(t)]=a[t]));return e}if(Array.isArray(a)&&Array.isArray(o)&&Array.isArray(s)){let e=a[0],t=a[1];o[0]&4&&(e=s[0]??e);for(let e of Object.keys(t))o[1][e]&4&&(t[e]=s[1][e]??t[e]);return[e,t]}return typeof a==`object`&&a&&!Array.isArray(a)&&`DEFAULT`in a?a.DEFAULT:a??s})();return o&&typeof s==`string`&&(s=tn(s,o)),s??i}}function wr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=gr(t),r=new Map,i=new O(()=>new Map),a=e.namespace(`--${n}`);if(a.size===0)return[null,0];let o=new Map;for(let[t,s]of a){if(!t||!t.includes(`--`)){r.set(t,s),o.set(t,e.getOptions(t?`--${n}-${t}`:`--${n}`));continue}let a=t.indexOf(`--`),c=t.slice(0,a),l=t.slice(a+2);l=l.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),i.get(c===``?null:c).set(l,[s,e.getOptions(`--${n}${t}`)])}let s=e.getOptions(`--${n}`);for(let[e,t]of i){let n=r.get(e);if(typeof n!=`string`)continue;let i={},a={};for(let[e,[n,r]]of t)i[e]=n,a[e]=r;r.set(e,[n,i]),o.set(e,[s,a])}let c={},l={};for(let[e,t]of r)Er(c,[e??`DEFAULT`],t);for(let[e,t]of o)Er(l,[e??`DEFAULT`],t);return t[t.length-1]===`DEFAULT`?[c?.DEFAULT??null,l.DEFAULT??0]:`DEFAULT`in c&&Object.keys(c).length===1?[c.DEFAULT,l.DEFAULT??0]:(c.__CSS_VALUES__=l,[c,l])}function Tr(e,t){for(let n=0;n<t.length;++n){let r=t[n];if(typeof e!=`object`||!e||!Object.hasOwn(e,r)){if(t[n+1]===void 0)return;t[n+1]=`${r}-${t[n+1]}`;continue}e=e[r]}return e}function Er(e,t,n){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=n}var Dr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Or({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=kr(n);r.current|=Mn(o,e);let s=L(`@layer`,`base`,o);F([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Hn.test(t))throw Error(`\`addVariant('${t}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(typeof n==`string`){if(n.includes(`:merge(`))return}else if(Array.isArray(n)){if(n.some(e=>e.includes(`:merge(`)))return}else if(typeof n==`object`){let e=function(t,n){return Object.entries(t).some(([t,r])=>t.includes(n)||typeof r==`object`&&e(r,n))};if(e(n,`:merge(`))return}typeof n==`string`||Array.isArray(n)?e.variants.static(t,e=>{e.nodes=Ar(n,e.nodes)},{compounds:Wn(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,kr(n),e)},matchVariant(t,n,r){function i(e,t,r){return Ar(n(e,{modifier:t?.value??null}),r)}try{let e=n(`a`,{modifier:null});if(typeof e==`string`&&e.includes(`:merge(`)||Array.isArray(e)&&e.some(e=>e.includes(`:merge(`)))return}catch{}let a=Object.keys(r?.values??{});e.variants.group(()=>{e.variants.functional(t,(e,t)=>{if(!t.value){if(r?.values&&`DEFAULT`in r.values){e.nodes=i(r.values.DEFAULT,t.modifier,e.nodes);return}return null}if(t.value.kind===`arbitrary`)e.nodes=i(t.value.value,t.modifier,e.nodes);else if(t.value.kind===`named`&&r?.values){if(!Object.hasOwn(r.values,t.value.value))return null;let n=r.values[t.value.value];if(typeof n!=`string`)return null;e.nodes=i(n,t.modifier,e.nodes)}else return null})},(e,t)=>{if(e.kind!==`functional`||t.kind!==`functional`)return 0;let n=e.value?e.value.value:`DEFAULT`,i=t.value?t.value.value:`DEFAULT`,o=(r?.values&&Object.hasOwn(r.values,n)?r.values[n]:void 0)??n,s=(r?.values&&Object.hasOwn(r.values,i)?r.values[i]:void 0)??i;if(r&&typeof r.sort==`function`)return r.sort({value:o,modifier:e.modifier?.value??null},{value:s,modifier:t.modifier?.value??null});let c=a.indexOf(n),l=a.indexOf(i);return c=c===-1?a.length:c,l=l===-1?a.length:l,c===l?o<s?-1:1:c-l}),e.variants.suggest(t,()=>Object.keys(r?.values??{}).filter(e=>e!==`DEFAULT`))},addUtilities(n){n=Array.isArray(n)?n:[n];let o=n.flatMap(e=>Object.entries(e));o=o.flatMap(([e,t])=>A(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=Se(e,kr(n));F([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(F(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&Dr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?kr(n):[Se(i,kr(n))];s.get(a).push(...c),o=!0,e.value=t;return}if(e.kind===`function`&&(e.value===`:not`||e.value===`:nth-child`||e.value===`:nth-last-child`))return P.Skip}),!o)throw Error(`\`addUtilities({ '${e}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[t,n]of s)e.theme.prefix&&F(n,t=>{if(t.kind===`rule`){let n=g(t.selector);F(n,t=>{t.kind===`selector`&&t.value[0]===`.`&&(t.value=`.${e.theme.prefix}\\:${t.value.slice(1)}`)}),t.selector=l(n)}}),e.utilities.static(t,i=>{let a=n.map(Te);return jr(a,t,i.raw),r.current|=ar(a,e),a})},matchUtilities(t,n){let i=n?.type?Array.isArray(n?.type)?n.type:[n.type]:[`any`];for(let[a,o]of Object.entries(t)){let t=function({negative:t}){return s=>{if(s.value?.kind===`arbitrary`&&i.length>0&&!i.includes(`any`)&&(s.value.dataType&&!i.includes(s.value.dataType)||!s.value.dataType&&!V(s.value.value,i)))return;let c=i.includes(`color`),l=null,u=!1;{let e=n?.values??{};c&&(e=Object.assign({inherit:`inherit`,transparent:`transparent`,current:`currentcolor`},e)),s.value?s.value.kind===`arbitrary`?l=s.value.value:s.value.fraction&&Object.hasOwn(e,s.value.fraction)?(l=e[s.value.fraction],u=!0):Object.hasOwn(e,s.value.value)?l=e[s.value.value]:e.__BARE_VALUE__&&(l=e.__BARE_VALUE__(s.value)??null,u=(s.value.fraction!==null&&l?.includes(`/`))??!1):l=e.DEFAULT??null}if(l===null)return;let d;{let e=n?.modifiers??null;d=s.modifier?e===`any`||s.modifier.kind===`arbitrary`?s.modifier.value:e&&Object.hasOwn(e,s.modifier.value)?e[s.modifier.value]:c&&!Number.isNaN(Number(s.modifier.value))?`${s.modifier.value}%`:null:null}if(s.modifier&&d===null&&!u)return s.value?.kind===`arbitrary`?null:void 0;c&&d!==null&&(l=tn(l,d)),t&&(l=`calc(${l} * -1)`);let f=kr(o(l,{modifier:d}));return jr(f,a,s.raw),r.current|=ar(f,e),f}};if(!Dr.test(a))throw Error(`\`matchUtilities({ '${a}' : \u2026 })\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`);n?.supportsNegativeValues&&e.utilities.functional(`-${a}`,t({negative:!0}),{types:i}),e.utilities.functional(a,t({negative:!1}),{types:i}),e.utilities.suggest(a,()=>{let e=n?.values??{},t=new Set(Object.keys(e));t.delete(`__BARE_VALUE__`),t.delete(`__CSS_VALUES__`),t.has(`DEFAULT`)&&(t.delete(`DEFAULT`),t.add(null));let r=n?.modifiers??{},i=r===`any`?[]:Object.keys(r);return[{supportsNegative:n?.supportsNegativeValues??!1,values:Array.from(t),modifiers:i}]})}},addComponents(e,t){this.addUtilities(e,t)},matchComponents(e,t){this.matchUtilities(e,t)},theme:Cr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=br(e);for(let e=0;e<i.length;++e){let n=i[e];if(r[n]===void 0)return t;r=r[n]}return r??t}};return o.addComponents=o.addComponents.bind(o),o.matchComponents=o.matchComponents.bind(o),o}function kr(e){let t=[];e=Array.isArray(e)?e:[e];let n=e.flatMap(e=>Object.entries(e));for(let[e,r]of n)if(r!=null&&r!==!1){if(typeof r!=`object`){if(!e.startsWith(`--`)){if(r===`@slot`){t.push(Se(e,[L(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(R(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(R(e,n)):t.push(Se(e,kr(n)));else t.push(Se(e,kr(r)))}return t}function Ar(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return qn(n,t),n}return Se(e,t)})}function jr(e,t,n){F(e,e=>{if(e.kind===`rule`){let r=g(e.selector);F(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Mr(e,t){for(let n of Nr(t))e.theme.addKeyframes(n)}function Nr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(L(`@keyframes`,n,kr(r)));return t}var Pr={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}};function Fr(e){return{__BARE_VALUE__:e}}var Ir=Fr(e=>{if(H(e.value))return e.value}),G=Fr(e=>{if(H(e.value))return`${e.value}%`}),Lr=Fr(e=>{if(H(e.value))return`${e.value}px`}),Rr=Fr(e=>{if(H(e.value))return`${e.value}ms`}),zr=Fr(e=>{if(H(e.value))return`${e.value}deg`}),Br=Fr(e=>{if(e.fraction===null)return;let[t,n]=A(e.fraction,`/`);if(H(t)&&H(n))return e.fraction}),Vr=Fr(e=>{if(H(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Hr={accentColor:({theme:e})=>e(`colors`),animation:{none:`none`,spin:`spin 1s linear infinite`,ping:`ping 1s cubic-bezier(0, 0, 0.2, 1) infinite`,pulse:`pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite`,bounce:`bounce 1s infinite`},aria:{busy:`busy="true"`,checked:`checked="true"`,disabled:`disabled="true"`,expanded:`expanded="true"`,hidden:`hidden="true"`,pressed:`pressed="true"`,readonly:`readonly="true"`,required:`required="true"`,selected:`selected="true"`},aspectRatio:{auto:`auto`,square:`1 / 1`,video:`16 / 9`,...Br},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...G}),backdropContrast:({theme:e})=>({...e(`contrast`),...G}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...G}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...zr}),backdropInvert:({theme:e})=>({...e(`invert`),...G}),backdropOpacity:({theme:e})=>({...e(`opacity`),...G}),backdropSaturate:({theme:e})=>({...e(`saturate`),...G}),backdropSepia:({theme:e})=>({...e(`sepia`),...G}),backgroundColor:({theme:e})=>e(`colors`),backgroundImage:{none:`none`,"gradient-to-t":`linear-gradient(to top, var(--tw-gradient-stops))`,"gradient-to-tr":`linear-gradient(to top right, var(--tw-gradient-stops))`,"gradient-to-r":`linear-gradient(to right, var(--tw-gradient-stops))`,"gradient-to-br":`linear-gradient(to bottom right, var(--tw-gradient-stops))`,"gradient-to-b":`linear-gradient(to bottom, var(--tw-gradient-stops))`,"gradient-to-bl":`linear-gradient(to bottom left, var(--tw-gradient-stops))`,"gradient-to-l":`linear-gradient(to left, var(--tw-gradient-stops))`,"gradient-to-tl":`linear-gradient(to top left, var(--tw-gradient-stops))`},backgroundOpacity:({theme:e})=>e(`opacity`),backgroundPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},backgroundSize:{auto:`auto`,cover:`cover`,contain:`contain`},blur:{0:`0`,none:``,sm:`4px`,DEFAULT:`8px`,md:`12px`,lg:`16px`,xl:`24px`,"2xl":`40px`,"3xl":`64px`},borderColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),borderOpacity:({theme:e})=>e(`opacity`),borderRadius:{none:`0px`,sm:`0.125rem`,DEFAULT:`0.25rem`,md:`0.375rem`,lg:`0.5rem`,xl:`0.75rem`,"2xl":`1rem`,"3xl":`1.5rem`,full:`9999px`},borderSpacing:({theme:e})=>e(`spacing`),borderWidth:{DEFAULT:`1px`,0:`0px`,2:`2px`,4:`4px`,8:`8px`,...Lr},boxShadow:{sm:`0 1px 2px 0 rgb(0 0 0 / 0.05)`,DEFAULT:`0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)`,md:`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,lg:`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,xl:`0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)`,"2xl":`0 25px 50px -12px rgb(0 0 0 / 0.25)`,inner:`inset 0 2px 4px 0 rgb(0 0 0 / 0.05)`,none:`none`},boxShadowColor:({theme:e})=>e(`colors`),brightness:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,200:`2`,...G},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Pr}),columns:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,"3xs":`16rem`,"2xs":`18rem`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,...Ir},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...G},cursor:{auto:`auto`,default:`default`,pointer:`pointer`,wait:`wait`,text:`text`,move:`move`,help:`help`,"not-allowed":`not-allowed`,none:`none`,"context-menu":`context-menu`,progress:`progress`,cell:`cell`,crosshair:`crosshair`,"vertical-text":`vertical-text`,alias:`alias`,copy:`copy`,"no-drop":`no-drop`,grab:`grab`,grabbing:`grabbing`,"all-scroll":`all-scroll`,"col-resize":`col-resize`,"row-resize":`row-resize`,"n-resize":`n-resize`,"e-resize":`e-resize`,"s-resize":`s-resize`,"w-resize":`w-resize`,"ne-resize":`ne-resize`,"nw-resize":`nw-resize`,"se-resize":`se-resize`,"sw-resize":`sw-resize`,"ew-resize":`ew-resize`,"ns-resize":`ns-resize`,"nesw-resize":`nesw-resize`,"nwse-resize":`nwse-resize`,"zoom-in":`zoom-in`,"zoom-out":`zoom-out`},divideColor:({theme:e})=>e(`borderColor`),divideOpacity:({theme:e})=>e(`borderOpacity`),divideWidth:({theme:e})=>({...e(`borderWidth`),...Lr}),dropShadow:{sm:`0 1px 1px rgb(0 0 0 / 0.05)`,DEFAULT:[`0 1px 2px rgb(0 0 0 / 0.1)`,`0 1px 1px rgb(0 0 0 / 0.06)`],md:[`0 4px 3px rgb(0 0 0 / 0.07)`,`0 2px 2px rgb(0 0 0 / 0.06)`],lg:[`0 10px 8px rgb(0 0 0 / 0.04)`,`0 4px 3px rgb(0 0 0 / 0.1)`],xl:[`0 20px 13px rgb(0 0 0 / 0.03)`,`0 8px 5px rgb(0 0 0 / 0.08)`],"2xl":`0 25px 25px rgb(0 0 0 / 0.15)`,none:`0 0 #0000`},fill:({theme:e})=>e(`colors`),flex:{1:`1 1 0%`,auto:`1 1 auto`,initial:`0 1 auto`,none:`none`},flexBasis:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,...e(`spacing`)}),flexGrow:{0:`0`,DEFAULT:`1`,...Ir},flexShrink:{0:`0`,DEFAULT:`1`,...Ir},fontFamily:{sans:[`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`"Noto Sans"`,`Arial`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`]},fontSize:{xs:[`0.75rem`,{lineHeight:`1rem`}],sm:[`0.875rem`,{lineHeight:`1.25rem`}],base:[`1rem`,{lineHeight:`1.5rem`}],lg:[`1.125rem`,{lineHeight:`1.75rem`}],xl:[`1.25rem`,{lineHeight:`1.75rem`}],"2xl":[`1.5rem`,{lineHeight:`2rem`}],"3xl":[`1.875rem`,{lineHeight:`2.25rem`}],"4xl":[`2.25rem`,{lineHeight:`2.5rem`}],"5xl":[`3rem`,{lineHeight:`1`}],"6xl":[`3.75rem`,{lineHeight:`1`}],"7xl":[`4.5rem`,{lineHeight:`1`}],"8xl":[`6rem`,{lineHeight:`1`}],"9xl":[`8rem`,{lineHeight:`1`}]},fontWeight:{thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`},gap:({theme:e})=>e(`spacing`),gradientColorStops:({theme:e})=>e(`colors`),gradientColorStopPositions:{"0%":`0%`,"5%":`5%`,"10%":`10%`,"15%":`15%`,"20%":`20%`,"25%":`25%`,"30%":`30%`,"35%":`35%`,"40%":`40%`,"45%":`45%`,"50%":`50%`,"55%":`55%`,"60%":`60%`,"65%":`65%`,"70%":`70%`,"75%":`75%`,"80%":`80%`,"85%":`85%`,"90%":`90%`,"95%":`95%`,"100%":`100%`,...G},grayscale:{0:`0`,DEFAULT:`100%`,...G},gridAutoColumns:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridAutoRows:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridColumn:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridColumnEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ir},gridColumnStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ir},gridRow:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridRowEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ir},gridRowStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ir},gridTemplateColumns:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Vr},gridTemplateRows:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Vr},height:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),hueRotate:{0:`0deg`,15:`15deg`,30:`30deg`,60:`60deg`,90:`90deg`,180:`180deg`,...zr},inset:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),invert:{0:`0`,DEFAULT:`100%`,...G},keyframes:{spin:{to:{transform:`rotate(360deg)`}},ping:{"75%, 100%":{transform:`scale(2)`,opacity:`0`}},pulse:{"50%":{opacity:`.5`}},bounce:{"0%, 100%":{transform:`translateY(-25%)`,animationTimingFunction:`cubic-bezier(0.8,0,1,1)`},"50%":{transform:`none`,animationTimingFunction:`cubic-bezier(0,0,0.2,1)`}}},letterSpacing:{tighter:`-0.05em`,tight:`-0.025em`,normal:`0em`,wide:`0.025em`,wider:`0.05em`,widest:`0.1em`},lineHeight:{none:`1`,tight:`1.25`,snug:`1.375`,normal:`1.5`,relaxed:`1.625`,loose:`2`,3:`.75rem`,4:`1rem`,5:`1.25rem`,6:`1.5rem`,7:`1.75rem`,8:`2rem`,9:`2.25rem`,10:`2.5rem`},listStyleType:{none:`none`,disc:`disc`,decimal:`decimal`},listStyleImage:{none:`none`},margin:({theme:e})=>({auto:`auto`,...e(`spacing`)}),lineClamp:{1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,...Ir},maxHeight:({theme:e})=>({none:`none`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),maxWidth:({theme:e})=>({none:`none`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,prose:`65ch`,...e(`spacing`)}),minHeight:({theme:e})=>({full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),minWidth:({theme:e})=>({full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),objectPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},opacity:{0:`0`,5:`0.05`,10:`0.1`,15:`0.15`,20:`0.2`,25:`0.25`,30:`0.3`,35:`0.35`,40:`0.4`,45:`0.45`,50:`0.5`,55:`0.55`,60:`0.6`,65:`0.65`,70:`0.7`,75:`0.75`,80:`0.8`,85:`0.85`,90:`0.9`,95:`0.95`,100:`1`,...G},order:{first:`-9999`,last:`9999`,none:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,...Ir},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},padding:({theme:e})=>e(`spacing`),placeholderColor:({theme:e})=>e(`colors`),placeholderOpacity:({theme:e})=>e(`opacity`),ringColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),ringOffsetColor:({theme:e})=>e(`colors`),ringOffsetWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...zr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...G},scale:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,...G},screens:{sm:`40rem`,md:`48rem`,lg:`64rem`,xl:`80rem`,"2xl":`96rem`},scrollMargin:({theme:e})=>e(`spacing`),scrollPadding:({theme:e})=>e(`spacing`),sepia:{0:`0`,DEFAULT:`100%`,...G},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...zr},space:({theme:e})=>e(`spacing`),spacing:{px:`1px`,0:`0px`,.5:`0.125rem`,1:`0.25rem`,1.5:`0.375rem`,2:`0.5rem`,2.5:`0.625rem`,3:`0.75rem`,3.5:`0.875rem`,4:`1rem`,5:`1.25rem`,6:`1.5rem`,7:`1.75rem`,8:`2rem`,9:`2.25rem`,10:`2.5rem`,11:`2.75rem`,12:`3rem`,14:`3.5rem`,16:`4rem`,20:`5rem`,24:`6rem`,28:`7rem`,32:`8rem`,36:`9rem`,40:`10rem`,44:`11rem`,48:`12rem`,52:`13rem`,56:`14rem`,60:`15rem`,64:`16rem`,72:`18rem`,80:`20rem`,96:`24rem`},stroke:({theme:e})=>({none:`none`,...e(`colors`)}),strokeWidth:{0:`0`,1:`1`,2:`2`,...Ir},supports:{},data:{},textColor:({theme:e})=>e(`colors`),textDecorationColor:({theme:e})=>e(`colors`),textDecorationThickness:{auto:`auto`,"from-font":`from-font`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},transformOrigin:{center:`center`,top:`top`,"top-right":`top right`,right:`right`,"bottom-right":`bottom right`,bottom:`bottom`,"bottom-left":`bottom left`,left:`left`,"top-left":`top left`},transitionDelay:{0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Rr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Rr},transitionProperty:{none:`none`,all:`all`,DEFAULT:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter`,colors:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke`,opacity:`opacity`,shadow:`box-shadow`,transform:`transform`},transitionTimingFunction:{DEFAULT:`cubic-bezier(0.4, 0, 0.2, 1)`,linear:`linear`,in:`cubic-bezier(0.4, 0, 1, 1)`,out:`cubic-bezier(0, 0, 0.2, 1)`,"in-out":`cubic-bezier(0.4, 0, 0.2, 1)`},translate:({theme:e})=>({"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),size:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),width:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,screen:`100vw`,svw:`100svw`,lvw:`100lvw`,dvw:`100dvw`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),willChange:{auto:`auto`,scroll:`scroll-position`,contents:`contents`,transform:`transform`},zIndex:{auto:`auto`,0:`0`,10:`10`,20:`20`,30:`30`,40:`40`,50:`50`,...Ir}};function Ur(e){return{theme:{...Hr,colors:({theme:e})=>e(`color`,{}),extend:{fontSize:({theme:e})=>({...e(`text`,{})}),boxShadow:({theme:e})=>({...e(`shadow`,{})}),animation:({theme:e})=>({...e(`animate`,{})}),aspectRatio:({theme:e})=>({...e(`aspect`,{})}),borderRadius:({theme:e})=>({...e(`radius`,{})}),screens:({theme:e})=>({...e(`breakpoint`,{})}),letterSpacing:({theme:e})=>({...e(`tracking`,{})}),lineHeight:({theme:e})=>({...e(`leading`,{})}),transitionDuration:{DEFAULT:e.get([`--default-transition-duration`])??null},transitionTimingFunction:{DEFAULT:e.get([`--default-transition-timing-function`])??null},maxWidth:({theme:e})=>({...e(`container`,{})})}}}}var Wr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Gr(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Wr)};for(let e of t)qr(n,e);for(let e of n.configs)`darkMode`in e&&e.darkMode!==void 0&&(n.result.darkMode=e.darkMode??null),`prefix`in e&&e.prefix!==void 0&&(n.result.prefix=e.prefix??``),`blocklist`in e&&e.blocklist!==void 0&&(n.result.blocklist=e.blocklist??[]),`important`in e&&e.important!==void 0&&(n.result.important=e.important??!1);let r=Jr(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Kr(e,t){if(Array.isArray(e)&&xr(e[0]))return e.concat(t);if(Array.isArray(t)&&xr(t[0])&&xr(e))return[e,...t];if(Array.isArray(t))return t}function qr(e,{config:t,base:n,path:r,reference:i,src:a}){let o=[];for(let e of t.plugins??[])`__isOptionsFunction`in e?o.push({...e(),reference:i,src:a}):`handler`in e?o.push({...e,reference:i,src:a}):o.push({handler:e,reference:i,src:a});if(Array.isArray(t.presets)&&t.presets.length===0)throw Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])qr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&qr(e,{path:r,base:n,config:t.config,reference:!!t.reference,src:t.src??a});let s=t.content??[],c=Array.isArray(s)?s:s.files;for(let t of c)e.content.files.push(typeof t==`object`?t:{base:n,pattern:t});e.configs.push(t)}function Jr(e){let t=new Set,n=Cr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Pr});function i(e){return typeof e==`function`?e(r)??null:e??null}for(let n of e.configs){let r=n.theme??{},i=r.extend??{};for(let e in r)e!==`extend`&&t.add(e);Object.assign(e.theme,r);for(let t in i)e.extend[t]??=[],e.extend[t].push(i[t])}delete e.theme.extend;for(let t in e.extend){let n=[e.theme[t],...e.extend[t]];e.theme[t]=()=>Sr({},n.map(i),Kr)}for(let t in e.theme)e.theme[t]=i(e.theme[t]);if(e.theme.screens&&typeof e.theme.screens==`object`)for(let t of Object.keys(e.theme.screens)){let n=e.theme.screens[t];n&&typeof n==`object`&&(`raw`in n||`max`in n||`min`in n&&(e.theme.screens[t]=n.min))}return t}function Yr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Xr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Te))}function Xr({center:e,padding:t,screens:n},r){let i=[],a=null;if(e&&i.push(R(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(R(`padding-inline`,typeof t==`string`?t:t.DEFAULT)),typeof n==`object`&&n){a=new Map;let e=Array.from(r.theme.namespace(`--breakpoint`).entries());if(e.sort((e,t)=>ut(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(L(`@media`,`(width >= --theme(--breakpoint-${t}))`,[R(`max-width`,`none`)]))}for(let[e,t]of Object.entries(n)){if(typeof t==`object`){if(`min`in t)t=t.min;else continue}a.set(e,L(`@media`,`(width >= ${t})`,[R(`max-width`,t)]))}}if(typeof t==`object`&&t){let e=Object.entries(t).filter(([e])=>e!==`DEFAULT`).map(([e,t])=>[e,r.theme.resolveValue(e,[`--breakpoint`]),t]).filter(Boolean);e.sort((e,t)=>ut(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(R(`padding-inline`,n));else{if(a)continue;i.push(L(`@media`,`(width >= theme(--breakpoint-${t}))`,[R(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Zr({addVariant:e,config:t}){let n=t(`darkMode`,null),[r,i=`.dark`]=Array.isArray(n)?n:[n];if(r===`variant`){let e;if(Array.isArray(i)||typeof i==`function`?e=i:typeof i==`string`&&(e=[i]),Array.isArray(e))for(let t of e)t===`.dark`?(r=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):t.includes(`&`)||(r=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=e}r===null||(r===`selector`?e(`dark`,`&:where(${i}, ${i} *)`):r===`media`?e(`dark`,`@media (prefers-color-scheme: dark)`):r===`variant`?e(`dark`,i):r===`class`&&e(`dark`,`&:is(${i} *)`))}function Qr(e){for(let[t,n]of[[`t`,`top`],[`tr`,`top right`],[`r`,`right`],[`br`,`bottom right`],[`b`,`bottom`],[`bl`,`bottom left`],[`l`,`left`],[`tl`,`top left`]])e.utilities.suggest(`bg-gradient-to-${t}`,()=>[]),e.utilities.static(`bg-gradient-to-${t}`,()=>[R(`--tw-gradient-position`,`to ${n} in oklab`),R(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[R(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[R(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[R(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[R(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[R(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[R(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[R(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[R(`object-position`,`right bottom`)]),e.utilities.suggest(`max-w-screen`,()=>[]),e.utilities.functional(`max-w-screen`,t=>{if(!t.value||t.value.kind===`arbitrary`)return;let n=e.theme.resolve(t.value.value,[`--breakpoint`]);if(n)return[R(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[R(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[R(`-webkit-box-decoration-break`,`slice`),R(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[R(`-webkit-box-decoration-break`,`clone`),R(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[R(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||H(e.value.value))return[R(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[R(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||H(e.value.value))return[R(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[R(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[R(`overflow-wrap`,`break-word`)]);for(let[t,n]of[[`start`,`inset-inline-start`],[`end`,`inset-inline-end`]]){let r=function({negative:t}){return r=>{if(r.value===null)return;if(r.value.kind===`arbitrary`){if(r.modifier)return;let e=r.value.value;return[R(n,t?`calc(${e} * -1)`:e)]}let i=e.theme.resolve(r.value.fraction??r.value.value,[`--inset`,`--spacing`]);if(i===null&&r.value.fraction){let[e,t]=A(r.value.fraction,`/`);if(!H(e)||!H(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&Gt(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[R(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&Gt(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[R(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[R(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[R(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[R(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[R(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[R(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function $r(e,t){let n=e.theme.screens||{},r=t.variants.get(`min`)?.order??0,i=[];for(let[e,a]of Object.entries(n)){let n=function(n){t.variants.static(e,e=>{e.nodes=[L(`@media`,l,e.nodes)]},{order:n})},o=t.variants.get(e),s=t.theme.resolveValue(e,[`--breakpoint`]);if(o&&s&&!t.theme.hasDefault(`--breakpoint-${e}`))continue;let c=!0;typeof a==`string`&&(c=!1);let l=ei(a);c?i.push(n):n(r)}if(i.length!==0){for(let[,e]of t.variants.variants)e.order>r&&(e.order+=i.length);t.variants.compareFns=new Map(Array.from(t.variants.compareFns).map(([e,t])=>(e>r&&(e+=i.length),[e,t])));for(let[e,t]of i.entries())t(r+e+1)}}function ei(e){return(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{min:e}:e&&typeof e==`object`?e:null).map(e=>{if(e===null)return null;if(`raw`in e)return e.raw;let t=``;return e.max!==void 0&&(t+=`${e.max} >= `),t+=`width`,e.min!==void 0&&(t+=` >= ${e.min}`),`(${t})`}).filter(Boolean).join(`, `)}function ti(e,t){let n=e.theme.aria||{},r=e.theme.supports||{},i=e.theme.data||{};if(Object.keys(n).length>0){let e=t.variants.get(`aria`),r=e?.applyFn,i=e?.compounds;t.variants.functional(`aria`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in n?r?.(e,{...t,value:{kind:`arbitrary`,value:n[i.value]}}):r?.(e,t)},{compounds:i})}if(Object.keys(r).length>0){let e=t.variants.get(`supports`),n=e?.applyFn,i=e?.compounds;t.variants.functional(`supports`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in r?n?.(e,{...t,value:{kind:`arbitrary`,value:r[i.value]}}):n?.(e,t)},{compounds:i})}if(Object.keys(i).length>0){let e=t.variants.get(`data`),n=e?.applyFn,r=e?.compounds;t.variants.functional(`data`,(e,t)=>{let r=t.value;return r&&r.kind===`named`&&r.value in i?n?.(e,{...t,value:{kind:`arbitrary`,value:i[r.value]}}):n?.(e,t)},{compounds:r})}}var ni=/^[a-z]+$/;async function ri({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];F(n,(e,t)=>{if(e.kind!==`at-rule`)return;let n=Ee(t);if(e.name===`@plugin`){if(n.parent!==null)throw Error("`@plugin` cannot be nested.");let t=e.params.slice(1,-1);if(t.length===0)throw Error("`@plugin` must have a path.");let r={};for(let t of e.nodes??[]){if(t.kind!==`declaration`)throw Error(`Unexpected \`@plugin\` option:
|
|
20
|
+
${ke([r])}`)}l.add(e);for(let t of a.get(e))for(let r of o.get(t))n.push(e),u(r,n),n.pop();s.add(e),l.delete(e),c.push(e)}}for(let e of i)u(e);for(let e of c)`nodes`in e&&I(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/(\s+)/g),r={},i=[],a=[],o=0;for(let[e,t]of n.entries())e%2==0&&(t[0]===`-`&&t[1]===`-`?a.push(t):i.push(t),r[t]=o),o+=t.length;if(a.length){if(i.length===0)return F.Skip;let e=a.join(` `);throw Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${e}\` into a separate rule.`)}if(e.nodes.length>0&&i.length){let e=i.join(` `);throw Error(`The rule \`@apply ${e}\` must not have a body.`)}{let n=Xn(Object.keys(r),t,{respectImportant:!1,onInvalidCandidate:e=>{if(t.theme.prefix&&!e.startsWith(t.theme.prefix))throw Error(`Cannot apply unprefixed utility class \`${e}\`. Did you mean \`${t.theme.prefix}:${e}\`?`);if(t.invalidCandidates.has(e))throw Error(`Cannot apply utility class \`${e}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let n=A(e,`:`);if(n.length>1){let r=n.pop();if(t.candidatesToCss([r])[0]){let r=t.candidatesToCss(n.map(e=>`${e}:[--tw-variant-check:1]`)),i=n.filter((e,t)=>r[t]===null);if(i.length>0){if(i.length===1)throw Error(`Cannot apply utility class \`${e}\` because the ${i.map(e=>`\`${e}\``)} variant does not exist.`);{let t=new Intl.ListFormat(`en`,{style:`long`,type:`conjunction`});throw Error(`Cannot apply utility class \`${e}\` because the ${t.format(i.map(e=>`\`${e}\``))} variants do not exist.`)}}}}throw t.theme.size===0?Error(`Cannot apply unknown utility class \`${e}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):Error(`Cannot apply unknown utility class \`${e}\``)}}),i=e.src,a=n.astNodes.map(e=>{let t=n.nodeSorting.get(e)?.candidate,a=t?r[t]:void 0;if(e=Ce(e),!i||!t||a===void 0)return I([e],e=>{e.src=i}),e;let o=[i[0],i[1],i[2]];return o[1]+=7+a,o[2]=o[1]+t.length,I([e],e=>{e.src=o}),e}),o=[];for(let e of a)if(e.kind===`rule`)for(let t of e.nodes)o.push(t);else o.push(e);return F.Replace(o)}});return n}function*ir(e,t){for(let n of e.params.split(/\s+/g))for(let e of t.parseCandidate(n))switch(e.kind){case`arbitrary`:break;case`static`:case`functional`:yield e.root}}async function ar(e,t,n,r=0,i=!1){let a=0,o=[];return I(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=or(P(e.params));if(s===null)return;e.name===`@reference`&&(s.media=`reference`),a|=2;let{uri:c,layer:l,media:u,supports:d}=s;if(c.startsWith(`data:`)||c.startsWith(`http://`)||c.startsWith(`https://`))return;let f=Se({},[]);return o.push((async()=>{if(r>100)throw Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${t}\`)`);let a=await n(c,t),o=y(a.content,{from:i?a.path:void 0});await ar(o,a.base,n,r+1,i),f.nodes=sr(e,[Se({base:a.base},o)],l,u,d)})()),F.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function or(e){let t,n=null,r=null,i=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!==`separator`){if(o.kind===`word`&&!t){if(!o.value||o.value[0]!==`"`&&o.value[0]!==`'`)return null;t=o.value.slice(1,-1);continue}if(o.kind===`function`&&o.value.toLowerCase()===`url`||!t)return null;if((o.kind===`word`||o.kind===`function`)&&o.value.toLowerCase()===`layer`){if(n)return null;if(i)throw Error("`layer(…)` in an `@import` should come before any other functions or conditions");n=`nodes`in o?N(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=N(o.nodes);continue}r=N(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function sr(e,t,n,r,i){let a=t;if(n!==null){let t=R(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=R(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=R(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function cr(e,t=null){return Array.isArray(e)&&e.length===2&&typeof e[1]==`object`&&typeof e[1]!==null?t?e[1][t]??null:e[0]:Array.isArray(e)&&t===null?e.join(`, `):typeof e==`string`&&t===null?e:null}function lr(e,{theme:t},n){for(let t of n){let n=mr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of ur(t)){if(typeof r!=`string`&&typeof r!=`number`)continue;if(typeof r==`string`&&(r=r.replace(/<alpha-value>/g,`1`)),n[0]===`opacity`&&(typeof r==`number`||typeof r==`string`)){let e=typeof r==`string`?parseFloat(r):r;e>=0&&e<=1&&(r=e*100+`%`)}let t=mr(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=cr(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,cr(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,cr(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=cr(t.fontFamily.mono);n&&e.theme.hasDefault(`--font-mono`)&&(e.theme.add(`--default-mono-font-family`,n,5),e.theme.add(`--default-mono-font-feature-settings`,cr(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,cr(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function ur(e){let t=[];return _r(e,[],(e,n)=>{if(hr(e))return t.push([n,e]),1;if(gr(e)){t.push([n,e[0]]);for(let r of Reflect.ownKeys(e[1]))t.push([[...n,`-${r}`],e[1][r]]);return 1}if(Array.isArray(e)&&e.every(e=>typeof e==`string`))return n[0]===`fontSize`?(t.push([n,e[0]]),e.length>=2&&t.push([[...n,`-line-height`],e[1]])):t.push([n,e.join(`, `)]),1}),t}var dr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},fr={animation:`animate`,aspectRatio:`aspect`,borderRadius:`radius`,boxShadow:`shadow`,colors:`color`,containers:`container`,fontFamily:`font`,fontSize:`text`,letterSpacing:`tracking`,lineHeight:`leading`,maxWidth:`container`,screens:`breakpoint`,transitionTimingFunction:`ease`},pr=/^[a-zA-Z0-9-_%/.]+$/;function mr(e){let t=dr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!pr.test(t))return null;let n=fr[e[0]];return n&&(e=e.slice(),e[0]=n),e.map((e,t,n)=>e===`1`&&t!==n.length-1?``:e).map((e,t)=>(e=e.replaceAll(`.`,`_`),(t===0||e.startsWith(`-`)||e===`lineHeight`)&&(e=e.replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t}-${n.toLowerCase()}`)),e)).filter((t,n)=>t!==`DEFAULT`||n!==e.length-1).join(`-`)}function hr(e){return typeof e==`number`||typeof e==`string`}function gr(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!=`string`&&typeof e[0]!=`number`||e[1]===void 0||e[1]===null||typeof e[1]!=`object`)return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!=`string`||typeof e[1][t]!=`string`&&typeof e[1][t]!=`number`)return!1;return!0}function _r(e,t=[],n){for(let r of Reflect.ownKeys(e)){let i=e[r];if(i==null)continue;let a=[...t,r],o=n(i,a)??0;if(o!==1&&(o===2||(Array.isArray(i)||typeof i==`object`)&&_r(i,a,n)===2))return 2}}function vr(e){let t=[];for(let n of A(e,`.`)){if(!n.includes(`[`)){t.push(n);continue}let e=0;for(;;){let r=n.indexOf(`[`,e),i=n.indexOf(`]`,r);if(r===-1||i===-1)break;r>e&&t.push(n.slice(e,r)),t.push(n.slice(r+1,i)),e=i+1}e<=n.length-1&&t.push(n.slice(e))}return t}function yr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function br(e,t,n,r=[]){for(let i of t)if(i!=null)for(let t of Reflect.ownKeys(i)){r.push(t);let a=n(e[t],i[t],r);e[t]=a===void 0?!yr(e[t])||!yr(i[t])?i[t]:br({},[e[t],i[t]],n,r):a,r.pop()}return e}function xr(e,t,n){return function(r,i){let a=r.lastIndexOf(`/`),o=null;a!==-1&&(o=r.slice(a+1).trim(),r=r.slice(0,a).trim());let s=(()=>{let i=vr(r),[a,o]=Sr(e.theme,i),s=n(Cr(t()??{},i)??null);if(typeof s==`string`&&(s=s.replace(`<alpha-value>`,`1`)),typeof a!=`object`)return typeof o!=`object`&&o&4?s??a:a;if(typeof s==`object`&&s&&!Array.isArray(s)){let e=br({},[s],(e,t)=>t);if(a===null&&Object.hasOwn(s,`__CSS_VALUES__`)){let t={};for(let n in s.__CSS_VALUES__)t[n]=s[n],delete e[n];a=t}for(let t in a)t!==`__CSS_VALUES__`&&(s?.__CSS_VALUES__?.[t]&4&&Cr(e,t.split(`-`))!==void 0||(e[w(t)]=a[t]));return e}if(Array.isArray(a)&&Array.isArray(o)&&Array.isArray(s)){let e=a[0],t=a[1];o[0]&4&&(e=s[0]??e);for(let e of Object.keys(t))o[1][e]&4&&(t[e]=s[1][e]??t[e]);return[e,t]}return typeof a==`object`&&a&&!Array.isArray(a)&&`DEFAULT`in a?a.DEFAULT:a??s})();return o&&typeof s==`string`&&(s=$t(s,o)),s??i}}function Sr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=mr(t),r=new Map,i=new O(()=>new Map),a=e.namespace(`--${n}`);if(a.size===0)return[null,0];let o=new Map;for(let[t,s]of a){if(!t||!t.includes(`--`)){r.set(t,s),o.set(t,e.getOptions(t?`--${n}-${t}`:`--${n}`));continue}let a=t.indexOf(`--`),c=t.slice(0,a),l=t.slice(a+2);l=l.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),i.get(c===``?null:c).set(l,[s,e.getOptions(`--${n}${t}`)])}let s=e.getOptions(`--${n}`);for(let[e,t]of i){let n=r.get(e);if(typeof n!=`string`)continue;let i={},a={};for(let[e,[n,r]]of t)i[e]=n,a[e]=r;r.set(e,[n,i]),o.set(e,[s,a])}let c={},l={};for(let[e,t]of r)wr(c,[e??`DEFAULT`],t);for(let[e,t]of o)wr(l,[e??`DEFAULT`],t);return t[t.length-1]===`DEFAULT`?[c?.DEFAULT??null,l.DEFAULT??0]:`DEFAULT`in c&&Object.keys(c).length===1?[c.DEFAULT,l.DEFAULT??0]:(c.__CSS_VALUES__=l,[c,l])}function Cr(e,t){for(let n=0;n<t.length;++n){let r=t[n];if(typeof e!=`object`||!e||!Object.hasOwn(e,r)){if(t[n+1]===void 0)return;t[n+1]=`${r}-${t[n+1]}`;continue}e=e[r]}return e}function wr(e,t,n){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=n}var Tr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Er({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Dr(n);r.current|=An(o,e);let s=R(`@layer`,`base`,o);I([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Bn.test(t))throw Error(`\`addVariant('${t}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(typeof n==`string`){if(n.includes(`:merge(`))return}else if(Array.isArray(n)){if(n.some(e=>e.includes(`:merge(`)))return}else if(typeof n==`object`){let e=function(t,n){return Object.entries(t).some(([t,r])=>t.includes(n)||typeof r==`object`&&e(r,n))};if(e(n,`:merge(`))return}typeof n==`string`||Array.isArray(n)?e.variants.static(t,e=>{e.nodes=Or(n,e.nodes)},{compounds:Hn(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Dr(n),e)},matchVariant(t,n,r){function i(e,t,r){return Or(n(e,{modifier:t?.value??null}),r)}try{let e=n(`a`,{modifier:null});if(typeof e==`string`&&e.includes(`:merge(`)||Array.isArray(e)&&e.some(e=>e.includes(`:merge(`)))return}catch{}let a=Object.keys(r?.values??{});e.variants.group(()=>{e.variants.functional(t,(e,t)=>{if(!t.value){if(r?.values&&`DEFAULT`in r.values){e.nodes=i(r.values.DEFAULT,t.modifier,e.nodes);return}return null}if(t.value.kind===`arbitrary`)e.nodes=i(t.value.value,t.modifier,e.nodes);else if(t.value.kind===`named`&&r?.values){if(!Object.hasOwn(r.values,t.value.value))return null;let n=r.values[t.value.value];if(typeof n!=`string`)return null;e.nodes=i(n,t.modifier,e.nodes)}else return null})},(e,t)=>{if(e.kind!==`functional`||t.kind!==`functional`)return 0;let n=e.value?e.value.value:`DEFAULT`,i=t.value?t.value.value:`DEFAULT`,o=(r?.values&&Object.hasOwn(r.values,n)?r.values[n]:void 0)??n,s=(r?.values&&Object.hasOwn(r.values,i)?r.values[i]:void 0)??i;if(r&&typeof r.sort==`function`)return r.sort({value:o,modifier:e.modifier?.value??null},{value:s,modifier:t.modifier?.value??null});let c=a.indexOf(n),l=a.indexOf(i);return c=c===-1?a.length:c,l=l===-1?a.length:l,c===l?o<s?-1:1:c-l}),e.variants.suggest(t,()=>Object.keys(r?.values??{}).filter(e=>e!==`DEFAULT`))},addUtilities(n){n=Array.isArray(n)?n:[n];let o=n.flatMap(e=>Object.entries(e));o=o.flatMap(([e,t])=>A(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=z(e,Dr(n));I([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(I(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&Tr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Dr(n):[z(i,Dr(n))];s.get(a).push(...c),o=!0,e.value=t;return}if(e.kind===`function`&&(e.value===`:not`||e.value===`:nth-child`||e.value===`:nth-last-child`))return F.Skip}),!o)throw Error(`\`addUtilities({ '${e}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[t,n]of s)e.theme.prefix&&I(n,t=>{if(t.kind===`rule`){let n=g(t.selector);I(n,t=>{t.kind===`selector`&&t.value[0]===`.`&&(t.value=`.${e.theme.prefix}\\:${t.value.slice(1)}`)}),t.selector=l(n)}}),e.utilities.static(t,i=>{let a=n.map(Ce);return kr(a,t,i.raw),r.current|=rr(a,e),a})},matchUtilities(t,n){let i=n?.type?Array.isArray(n?.type)?n.type:[n.type]:[`any`];for(let[a,o]of Object.entries(t)){let t=function({negative:t}){return s=>{if(s.value?.kind===`arbitrary`&&i.length>0&&!i.includes(`any`)&&(s.value.dataType&&!i.includes(s.value.dataType)||!s.value.dataType&&!U(s.value.value,i)))return;let c=i.includes(`color`),l=null,u=!1;{let e=n?.values??{};c&&(e=Object.assign({inherit:`inherit`,transparent:`transparent`,current:`currentcolor`},e)),s.value?s.value.kind===`arbitrary`?l=s.value.value:s.value.fraction&&Object.hasOwn(e,s.value.fraction)?(l=e[s.value.fraction],u=!0):Object.hasOwn(e,s.value.value)?l=e[s.value.value]:e.__BARE_VALUE__&&(l=e.__BARE_VALUE__(s.value)??null,u=(s.value.fraction!==null&&l?.includes(`/`))??!1):l=e.DEFAULT??null}if(l===null)return;let d;{let e=n?.modifiers??null;d=s.modifier?e===`any`||s.modifier.kind===`arbitrary`?s.modifier.value:e&&Object.hasOwn(e,s.modifier.value)?e[s.modifier.value]:c&&!Number.isNaN(Number(s.modifier.value))?`${s.modifier.value}%`:null:null}if(s.modifier&&d===null&&!u)return s.value?.kind===`arbitrary`?null:void 0;c&&d!==null&&(l=$t(l,d)),t&&(l=`calc(${l} * -1)`);let f=Dr(o(l,{modifier:d}));return kr(f,a,s.raw),r.current|=rr(f,e),f}};if(!Tr.test(a))throw Error(`\`matchUtilities({ '${a}' : \u2026 })\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`);n?.supportsNegativeValues&&e.utilities.functional(`-${a}`,t({negative:!0}),{types:i}),e.utilities.functional(a,t({negative:!1}),{types:i}),e.utilities.suggest(a,()=>{let e=n?.values??{},t=new Set(Object.keys(e));t.delete(`__BARE_VALUE__`),t.delete(`__CSS_VALUES__`),t.has(`DEFAULT`)&&(t.delete(`DEFAULT`),t.add(null));let r=n?.modifiers??{},i=r===`any`?[]:Object.keys(r);return[{supportsNegative:n?.supportsNegativeValues??!1,values:Array.from(t),modifiers:i}]})}},addComponents(e,t){this.addUtilities(e,t)},matchComponents(e,t){this.matchUtilities(e,t)},theme:xr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=vr(e);for(let e=0;e<i.length;++e){let n=i[e];if(r[n]===void 0)return t;r=r[n]}return r??t}};return o.addComponents=o.addComponents.bind(o),o.matchComponents=o.matchComponents.bind(o),o}function Dr(e){let t=[];e=Array.isArray(e)?e:[e];let n=e.flatMap(e=>Object.entries(e));for(let[e,r]of n)if(r!=null&&r!==!1){if(typeof r!=`object`){if(!e.startsWith(`--`)){if(r===`@slot`){t.push(z(e,[R(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(B(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(B(e,n)):t.push(z(e,Dr(n)));else t.push(z(e,Dr(r)))}return t}function Or(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return Gn(n,t),n}return z(e,t)})}function kr(e,t,n){I(e,e=>{if(e.kind===`rule`){let r=g(e.selector);I(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Ar(e,t){for(let n of jr(t))e.theme.addKeyframes(n)}function jr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(R(`@keyframes`,n,Dr(r)));return t}var Mr={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}};function Nr(e){return{__BARE_VALUE__:e}}var Pr=Nr(e=>{if(W(e.value))return e.value}),Fr=Nr(e=>{if(W(e.value))return`${e.value}%`}),Ir=Nr(e=>{if(W(e.value))return`${e.value}px`}),Lr=Nr(e=>{if(W(e.value))return`${e.value}ms`}),Rr=Nr(e=>{if(W(e.value))return`${e.value}deg`}),zr=Nr(e=>{if(e.fraction===null)return;let[t,n]=A(e.fraction,`/`);if(W(t)&&W(n))return e.fraction}),Br=Nr(e=>{if(W(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Vr={accentColor:({theme:e})=>e(`colors`),animation:{none:`none`,spin:`spin 1s linear infinite`,ping:`ping 1s cubic-bezier(0, 0, 0.2, 1) infinite`,pulse:`pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite`,bounce:`bounce 1s infinite`},aria:{busy:`busy="true"`,checked:`checked="true"`,disabled:`disabled="true"`,expanded:`expanded="true"`,hidden:`hidden="true"`,pressed:`pressed="true"`,readonly:`readonly="true"`,required:`required="true"`,selected:`selected="true"`},aspectRatio:{auto:`auto`,square:`1 / 1`,video:`16 / 9`,...zr},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...Fr}),backdropContrast:({theme:e})=>({...e(`contrast`),...Fr}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...Fr}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...Rr}),backdropInvert:({theme:e})=>({...e(`invert`),...Fr}),backdropOpacity:({theme:e})=>({...e(`opacity`),...Fr}),backdropSaturate:({theme:e})=>({...e(`saturate`),...Fr}),backdropSepia:({theme:e})=>({...e(`sepia`),...Fr}),backgroundColor:({theme:e})=>e(`colors`),backgroundImage:{none:`none`,"gradient-to-t":`linear-gradient(to top, var(--tw-gradient-stops))`,"gradient-to-tr":`linear-gradient(to top right, var(--tw-gradient-stops))`,"gradient-to-r":`linear-gradient(to right, var(--tw-gradient-stops))`,"gradient-to-br":`linear-gradient(to bottom right, var(--tw-gradient-stops))`,"gradient-to-b":`linear-gradient(to bottom, var(--tw-gradient-stops))`,"gradient-to-bl":`linear-gradient(to bottom left, var(--tw-gradient-stops))`,"gradient-to-l":`linear-gradient(to left, var(--tw-gradient-stops))`,"gradient-to-tl":`linear-gradient(to top left, var(--tw-gradient-stops))`},backgroundOpacity:({theme:e})=>e(`opacity`),backgroundPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},backgroundSize:{auto:`auto`,cover:`cover`,contain:`contain`},blur:{0:`0`,none:``,sm:`4px`,DEFAULT:`8px`,md:`12px`,lg:`16px`,xl:`24px`,"2xl":`40px`,"3xl":`64px`},borderColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),borderOpacity:({theme:e})=>e(`opacity`),borderRadius:{none:`0px`,sm:`0.125rem`,DEFAULT:`0.25rem`,md:`0.375rem`,lg:`0.5rem`,xl:`0.75rem`,"2xl":`1rem`,"3xl":`1.5rem`,full:`9999px`},borderSpacing:({theme:e})=>e(`spacing`),borderWidth:{DEFAULT:`1px`,0:`0px`,2:`2px`,4:`4px`,8:`8px`,...Ir},boxShadow:{sm:`0 1px 2px 0 rgb(0 0 0 / 0.05)`,DEFAULT:`0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)`,md:`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,lg:`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,xl:`0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)`,"2xl":`0 25px 50px -12px rgb(0 0 0 / 0.25)`,inner:`inset 0 2px 4px 0 rgb(0 0 0 / 0.05)`,none:`none`},boxShadowColor:({theme:e})=>e(`colors`),brightness:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,200:`2`,...Fr},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Mr}),columns:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,"3xs":`16rem`,"2xs":`18rem`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,...Pr},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...Fr},cursor:{auto:`auto`,default:`default`,pointer:`pointer`,wait:`wait`,text:`text`,move:`move`,help:`help`,"not-allowed":`not-allowed`,none:`none`,"context-menu":`context-menu`,progress:`progress`,cell:`cell`,crosshair:`crosshair`,"vertical-text":`vertical-text`,alias:`alias`,copy:`copy`,"no-drop":`no-drop`,grab:`grab`,grabbing:`grabbing`,"all-scroll":`all-scroll`,"col-resize":`col-resize`,"row-resize":`row-resize`,"n-resize":`n-resize`,"e-resize":`e-resize`,"s-resize":`s-resize`,"w-resize":`w-resize`,"ne-resize":`ne-resize`,"nw-resize":`nw-resize`,"se-resize":`se-resize`,"sw-resize":`sw-resize`,"ew-resize":`ew-resize`,"ns-resize":`ns-resize`,"nesw-resize":`nesw-resize`,"nwse-resize":`nwse-resize`,"zoom-in":`zoom-in`,"zoom-out":`zoom-out`},divideColor:({theme:e})=>e(`borderColor`),divideOpacity:({theme:e})=>e(`borderOpacity`),divideWidth:({theme:e})=>({...e(`borderWidth`),...Ir}),dropShadow:{sm:`0 1px 1px rgb(0 0 0 / 0.05)`,DEFAULT:[`0 1px 2px rgb(0 0 0 / 0.1)`,`0 1px 1px rgb(0 0 0 / 0.06)`],md:[`0 4px 3px rgb(0 0 0 / 0.07)`,`0 2px 2px rgb(0 0 0 / 0.06)`],lg:[`0 10px 8px rgb(0 0 0 / 0.04)`,`0 4px 3px rgb(0 0 0 / 0.1)`],xl:[`0 20px 13px rgb(0 0 0 / 0.03)`,`0 8px 5px rgb(0 0 0 / 0.08)`],"2xl":`0 25px 25px rgb(0 0 0 / 0.15)`,none:`0 0 #0000`},fill:({theme:e})=>e(`colors`),flex:{1:`1 1 0%`,auto:`1 1 auto`,initial:`0 1 auto`,none:`none`},flexBasis:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,...e(`spacing`)}),flexGrow:{0:`0`,DEFAULT:`1`,...Pr},flexShrink:{0:`0`,DEFAULT:`1`,...Pr},fontFamily:{sans:[`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`"Noto Sans"`,`Arial`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`]},fontSize:{xs:[`0.75rem`,{lineHeight:`1rem`}],sm:[`0.875rem`,{lineHeight:`1.25rem`}],base:[`1rem`,{lineHeight:`1.5rem`}],lg:[`1.125rem`,{lineHeight:`1.75rem`}],xl:[`1.25rem`,{lineHeight:`1.75rem`}],"2xl":[`1.5rem`,{lineHeight:`2rem`}],"3xl":[`1.875rem`,{lineHeight:`2.25rem`}],"4xl":[`2.25rem`,{lineHeight:`2.5rem`}],"5xl":[`3rem`,{lineHeight:`1`}],"6xl":[`3.75rem`,{lineHeight:`1`}],"7xl":[`4.5rem`,{lineHeight:`1`}],"8xl":[`6rem`,{lineHeight:`1`}],"9xl":[`8rem`,{lineHeight:`1`}]},fontWeight:{thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`},gap:({theme:e})=>e(`spacing`),gradientColorStops:({theme:e})=>e(`colors`),gradientColorStopPositions:{"0%":`0%`,"5%":`5%`,"10%":`10%`,"15%":`15%`,"20%":`20%`,"25%":`25%`,"30%":`30%`,"35%":`35%`,"40%":`40%`,"45%":`45%`,"50%":`50%`,"55%":`55%`,"60%":`60%`,"65%":`65%`,"70%":`70%`,"75%":`75%`,"80%":`80%`,"85%":`85%`,"90%":`90%`,"95%":`95%`,"100%":`100%`,...Fr},grayscale:{0:`0`,DEFAULT:`100%`,...Fr},gridAutoColumns:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridAutoRows:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridColumn:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridColumnEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Pr},gridColumnStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Pr},gridRow:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridRowEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Pr},gridRowStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Pr},gridTemplateColumns:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Br},gridTemplateRows:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Br},height:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),hueRotate:{0:`0deg`,15:`15deg`,30:`30deg`,60:`60deg`,90:`90deg`,180:`180deg`,...Rr},inset:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),invert:{0:`0`,DEFAULT:`100%`,...Fr},keyframes:{spin:{to:{transform:`rotate(360deg)`}},ping:{"75%, 100%":{transform:`scale(2)`,opacity:`0`}},pulse:{"50%":{opacity:`.5`}},bounce:{"0%, 100%":{transform:`translateY(-25%)`,animationTimingFunction:`cubic-bezier(0.8,0,1,1)`},"50%":{transform:`none`,animationTimingFunction:`cubic-bezier(0,0,0.2,1)`}}},letterSpacing:{tighter:`-0.05em`,tight:`-0.025em`,normal:`0em`,wide:`0.025em`,wider:`0.05em`,widest:`0.1em`},lineHeight:{none:`1`,tight:`1.25`,snug:`1.375`,normal:`1.5`,relaxed:`1.625`,loose:`2`,3:`.75rem`,4:`1rem`,5:`1.25rem`,6:`1.5rem`,7:`1.75rem`,8:`2rem`,9:`2.25rem`,10:`2.5rem`},listStyleType:{none:`none`,disc:`disc`,decimal:`decimal`},listStyleImage:{none:`none`},margin:({theme:e})=>({auto:`auto`,...e(`spacing`)}),lineClamp:{1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,...Pr},maxHeight:({theme:e})=>({none:`none`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),maxWidth:({theme:e})=>({none:`none`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,prose:`65ch`,...e(`spacing`)}),minHeight:({theme:e})=>({full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),minWidth:({theme:e})=>({full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),objectPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},opacity:{0:`0`,5:`0.05`,10:`0.1`,15:`0.15`,20:`0.2`,25:`0.25`,30:`0.3`,35:`0.35`,40:`0.4`,45:`0.45`,50:`0.5`,55:`0.55`,60:`0.6`,65:`0.65`,70:`0.7`,75:`0.75`,80:`0.8`,85:`0.85`,90:`0.9`,95:`0.95`,100:`1`,...Fr},order:{first:`-9999`,last:`9999`,none:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,...Pr},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},padding:({theme:e})=>e(`spacing`),placeholderColor:({theme:e})=>e(`colors`),placeholderOpacity:({theme:e})=>e(`opacity`),ringColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),ringOffsetColor:({theme:e})=>e(`colors`),ringOffsetWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...Rr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...Fr},scale:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,...Fr},screens:{sm:`40rem`,md:`48rem`,lg:`64rem`,xl:`80rem`,"2xl":`96rem`},scrollMargin:({theme:e})=>e(`spacing`),scrollPadding:({theme:e})=>e(`spacing`),sepia:{0:`0`,DEFAULT:`100%`,...Fr},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...Rr},space:({theme:e})=>e(`spacing`),spacing:{px:`1px`,0:`0px`,.5:`0.125rem`,1:`0.25rem`,1.5:`0.375rem`,2:`0.5rem`,2.5:`0.625rem`,3:`0.75rem`,3.5:`0.875rem`,4:`1rem`,5:`1.25rem`,6:`1.5rem`,7:`1.75rem`,8:`2rem`,9:`2.25rem`,10:`2.5rem`,11:`2.75rem`,12:`3rem`,14:`3.5rem`,16:`4rem`,20:`5rem`,24:`6rem`,28:`7rem`,32:`8rem`,36:`9rem`,40:`10rem`,44:`11rem`,48:`12rem`,52:`13rem`,56:`14rem`,60:`15rem`,64:`16rem`,72:`18rem`,80:`20rem`,96:`24rem`},stroke:({theme:e})=>({none:`none`,...e(`colors`)}),strokeWidth:{0:`0`,1:`1`,2:`2`,...Pr},supports:{},data:{},textColor:({theme:e})=>e(`colors`),textDecorationColor:({theme:e})=>e(`colors`),textDecorationThickness:{auto:`auto`,"from-font":`from-font`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Ir},transformOrigin:{center:`center`,top:`top`,"top-right":`top right`,right:`right`,"bottom-right":`bottom right`,bottom:`bottom`,"bottom-left":`bottom left`,left:`left`,"top-left":`top left`},transitionDelay:{0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Lr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Lr},transitionProperty:{none:`none`,all:`all`,DEFAULT:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter`,colors:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke`,opacity:`opacity`,shadow:`box-shadow`,transform:`transform`},transitionTimingFunction:{DEFAULT:`cubic-bezier(0.4, 0, 0.2, 1)`,linear:`linear`,in:`cubic-bezier(0.4, 0, 1, 1)`,out:`cubic-bezier(0, 0, 0.2, 1)`,"in-out":`cubic-bezier(0.4, 0, 0.2, 1)`},translate:({theme:e})=>({"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),size:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),width:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,screen:`100vw`,svw:`100svw`,lvw:`100lvw`,dvw:`100dvw`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),willChange:{auto:`auto`,scroll:`scroll-position`,contents:`contents`,transform:`transform`},zIndex:{auto:`auto`,0:`0`,10:`10`,20:`20`,30:`30`,40:`40`,50:`50`,...Pr}};function Hr(e){return{theme:{...Vr,colors:({theme:e})=>e(`color`,{}),extend:{fontSize:({theme:e})=>({...e(`text`,{})}),boxShadow:({theme:e})=>({...e(`shadow`,{})}),animation:({theme:e})=>({...e(`animate`,{})}),aspectRatio:({theme:e})=>({...e(`aspect`,{})}),borderRadius:({theme:e})=>({...e(`radius`,{})}),screens:({theme:e})=>({...e(`breakpoint`,{})}),letterSpacing:({theme:e})=>({...e(`tracking`,{})}),lineHeight:({theme:e})=>({...e(`leading`,{})}),transitionDuration:{DEFAULT:e.get([`--default-transition-duration`])??null},transitionTimingFunction:{DEFAULT:e.get([`--default-transition-timing-function`])??null},maxWidth:({theme:e})=>({...e(`container`,{})})}}}}var Ur={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Wr(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Ur)};for(let e of t)Kr(n,e);for(let e of n.configs)`darkMode`in e&&e.darkMode!==void 0&&(n.result.darkMode=e.darkMode??null),`prefix`in e&&e.prefix!==void 0&&(n.result.prefix=e.prefix??``),`blocklist`in e&&e.blocklist!==void 0&&(n.result.blocklist=e.blocklist??[]),`important`in e&&e.important!==void 0&&(n.result.important=e.important??!1);let r=qr(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Gr(e,t){if(Array.isArray(e)&&yr(e[0]))return e.concat(t);if(Array.isArray(t)&&yr(t[0])&&yr(e))return[e,...t];if(Array.isArray(t))return t}function Kr(e,{config:t,base:n,path:r,reference:i,src:a}){let o=[];for(let e of t.plugins??[])`__isOptionsFunction`in e?o.push({...e(),reference:i,src:a}):`handler`in e?o.push({...e,reference:i,src:a}):o.push({handler:e,reference:i,src:a});if(Array.isArray(t.presets)&&t.presets.length===0)throw Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Kr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&Kr(e,{path:r,base:n,config:t.config,reference:!!t.reference,src:t.src??a});let s=t.content??[],c=Array.isArray(s)?s:s.files;for(let t of c)e.content.files.push(typeof t==`object`?t:{base:n,pattern:t});e.configs.push(t)}function qr(e){let t=new Set,n=xr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Mr});function i(e){return typeof e==`function`?e(r)??null:e??null}for(let n of e.configs){let r=n.theme??{},i=r.extend??{};for(let e in r)e!==`extend`&&t.add(e);Object.assign(e.theme,r);for(let t in i)e.extend[t]??=[],e.extend[t].push(i[t])}delete e.theme.extend;for(let t in e.extend){let n=[e.theme[t],...e.extend[t]];e.theme[t]=()=>br({},n.map(i),Gr)}for(let t in e.theme)e.theme[t]=i(e.theme[t]);if(e.theme.screens&&typeof e.theme.screens==`object`)for(let t of Object.keys(e.theme.screens)){let n=e.theme.screens[t];n&&typeof n==`object`&&(`raw`in n||`max`in n||`min`in n&&(e.theme.screens[t]=n.min))}return t}function Jr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Yr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Ce))}function Yr({center:e,padding:t,screens:n},r){let i=[],a=null;if(e&&i.push(B(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(B(`padding-inline`,typeof t==`string`?t:t.DEFAULT)),typeof n==`object`&&n){a=new Map;let e=Array.from(r.theme.namespace(`--breakpoint`).entries());if(e.sort((e,t)=>ct(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(R(`@media`,`(width >= --theme(--breakpoint-${t}))`,[B(`max-width`,`none`)]))}for(let[e,t]of Object.entries(n)){if(typeof t==`object`){if(`min`in t)t=t.min;else continue}a.set(e,R(`@media`,`(width >= ${t})`,[B(`max-width`,t)]))}}if(typeof t==`object`&&t){let e=Object.entries(t).filter(([e])=>e!==`DEFAULT`).map(([e,t])=>[e,r.theme.resolveValue(e,[`--breakpoint`]),t]).filter(Boolean);e.sort((e,t)=>ct(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(B(`padding-inline`,n));else{if(a)continue;i.push(R(`@media`,`(width >= theme(--breakpoint-${t}))`,[B(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Xr({addVariant:e,config:t}){let n=t(`darkMode`,null),[r,i=`.dark`]=Array.isArray(n)?n:[n];if(r===`variant`){let e;if(Array.isArray(i)||typeof i==`function`?e=i:typeof i==`string`&&(e=[i]),Array.isArray(e))for(let t of e)t===`.dark`?(r=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):t.includes(`&`)||(r=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=e}r===null||(r===`selector`?e(`dark`,`&:where(${i}, ${i} *)`):r===`media`?e(`dark`,`@media (prefers-color-scheme: dark)`):r===`variant`?e(`dark`,i):r===`class`&&e(`dark`,`&:is(${i} *)`))}function Zr(e){for(let[t,n]of[[`t`,`top`],[`tr`,`top right`],[`r`,`right`],[`br`,`bottom right`],[`b`,`bottom`],[`bl`,`bottom left`],[`l`,`left`],[`tl`,`top left`]])e.utilities.suggest(`bg-gradient-to-${t}`,()=>[]),e.utilities.static(`bg-gradient-to-${t}`,()=>[B(`--tw-gradient-position`,`to ${n} in oklab`),B(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[B(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[B(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[B(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[B(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[B(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[B(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[B(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[B(`object-position`,`right bottom`)]),e.utilities.suggest(`max-w-screen`,()=>[]),e.utilities.functional(`max-w-screen`,t=>{if(!t.value||t.value.kind===`arbitrary`)return;let n=e.theme.resolve(t.value.value,[`--breakpoint`]);if(n)return[B(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[B(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[B(`-webkit-box-decoration-break`,`slice`),B(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[B(`-webkit-box-decoration-break`,`clone`),B(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[B(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||W(e.value.value))return[B(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[B(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||W(e.value.value))return[B(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[B(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[B(`overflow-wrap`,`break-word`)]);for(let[t,n]of[[`start`,`inset-inline-start`],[`end`,`inset-inline-end`]]){let r=function({negative:t}){return r=>{if(r.value===null)return;if(r.value.kind===`arbitrary`){if(r.modifier)return;let e=r.value.value;return[B(n,t?`calc(${e} * -1)`:e)]}let i=e.theme.resolve(r.value.fraction??r.value.value,[`--inset`,`--spacing`]);if(i===null&&r.value.fraction){let[e,t]=A(r.value.fraction,`/`);if(!W(e)||!W(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&Ut(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[B(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&Ut(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[B(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[B(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[B(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[B(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[B(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[B(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function Qr(e,t){let n=e.theme.screens||{},r=t.variants.get(`min`)?.order??0,i=[];for(let[e,a]of Object.entries(n)){let n=function(n){t.variants.static(e,e=>{e.nodes=[R(`@media`,l,e.nodes)]},{order:n})},o=t.variants.get(e),s=t.theme.resolveValue(e,[`--breakpoint`]);if(o&&s&&!t.theme.hasDefault(`--breakpoint-${e}`))continue;let c=!0;typeof a==`string`&&(c=!1);let l=$r(a);c?i.push(n):n(r)}if(i.length!==0){for(let[,e]of t.variants.variants)e.order>r&&(e.order+=i.length);t.variants.compareFns=new Map(Array.from(t.variants.compareFns).map(([e,t])=>(e>r&&(e+=i.length),[e,t])));for(let[e,t]of i.entries())t(r+e+1)}}function $r(e){return(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{min:e}:e&&typeof e==`object`?e:null).map(e=>{if(e===null)return null;if(`raw`in e)return e.raw;let t=``;return e.max!==void 0&&(t+=`${e.max} >= `),t+=`width`,e.min!==void 0&&(t+=` >= ${e.min}`),`(${t})`}).filter(Boolean).join(`, `)}function ei(e,t){let n=e.theme.aria||{},r=e.theme.supports||{},i=e.theme.data||{};if(Object.keys(n).length>0){let e=t.variants.get(`aria`),r=e?.applyFn,i=e?.compounds;t.variants.functional(`aria`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in n?r?.(e,{...t,value:{kind:`arbitrary`,value:n[i.value]}}):r?.(e,t)},{compounds:i})}if(Object.keys(r).length>0){let e=t.variants.get(`supports`),n=e?.applyFn,i=e?.compounds;t.variants.functional(`supports`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in r?n?.(e,{...t,value:{kind:`arbitrary`,value:r[i.value]}}):n?.(e,t)},{compounds:i})}if(Object.keys(i).length>0){let e=t.variants.get(`data`),n=e?.applyFn,r=e?.compounds;t.variants.functional(`data`,(e,t)=>{let r=t.value;return r&&r.kind===`named`&&r.value in i?n?.(e,{...t,value:{kind:`arbitrary`,value:i[r.value]}}):n?.(e,t)},{compounds:r})}}var ti=/^[a-z]+$/;async function ni({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];I(n,(e,t)=>{if(e.kind!==`at-rule`)return;let n=we(t);if(e.name===`@plugin`){if(n.parent!==null)throw Error("`@plugin` cannot be nested.");let t=e.params.slice(1,-1);if(t.length===0)throw Error("`@plugin` must have a path.");let r={};for(let t of e.nodes??[]){if(t.kind!==`declaration`)throw Error(`Unexpected \`@plugin\` option:
|
|
21
21
|
|
|
22
|
-
${
|
|
22
|
+
${ke([t])}
|
|
23
23
|
|
|
24
|
-
\`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=A(e,`,`).map(e=>{if(e=e.trim(),e===`null`)return null;if(e===`true`)return!0;if(e===`false`)return!1;if(Number.isNaN(Number(e))){if(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)return e.slice(1,-1);if(e[0]===`{`&&e[e.length-1]===`}`)throw Error(`Unexpected \`@plugin\` option: Value of declaration \`${
|
|
24
|
+
\`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=A(e,`,`).map(e=>{if(e=e.trim(),e===`null`)return null;if(e===`true`)return!0;if(e===`false`)return!1;if(Number.isNaN(Number(e))){if(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)return e.slice(1,-1);if(e[0]===`{`&&e[e.length-1]===`}`)throw Error(`Unexpected \`@plugin\` option: Value of declaration \`${ke([t]).trim()}\` is not supported.
|
|
25
25
|
|
|
26
|
-
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(e);return e});r[t.property]=n.length===1?n[0]:n}return o.push([{id:t,base:n.context.base,reference:!!n.context.reference,src:e.src},Object.keys(r).length>0?r:null]),a|=4,
|
|
26
|
+
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(e);return e});r[t.property]=n.length===1?n[0]:n}return o.push([{id:t,base:n.context.base,reference:!!n.context.reference,src:e.src},Object.keys(r).length>0?r:null]),a|=4,F.Replace([])}if(e.name===`@config`){if(e.nodes.length>0)throw Error("`@config` cannot have a body.");if(n.parent!==null)throw Error("`@config` cannot be nested.");return s.push({id:e.params.slice(1,-1),base:n.context.base,reference:!!n.context.reference,src:e.src}),a|=4,F.Replace([])}}),Zr(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=ri({designSystem:e,base:t,ast:n,sources:i,configs:[],pluginDetails:[]}),e.resolveThemeValue(r,o))},!o.length&&!s.length)return 0;let[l,u]=await Promise.all([Promise.all(s.map(async({id:e,base:t,reference:n,src:i})=>{let a=await r(e,t,`config`);return{path:e,base:a.base,config:a.module,reference:n,src:i}})),Promise.all(o.map(async([{id:e,base:t,reference:n,src:i},a])=>{let o=await r(e,t,`plugin`);return{path:e,base:o.base,plugin:o.module,options:a,reference:n,src:i}}))]);return a|=ri({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function ri({designSystem:e,base:t,ast:n,sources:r,configs:i,pluginDetails:a}){let o=0,s=[...a.map(e=>{if(!e.options)return{config:{plugins:[e.plugin]},base:e.base,reference:e.reference,src:e.src};if(`__isOptionsFunction`in e.plugin)return{config:{plugins:[e.plugin(e.options)]},base:e.base,reference:e.reference,src:e.src};throw Error(`The plugin "${e.path}" does not accept options`)}),...i],{resolvedConfig:c}=Wr(e,[{config:Hr(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Xr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Wr(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Er({...d,referenceMode:!1,src:void 0}),p=e.resolveThemeValue;e.resolveThemeValue=function(e,t){if(e[0]===`-`&&e[1]===`-`)return p(e,t);let n=f.theme(e,void 0);if(Array.isArray(n)&&n.length===2)return n[0];if(Array.isArray(n))return n.join(`, `);if(typeof n==`object`&&n&&`DEFAULT`in n)return n.DEFAULT;if(typeof n==`string`)return n};for(let{handler:e,reference:t,src:n}of c.plugins)e(Er({...d,referenceMode:t??!1,src:n}));if(lr(e,l,u),Ar(e,l),ei(l,e),Qr(l,e),Jr(l,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith(`-`)&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!ti.test(c.prefix))throw Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important==`string`){let e=c.important;I(n,(t,n)=>{if(t.kind!==`at-rule`||t.name!==`@tailwind`||t.params!==`utilities`)return;let r=we(n);return r.parent?.kind===`rule`&&r.parent.selector===e?F.Stop:F.ReplaceStop(L(e,[t]))})}for(let t of c.blocklist)e.invalidCandidates.add(t);for(let e of c.content.files){if(`raw`in e)throw Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
|
27
27
|
|
|
28
28
|
${JSON.stringify(e,null,2)}
|
|
29
29
|
|
|
30
|
-
This feature is not currently supported.`);let t=!1;e.pattern[0]==`!`&&(t=!0,e.pattern=e.pattern.slice(1)),r.push({...e,negated:t})}return o}function
|
|
31
|
-
`)){if(t.trim()!==``){let t=a.find(e.src[1]+c),n=o.find(e.dst[1]);r.mappings.push({name:null,originalPosition:{source:i,...t},generatedPosition:n})}c+=t.length,c+=1}let l=a.find(e.src[2]),u=o.find(e.dst[2]);r.mappings.push({name:null,originalPosition:{source:i,...l},generatedPosition:u})});for(let e of t.keys())r.sources.push(n.get(e));return r.mappings.sort((e,t)=>e.generatedPosition.line-t.generatedPosition.line||e.generatedPosition.column-t.generatedPosition.column||(e.originalPosition?.line??0)-(t.originalPosition?.line??0)||(e.originalPosition?.column??0)-(t.originalPosition?.column??0)),r}var
|
|
30
|
+
This feature is not currently supported.`);let t=!1;e.pattern[0]==`!`&&(t=!0,e.pattern=e.pattern.slice(1)),r.push({...e,negated:t})}return o}function ii({ast:e}){let t=new O(e=>_(e.code)),n=new O(e=>({url:e.file,content:e.code,ignore:!1})),r={file:null,sources:[],mappings:[]};I(e,e=>{if(!e.src||!e.dst)return;let i=n.get(e.src[0]);if(!i.content)return;let a=t.get(e.src[0]),o=t.get(e.dst[0]),s=i.content.slice(e.src[1],e.src[2]),c=0;for(let t of s.split(`
|
|
31
|
+
`)){if(t.trim()!==``){let t=a.find(e.src[1]+c),n=o.find(e.dst[1]);r.mappings.push({name:null,originalPosition:{source:i,...t},generatedPosition:n})}c+=t.length,c+=1}let l=a.find(e.src[2]),u=o.find(e.dst[2]);r.mappings.push({name:null,originalPosition:{source:i,...l},generatedPosition:u})});for(let e of t.keys())r.sources.push(n.get(e));return r.mappings.sort((e,t)=>e.generatedPosition.line-t.generatedPosition.line||e.generatedPosition.column-t.generatedPosition.column||(e.originalPosition?.line??0)-(t.originalPosition?.line??0)||(e.originalPosition?.column??0)-(t.originalPosition?.column??0)),r}var ai=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function oi(e){let t=e.indexOf(`{`);if(t===-1)return[e];let n=[],r=e.slice(0,t),i=e.slice(t),a=0,o=i.lastIndexOf(`}`);for(let e=0;e<i.length;e++){let t=i[e];if(t===`{`)a++;else if(t===`}`&&(a--,a===0)){o=e;break}}if(o===-1)throw Error(`The pattern \`${e}\` is not balanced.`);let s=i.slice(1,o),c=i.slice(o+1),l;l=si(s)?ci(s):A(s,`,`),l=l.flatMap(e=>oi(e));let u=oi(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function si(e){return ai.test(e)}function ci(e){let t=e.match(ai);if(!t)return[e];let[,n,r,i]=t,a=i?parseInt(i,10):void 0,o=[];if(/^-?\d+$/.test(n)&&/^-?\d+$/.test(r)){let e=parseInt(n,10),t=parseInt(r,10);if(a===void 0&&(a=e<=t?1:-1),a===0)throw Error(`Step cannot be zero in sequence expansion.`);let i=e<t;i&&a<0&&(a=-a),!i&&a>0&&(a=-a);for(let n=e;i?n<=t:n>=t;n+=a)o.push(n.toString())}return o}function li(e,t){let n=new Set,r=new Set,i=[];function a(o,s=[]){if(e.has(o)&&!n.has(o)){r.has(o)&&t.onCircularDependency?.(s,o),r.add(o);for(let t of e.get(o)??[])s.push(o),a(t,s),s.pop();n.add(o),r.delete(o),i.push(o)}}for(let t of e.keys())a(t);return i}var ui=/^[a-z]+$/;function di(){throw Error("No `loadModule` function provided to `compile`")}function fi(){throw Error("No `loadStylesheet` function provided to `compile`")}function pi(e){let t=0,n=null;for(let r of A(e,` `))r===`reference`?t|=2:r===`inline`?t|=1:r==="default"?t|=4:r===`static`?t|=8:r.startsWith(`prefix(`)&&r.endsWith(`)`)&&(n=r.slice(7,-1));return[t,n]}async function mi(e,{base:t=``,from:n,loadModule:r=di,loadStylesheet:i=fi}={}){let a=0;e=[Se({base:t},e)],a|=await ar(e,t,i,0,n!==void 0);let o=null,s=new D,c=new Map,l=new Map,u=[],d=null,f=null,p=[],m=[],h=[],g=[],_=null;I(e,(e,t)=>{if(e.kind!==`at-rule`)return;let n=we(t);if(e.name===`@tailwind`&&(e.params===`utilities`||e.params.startsWith(`utilities`))){if(f!==null||n.context.reference)return F.Replace([]);let t=A(e.params,` `);for(let e of t)if(e.startsWith(`source(`)){let t=e.slice(7,-1);if(t===`none`){_=t;continue}if(t[0]===`"`&&t[t.length-1]!==`"`||t[0]===`'`&&t[t.length-1]!==`'`||t[0]!==`'`&&t[0]!==`"`)throw Error("`source(…)` paths must be quoted.");_={base:n.context.sourceBase??n.context.base,pattern:t.slice(1,-1)}}f=e,a|=16}if(e.name===`@utility`){if(n.parent!==null)throw Error("`@utility` cannot be nested.");if(e.nodes.length===0)throw Error(`\`@utility ${e.params}\` is empty. Utilities should include at least one property.`);let t=on(e);if(t===null){if(!e.params.endsWith(`-*`)){if(e.params.endsWith(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(e.params.includes(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw Error(`\`@utility ${e.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}u.push(t)}if(e.name===`@source`){if(e.nodes.length>0)throw Error("`@source` cannot have a body.");if(n.parent!==null)throw Error("`@source` cannot be nested.");let t=!1,r=!1,i=e.params;if(i[0]===`n`&&i.startsWith(`not `)&&(t=!0,i=i.slice(4)),i[0]===`i`&&i.startsWith(`inline(`)&&(r=!0,i=i.slice(7,-1).trim()),i[0]===`"`&&i[i.length-1]!==`"`||i[0]===`'`&&i[i.length-1]!==`'`||i[0]!==`'`&&i[0]!==`"`)throw Error("`@source` paths must be quoted.");let a=i.slice(1,-1);if(r){let e=t?g:h,n=A(a,` `);for(let t of n)for(let n of oi(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return F.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(I(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,F.Stop}),e.name===`@variant`&&p.push(e)):p.push(e)),e.name===`@custom-variant`){if(n.parent!==null)throw Error("`@custom-variant` cannot be nested.");let[t,r]=A(e.params,` `);if(!Bn.test(t))throw Error(`\`@custom-variant ${t}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(e.nodes.length>0&&r)throw Error(`\`@custom-variant ${t}\` cannot have both a selector and a body.`);if(e.nodes.length===0){if(!r)throw Error(`\`@custom-variant ${t}\` has no selector or body.`);let e=A(r.slice(1,-1),`,`);if(e.length===0||e.some(e=>e.trim()===``))throw Error(`\`@custom-variant ${t} (${e.join(`,`)})\` selector is invalid.`);let n=[],i=[];for(let t of e)t=t.trim(),t[0]===`@`?n.push(t):i.push(t);c.set(t,e=>{e.variants.static(t,e=>{let t=[];i.length>0&&t.push(L(i.join(`, `),e.nodes));for(let r of n)t.push(z(r,e.nodes));e.nodes=t},{compounds:Hn([...i,...n])})}),l.set(t,new Set)}else{let n=new Set;I(e.nodes,e=>{e.kind===`at-rule`&&e.name===`@variant`&&n.add(e.params)}),c.set(t,n=>{n.variants.fromAst(t,e.nodes,n)}),l.set(t,n)}return F.ReplaceSkip([])}if(e.name===`@media`){let t=A(e.params,` `),r=[];for(let i of t)if(i.startsWith(`source(`)){let t=i.slice(7,-1);I(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,F.ReplaceStop([Se({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);I(e.nodes,e=>{if(e.kind!==`context`){if(e.kind!==`at-rule`){if(n)throw Error('Files imported with `@import "…" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "…";` instead.');return F.Continue}if(e.name===`@theme`)return e.params+=` `+t,F.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);I(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,F.Skip})}else i===`important`?o=!0:i===`reference`?e.nodes=[Se({reference:!0},e.nodes)]:r.push(i);if(r.length>0)e.params=r.join(` `);else if(t.length>0)return F.Replace(e.nodes);return F.Continue}if(e.name===`@theme`){let[t,r]=pi(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!ui.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return I(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),F.Skip;if(n.kind===`comment`)return;if(n.kind===`declaration`&&n.property.startsWith(`--`)){s.add(w(n.property),n.value??``,t,n.src);return}let r=ke([R(e.name,e.params,[n])]).split(`
|
|
32
32
|
`).map((e,t,n)=>`${t===0||t>=n.length-2?` `:`>`} ${e}`).join(`
|
|
33
33
|
`);throw Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
|
34
34
|
|
|
35
|
-
${r}`)}),d?
|
|
35
|
+
${r}`)}),d?F.ReplaceSkip([]):(d=L(`:root, :host`,[]),d.src=e.src,F.ReplaceSkip(d))}});let v=qn(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await ni({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of li(l,{onCircularDependency(e,t){let n=ke(e.map((n,r)=>R(`@custom-variant`,n,[R(`@variant`,e[r+1]??t,[])]))).replaceAll(`;`,` { … }`).replace(`@custom-variant ${t} {`,`@custom-variant ${t} { /* \u2190 */`);throw Error(`Circular dependency detected in custom variants:
|
|
36
36
|
|
|
37
|
-
${n}`)}}))c.get(e)?.(v);for(let e of u)e(v);if(d){let t=[];for(let[e,n]of v.theme.entries()){if(n.options&2)continue;let r=
|
|
37
|
+
${n}`)}}))c.get(e)?.(v);for(let e of u)e(v);if(d){let t=[];for(let[e,n]of v.theme.entries()){if(n.options&2)continue;let r=B(C(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(Se({theme:!0},[V([t])]));d.nodes=[Se({theme:!0},t)]}if(a|=Kn(e,v),a|=An(e,v),a|=rr(e,v),f){let e=f;e.kind=`context`,e.context={}}return I(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?F.Replace([]):F.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function hi(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await mi(e,t);r.unshift(xe(`! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com `));function l(e){n.invalidCandidates.add(e)}let u=new Set,d=null,f=0,p=!1;for(let e of c)n.invalidCandidates.has(e)||(u.add(e),p=!0);return{sources:i,root:a,features:s,build(i){if(s===0)return e;if(!o)return d??=Te(r,n,t.polyfills),d;let a=p,c=!1;p=!1;let m=u.size;for(let e of i)if(!n.invalidCandidates.has(e)){if(e[0]===`-`&&e[1]===`-`){let t=n.theme.markUsedVariable(e);a||=t,c||=t}else u.add(e),a||=u.size!==m}if(!a)return d??=Te(r,n,t.polyfills),d;let h=Xn(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&I(h,e=>{e.src??=o.src}),!c&&f===h.length?(d??=Te(r,n,t.polyfills),d):(f=h.length,o.nodes=h,d=Te(r,n,t.polyfills),d)}}}async function gi(e,t={}){let n=y(e,{from:t.from}),r=await hi(n,t),i=n,a=e;return{...r,build(e){let n=r.build(e);return n===i||(a=ke(n,!!t.from),i=n),a},buildSourceMap(){return ii({ast:i})}}}var q={index:`@layer theme, base, components, utilities;
|
|
38
38
|
|
|
39
39
|
@import './theme.css' layer(theme);
|
|
40
40
|
@import './preflight.css' layer(base);
|
|
@@ -948,31 +948,31 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
948
948
|
--max-width-prose: 65ch;
|
|
949
949
|
}
|
|
950
950
|
`,utilities:`@tailwind utilities;
|
|
951
|
-
`},
|
|
952
|
-
`;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),q.end(`Reading Stylesheets`,{size:t.length,changed:Si!==t}),Si!==t){Si=t,q.start(`Compile CSS`);try{bi=await gi(t,{base:`/`,loadStylesheet:Di,loadModule:Oi})}finally{q.end(`Compile CSS`),q.end(`Create compiler`)}xi.clear()}}async function Di(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:_i.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:_i.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:_i.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:_i.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return q.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw q.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Oi(){throw Error(`The browser build does not support plugins or config files.`)}async function ki(e){if(!bi)return;let t=new Set;q.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)xi.has(n)||(xi.add(n),t.add(n));q.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(q.start(`Build utilities`),Ci.textContent=bi.build(Array.from(t)),q.end(`Build utilities`))}function Ai(e){async function t(){if(!bi&&e!==`full`)return;let t=Ti++;q.start(`Build #${t} (${e})`),e===`full`&&await Ei(),q.start(`Build`),await ki(e),q.end(`Build`),q.end(`Build #${t} (${e})`)}wi=wi.then(t).catch(e=>q.error(e))}var ji=new MutationObserver(()=>Ai(`full`));function Mi(e){ji.observe(e,{attributes:!0,attributeFilter:[`type`],characterData:!0,subtree:!0,childList:!0})}new MutationObserver(e=>{let t=0,n=0;for(let r of e){for(let e of r.addedNodes)e.nodeType===Node.ELEMENT_NODE&&e.tagName===`STYLE`&&e.getAttribute(`type`)===yi&&(Mi(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==Ci&&n++;r.type===`attributes`&&n++}if(t>0)return Ai(`full`);if(n>0)return Ai(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Ai(`full`),document.head.append(Ci)})();var e=[`h`,`v`,`tl`,`tr`,`bl`,`br`,`teeUp`,`teeDown`,`teeLeft`,`teeRight`,`cross`],t=new Map,n=new Set;function r(e,r){let i=e.toLowerCase().trim();t.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`);for(let e of Object.values(r)){for(let t of Object.values(e))if(Array.isArray(t)){for(let e of t)typeof e==`object`&&Object.freeze(e);Object.freeze(t)}Object.freeze(e)}t.set(i,Object.freeze(r));for(let e of n)e()}function i(e){if(e)return t.get(e.toLowerCase().trim())}function a(e){return n.add(e),()=>n.delete(e)}var o={radius:1,tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`},s={solid:[o],dashed:[o],dotted:[o]};function c(e,t,n,r,i){let a=r.roles[t];if(r.band?.[t]!==void 0)return a;let o=i?.[e],c=o?.rounded??(o?.[t]===void 0?s[e]??[]:[]),l={radius:0,glyph:a};for(let e of c){let r=e[t];if(r===void 0)continue;let i=Math.abs(e.radius-n),a=Math.abs(l.radius-n);(i<a||i===a&&e.radius>l.radius)&&(l={radius:e.radius,glyph:r})}return l.glyph}function l(e){switch(e){case 1:case 2:case 3:return`h`;case 4:case 8:case 12:return`v`;case 5:return`tl`;case 6:return`tr`;case 9:return`bl`;case 10:return`br`;case 7:return`teeDown`;case 11:return`teeUp`;case 13:return`teeRight`;case 14:return`teeLeft`;case 15:return`cross`;default:return null}}var u=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],d=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function f(e){let t={};for(let n=1;n<16;n++){let r=l(n);r&&!(r in t)&&(t[r]=e[n])}return t}var p=e=>f(Array.from({length:16},()=>e)),m=[` `,`━`,`━`,`━`,`┃`,`┏`,`┓`,`┳`,`┃`,`┗`,`┛`,`┻`,`┃`,`┣`,`┫`,`╋`],h=f(u),g=f(d),_=f(m),v={solid:h,double:g,dashed:{...h,h:`╌`,v:`╎`},dotted:{...h,h:`┄`,v:`┊`}},y={solid:[{width:2,..._}],dashed:[{width:2,..._,h:`╍`,v:`╏`}],dotted:[{width:2,..._,h:`┉`,v:`┋`}]},b=t=>{let n={};if(t)for(let r of e)t[r]!==void 0&&(n[r]=t[r]);return n},x=new WeakMap,S=new Map,C=e=>{if(!e)return S;let t=x.get(e);return t||x.set(e,t=new Map),t};function w(e,t,n){let r=C(n),i=`${e}:${t}`,a=r.get(i);if(a)return a;let o=n?.[e],s=o?.weights??(o?[]:y[e]??[]),c=null,l=Math.abs(t-1);for(let e of s){let n=Math.abs(e.width-t);(n<l||n===l&&e.width>(c?.width??1))&&(c=e,l=n)}let u={roles:{...v[e],...b(o),...b(c)},cells:c?.cells??1,band:c};return r.set(i,u),u}function T(e,t,n){return w(e,t,n).band?t:1}r(`default`,{});var E=[{width:2,cells:2}];r(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`,weights:E},dashed:{weights:E},dotted:{weights:E}});var D={...p(`+`),h:`-`,v:`|`};r(`ascii`,{solid:{...D,scrollTrack:`|`,scrollThumb:`#`,shadow:[`#`,`+`,`:`,`.`],weights:E},double:{...D,h:`=`},dashed:{...D,weights:E},dotted:{...D,h:`.`,v:`:`,weights:E}}),r(`single`,{solid:{rounded:[],weights:E},double:{...h,weights:E},dashed:{...h,weights:E},dotted:{...h,weights:E}});var O=[{width:2,...g}];r(`cp437`,{solid:{rounded:[],weights:O},dashed:{...h,weights:O},dotted:{...h,weights:O}});function k(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function A(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}r(`blocks`,{solid:{...p(`█`),weights:E},double:{...p(`█`),weights:E},dashed:{...p(`▒`),weights:E},dotted:{...p(`░`),weights:E}});var j=new WeakMap;function ee(e,t){let n=j.get(e);n||j.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,te(e)))}function te(e){if(!globalThis.process?.versions?.node)return e;let t=e.id?`#${e.id}`:``,n=e.classList.length?`.${Array.from(e.classList).join(`.`)}`:``;return`<${e.tagName.toLowerCase()}${t}${n}>`}var M=new Map,ne=new Set;function re(e){let t=e.tag.toLowerCase();if(!t.includes(`-`)){console.warn(`[monowind] registerLeafRenderer: "${e.tag}" is not a custom-element tag name (needs a hyphen); ignored.`);return}M.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),M.set(t,{...e,tag:t}),ce()}function ie(){ce()}function ae(e){return M.get(e.toLowerCase())}function oe(e){return ne.add(e),()=>ne.delete(e)}function se(e,t){try{return e.render(t)}catch(n){return ee(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function ce(){for(let e of ne)e()}var le=new Set([`transform`,`translate`,`rotate`,`scale`,`filter`]),ue=new Set([`color`,`opacity`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),de=new Set([`offset`,`computedOffset`,`easing`,`composite`]),fe=new Set;function pe(e,t){let n=new Set;if(t&&(t.animationName===``||t.animationName===`none`))return n;for(let t of e.getAnimations?.()??[]){if(!(`animationName`in t)||t.playState!==`running`)continue;let e=t.effect;if(e?.getKeyframes)for(let t of e.getKeyframes())for(let e of Object.keys(t))de.has(e)||n.add(e)}return t&&n.size>0&&fe.add(e),n}function me(e){let t=[];for(let n of fe){let r=e.contains(n);(r||!n.isConnected)&&fe.delete(n),r&&t.push(n)}return t}function he(e,t){if(e.size===0)return null;let n=t!==null&&t.children.length===0&&!t.inlineElements?.length,r=t!==null&&t.style.latticeBorder!==null,i=!0;for(let a of e)if(!le.has(a)&&(i=!1,t===null||!ue.has(a)||(a===`color`?!n:r)))return`layout`;return i?`box`:`paint`}function N(e,t){for(let n of pe(e,t))if(le.has(n))return!0;if(!/[1-9]/.test(t.transitionDuration))return!1;for(let t of e.getAnimations?.()??[])if(`transitionProperty`in t&&t.playState===`running`&&le.has(t.transitionProperty))return!0;return!1}function ge(e,t){return pe(e,t).has(`backgroundColor`)}function P(e){let t=new Map,n=e=>{e.anonymous||t.set(e.source,e);for(let t of e.children)n(t)};return n(e),t}var F=new WeakMap,_e=[],ve=new Map;function ye(e,t,n){let r=F.get(e);if(F.set(e,t),ge(e,n))return ve.delete(e),t;let i=ve.get(e);if(i){if(t!==i.toValue){let n=I(i);return ve.delete(e),_e.push({el:e,from:n,to:t}),n}let n=I(i);return n===i.toValue&&ve.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(_e.push({el:e,from:r,to:t}),r):t}function be(e){let t=!1;for(let n=_e.length-1;n>=0;n--){let{el:r,from:i,to:a}=_e[n];if(!r.isConnected){_e.splice(n,1);continue}if(!e.contains(r))continue;_e.splice(n,1),t=!0;let o=Se(getComputedStyle(r),`background-color`),s=z(i),c=z(a);o&&s&&c&&ve.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function xe(){let e=performance.now();for(let[t,n]of ve)(!t.isConnected||e>=n.start+n.duration)&&ve.delete(t);return ve.size>0}function I(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return Ee(Te(e.from,e.to,n))}var L={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};function Se(e,t){let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=-1;for(let e=0;e<n.length;e++)(n[e]===t||n[e]===`all`)&&(r=e);if(r<0)return null;let i=e=>{let t=e.split(`,`).map(e=>e.trim());return t[r%t.length]??``},a=R(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:R(i(e.transitionDelay))*1e3,easing:Ce(i(e.transitionTimingFunction))}}function R(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function Ce(e){if(e===`linear`)return e=>e;let t=L[e];if(t)return we(...t);let n=e.match(/^cubic-bezier\(([^)]+)\)$/);if(n){let[e,t,r,i]=n[1].split(`,`).map(e=>parseFloat(e));if([e,t,r,i].every(e=>Number.isFinite(e)))return we(e,t,r,i)}return e=>e}function we(e,t,n,r){let i=(e,t,n)=>3*e*n*(1-n)*(1-n)+3*t*n*n*(1-n)+n*n*n;return a=>{let o=0,s=1;for(let t=0;t<24;t++){let t=(o+s)/2;i(e,n,t)<a?o=t:s=t}return i(t,r,(o+s)/2)}}function z(e){if(e===``||e===`transparent`)return{r:0,g:0,b:0,a:0,legacy:!0};let t=e.match(/^rgba?\(([^)]+)\)$/);if(t){let e=t[1].split(/[\s,/]+/).map(e=>parseFloat(e));return e.length<3||e.some(e=>!Number.isFinite(e))?null:{r:e[0]/255,g:e[1]/255,b:e[2]/255,a:e[3]??1,legacy:!0}}if(t=e.match(/^color\(srgb ([^)]+)\)$/),t){let e=t[1].split(/[\s/]+/).map(e=>parseFloat(e));return e.length<3||e.slice(0,3).some(e=>!Number.isFinite(e))?null:{r:e[0],g:e[1],b:e[2],a:e[3]??1,legacy:!1}}if(t=e.match(/^okl(ch|ab)\(([^)]+)\)$/),t){let e=t[1]===`ch`,n=t[2].replaceAll(`none`,`0`).split(/[\s/]+/).map(e=>parseFloat(e));if(n.length<3||n.some(e=>!Number.isFinite(e)))return null;let[r,i,a]=n;return{...Ae(r,e?i*Math.cos(a*Math.PI/180):i,e?i*Math.sin(a*Math.PI/180):a),a:n[3]??1,legacy:!1}}return null}function Te(e,t,n){let r=e.a+(t.a-e.a)*n,i=(i,a)=>{let o=i*e.a+(a*t.a-i*e.a)*n;return r===0?0:o/r};if(e.legacy&&t.legacy)return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:r,legacy:!0};let a=ke(e.r,e.g,e.b),o=ke(t.r,t.g,t.b);return{...Ae(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function Ee(e){let t=e=>Math.round(Math.min(1,Math.max(0,e))*255),n=Math.round(Math.min(1,Math.max(0,e.a))*1e3)/1e3;return`rgba(${t(e.r)}, ${t(e.g)}, ${t(e.b)}, ${n})`}function De(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Oe(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function ke(e,t,n){let r=De(e),i=De(t),a=De(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{l:.2104542553*o+.793617785*s-.0040720468*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}}function Ae(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return{r:Oe(4.0767416621*r-3.3077115913*i+.2309699292*a),g:Oe(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:Oe(-.0041960863*r-.7034186147*i+1.707614701*a)}}function je(e){if(!e.hasAttribute(`popover`)&&e.localName!==`dialog`)return!1;try{return e.matches(`:popover-open, :modal`)}catch{return!1}}var Me=class{#e=new Map;#t=0;enter(e){this.#e.has(e)||this.#e.set(e,this.#t++)}assign(e){let t=new Set,n=[],r=[],i=e=>{if(r.length>0&&!e.anonymous){e.style.topLayer&&this.enter(e.source);let i=e.hostRect?this.#e.get(e.source):void 0;i===void 0?delete e.topLayerRank:(e.topLayerRank=i,t.add(e.source),n.push({node:e,ancestors:r.slice()}))}r.push(e);for(let t of e.children)i(t);r.pop()};i(e);for(let e of this.#e.keys())t.has(e)||this.#e.delete(e);n.sort((e,t)=>e.node.topLayerRank-t.node.topLayerRank),n.length>0?e.topLayer=n:delete e.topLayer}},Ne=e=>e===`oklch`?2:e===`hsl`?0:-1,B=e=>Math.min(1,Math.max(0,e)),Pe=(e,t=1)=>{if(e===`none`)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:NaN};function Fe(e,t){let[n,r]=e.split(`/`),i=n.trim().split(/[\s,]+/).filter(Boolean),a=r===void 0?1:Pe(r.trim());return t&&r===void 0&&i.length===4&&(a=Pe(i.pop())),{tokens:i,alpha:Number.isFinite(a)?B(a):1}}var Ie=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Le=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function Re(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function ze(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}var Be=(e,t,n,r)=>{let[i,a,o]=ze(e,t,n);return{r:B(Le(i)),g:B(Le(a)),b:B(Le(o)),a:r}};function Ve(e){let t=e.trim().toLowerCase();if(t===`transparent`)return{r:0,g:0,b:0,a:0};let n=/^([a-z-]+)\((.*)\)$/.exec(t);if(!n)return null;let[,r,i]=n,{tokens:a,alpha:o}=Fe(i,r===`rgb`||r===`rgba`);switch(r){case`rgb`:case`rgba`:{let[e,t,n]=a.map(e=>Pe(e,255)/255);return e===void 0||[e,t,n].some(e=>!Number.isFinite(e))?null:{r:B(e),g:B(t),b:B(n),a:o}}case`oklab`:{let[e,t,n]=[Pe(a[0]??``),Pe(a[1]??``,.4),Pe(a[2]??``,.4)];return[e,t,n].some(e=>!Number.isFinite(e))?null:Be(e,t,n,o)}case`oklch`:{let[e,t,n]=[Pe(a[0]??``),Pe(a[1]??``,.4),Pe(a[2]??``)];if([e,t,n].some(e=>!Number.isFinite(e)))return null;let r=n*Math.PI/180;return Be(e,t*Math.cos(r),t*Math.sin(r),o)}case`color`:{let[e,...t]=a,[n,r,i]=t.map(e=>Pe(e));return n===void 0||[n,r,i].some(e=>!Number.isFinite(e))?null:e===`srgb-linear`?{r:B(Le(n)),g:B(Le(r)),b:B(Le(i)),a:o}:{r:B(n),g:B(r),b:B(i),a:o}}default:return null}}var He=e=>/^(?:rgba?|hsla?)\(|^transparent$|^#|^[a-z]+$/i.test(e.trim()),Ue=(e,t,n)=>{let r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2,o=r-i;if(o<1e-9)return[NaN,a<=1e-9||a>=1-1e-9?NaN:0,a];let s=o/(1-Math.abs(2*a-1));return[((r===e?(t-n)/o%6:r===t?(n-e)/o+2:(e-t)/o+4)*60%360+360)%360,s,a]},We=(e,t,n,r)=>{let i=((Number.isNaN(e)?0:e)%360+360)%360,a=e=>{let r=(e+i/30)%12;return n-t*Math.min(n,1-n)*Math.max(-1,Math.min(r-3,9-r,1))};return{r:B(a(0)),g:B(a(8)),b:B(a(4)),a:r}};function Ge({r:e,g:t,b:n,a:r},i){if(i===`srgb`)return{c:[e,t,n],a:r};if(i===`hsl`)return{c:Ue(e,t,n),a:r};let a=[Ie(e),Ie(t),Ie(n)];if(i===`srgb-linear`)return{c:a,a:r};let[o,s,c]=Re(...a);if(i===`oklab`)return{c:[o,s,c],a:r};let l=Math.hypot(s,c);return{c:[o,l,l<1e-6?NaN:(Math.atan2(c,s)*180/Math.PI%360+360)%360],a:r}}function Ke(e,t,n,r){for(let n=0;n<3;n++)Number.isNaN(e.c[n])&&(e.c[n]=Number.isNaN(t.c[n])?0:t.c[n]),Number.isNaN(t.c[n])&&(t.c[n]=e.c[n]);let i=Ne(n);if(i<0)return;let a=e=>(e%360+360)%360,o=a(t.c[i])-a(e.c[i]);r===`shorter`?o>180?o-=360:o<-180&&(o+=360):r===`longer`?o>0&&o<180?o-=360:o>-180&&o<=0&&(o+=360):r===`increasing`?o<0&&(o+=360):o>0&&(o-=360),t.c[i]=e.c[i]+o}function qe(e,t,n,r){let i=e.a+(t.a-e.a)*n;if(i===0)return{r:0,g:0,b:0,a:0};let a=Ne(r),o=(e,t)=>e.c[t]||0,s=r=>r===a?o(e,r)+(o(t,r)-o(e,r))*n:(o(e,r)*e.a*(1-n)+o(t,r)*t.a*n)/i,[c,l,u]=[s(0),s(1),s(2)];switch(r){case`srgb`:return{r:c,g:l,b:u,a:i};case`srgb-linear`:return{r:B(Le(c)),g:B(Le(l)),b:B(Le(u)),a:i};case`hsl`:return We(c,l,u,i);case`oklab`:return Be(c,l,u,i);default:{let e=u*Math.PI/180;return Be(c,l*Math.cos(e),l*Math.sin(e),i)}}}function Je(e,t){let n=e.a+t.a*(1-e.a);if(n===0)return{r:0,g:0,b:0,a:0};let r=(r,i)=>(r*e.a+i*t.a*(1-e.a))/n;return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:n}}function Ye({r:e,g:t,b:n,a:r}){let i=e=>Math.round(B(e)*255),a=`${i(e)} ${i(t)} ${i(n)}`;return r>=1?`rgb(${a})`:`rgb(${a} / ${Math.round(r*1e3)/1e3})`}function Xe(e){let t=Ve(e);if(t)return t.a;let n=/\/\s*([\d.]+%?)\s*\)$/.exec(e.trim()),r=n?Pe(n[1]):1;return Number.isFinite(r)?B(r):1}function Ze(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function Qe(e,t){return t<=0?0:Ze(e/(.25*t))}function $e(e,t){return Ze(t*e/100)}function et(e,t){let n=t.getBoundingClientRect(),r=parseFloat(getComputedStyle(e).letterSpacing)||0,i=t.ownerDocument.createRange();i.selectNodeContents(t);let a=i.getBoundingClientRect().height,o=Math.max(0,a-n.height),s=Math.max(0,n.height-a),c=n.width/100,l=Math.ceil(c*64-1e-6)/64,u=t.lastElementChild,d=u?u.getBoundingClientRect().top-n.top:void 0;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s,...d===void 0?{}:{baseline:d}}}function tt(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}function nt(e){return e===`auto`||e===`scroll`}function rt(e){return e.children.filter(e=>e.inlineBox)}function it(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function at(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=it(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function ot(){return{display:`block`,flexDirection:`row`,flexReverse:!1,flexWrap:`nowrap`,wrapReverse:!1,flexGrow:0,flexShrink:0,flexBasis:void 0,order:0,justifyContent:`stretch`,alignContent:`stretch`,alignItems:`stretch`,alignSelf:`auto`,justifyItems:`stretch`,justifySelf:`auto`,gridTemplateColumns:{kind:`none`},gridTemplateRows:{kind:`none`},gridAutoColumns:[ct()],gridAutoRows:[ct()],gridAutoFlow:{direction:`row`,dense:!1},gridTemplateAreas:null,gridColumnStart:{kind:`auto`},gridColumnEnd:{kind:`auto`},gridRowStart:{kind:`auto`},gridRowEnd:{kind:`auto`},width:void 0,height:void 0,minWidth:`auto`,minHeight:`auto`,maxWidth:void 0,maxHeight:void 0,padding:st(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,float:`none`,clear:`none`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:st(),borderWeight:{top:1,right:1,bottom:1,left:1},borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},borderRadius:{tl:0,tr:0,bl:0,br:0},overflow:{x:`visible`,y:`visible`},scrollbarWidth:`auto`,scrollbarSize:{x:1,y:1},scrollbarInset:{x:0,y:0},overscroll:{x:!0,y:!0},scrollbarColor:null,whiteSpace:`normal`,tabSize:8,lineGap:0,tracking:0,textOverflow:`clip`,color:void 0,backgroundColor:void 0,backgroundClear:!1,backgroundImage:[],backgroundClip:`border-box`,fontWeight:`400`,fontStyle:`normal`,textDecorationLine:`none`,borderColor:{top:void 0,right:void 0,bottom:void 0,left:void 0},textAlignBlocked:!1,textAlign:`start`,textIndent:0,tableRole:`none`,tableLayout:`auto`,borderCollapse:!1,borderSpacingX:0,borderSpacingY:0,captionSide:`top`,verticalAlign:`start`,glyphSet:null,boxShadow:[],opacity:1,layer:null,anchorNames:[],positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1},topLayer:!1,backdrop:null,zIndex:null,latticeBorder:null,ruleX:null,ruleY:null,ruleBreak:`normal`,ruleInset:0,ruleVisibilityItems:`normal`,columnCount:null,columnWidth:null,columnFill:`balance`,columnSpan:!1,breakBeforeColumn:!1,breakAfterColumn:!1,breakInsideAvoid:!1}}function st(){return{top:0,right:0,bottom:0,left:0}}function ct(){return{min:{kind:`auto`},max:{kind:`auto`}}}function lt(e,t,n){let r=getComputedStyle(e),a=parseFloat(r.fontSize)||t,o=Vt(e)?e.computedStyleMap():null,s=e.getAttribute(`class`)??``,c=e.style;It(e,s,c);let l=r.getPropertyValue(`--mw-border-glyphs`).trim()||null,u=i(l),d=(e,r,i)=>En(o,e,r,s,i,c,n,t)??On(o,e,r,s,i,c,n,t)??mn(r,t),f=r.display||Mt[e.tagName]||``,p=Nt[f]??`none`,m=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,h=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,g=Number.isFinite(h)?Math.max(1,Qe(h,t)):null,_=f===`flex`||f===`inline-flex`?`flex`:f===`grid`||f===`inline-grid`?`grid`:f===`table`||f===`inline-table`?`table`:f===`none`||jt(e,r)?`none`:m!==null||g!==null?`multicol`:`block`,v={kind:`none`},y={kind:`none`},b=[ct()],x=[ct()],S={direction:`row`,dense:!1},C=null;if(_===`grid`){if(o)v=jn(o.get(`grid-template-columns`)?.toString()??``,t),y=jn(o.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{v=jn(r.getPropertyValue(`grid-template-columns`),t),y=jn(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}b=Fn(r.getPropertyValue(`grid-auto-columns`),t),x=Fn(r.getPropertyValue(`grid-auto-rows`),t),S=Vn(r.getPropertyValue(`grid-auto-flow`)),C=Pn(r.getPropertyValue(`grid-template-areas`))}let w=`auto`,T=!1,E=0,D=0;if(_===`table`&&(w=r.tableLayout===`fixed`?`fixed`:`auto`,T=r.borderCollapse===`collapse`,!T)){let e=r.borderSpacing.split(` `);E=Qe(parseFloat(e[0]??``)||0,t),D=Qe(parseFloat(e[1]??e[0]??``)||0,t)}let O=je(e),k=O||e.hasAttribute(`popover`),A=k||r.position===`absolute`||r.position===`fixed`,j={display:_,tableRole:p,tableLayout:w,borderCollapse:T,borderSpacingX:E,borderSpacingY:D,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:p===`cell`||f.startsWith(`inline-`)?Pt(e,r):`start`,flexDirection:r.flexDirection.startsWith(`column`)?`column`:`row`,flexReverse:r.flexDirection.endsWith(`-reverse`),flexWrap:r.flexWrap.startsWith(`wrap`)?`wrap`:`nowrap`,wrapReverse:r.flexWrap===`wrap-reverse`,flexGrow:Number(r.flexGrow)||0,flexShrink:r.flexShrink===``?1:Number(r.flexShrink)||0,flexBasis:kn(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Ht(r.justifyContent),alignContent:Ht(r.alignContent),alignItems:Ut(r.alignItems),alignSelf:H(r.alignSelf),justifyItems:Ut(r.justifyItems),justifySelf:H(r.justifySelf),gridTemplateColumns:v,gridTemplateRows:y,gridAutoColumns:b,gridAutoRows:x,gridAutoFlow:S,gridTemplateAreas:C,gridColumnStart:Bn(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Bn(r.getPropertyValue(`grid-column-end`)),gridRowStart:Bn(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Bn(r.getPropertyValue(`grid-row-end`)),width:Sn(o,r.width,`width`,t,s,c,n),height:Sn(o,r.height,`height`,t,s,c,n),minWidth:d(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:d(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:d(`max-width`,r.maxWidth,`max-w`),maxHeight:d(`max-height`,r.maxHeight,`max-h`),padding:Hn(r,t),margin:Wt(r,o,s,c,t),position:qt(r.position),float:Jt(r.position)?`none`:Yt(r.float),clear:Xt(r.clear),insets:Zt(r,o,s,c,t),gapX:hn(r.columnGap===`normal`||r.columnGap===``?_===`multicol`?`${a}px`:`0px`:r.columnGap,t),gapY:hn(r.rowGap===`normal`?`0px`:r.rowGap,t),...Un(r,u),borderRadius:{tl:fn(r.borderTopLeftRadius,t),tr:fn(r.borderTopRightRadius,t),bl:fn(r.borderBottomLeftRadius,t),br:fn(r.borderBottomRightRadius,t)},overflow:At(r),scrollbarWidth:Et(e,r),scrollbarColor:Dt(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Ot(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Ot(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Ot(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Ot(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Ft(e,r,t),lineGap:Kt(r.lineHeight,a),tracking:Gt(r.letterSpacing,a,n?.letterSpacing??0),...bn(r),fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:xt(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,backgroundImage:en(r.backgroundImage,r.color,t),backgroundClip:rn(r.backgroundClip),layer:yn(e,r),...ut(e,r,A),topLayer:O,backdrop:k?vt(e):null,glyphSet:l,boxShadow:$t(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:_===`flex`||_===`grid`||_===`multicol`?Rt(r,`x`,u):null,ruleY:_===`flex`||_===`grid`?Rt(r,`y`,u):null,ruleBreak:Lt(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,Ze(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:Lt(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:m,columnWidth:g,columnFill:r.columnFill===`auto`?`auto`:`balance`,columnSpan:r.columnSpan===`all`,breakBeforeColumn:r.breakBefore===`column`,breakAfterColumn:r.breakAfter===`column`,breakInsideAvoid:r.breakInside===`avoid`||r.breakInside===`avoid-column`};return yt(j,r),k&&(V(j,s,c),j.backdrop&&(j.layer??={backdropFilter:`none`})),j}function ut(e,t,n){let r=ft(e,t);return n?{anchorNames:r,positionAnchor:dt(e,t),positionArea:gt(t.getPropertyValue(`position-area`)),positionTryFallbacks:_t(t.getPropertyValue(`position-try-fallbacks`)),anchorCenter:{x:t.justifySelf===`anchor-center`,y:t.alignSelf===`anchor-center`}}:{anchorNames:r,positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1}}}function dt(e,t){let n=t.getPropertyValue(`position-anchor`).trim();if(n.startsWith(`--`))return n;if(n===`match-parent`){let t=e.parentElement;return t?dt(t,getComputedStyle(t)):null}return[``,`auto`,`normal`].includes(n)&&e.hasAttribute(`popover`)&&e.id!==``?`--mw:${e.id}`:null}function ft(e,t){let n=t.getPropertyValue(`anchor-name`).trim();if(n!==``&&n!==`none`)return n.split(`,`).map(e=>e.trim());let r=e.getAttribute(`popovertarget`)??e.getAttribute(`commandfor`);return r?[`--mw:${r}`]:[]}var pt={left:`start`,right:`end`,"span-left":`span-start`,"span-right":`span-end`,"x-start":`start`,"x-end":`end`,"span-x-start":`span-start`,"span-x-end":`span-end`,"x-self-start":`start`,"x-self-end":`end`,"span-x-self-start":`span-start`,"span-x-self-end":`span-end`,"inline-start":`start`,"inline-end":`end`,"span-inline-start":`span-start`,"span-inline-end":`span-end`,"self-inline-start":`start`,"self-inline-end":`end`,"span-self-inline-start":`span-start`,"span-self-inline-end":`span-end`},mt={top:`start`,bottom:`end`,"span-top":`span-start`,"span-bottom":`span-end`,"y-start":`start`,"y-end":`end`,"span-y-start":`span-start`,"span-y-end":`span-end`,"y-self-start":`start`,"y-self-end":`end`,"span-y-self-start":`span-start`,"span-y-self-end":`span-end`,"block-start":`start`,"block-end":`end`,"span-block-start":`span-start`,"span-block-end":`span-end`,"self-block-start":`start`,"self-block-end":`end`,"span-self-block-start":`span-start`,"span-self-block-end":`span-end`},ht={start:`start`,end:`end`,center:`center`,"span-start":`span-start`,"span-end":`span-end`,"span-all":`span-all`,"self-start":`start`,"self-end":`end`,"span-self-start":`span-start`,"span-self-end":`span-end`};function gt(e){let t=e.trim().split(/\s+/);if(t[0]===``||t[0]===`none`)return null;let n=e=>e in pt?[`x`,pt[e]]:e in mt?[`y`,mt[e]]:e in ht?[`both`,ht[e]]:null,r=n(t[0]);if(!r)return null;if(t.length===1){let[e,t]=r;return e===`both`?{x:t,y:t}:e===`x`?{x:t,y:`span-all`}:{x:`span-all`,y:t}}let i=t.length===2?n(t[1]):null;return i?r[0]===`both`&&i[0]===`both`||r[0]===`y`||i[0]===`x`?{y:r[1],x:i[1]}:{x:r[1],y:i[1]}:null}function _t(e){let t=e.trim();if(t===``||t===`none`)return[];let n=[];for(let e of t.split(`,`)){let t=e.trim().split(/\s+/);if(t.every(e=>e.startsWith(`flip-`)))n.push({flipBlock:t.includes(`flip-block`),flipInline:t.includes(`flip-inline`),flipStart:t.includes(`flip-start`)});else{let t=gt(e);t&&n.push(t)}}return n}function V(e,t,n){e.position=`fixed`;for(let t of[`top`,`right`,`bottom`,`left`])e.insets[t]??=0;(e.width===void 0||e.width.kind===`auto`)&&(e.width={kind:`fit-content`}),(e.height===void 0||e.height.kind===`auto`)&&(e.height={kind:`fit-content`});let r=(e,r)=>RegExp(`(?:^|[\\s:.[!])-?(?:${e})-`).test(t)||n.getPropertyValue(r)!==``;r(`m|my|mt`,`margin-top`)||(e.margin.top=null),r(`m|mx|mr|me`,`margin-right`)||(e.margin.right=null),r(`m|my|mb`,`margin-bottom`)||(e.margin.bottom=null),r(`m|mx|ml|ms`,`margin-left`)||(e.margin.left=null)}function vt(e){try{let t=getComputedStyle(e,`::backdrop`),n=t.backgroundColor,r=t.backgroundImage||`none`,i=t.backdropFilter||`none`;return bt(n)&&r===`none`&&i===`none`?null:{backgroundColor:n,backgroundImage:r,backdropFilter:i,opacity:t.opacity||`1`}}catch{return null}}function yt(e,t){t.borderCollapse===`collapse`&&(e.display===`table`||e.tableRole===`cell`||e.tableRole===`row`||e.tableRole===`row-group`||e.tableRole===`header-group`||e.tableRole===`footer-group`)&&(e.latticeBorder={width:e.border,weight:e.borderWeight,style:e.borderStyle,color:e.borderColor,hidden:{top:t.borderTopStyle===`hidden`,right:t.borderRightStyle===`hidden`,bottom:t.borderBottomStyle===`hidden`,left:t.borderLeftStyle===`hidden`}},e.border=st(),e.display===`table`&&(e.padding=st()))}function bt(e){let t=e.trim().toLowerCase();return t===``||t===`currentcolor`||Xe(t)===0}function xt(e,t,n){let r=ye(e,bt(t)?``:t,n);return r===``?void 0:r}function St(e){return e===`hidden`||e===`clip`}var Ct=new WeakMap,wt=null;function Tt(e){if(wt!==null)return wt;if(!e.body)return!0;let t=e.createElement(`div`);return t.style.cssText=`position: absolute; width: 0; height: 0; overflow: auto`,e.body.appendChild(t),wt=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),wt}function Et(e,t){if(!Tt(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=Ct.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return Ct.set(e,n),n}function Dt(e){let t=(e??``).trim();if(!t||t===`auto`)return null;let n=0;for(let e=0;e<t.length;e++){let r=t[e];if(r===`(`)n++;else if(r===`)`)n--;else if(r===` `&&n===0)return{thumb:t.slice(0,e),track:t.slice(e+1).trim()}}return null}function Ot(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function kt(e){return St(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function At(e){let t=kt(e.overflowX||e.overflow),n=kt(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function jt(e,t){if(t.position!==`absolute`&&t.position!==`fixed`)return!1;let n=t.clip.replace(/\s/g,``);return n===`rect(0px,0px,0px,0px)`||n===`rect(0,0,0,0)`||!ae(e.tagName)&&(St(t.overflow)||St(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Mt={TABLE:`table`,THEAD:`table-header-group`,TBODY:`table-row-group`,TFOOT:`table-footer-group`,TR:`table-row`,TD:`table-cell`,TH:`table-cell`,CAPTION:`table-caption`,COL:`table-column`,COLGROUP:`table-column-group`},Nt={"table-header-group":`header-group`,"table-row-group":`row-group`,"table-footer-group":`footer-group`,"table-row":`row`,"table-cell":`cell`,"table-caption":`caption`,"table-column":`column`,"table-column-group":`column-group`};function Pt(e,t){let n=t.verticalAlign||e.getAttribute(`valign`)?.toLowerCase()||(e.tagName===`TD`||e.tagName===`TH`?`middle`:`baseline`);return n===`top`?`start`:n===`middle`?`center`:n===`bottom`?`end`:`start`}function Ft(e,t,n){return{whiteSpace:t.whiteSpace===`pre`?`pre`:t.whiteSpace===`nowrap`?`nowrap`:`normal`,tabSize:Math.max(1,Math.floor(parseFloat(t.tabSize))||8),textOverflow:t.textOverflow===`ellipsis`?`ellipsis`:`clip`,textDecorationLine:t.textDecorationLine,textAlignBlocked:zt(e,t),textAlign:Bt(e,t),textIndent:xn(t,n)}}function It(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&ee(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function Lt(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Rt(e,t,n){let r=parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0;if(r<=0)return null;let i=pn(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),a=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:w(i,r,n).cells,weight:T(i,r,n),style:i,color:a&&a!==`currentcolor`&&a!==`currentColor`?a:e.color}}function zt(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Bt(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Vt(e){return typeof e.computedStyleMap==`function`}function Ht(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:case`right`:return`end`;case`space-between`:return`space-between`;case`space-around`:return`space-around`;case`space-evenly`:return`space-evenly`;case`normal`:case`stretch`:case``:return`stretch`;default:return`start`}}function Ut(e){switch(e){case`center`:case`anchor-center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function H(e){return e===`auto`||e===``||e===`normal`?`auto`:Ut(e)}function Wt(e,t,n,r,i){let a=(a,o,s)=>{if(t){let e=t.get(a)?.toString().trim();if(e===`auto`||t.get(o)?.toString().trim()===`auto`)return null;if(e&&(e.endsWith(`%`)||e.startsWith(`calc(`))){let t=hn(e,i);if(t!==0)return t}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=hn(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:hn(u,i)};return{top:a(`margin-top`,`margin-block-start`,/(?:^|[\s:.[!])(?:m|my|mt)-auto\b/),right:a(`margin-right`,`margin-inline-end`,/(?:^|[\s:.[!])(?:m|mx|mr|me)-auto\b/),bottom:a(`margin-bottom`,`margin-block-end`,/(?:^|[\s:.[!])(?:m|my|mb)-auto\b/),left:a(`margin-left`,`margin-inline-start`,/(?:^|[\s:.[!])(?:m|mx|ml|ms)-auto\b/)}}function Gt(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function Kt(e,t){if(!e||e===`normal`||t<=0)return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.floor(n/t+1e-6)-1):0}function qt(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function Jt(e){return e===`absolute`||e===`fixed`}function Yt(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function Xt(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;case`both`:return`both`;default:return`none`}}function Zt(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:hn(e,i)}let s=r[a];if(s)return s===`auto`?null:hn(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=Qt(n,o,i);return l===void 0?c?hn(c,i):null:l};return{top:a(`top`,`top|inset|inset-y`),right:a(`right`,`right|end|inset|inset-x`),bottom:a(`bottom`,`bottom|inset|inset-y`),left:a(`left`,`left|start|inset|inset-x`)}}function Qt(e,t,n){let r=`(?:^|[\\s:.[!])(-?)(?:${t})-`,i=(e,t)=>e===`-`?typeof t==`number`?-t:t.cells===void 0?{percent:-t.percent}:{percent:-t.percent,cells:-t.cells}:t,a=RegExp(`${r}(\\d+)/(\\d+)(?![\\w./])`).exec(e);if(a)return i(a[1],{percent:100*Number(a[2])/Number(a[3])});let o=RegExp(`${r}full(?![\\w-])`).exec(e);if(o)return i(o[1],{percent:100});let s=RegExp(`${r}\\[(calc\\([^\\]]*\\)|\\d+(?:\\.\\d+)?%)\\]`).exec(e);if(s)return i(s[1],hn(s[2].replaceAll(`_`,` `),n))}function $t(e,t,n){if(!e||e===`none`)return[];let r=e=>/^-?[\d.]+(?:e[+-]?\d+)?(?:px)?$/i.test(e),i=(e,n)=>{if(e===0)return 0;let r=n?Math.abs(e)/n:Math.abs(Qe(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of dn(e)){let e=zn(o),s=e.filter(r).map(parseFloat);if(s.length<2)continue;let[c,l,u=0,d=0]=s;a.push({x:i(c,n?.width),y:i(l,n?.height),blur:u/(.25*t),spread:Qe(d,t),color:e.find(e=>!r(e)&&e!==`inset`)??`currentcolor`,inset:e.includes(`inset`)})}return a}function en(e,t,n){let r=[];if(!e||e===`none`)return r;for(let i of dn(e.replace(/\bcurrentcolor\b/gi,t))){let e=/^\s*(repeating-)?(linear|radial|conic)-gradient\((.*)\)\s*$/s.exec(i);if(!e)continue;let[,t,a,o]=e,s=Rn(o).map(e=>e.trim()),c=s.length>0&&!U(s[0]),l=c?zn(s[0]):[],u=c?s.slice(1):s,d=un(u,n);if(d.length<2)continue;let f={repeating:t!==void 0,...W(l,u),stops:d};if(a===`linear`)r.push({kind:a,...f,direction:on(l)});else if(a===`radial`)r.push({kind:a,...f,...ln(l,n)});else{let e=l.indexOf(`from`);r.push({kind:`conic`,...f,from:e>=0?an(l[e+1]??``):0,at:cn(l,n)})}}return r}var U=e=>/^(?:rgba?|hsla?|oklab|oklch|color)\(|^transparent\b/i.test(e),tn=[`oklab`,`oklch`,`srgb`,`srgb-linear`,`hsl`],nn=[`shorter`,`longer`,`increasing`,`decreasing`];function W(e,t){let n=e.indexOf(`in`);if(n>=0){let t=e[n+1],r=e[n+2];return{space:tn.includes(t)?t:`oklab`,hue:nn.includes(r)?r:`shorter`}}return{space:t.filter(U).every(e=>He(zn(e)[0]??``))?`srgb`:`oklab`,hue:`shorter`}}function rn(e){let t=e.split(`,`)[0].trim();return t===`text`||t===`padding-box`||t===`content-box`?t:`border-box`}function an(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`grad`)?t*.9:e.endsWith(`rad`)?t*180/Math.PI:e.endsWith(`turn`)?t*360:t:0}function on(e){if(e[0]===`to`){let t=0,n=0;for(let r of e.slice(1))r===`left`?t=-1:r===`right`?t=1:r===`top`?n=-1:r===`bottom`&&(n=1);return{toX:t,toY:n}}let t=e.find(e=>/^-?[\d.]+(?:deg|grad|rad|turn)$/.test(e));return t===void 0?{angle:180}:{angle:an(t)}}function sn(e,t){let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?{fraction:n/100}:/(?:deg|grad|rad|turn)$/.test(e)?{fraction:an(e)/360}:{cells:Qe(n,t)}:null}function cn(e,t){let n=e.indexOf(`at`),r={fraction:.5};if(n<0)return{x:r,y:r};let i={left:{fraction:0},top:{fraction:0},center:r,right:{fraction:1},bottom:{fraction:1}},a=e.slice(n+1,n+3).filter(e=>e!==`in`),[o,s]=a.map(e=>i[e]??sn(e,t)),c=a[0]===`top`||a[0]===`bottom`||a[1]===`left`||a[1]===`right`;return{x:(c?s:o)??r,y:(c?o:s)??r}}function ln(e,t){let n=e.indexOf(`at`),r=n<0?e:e.slice(0,n),i=r.find(e=>[`closest-side`,`farthest-side`,`closest-corner`,`farthest-corner`].includes(e)),a=r.map(e=>/^[\d.]/.test(e)?sn(e,t):null).filter(e=>e!==null),o=r.includes(`circle`)?`circle`:`ellipse`,s=i??`farthest-corner`;return a.length===1?(o=`circle`,s={rx:a[0],ry:a[0]}):a.length>=2&&(o=`ellipse`,s={rx:a[0],ry:a[1]}),{shape:o,size:s,at:cn(e,t)}}function un(e,t){let n=[];for(let r of e){let e=zn(r),i=Ve(e[0]??``);if(!i){let r=sn(e[0]??``,t),i=n[n.length-1];r&&i&&(i.hint=r);continue}let a=e.slice(1,3).map(e=>sn(e,t));a.length===0&&a.push(null);for(let e of a)n.push({color:i,position:e})}return n}function dn(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t}function fn(e,t){let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return 0;let r=1/0;for(let e of n){let n=parseFloat(e);if(!Number.isFinite(n)||n<=0)return 0;r=Math.min(r,e.endsWith(`%`)?1/0:n/(.25*t))}return r}function pn(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function mn(e,t){if(!e||e===`none`||e===`auto`)return;if(e===`min-content`||e===`max-content`||e===`fit-content`)return e;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{percent:t}:void 0}let n=parseFloat(e);return Number.isFinite(n)?Qe(n,t):void 0}function hn(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=Dn(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=Ze(n.cells);return n.percent===0?r:r===0?{percent:n.percent}:{percent:n.percent,cells:r}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?Qe(n,t):0}function gn(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}var _n=new Set([`matrix(1, 0, 0, 1, 0, 0)`,`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)`,`1`,`1 1`,`1 1 1`,`0deg`,`0px`,`0px 0px`,`0px 0px 0px`]),vn=[`transform`,`translate`,`rotate`,`scale`,`filter`];function yn(e,t){let n=e=>{let n=t.getPropertyValue(e).trim();return n===``||_n.has(n)?`none`:n},r=n(`backdrop-filter`);return r!==`none`||vn.some(e=>n(e)!==`none`)||N(e,t)?{backdropFilter:r}:null}function bn(e){return{color:e.color,opacity:gn(e.opacity),borderColor:{top:e.borderTopColor,right:e.borderRightColor,bottom:e.borderBottomColor,left:e.borderLeftColor}}}function xn(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,Qe(r,t)):0}function Sn(e,t,n,r,i,a,o){let s=Cn(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Tn(s,n,o,r)};let c=En(e,n,t,i,n===`width`?`w`:`h`,a,o,r);if(c!==void 0)return{kind:`cells`,value:c};let l=n===`width`?`w`:`h`,u=wn(i,l)??wn(i,`size`);if(u!==null){let i=parseFloat(e?String(e.get(n)??``):t),a=Number.isFinite(i)&&Math.abs(i-u)<=u*.3;if(a||!Number.isFinite(i))return{kind:`cells`,value:Tn(a?i:u,n,o,r)}}if(e){let t=e.get(n);if(t==null)return;let i=t.toString().trim();if(i===`auto`)return{kind:`auto`};let a=An(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:Qe(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:Ze(parseFloat(i)/.25)};let s=Cn(i);if(s!==null)return{kind:`cells`,value:Tn(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=An(d);if(e)return e;if(d.endsWith(`%`))return{kind:`percent`,value:parseFloat(d)};let t=parseFloat(d);if(Number.isFinite(t))return{kind:`cells`,value:Qe(t,r)}}let f=`(?:^|[\\s:.[!])(?:${l}|size)-`;if(RegExp(`${f}min\\b`).test(i))return{kind:`min-content`};if(RegExp(`${f}max\\b`).test(i))return{kind:`max-content`};if(RegExp(`${f}fit\\b`).test(i))return{kind:`fit-content`};let p=RegExp(`${f}(\\d+)/(\\d+)(?![\\w./])`).exec(i);if(p)return{kind:`percent`,value:100*Number(p[1])/Number(p[2])};if(RegExp(`${f}full(?![\\w-])`).test(i))return{kind:`percent`,value:100};let m=RegExp(`${f}\\[(\\d+(?:\\.\\d+)?)%\\]`).exec(i);if(m)return{kind:`percent`,value:Number(m[1])};let h=RegExp(`${f}(\\d+(?:\\.\\d+)?)(?![\\w-/])`).exec(i);if(h)return{kind:`cells`,value:Ze(Number(h[1]))};if(!new RegExp(f).test(i)||t===`auto`)return{kind:`auto`};if(t.endsWith(`%`))return{kind:`percent`,value:parseFloat(t)};let g=parseFloat(t);if(Number.isFinite(g))return{kind:`cells`,value:Qe(g,r)}}function Cn(e){let t=/^(-?[\d.]+)((?:[dsl]?v)(?:h|w|min|max)|vi|vb)$/.exec(e.trim());if(!t||typeof window>`u`)return null;let n=parseFloat(t[1]);if(!Number.isFinite(n))return null;let r=t[2],i=window.innerHeight,a=window.innerWidth,o=r.endsWith(`h`)?i:r.endsWith(`min`)?Math.min(a,i):r.endsWith(`max`)?Math.max(a,i):r===`vb`?i:a;return n/100*o}function wn(e,t){if(typeof window>`u`)return null;let n=RegExp(`(?:^|[\\s:.[!])${t}-(screen|[dsl]v[hw])(?![\\w-])`).exec(e);if(n){let e=n[1];return e===`screen`?t.includes(`h`)?window.innerHeight:window.innerWidth:e.endsWith(`h`)?window.innerHeight:window.innerWidth}let r=RegExp(`(?:^|[\\s:.[!])${t}-\\[(-?[\\d.]+(?:[dsl]?v(?:h|w|min|max)|vi|vb))\\]`).exec(e);return r?Cn(r[1]):null}function Tn(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):Qe(e,r)}function En(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=a.getPropertyValue(t).trim(),u=l.startsWith(`calc(`);if(!u&&!r.includes(`-[calc(`))return;let d=RegExp(`(?:^|[\\s:.[!])${i}-\\[(calc\\([^\\]]*\\))\\]`).exec(r),f=u?l:d?.[1]?.replaceAll(`_`,` `);if(!f)return;let p=Dn(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,Ze(p.cells));if(u)return m;let h=(e?String(e.get(t)??``):n).trim(),g=parseFloat(h);return(Number.isFinite(g)?Math.abs(g-p.px)<=Math.abs(p.px)*.3:h===``)?m:void 0}function Dn(e,t,n,r){let i=e.match(/--spacing\(\s*-?[\d.]+\s*\)|calc|[\d.]+[a-z%]*|[()+\-*/]/g);if(!i||i.join(``).replace(/\s+/g,``)!==e.replace(/\s+/g,``))return null;let a=0,o=()=>i[a],s=()=>i[a++],c=(e,t)=>({cells:e,px:t,percent:0,unitless:!1}),l=e=>{let i=/^--spacing\(\s*(-?[\d.]+)\s*\)$/.exec(e);if(i){let e=parseFloat(i[1]);return c(e,e*r/4)}let a=/^([\d.]+)([a-z%]*)$/.exec(e);if(!a)return null;let o=parseFloat(a[1]),s=a[2];if(!Number.isFinite(o))return null;if(s===``)return{cells:o,px:o,percent:0,unitless:!0};if(s===`%`)return{cells:0,px:0,percent:o,unitless:!1};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=Cn(e);return l===null?null:c(Tn(l,t,n,r),l)},u=(e,t,n)=>{if(e===`+`||e===`-`){if(t.unitless!==n.unitless)return null;let r=e===`+`?1:-1;return{cells:t.cells+r*n.cells,px:t.px+r*n.px,percent:t.percent+r*n.percent,unitless:t.unitless}}if(e===`*`){if(!t.unitless&&!n.unitless)return null;let[e,r]=t.unitless?[t,n]:[n,t];return{cells:r.cells*e.cells,px:r.px*e.px,percent:r.percent*e.cells,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,percent:t.percent/n.cells,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{...e,cells:-e.cells,px:-e.px,percent:-e.percent}}return e===`calc`?s()===`(`?f():null:e===`(`?f():l(e)},f=()=>{let e=m();return s()===`)`?e:null},p=()=>{let e=d();for(;e&&(o()===`*`||o()===`/`);){let t=s(),n=d();e=n?u(t,e,n):null}return e},m=()=>{let e=p();for(;e&&(o()===`+`||o()===`-`);){let t=s(),n=p();e=n?u(t,e,n):null}return e},h=m();return a===i.length?h:null}function On(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Cn(a.getPropertyValue(t))??Cn(e?.get(t)?.toString().trim()??``);if(l!==null)return Tn(l,c,o,s);let u=wn(r,i);if(u===null)return;let d=(e?String(e.get(t)??``):n).trim(),f=parseFloat(d),p=Number.isFinite(f)&&Math.abs(f-u)<=u*.3;if(p||d===``)return Tn(p?f:u,c,o,s)}function kn(e,t){if(!e||e===`auto`||e===`content`)return;let n=An(e);if(n)return n;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:void 0}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:Qe(r,t)}:void 0}function An(e){if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};if(e===`fit-content`)return{kind:`fit-content`}}function jn(e,t){let n=e.trim();if(!n||n===`none`)return{kind:`none`};if(n===`subgrid`||n.startsWith(`subgrid `))return{kind:`subgrid`};let r=[],i=[],a=[],o=e=>{i.push(a),a=[],r.push(e)},s;for(let e of zn(n)){let n=Nn(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=Mn(i[2].trim(),t);if(e.tracks.length===0)continue;let n=i[1];if(n===`auto-fill`||n===`auto-fit`){s||(s={index:r.length,tracks:e.tracks,mode:n},e.lineNames.some(e=>e.length>0)&&(s.lineNames=e.lineNames),a.length>0&&(s.leadingNames=a),a=[]);continue}let c=Math.max(0,Math.floor(Number(n)||0));for(let t=0;t<c;t++){a.push(...e.lineNames[0]);for(let t=0;t<e.tracks.length;t++)o(e.tracks[t]),a.push(...e.lineNames[t+1])}continue}o(In(e,t))}if(i.push(a),r.length===0&&!s)return{kind:`none`};let c={kind:`tracks`,tracks:r};return i.some(e=>e.length>0)&&(c.lineNames=i),s&&(c.autoRepeat=s),c}function Mn(e,t){let n=[],r=[],i=[];for(let a of zn(e)){let e=Nn(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(In(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Nn(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Pn(e){let t=[];for(let n of e.matchAll(/"([^"]*)"|'([^']*)'/g)){let e=(n[1]??n[2]??``).trim().split(/\s+/).filter(e=>e!==``);if(e.length===0)return null;t.push(e)}if(t.length===0)return null;let n=t[0].length;if(t.some(e=>e.length!==n))return null;let r=new Map;t.forEach((e,t)=>{e.forEach((e,n)=>{if(/^\.+$/.test(e))return;let i=r.get(e);i?(i.colStart=Math.min(i.colStart,n),i.colEnd=Math.max(i.colEnd,n+1),i.rowStart=Math.min(i.rowStart,t),i.rowEnd=Math.max(i.rowEnd,t+1)):r.set(e,{colStart:n,colEnd:n+1,rowStart:t,rowEnd:t+1})})});for(let[e,n]of r)for(let r=n.rowStart;r<n.rowEnd;r++)for(let i=n.colStart;i<n.colEnd;i++)if(t[r][i]!==e)return null;return{columns:n,rows:t.length,areas:r}}function Fn(e,t){let n=zn(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>In(e,t));return n.length>0?n:[ct()]}function In(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Rn(n[1]).map(e=>e.trim());return e.length===2?{min:Ln(e[0],t),max:Ln(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Ln(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Ln(e,t){if(e===`auto`||e.startsWith(`fit-content`))return{kind:`auto`};if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};let n=e.match(/^(min|max)\((.*)\)$/s);if(n){let e=Rn(n[2]).map(e=>Ln(e.trim(),t)),r=e.every(e=>e.kind===`cells`||e.kind===`percent`||e.kind===`math`);return e.length>0&&r?{kind:`math`,fn:n[1],args:e}:{kind:`auto`}}if(e.endsWith(`fr`)){let t=parseFloat(e);return Number.isFinite(t)&&t>=0?{kind:`fr`,value:t}:{kind:`auto`}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:{kind:`auto`}}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:e.endsWith(`rem`)?Ze(r/.25):Qe(r,t)}:{kind:`auto`}}function Rn(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.filter(e=>e.trim()!==``)}function zn(e){let t=[],n=0,r=-1;for(let i=0;i<e.length;i++){let a=e[i];a===`(`||a===`[`?n++:(a===`)`||a===`]`)&&n--,/\s/.test(a)&&n===0?(r!==-1&&t.push(e.slice(r,i)),r=-1):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t}function Bn(e){let t=e.trim();if(!t||t===`auto`)return{kind:`auto`};let n=!1,r,i;for(let e of t.split(/\s+/))e===`span`?n=!0:/^-?\d+$/.test(e)?r=Number(e):i=e;if(n){let e=r??1;return e<1?{kind:`auto`}:i===void 0?{kind:`span`,value:e}:{kind:`span`,value:e,name:i}}return i===void 0?r!==void 0&&r!==0?{kind:`line`,value:r}:{kind:`auto`}:r===0?{kind:`auto`}:r===void 0?{kind:`name`,name:i}:{kind:`name`,name:i,nth:r}}function Vn(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Hn(e,t){return{top:hn(e.getPropertyValue(`padding-top`),t),right:hn(e.getPropertyValue(`padding-right`),t),bottom:hn(e.getPropertyValue(`padding-bottom`),t),left:hn(e.getPropertyValue(`padding-left`),t)}}function Un(e,t){let n=st(),r={top:1,right:1,bottom:1,left:1},i={top:`solid`,right:`solid`,bottom:`solid`,left:`solid`};for(let a of[`top`,`right`,`bottom`,`left`]){let o=e.getPropertyValue(`border-${a}-style`),s=o===`none`||o===`hidden`?0:parseFloat(e.getPropertyValue(`border-${a}-width`))||0;i[a]=pn(o),!(s<=0)&&(r[a]=s,n[a]=w(i[a],s,t).cells)}return{border:n,borderWeight:r,borderStyle:i}}var Wn=new Set(`class.style.id.role.hidden.open.popover.popovertarget.commandfor.inert.dir.lang.contenteditable.disabled.checked.selected.readonly.required.min.max.step.pattern.minlength.maxlength.multiple.placeholder.type.value.size.rows.cols.wrap.href.src.alt.width.height.label.start.reversed.colspan.rowspan.span.align.valign.nowrap.border.cellpadding.cellspacing.bgcolor.color.aria-busy.aria-checked.aria-current.aria-disabled.aria-expanded.aria-hidden.aria-invalid.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort`.split(`.`));function Gn(e,t){return t.startsWith(`data-`)?!t.startsWith(`data-mw-`):Wn.has(t)||ae(e.tagName)!==void 0}function Kn(e,t,n){let r=e.border;if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return;let a=Math.max(r.top,r.right,r.bottom,r.left);for(let o=0;o<a;o++){let a={top:o<r.top,right:o<r.right,bottom:o<r.bottom,left:o<r.left},s={top:Math.min(o,r.top),right:Math.min(o,r.right),bottom:Math.min(o,r.bottom),left:Math.min(o,r.left)},c={x:t.x+s.left,y:t.y+s.top,width:t.width-s.left-s.right,height:t.height-s.top-s.bottom};if(c.width<=0||c.height<=0)continue;let l={tl:Math.max(0,e.borderRadius.tl-o),tr:Math.max(0,e.borderRadius.tr-o),bl:Math.max(0,e.borderRadius.bl-o),br:Math.max(0,e.borderRadius.br-o)};Jn(n,e.borderStyle,e.borderWeight,e.borderColor,l,c,a,i(e.glyphSet))}}function qn(e,t,n,r){let a=e.boxShadow.filter(e=>e.inset===n);if(a.length===0)return;let o=k(i(e.glyphSet)),s=o.length-1,{border:c}=e,l={x:t.x+c.left,y:t.y+c.top,width:t.width-c.left-c.right,height:t.height-c.top-c.bottom};for(let e of a.slice().reverse()){let i=Xe(e.color);if(i===0)continue;let a=Math.round((1-Math.sqrt(i))*s),c=i<1?`color-mix(in srgb, ${e.color} ${Math.round(i*100)}%, var(--mw-fg, canvastext))`:e.color,u=Math.max(0,Math.round(e.blur/2)),d=Array.from({length:u+1},(e,t)=>{if(t===u)return{glyph:o[a],color:c};let n=a+Math.round((u-t)*(s-a)/u),r=Math.round(100*(t+1)/(u+1));return{glyph:o[n],color:`color-mix(in srgb, ${c} ${r}%, transparent)`}});if(n){let t={x0:l.x+e.x+e.spread,y0:l.y+e.y+e.spread,x1:l.x+e.x+l.width-e.spread,y1:l.y+e.y+l.height-e.spread};for(let e=l.y;e<l.y+l.height;e++)for(let n=l.x;n<l.x+l.width;n++){let i=Math.min(n-t.x0,t.x1-1-n,e-t.y0,t.y1-1-e);if(i>=u)continue;let a=i<0?u:u-1-i;r.push({...d[a],x:n,y:e,length:1})}continue}let f=e.spread+u,p=t.x+e.x-f,m=t.y+e.y-f,h=t.x+e.x+t.width+f,g=t.y+e.y+t.height+f;for(let e=m;e<g;e++)for(let n=p;n<h;n++){if(n>=t.x&&n<t.x+t.width&&e>=t.y&&e<t.y+t.height)continue;let i=Math.min(n-p,h-1-n,e-m,g-1-e,u);r.push({...d[i],x:n,y:e,length:1})}}}function Jn(e,t,n,r,i,a,o,s){let l=w(t.top,n.top,s).roles,u=w(t.right,n.right,s).roles,d=w(t.bottom,n.bottom,s).roles,f=w(t.left,n.left,s).roles,p=(e,r,a)=>{let o=t[e]===t[r]?t[e]:`solid`,l=Math.max(T(t[e],n[e],s),T(t[r],n[r],s));return c(o,a,i[a],w(o,l,s),s)},{x:m,y:h,width:g,height:_}=a,v=g>=2&&_>=2,y=m+ +!!o.left,b=m+g-+!!o.right,x=h+ +!!o.top,S=h+_-+!!o.bottom;if(o.top&&b>y&&e.push({glyph:l.h,x:y,y:h,length:b-y,color:r.top}),o.bottom&&_>+!!o.top&&b>y&&e.push({glyph:d.h,x:y,y:h+_-1,length:b-y,color:r.bottom}),o.left)for(let t=x;t<S;t++)e.push({glyph:f.v,x:m,y:t,length:1,color:r.left});if(o.right&&g>+!!o.left)for(let t=x;t<S;t++)e.push({glyph:u.v,x:m+g-1,y:t,length:1,color:r.right});v&&(o.top&&o.left&&e.push({glyph:p(`top`,`left`,`tl`),x:m,y:h,length:1,color:r.top}),o.top&&o.right&&e.push({glyph:p(`top`,`right`,`tr`),x:m+g-1,y:h,length:1,color:r.top}),o.bottom&&o.left&&e.push({glyph:p(`bottom`,`left`,`bl`),x:m,y:h+_-1,length:1,color:r.bottom}),o.bottom&&o.right&&e.push({glyph:p(`bottom`,`right`,`br`),x:m+g-1,y:h+_-1,length:1,color:r.bottom}))}function Yn(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function Xn(e){if(e.children.length<=1)return e.children;let t=null,n=null,r=null,i=null,a=null;for(let o of e.children)Yn(o,e)?(o.style.zIndex??0)<0?(t??=[]).push(o):(a??=[]).push(o):o.inlineBox?(i??=[]).push(o):o.style.float===`none`?(n??=[]).push(o):(r??=[]).push(o);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),a&&a.length>1&&a.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i&&!a?n:!t&&!n&&!r&&i&&!a?i:!t&&!n&&!r&&!i&&a?a:[...t??[],...n??[],...r??[],...i??[],...a??[]]}function Zn(e,t,n,r){return w(e,t,r).roles[n]}function Qn(e,t,n,r,i,a,o){let s=l((n?8:0)|(r?4:0)|(i?2:0)|!!a);return s?w(e,t,o).roles[s]:` `}function $n(e,t,n,r){let i=e.map(e=>e.spanned?!1:n===`between`?e.beforeOccupied&&e.afterOccupied:n!==`around`||e.beforeOccupied||e.afterOccupied),a=[];for(let n=0;n<e.length;n++)if(a.push({start:e[n].start,end:e[n].end,covered:i[n]}),n+1<e.length){let r=t===`intersection`?!1:t===`none`?i[n]||i[n+1]:i[n]&&i[n+1];a.push({start:e[n].end,end:e[n+1].start,covered:r})}let o=[];for(let e of a){if(!e.covered)continue;let t=o[o.length-1];t&&t.end===e.start?t.end=e.end:o.push({start:e.start,end:e.end})}if(r===`overlap-join`){let t=new Map,n=new Map;for(let r=0;r+1<e.length;r++){let i=e[r].end,a=e[r+1].start-i;a<=0||(n.set(i,i+Math.ceil(a/2)),t.set(e[r+1].start,i+Math.floor(a/2)))}return o.map(e=>{let r=t.get(e.start),i=n.get(e.end);return{start:r??e.start,end:i??e.end,startHalf:r!==void 0,endHalf:i!==void 0}})}return o.map(e=>({start:e.start+r,end:e.end-r})).filter(e=>e.end>e.start)}function er(e){let t=[],n=e.border.left+e.padding.left,r=e.border.top+e.padding.top,i=(e,t)=>({line:t.bandStart+Math.floor((t.bandSize-e.width)/2),start:t.start,end:t.end,startHalf:t.startHalf===!0,endHalf:t.endHalf===!0}),a=e.ruleX?e.vertical.map(t=>i(e.ruleX,t)):[],o=e.ruleY?e.horizontal.map(t=>i(e.ruleY,t)):[],s=e.ruleX?.width??0,c=e.ruleY?.width??0,l=(e,t,n,r)=>e.some(e=>n>=e.line&&n<e.line+t&&(e.start<r&&e.end>r||e.end===r&&!e.endHalf||e.start===r&&!e.startHalf)),u=(e,t)=>o.some(n=>t>=n.line&&t<n.line+c&&e>=n.start&&e<n.end);if(e.ruleX){let i=Zn(e.ruleX.style,e.ruleX.weight,`v`,e.glyphs);for(let o of a){for(let a=0;a<s;a++)for(let s=o.start;s<o.end;s++)u(o.line+a,s)||t.push({glyph:i,x:n+o.line+a,y:r+s,length:1,color:e.ruleX.color});tr(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`,u=Math.max(e.ruleY.weight,e.ruleX?.weight??0);for(let d of o){for(let f=0;f<c;f++){let p=d.line+f;for(let f=d.start;f<d.end;f++){let d=l(a,s,f,p),m=l(a,s,f,p+1);t.push({glyph:d||m?Qn(i?`double`:`solid`,u,d,m,l(o,c,p,f),l(o,c,p,f+1),e.glyphs):Zn(e.ruleY.style,e.ruleY.weight,`h`,e.glyphs),x:n+f,y:r+p,length:1,color:e.ruleY.color})}}tr(e,t,`y`,d.line,d.start,d.end)}}return t}function tr(e,t,n,r,i,a){let o=n===`x`?e.ruleX:e.ruleY,s=e.border.left+e.padding.left,c=e.border.top+e.padding.top,l=s+e.contentWidth+e.padding.right+e.border.right,u=c+e.contentHeight+e.padding.bottom+e.border.bottom,d=(n,r,i,a,s,c,l)=>{let u=o.style===`double`&&e.borderStyle[i]===`double`?`double`:`solid`,d=Math.max(o.weight,T(e.borderStyle[i],e.borderWeight[i],e.glyphs));t.push({glyph:Qn(u,d,a,s,c,l,e.glyphs),x:n,y:r,length:1,color:e.borderColor[i]})};if(n===`x`)for(let t=0;t<o.width;t++){let n=s+r+t;i<=0&&e.padding.top===0&&e.border.top>0&&d(n,e.border.top-1,`top`,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,`bottom`,!0,!1,!0,!0)}else for(let t=0;t<o.width;t++){let n=c+r+t;i<=0&&e.padding.left===0&&e.border.left>0&&d(e.border.left-1,n,`left`,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,`right`,!0,!0,!0,!1)}}var nr={double:3,solid:2,dashed:1,dotted:0},rr=8,ir=4,ar=2,or=1,sr=(e,t)=>e!=null&&t<e.width,cr=(e,t)=>Math.max(1,e?.width??0,t?.width??0);function lr(e){let{vLines:t,hLines:n,widths:r,rowHeights:i,colX:a,rowY:o}=e,s=r.length,c=i.length;return{lineX:e=>e<s?a[e]-t[e]:a[s-1]+r[s-1],lineY:e=>e<c?o[e]-n[e]:o[c-1]+i[c-1]}}function ur(e,t,{lineX:n,lineY:r}){let{vLines:i,hLines:a,widths:o,cells:s}=t,c=o.length,l=new Map,u=e=>{l.set(e,l.size);for(let t of Xn(e))u(t)};u(e);let d=e=>e?l.get(e)??-1:-1,f=new Map,p=new Set;for(let e of s)for(let o of e){if(!o)continue;let{shift:e,owner:s}=pr(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=fr(t,s),g=s.style.tableRole!==`cell`,_={x0:t.contentLeft+e.x+n(g?0:m),x1:t.contentLeft+e.x+(g?n(c)+i[c]:n(h+1)+i[h+1]),rank:d(s),shift:e},v=t.contentTop+e.y+r(l),y=t.contentTop+e.y+r(u+1)+a[u+1];for(let e=v;e<y;e++){let t=f.get(e);t?t.push(_):f.set(e,[_])}}return{rankOf:d,coveredAt:(e,t,n,r)=>f.get(t)?.some(t=>t.rank>n&&(t.shift.x!==r.x||t.shift.y!==r.y)&&e>=t.x0&&e<t.x1)??!1}}function dr(e,t,n){let{vLines:r,hLines:i,vSegments:a,hSegments:o,widths:s,rowHeights:c,colX:l,rowY:u,cells:d,set:f}=t,p=s.length,m=c.length,h=lr(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=ur(e,t,h),b=new Map,x=0,S=(e,r,i,a,o,s,{shift:c,owners:l,rank:u})=>{if(e+=t.contentLeft,r+=t.contentTop,!n(e,r))return;if(y(e,r,u,c)){let t=(e,t)=>n(e,t)&&!y(e,t,u,c);if(t(e,r-1)||(i&=-9),t(e,r+1)||(i&=-5),t(e-1,r)||(i&=-3),t(e+1,r)||(i&=-2),i===0)return}let d=r*65536+e+32768,f=b.get(d);if(!f){b.set(d,{x:e,y:r,mask:i,allDouble:a.style===`double`,dominant:a,only:s?{id:o,axis:s}:null,owners:new Set(l)});return}f.mask|=i,f.allDouble&&=a.style===`double`,(a.weight>f.dominant.weight||a.weight===f.dominant.weight&&nr[a.style]>nr[f.dominant.style])&&(f.dominant=a),(!s||f.only?.id!==o)&&(f.only=null);for(let e of l)f.owners.add(e)},C=e=>{let t=[];for(let n of e){if(!n)continue;let{shift:e,owner:r}=pr(n),i=t.find(t=>t.shift.x===e.x&&t.shift.y===e.y);i?i.owners.includes(r)||(i.owners.push(r),i.rank=Math.max(i.rank,v(r))):t.push({shift:e,owners:[r],rank:v(r)})}return t};for(let e=0;e<=p;e++)for(let t=0;t<m;t++){let n=a[e][t];if(!n)continue;let r=x++,s=a[e][t-1],l=a[e][t+1],f=o[t],p=o[t+1],m=i[t],h=i[t+1];for(let i of C([d[t][e-1],d[t][e]])){let{shift:a}=i;for(let o=0;o<n.width;o++){let d=g(e)+o+a.x;for(let e=u[t];e<u[t]+c[t];e++)S(d,e+a.y,12,n,r,`v`,i);let v=sr(s,o)||f[e-1]||f[e]?m:Math.min(m,1),y=_(t)+m-1+a.y;for(let e=0;e<v;e++)S(d,y-e,ir|(e+1<v?rr:0),n,r,null,i);let b=sr(l,o)?h:Math.min(h,cr(p[e-1],p[e])),x=_(t+1)+a.y;for(let e=0;e<b;e++)S(d,x+e,rr|(e+1<b?ir:0),n,r,null,i)}}}for(let e=0;e<=m;e++)for(let t=0;t<p;t++){let n=o[e][t];if(!n)continue;let i=x++,c=o[e][t-1],u=o[e][t+1],f=a[t],p=a[t+1],m=r[t],h=r[t+1];for(let r of C([d[e-1]?.[t],d[e]?.[t]])){let{shift:a}=r;for(let o=0;o<n.width;o++){let d=_(e)+o+a.y;for(let e=l[t];e<l[t]+s[t];e++)S(e+a.x,d,3,n,i,`h`,r);let v=sr(c,o)||f[e-1]||f[e]?m:Math.min(m,1),y=g(t)+m-1+a.x;for(let e=0;e<v;e++)S(y-e,d,or|(e+1<v?ar:0),n,i,null,r);let b=sr(u,o)?h:Math.min(h,cr(p[e-1],p[e])),x=g(t+1)+a.x;for(let e=0;e<b;e++)S(x+e,d,ar|(e+1<b?or:0),n,i,null,r)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?Zn(e.dominant.style,e.dominant.weight,e.only.axis,f):Qn(e.allDouble?`double`:`solid`,e.dominant.weight,(e.mask&rr)!==0,(e.mask&ir)!==0,(e.mask&ar)!==0,(e.mask&or)!==0,f),x:e.x,y:e.y,length:1,color:e.dominant.color};for(let n of e.owners)if(n===null)w.push(t);else{let e=T.get(n);e?e.push(t):T.set(n,[t])}}return{runs:w,parts:T}}function fr(e,t){let n=1/0,r=-1,i=1/0,a=-1;return e.cells.forEach((e,o)=>e.forEach((e,s)=>{!e||e.node!==t&&e.row!==t&&e.group!==t||(n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,s),a=Math.max(a,s))})),r<0?null:{r0:n,r1:r,c0:i,c1:a}}function pr(e){let t=[e.node,e.row,e.group],n={x:0,y:0},r=null;for(let e of t)e?.stickyShift&&(n.x+=e.stickyShift.x,n.y+=e.stickyShift.y,r??=e);return{shift:n,owner:r}}var mr={width:1,height:2},hr={r:0,g:0,b:0,a:0},gr=new WeakMap;function _r(e,t,n,r,i){let a=`${t}|${n}|${r}|${i.width}|${i.height}`,o=gr.get(e);if(o?.key===a)return o.rows;let s=t===void 0?null:Ve(t),c={width:n*i.width,height:r*i.height,cell:i},l=e.map(e=>vr(e,c)),u=[];for(let e=0;e<r;e++){let r=[];for(let a=0;a<n;a++){let n=(a+.5)*i.width,o=(e+.5)*i.height,c=s??hr;for(let e=l.length-1;e>=0;e--)c=Je(Tr(l[e],n,o),c);r.push(c.a===0&&s===null?t??null:Ye(c))}u.push(r)}return gr.set(e,{key:a,rows:u}),u}function vr(e,t){let n=t.cell.width;if(e.kind===`linear`){let r=Cr(e,t);return{gradient:e,stops:xr(e,n/r.length),kind:`linear`,...r,cx:t.width/2,cy:t.height/2}}if(e.kind===`radial`){let r=wr(e,t);return{gradient:e,stops:xr(e,n/r.rx),kind:`radial`,...r}}let{x:r,y:i}=br(e.at,t);return{gradient:e,stops:xr(e,0),kind:`conic`,cx:r,cy:i,from:e.from}}var yr=(e,t,n)=>`fraction`in e?e.fraction*t:e.cells*n.cell.width,br=({x:e,y:t},n)=>({x:yr(e,n.width,n),y:yr(t,n.height,n)});function xr(e,t){let n=e=>`fraction`in e?e.fraction:e.cells*t,r=e.stops,i=r.map(e=>e.position===null?null:n(e.position));i[0]===null&&(i[0]=0),i[i.length-1]===null&&(i[i.length-1]=1);for(let e=1;e<i.length;e++){if(i[e]!==null){i[e]=Math.max(i[e],i[e-1]);continue}let t=e+1;for(;i[t]===null;)t++;let n=i[e-1],r=(Math.max(i[t],n)-n)/(t-e+1);for(let a=e;a<t;a++)i[a]=n+r*(a-e+1)}let a=r.map(t=>Ge(t.color,e.space)),o=e=>({c:[...e.c],a:e.a});return r.map((t,r)=>{let s=a[r+1],c=null;return s&&(c={from:o(a[r]),to:o(s)},Ke(c.from,c.to,e.space,e.hue)),{color:a[r],at:i[r],hint:t.hint===void 0?null:n(t.hint),pair:c}})}function Sr(e,t,n){let{space:r}=e,i=e=>qe(e.color,e.color,0,r),a=t[0],o=t[t.length-1];if(e.repeating&&o.at>a.at){let e=o.at-a.at;n=a.at+((n-a.at)%e+e)%e}if(n<=a.at)return i(a);if(n>=o.at)return i(o);let s=0;for(;t[s+1].at<n;)s++;let c=t[s],l=t[s+1];if(l.at===c.at)return i(l);let u=(n-c.at)/(l.at-c.at);if(c.hint!==null){let e=Math.min(.999,Math.max(.001,(c.hint-c.at)/(l.at-c.at)));u**=Math.log(.5)/Math.log(e)}return qe(c.pair.from,c.pair.to,u,r)}function Cr(e,t){let{direction:n}=e,r;if(`angle`in n)r=n.angle;else{let{toX:e,toY:i}=n,a=Math.atan2(t.height,t.width)*180/Math.PI;r=e===0?i<0?0:180:i===0?e>0?90:270:e>0?i<0?a:180-a:i<0?360-a:180+a}let i=r*Math.PI/180,a=Math.sin(i),o=-Math.cos(i);return{dx:a,dy:o,length:Math.abs(t.width*a)+Math.abs(t.height*o)}}function wr(e,t){let{x:n,y:r}=br(e.at,t),{size:i}=e;if(typeof i==`object`)return{cx:n,cy:r,rx:yr(i.rx,t.width,t),ry:yr(i.ry,t.height,t)};let a=i.startsWith(`closest`)?Math.min:Math.max,o=a(n,t.width-n),s=a(r,t.height-r);if(e.shape===`circle`&&(o=s=a(o,s)),i.endsWith(`corner`)){let i=a(n,t.width-n),c=a(r,t.height-r),l=e.shape===`circle`?Math.hypot(i,c)/o:Math.hypot(i/(o||1),c/(s||1));o*=l,s*=l}return{cx:n,cy:r,rx:o||1,ry:s||1}}function Tr(e,t,n){let r;if(e.kind===`linear`){let{dx:i,dy:a,length:o,cx:s,cy:c}=e;r=o===0?0:((t-s)*i+(n-c)*a)/o+.5}else if(e.kind===`radial`){let{cx:i,cy:a,rx:o,ry:s}=e;r=Math.hypot((t-i)/o,(n-a)/s)}else r=((Math.atan2(t-e.cx,-(n-e.cy))*180/Math.PI-e.from)%360+360)%360/360;return Sr(e.gradient,e.stops,r)}var Er=[[4352,4447],[9001,9002],[11904,11929],[11931,12019],[12032,12245],[12272,12287],[12288,12350],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12773],[12783,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101631,101640],[110576,110590],[110592,110882],[110898,110898],[110928,110930],[110933,110933],[110948,110951],[110960,111355],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[131072,196605],[196608,262141]];function Dr(e){let t=0,n=Er.length;for(;t<n;){let r=t+n>>1,[i,a]=Er[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Or=/^\p{Extended_Pictographic}/u,kr=/^\p{Emoji_Presentation}/u,Ar=/^\p{Regional_Indicator}/u,jr=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,Mr=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,Nr=`︎`,Pr=`️`,Fr=``,Ir=`⃣`;function G(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Or.test(e)?e.includes(Nr)?1:e.includes(Pr)||e.includes(Fr)||kr.test(e)?2:1:e.includes(Ir)?2:Ar.test(e)?jr.test(e)?2:1:Dr(t)||kr.test(e)?2:+!Mr.test(e)}var Lr=/^[\x00-\x7f]*$/,Rr;function zr(e){return Lr.test(e)?e.split(``):(Rr===void 0&&(Rr=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Rr?Array.from(Rr.segment(e),e=>e.segment):Array.from(e))}function Br(e,t){let n=G(e);return n===0?0:n+t}function Vr(e,t=0){let n=[];for(let r of zr(e)){n.push(Br(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function Hr(e){let t=0;for(let n of zr(e))t+=G(n);return t}function Ur(e,t,n={}){return Kr(e,t,n).length}function Wr(e,t){return t.endsWith(`
|
|
953
|
-
`)&&e.pop(),e}function
|
|
954
|
-
`)&&(t.push({start:n,end:r}),n=r+1);return
|
|
955
|
-
`)&&(ti(e,i,o,t,n,a,r),a=0,i=o+1);return Wr(r,e)}function qr(e,t,n){if(!n)return t-e;let r=0;for(let i=e;i<t;i++)r+=n[i]??1;return r}function Jr(e,t,n,r,i=0){return n<=t?0:qr(t,n,r)-Math.min(i,Yr(e,n-1,r))}function Yr(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,G(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function Xr(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of ei(e,0,e.length))for(let a of Qr(e,t.start,t.end))i=Math.max(i,Jr(e,a.start,a.end,n,r));return i}function Zr(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Qr(e,t,n){let r=[],i=t;for(let a=t;a<n;a++){if(e[a]===``){a>i&&r.push({start:i,end:a}),r.push({start:a,end:a+1}),i=a+1;continue}if(e[a]!==`-`)continue;let o=a===t;for(;a+1<n&&e[a+1]===`-`;)a++;let s=a+1;!o&&s<n&&(r.push({start:i,end:s}),i=s)}return r.push({start:i,end:n}),r}var $r=/[ \t\r\n\f]/;function ei(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&$r.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!$r.test(e[i]);)i++;r.push({start:t,end:i})}return r}function ti(e,t,n,r,{advances:i,tracking:a=0,openLine:o},s,c){let l=-1,u=r,d=()=>(l!==c.length&&(l=c.length,u=o?.(l,c)??r),u),f=ei(e,t,n);if(f.length===0){d(),c.push({start:t,end:t});return}if(r<=0){d(),c.push({start:f[0].start,end:f[f.length-1].end});return}let p=null,m=0,h=Math.max(0,s),g=()=>d()-h;for(let t of f){let n=!1;for(let r of Qr(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+qr(s,o,i),u=Math.min(a,Yr(e,o-1,i));if(p!==null&&l-u<=g())p.end=o,m=l;else{for(p!==null&&(c.push(p),h=0);;){let n=t;for(;n<o&&Jr(e,t,n+1,i,a)<=g();)n++;if(n===o||n===t)break;c.push({start:t,end:n}),h=0,t=n}p={start:t,end:o},m=qr(t,o,i)}n=!0}}p!==null&&c.push(p)}function ni(e,t){let n=e.row.map(e=>e.node.localRect).sort((e,t)=>e.x-t.x),r=[];for(let e=1;e<n.length;e++){let i=n[e-1].x+n[e-1].width-t,a=n[e].x-t;a>i&&r.push({start:i,end:a})}return r}function ri(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>ni(e,r)).sort((e,t)=>e.start-t.start),o=(e,t)=>({start:e,end:t,spanned:!1,beforeOccupied:!0,afterOccupied:!0}),s=[],c=0;for(let e of a)e.start>c&&s.push(o(c,e.start)),c=Math.max(c,e.end);return c<i&&s.push(o(c,i)),$n(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function ii(e,t){return typeof t!=`number`||t<=0?e:e.map(e=>({...e,start:e.start+t,end:e.end-t})).filter(e=>e.end>e.start)}function ai(e,t,n,r,a,o,s){let c=yo(e.style,`x`,t),l=yo(e.style,`y`,n),u=hi(e).map(e=>{let n=xo(e.style.margin,t);return{node:e,base:mi(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:Math.max(yi(e,t,s),vi(e,`x`,t)),max:Co(e.style.maxWidth,t),margin:n}}),d=[];if(e.style.flexWrap===`wrap`){let n=[],r=0;for(let e of u){let i=Math.max(0,fo(e.base,e.min,e.max))+(e.margin.left??0)+(e.margin.right??0),a=n.length===0?i:r+c+i;n.length>0&&a>t&&(d.push(n),n=[],r=0),n.push(e),r=n.length===1?i:r+c+i}n.length>0&&d.push(n),e.style.wrapReverse&&d.reverse()}else d.push(u);let f=a.left+o.left,p=a.top+o.top,m=d.map(e=>{let n=c*Math.max(0,e.length-1),i=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-i),o=e.some(e=>e.margin.left===null||e.margin.right===null),l=e.reduce((e,t)=>e+t.base,0),u=o&&l<=a?e.map(e=>Math.max(0,fo(e.base,e.min,e.max))):di(e,a);for(let n=0;n<e.length;n++)Y(e[n].node,t,r,0,0,`fill`,s,{width:u[n]});return{row:e,widths:u,availableForItems:a,height:e.reduce((e,t)=>Math.max(e,t.node.localRect.height),0)}}),h=m.map(e=>e.height),g=l*Math.max(0,m.length-1),_;if(e.style.flexWrap===`nowrap`)r===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=r,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=gi(e.style);if(i===`stretch`&&r>0){let e=K(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=ui(`start`,h,0)}else _=ui(i===`stretch`?`start`:i,h,r)}for(let i=0;i<m.length;i++){let{row:a,widths:o,availableForItems:u}=m[i],d=h[i],g=_[i]+i*l;for(let i=0;i<a.length;i++){let c=a[i].node,l=fi(c,e),u=a[i].margin,f=u.top===null||u.bottom===null,p=c.style.height!==void 0&&c.style.height.kind!==`auto`;if(l===`stretch`&&!f&&!p&&d!==c.localRect.height){let e=u.top??0,a=u.bottom??0,l=Number.isFinite(n)?n:void 0,f=fo(Math.max(0,d-e-a),Co(c.style.minHeight,l)??0,Co(c.style.maxHeight,l));if(f===c.localRect.height)continue;Y(c,t,r,0,0,`fill`,s,{width:o[i],height:f})}}let v=o.reduce((e,t)=>e+t,0),y=Math.max(0,u-v),b=a.reduce((e,t)=>e+ +(t.margin.left===null)+ +(t.margin.right===null),0),x=Array.from({length:a.length},()=>0),S=Array.from({length:a.length},()=>0),C;if(b>0&&y>0){let e=K(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<a.length;n++)a[n].margin.left===null&&(x[n]=e[t++]),a[n].margin.right===null&&(S[n]=e[t++]);C=ui(`start`,o,0)}else C=ui(_i(e.style),o,y);let w=0;for(let t=0;t<a.length;t++){let n=a[t],r=n.node,i=n.margin.left??0,o=n.margin.right??0;w+=x[t]+i,r.localRect={...r.localRect,x:f+C[t]+t*c+w,y:p+g+ci(r,e.style.alignItems,d,n.margin)},w+=S[t]+o}}let v=h.reduce((e,t)=>e+t,0)+g,y=Number.isFinite(n)?Math.max(n,v):v;if(e.style.ruleX||e.style.ruleY){let n=[],r=[];for(let i=0;i<m.length;i++){let a=_[i]+i*l;for(let e of ni(m[i],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[i]});if(i>0){let n=_[i-1]+(i-1)*l+h[i-1];if(a>n)for(let o of ri(e,m,i,f,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=er({glyphs:i(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:ii(n,e.style.ruleInset),horizontal:ii(r,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return oi(e,a,o,t,y),y}function oi(e,t,n,r,i){for(let a of e.children)J(a.style)&&(a.staticSlot={kind:`flex`,direction:e.style.flexDirection,originX:t.left+n.left,originY:t.top+n.top,innerWidth:r,innerHeight:i})}function si(e,t,n,r,a,o,s){let c=yo(e.style,`y`,n),l=hi(e).map(i=>{let a=xo(i.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=fi(i,e)===`stretch`;Y(i,o,r&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);let l=Number.isFinite(n)?n:void 0,u=i.style.flexBasis,d=u===void 0||u.kind===`auto`?i.unclampedHeight:u.kind===`cells`?u.value:u.kind===`percent`&&l!==void 0?$e(u.value,l):i.unclampedHeight,f=i.style.minHeight===`auto`?i.style.overflow.y===`visible`?i.localRect.height:0:void 0;return{node:i,base:d,grow:i.style.flexGrow,shrink:i.style.flexShrink,min:Math.max(f??Co(i.style.minHeight,l)??0,vi(i,`y`,o)),max:Co(i.style.maxHeight,l),margin:a}}),u=c*Math.max(0,l.length-1),d=l.reduce((e,t)=>e+(t.margin.top??0)+(t.margin.bottom??0),0),f=Number.isFinite(n),p=l.reduce((e,t)=>e+t.base,0),m=f?Math.max(0,n-u-d):p,h=r?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?di(l,h):l.map(e=>Math.max(0,fo(e.base,e.min,e.max)));for(let n=0;n<l.length;n++)if(_[n]!==l[n].node.localRect.height){let r=l[n],i=Math.max(0,t-(r.margin.left??0)-(r.margin.right??0)),a=fi(r.node,e)===`stretch`;Y(r.node,i,_[n],0,0,a?`fill`:`shrink`,s,{height:_[n]})}let v=_.reduce((e,t)=>e+t,0),y=Math.max(0,h-v),b=l.reduce((e,t)=>e+ +(t.margin.top===null)+ +(t.margin.bottom===null),0),x=Array.from({length:l.length},()=>0),S=Array.from({length:l.length},()=>0),C;if(b>0&&y>0){let e=K(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<l.length;n++)l[n].margin.top===null&&(x[n]=e[t++]),l[n].margin.bottom===null&&(S[n]=e[t++]);C=ui(`start`,_,0)}else C=ui(_i(e.style),_,y);let w=a.left+o.left,T=a.top+o.top,E=0;for(let n=0;n<l.length;n++){let r=l[n],i=r.node,a=r.margin.top??0,o=r.margin.bottom??0;E+=x[n]+a,i.localRect={...i.localRect,x:w+li(i,e.style.alignItems,t,r.margin),y:T+C[n]+n*c+E},E+=S[n]+o}let D=v+u+d,O=f?Math.max(n,D):D;if(e.style.ruleY&&l.length>1){let n=[],r=l.map(e=>e.node.localRect).slice().sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e++){let i=r[e-1].y+r[e-1].height-T,a=r[e].y-T-i;a>0&&n.push({bandStart:i,bandSize:a,start:0,end:t})}e.decorationRuns=er({glyphs:i(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:ii(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return oi(e,a,o,t,O),O}function ci(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.top??0,o=r.bottom??0,s=n-e.localRect.height,c=r.top===null&&r.bottom===null,l=r.top===null&&r.bottom!==null,u=r.bottom===null&&r.top!==null;return c?Math.floor(s/2):l?s-o:u?a:a+pi(i,n,e.localRect.height)}function li(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.left??0,o=r.right??0,s=n-e.localRect.width,c=r.left===null&&r.right===null,l=r.left===null&&r.right!==null,u=r.right===null&&r.left!==null;return c?Math.floor(s/2):l?s-o:u?a:a+pi(i,n,e.localRect.width)}function ui(e,t,n){let r=t.length;if(r===0)return[];let i=[],a=0;if(e===`space-between`&&r>1){let e=Math.floor(n/(r-1)),o=n-e*(r-1);for(let n=0;n<r;n++)i.push(a),a+=t[n]+e+ +(n<o);return i}if((e===`space-around`||e===`space-evenly`)&&n>0){let o=K(Array.from({length:r+1},(t,n)=>e===`space-evenly`||n===0||n===r?1:2),n);for(let e=0;e<r;e++)a+=o[e],i.push(a),a+=t[e];return i}e===`center`?a=Math.floor(n/2):e===`end`&&(a=n);for(let e=0;e<r;e++)i.push(a),a+=t[e];return i}function di(e,t){let n=e.length,r=(t,n)=>Math.max(0,fo(t,e[n].min??0,e[n].max)),i=e.map(e=>e.base),a=t>=i.reduce((e,t,n)=>e+r(t,n),0),o=Array.from({length:n},()=>0),s=Array.from({length:n},()=>!1);for(let t=0;t<n;t++){let n=r(i[t],t);((a?e[t].grow:e[t].shrink)===0||a&&i[t]>n||!a&&i[t]<n)&&(o[t]=n,s[t]=!0)}for(;;){let c=[];for(let e=0;e<n;e++)s[e]||c.push(e);if(c.length===0)break;let l=o.reduce((e,t,n)=>s[n]?e+t:e,0),u=c.reduce((e,t)=>e+i[t],0),d=t-l-u,f=a?Math.max(0,d):Math.max(0,-d),p=K(c.map(t=>a?e[t].grow:i[t]*e[t].shrink),f),m=c.map((e,t)=>i[e]+(a?p[t]:-p[t])),h=c.map((e,t)=>r(m[t],e)),g=h.reduce((e,t,n)=>e+(t-m[n]),0);if(g===0){for(let e=0;e<c.length;e++)o[c[e]]=h[e];break}for(let e=0;e<c.length;e++){let t=h[e]-m[e];(g>0?t>0:t<0)&&(o[c[e]]=h[e],s[c[e]]=!0)}}return o}function K(e,t){let n=e.reduce((e,t)=>e+t,0);if(n===0||t<=0)return e.map(()=>0);let r=e.map(e=>e/n*t),i=r.map(Math.floor),a=t-i.reduce((e,t)=>e+t,0);if(a>0){let e=r.map((e,t)=>[t,e-Math.floor(e)]).sort((e,t)=>t[1]===e[1]?e[0]-t[0]:t[1]-e[1]);for(let[t]of e){if(a<=0)break;i[t]+=1,--a}}return i}function fi(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function pi(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function mi(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Fo(r,t,e,n):i!==void 0&&i.kind!==`auto`?Fo(i,t,e,n):Io(e,n)}function hi(e){let t=e.children.filter(e=>!J(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function gi(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function _i(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function vi(e,t,n){let{border:r,padding:i}=e.style,a=at(e.style);return bo(r,{top:X(i.top,n),right:X(i.right,n)+a.right,bottom:X(i.bottom,n)+a.bottom,left:X(i.left,n)},t)}function yi(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?zo(e,n):0:Co(e.style.minWidth,t)??0}function bi(e,t,n,r,a,o){let s=e.style,c=Number.isFinite(n)?n:void 0,l=e.subgrid?.cols,u=e.subgrid?.rows,d=l?l.gap:yo(s,`x`,t),f=u?u.gap:yo(s,`y`,c),p=ki(e,t,c,d,f,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),{children:m,placed:h,colLines:g,rowLines:_,colTracks:v,rowTracks:y,colCollapsed:b,rowCollapsed:x}=p,S=m.map(e=>xo(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(xi),T=l?Ci(l):Wi(v,b,wi(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:Gi(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=qi(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-Ni(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?Si(E,T,d,n.col.start,n.col.span,q(t,`cols`,i,r)):void 0;t.subgrid={colSpan:n.col.span,rowSpan:n.row.span,cols:e,rows:void 0}}else t.subgrid=void 0;let c=C[e],l=i.left===null||i.right===null,u=t.style.width!==void 0&&t.style.width.kind!==`auto`;s.cols?Y(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?Y(t,r,void 0,0,0,`fill`,o,{width:fo(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?zo(t,o):0:Co(t.style.minWidth,r)??0,wo(t.style.maxWidth,r,t,o))}):Y(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?Ci(u):Wi(y,x,Ti(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),k=Ki(O),A=u?u.positions:Gi(O,c??k,s.alignContent),j=r.left+a.left,ee=r.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=qi(E,T.sizes,r.col.start,r.col.span),s=qi(A,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Pi(i)),l=fi(n,e),u=i.top===null||i.bottom===null,d=n.style.height!==void 0&&n.style.height.kind!==`auto`;if(w[t].rows)n.subgrid.rows=Si(A,O,f,r.row.start,r.row.span,q(n,`rows`,i,a)),Y(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=fo(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:Co(n.style.minHeight,s)??0,Co(n.style.maxHeight,s));e!==n.localRect.height&&Y(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&Y(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:j+E[r.col.start]+Ji(C[t],i.left,i.right,a,n.localRect.width),y:ee+A[r.row.start]+Ji(l,i.top,i.bottom,s,n.localRect.height)}}let te=Number.isFinite(n)?Math.max(n,k):k;if(s.ruleX||s.ruleY){let n=T.sizes.length,o=O.sizes.length,c=Array.from({length:n},()=>Array.from({length:o},()=>!1)),l=Array.from({length:Math.max(0,n-1)},()=>Array.from({length:o},()=>!1)),u=Array.from({length:Math.max(0,o-1)},()=>Array.from({length:n},()=>!1));for(let e of h.items)for(let t=e.col.start;t<e.col.start+e.col.span&&t<n;t++)for(let r=e.row.start;r<e.row.start+e.row.span&&r<o;r++)c[t][r]=!0,t+1<e.col.start+e.col.span&&t<n-1&&(l[t][r]=!0),r+1<e.row.start+e.row.span&&r<o-1&&(u[r][t]=!0);let d=(e,t,n,r,i,a)=>t.map((t,o)=>({start:t,end:t+n[o],spanned:r[e]?.[o]??!1,beforeOccupied:i(o),afterOccupied:a(o)})),f=(e,t,n)=>{let r=[];for(let i=1;i<e.length;i++){let a=e[i-1]+t[i-1],o=e[i]-a;if(!(o<=0))for(let e of $n(n(i-1),s.ruleBreak,s.ruleVisibilityItems,s.ruleInset))r.push({bandStart:a,bandSize:o,...e})}return r},p=f(E,T.sizes,e=>d(e,A,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(A,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=er({glyphs:i(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:te,border:r,borderStyle:s.borderStyle,borderWeight:s.borderWeight,borderColor:s.borderColor,padding:a})}let M=e.children.filter(e=>J(e.style));if(M.length>0){let e=J(s)?{x:r.left,y:r.top,width:a.left+t+a.right,height:a.top+te+a.bottom}:{x:j,y:ee,width:t,height:te};for(let n of M){let r=Di(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=Di(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,A,O.sizes,-a.top,te+a.bottom);n.staticSlot={kind:`grid`,area:{x:j+r.start,y:ee+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return te}function xi(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function Si(e,t,n,r,i,a){let o=e[r]+a.start,s=t.sizes.slice(r,r+i);return s[0]=Math.max(0,s[0]-a.start),s[i-1]=Math.max(0,s[i-1]-a.end),{positions:Array.from({length:i},(t,n)=>n===0?0:e[r+n]-o),sizes:s,gapBefore:Array.from({length:i},(e,n)=>n===0?0:t.gapBefore[r+n]),gap:n}}function Ci(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function wi(e,t,n,r){let i=[];return e.children.forEach((a,o)=>{let s=e.placed.items[o],c=n[o];if(t[o].cols){let e=q(a,`cols`,c,0);for(let t of Ei(a,`cols`,s,e,r))i.push({...t,start:t.start+s.col.start});return}i.push({start:s.col.start,span:s.col.span,min:Ro(a,`min`,r)+Ni(c),max:Ro(a,`max`,r)+Ni(c)})}),i}function Ti(e,t,n){let r=[];return e.children.forEach((i,a)=>{let o=e.placed.items[a],s=n[a];if(t[a].rows){let e=q(i,`rows`,s,0);for(let t of Ei(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Pi(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Pi(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function q(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+X(a.left,r),end:(n.right??0)+i.right+X(a.right,r)}:{start:(n.top??0)+i.top+X(a.top,r),end:(n.bottom??0)+i.bottom+X(a.bottom,r)}}function Ei(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=ki(e,void 0,void 0,0,0,{col:n.col.span,row:n.row.span}),s=[];if(o.children.forEach((e,n)=>{let c=o.placed.items[n],l=t===`cols`?c.col:c.row,u=l.start===0,d=l.start+l.span===a,f=(u?r.start:0)+(d?r.end:0),p=xo(e.style.margin,0);if(xi(e)[t]){let n=q(e,t,p,0),a=Ei(e,t,c,{start:n.start+(u?r.start:0),end:n.end+(d?r.end:0)},i);for(let e of a)s.push({...e,start:e.start+l.start});return}if(t===`cols`)s.push({start:l.start,span:l.span,min:Ro(e,`min`,i)+Ni(p)+f,max:Ro(e,`max`,i)+Ni(p)+f});else{let t=e.localRect.height+Pi(p)+f;s.push({start:l.start,span:l.span,min:t,max:t})}}),s.length===0){let e=r.start+r.end;s.push({start:0,span:a,min:e,max:e})}return s}function Di(e,t,n,r,i,a,o,s){let c=Bi(e,`start`,n),l=Bi(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Vi(c,t,1,n):l!==null&&e.kind===`span`&&(c=Vi(l,e,-1,n));let u=i.length,d=e=>{if(e===null)return;let t=e-r;return t<0||t>u||u===0?void 0:t},f=e=>e===u?i[u-1]+a[u-1]:i[e],p=e=>e===0?i[0]:i[e-1]+a[e-1],m=d(c),h=d(l);return{start:m===void 0?o:f(m),end:h===void 0?s:p(h)}}function Oi(e,t){let n=t.gridIntrinsic.get(e);if(n!==void 0)return n;let r=e.style,i=Math.max(typeof r.gapX==`number`?r.gapX:0,r.ruleX?.width??0),a=ki(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(xi),s=a.children.map(e=>xo(e.style.margin,0)),c=Wi(a.colTracks,a.colCollapsed,wi(a,o,s,t),`min-content`,i,!1),l=c.gapBefore.reduce((e,t)=>e+t,0),u={min:c.sizes.reduce((e,t)=>e+t,0)+l,max:c.limits.reduce((e,t)=>e+t,0)+l};return t.gridIntrinsic.set(e,u),u}function ki(e,t,n,r,i,a){let o=e.style,s=Mi(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Ai(a.col):Fi(o.gridTemplateColumns,t,r),d=l?Ai(a.row):Fi(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Li(p,u.lineNames,f.columns,o.gridAutoColumns),l||Li(m,d.lineNames,f.rows,o.gridAutoRows);for(let[e,t]of f.areas)u.lineNames[Math.min(t.colStart,p.length)].push(`${e}-start`),u.lineNames[Math.min(t.colEnd,p.length)].push(`${e}-end`),d.lineNames[Math.min(t.rowStart,m.length)].push(`${e}-start`),d.lineNames[Math.min(t.rowEnd,m.length)].push(`${e}-end`)}let h={explicitCount:p.length,names:u.lineNames},g={explicitCount:m.length,names:d.lineNames},_=Ui(s.map(e=>({col:Hi(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Hi(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&ji(_,`col`,p.length),l&&ji(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Ri(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Ri(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:zi(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:zi(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Ai(e){return{tracks:Array.from({length:e},()=>ct()),lineNames:Array.from({length:e+1},()=>[])}}function ji(e,t,n){let r=t===`col`?e.colOrigin:e.rowOrigin;for(let i of e.items){let e=i[t],a=Math.min(Math.max(e.start+r,0),n-1),o=Math.min(Math.max(e.start+r+e.span,a+1),n);e.start=a,e.span=o-a}t===`col`?(e.colOrigin=0,e.colCount=n):(e.rowOrigin=0,e.rowCount=n)}function Mi(e){return e.children.filter(e=>!J(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function Ni(e){return(e.left??0)+(e.right??0)}function Pi(e){return(e.top??0)+(e.bottom??0)}function Fi(e,t,n){if(e.kind!==`tracks`)return{tracks:[],lineNames:[[]]};let r=(e.lineNames??Array.from({length:e.tracks.length+1},()=>[])).map(e=>[...e]);if(!e.autoRepeat)return{tracks:e.tracks,lineNames:r};let{index:i,tracks:a,mode:o}=e.autoRepeat,s=1;if(t!==void 0){let e=a.reduce((e,n)=>{let r=Ii(n.min,t)??Ii(n.max,t)??1;return e+Math.max(1,r)},0);s=Math.max(1,Math.floor((t+n)/(e+n*a.length)))}let c=[];for(let e=0;e<s;e++)c.push(...a);let l=[...e.tracks.slice(0,i),...c,...e.tracks.slice(i)],u=e.autoRepeat.lineNames??Array.from({length:a.length+1},()=>[]),d=r.slice(0,i),f=[...e.autoRepeat.leadingNames??[]];for(let e=0;e<s;e++){f.push(...u[0]);for(let e=0;e<a.length;e++)d.push(f),f=[...u[e+1]]}return d.push([...f,...r[i]]),d.push(...r.slice(i+1)),o===`auto-fit`?{tracks:l,lineNames:d,autoFit:{start:i,end:i+c.length}}:{tracks:l,lineNames:d}}function Ii(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return $e(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=Ii(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Li(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Ri(e,t,n,r){let i=[];for(let a=0;a<n;a++){let n=a+t;if(n>=0&&n<e.length)i.push(e[n]);else{let t=n<0?n:n-e.length;i.push(r[(t%r.length+r.length)%r.length])}}return i}function zi(e,t,n,r){let i=Array.from({length:n},()=>!1);if(!e.autoFit)return i;for(let a=e.autoFit.start;a<e.autoFit.end;a++){let e=a-t;e<0||e>=n||r.some(t=>e>=t.start&&e<t.start+t.span)||(i[e]=!0)}return i}function Bi(e,t,n){if(e.kind===`line`)return e.value>0?e.value-1:n.explicitCount+1+e.value;if(e.kind!==`name`)return null;if(e.nth===void 0){let r=`${e.name}-${t}`,i=n.names.findIndex(e=>e.includes(r));if(i!==-1)return i}let r=e.nth??1,i=n.explicitCount,a=0;if(r>0){for(let t=0;t<=i;t++)if(n.names[t].includes(e.name)&&++a===r)return t;return i+(r-a)}for(let t=i;t>=0;t--)if(n.names[t].includes(e.name)&&++a===-r)return t;return-(-r-a)}function Vi(e,t,n,r){if(t.name===void 0)return e+n*t.value;let i=t.value,a=e;for(;i>0;)a+=n,(!(a>=0&&a<=r.explicitCount)||r.names[a].includes(t.name))&&i--;return a}function Hi(e,t,n){let r=Bi(e,`start`,n),i=Bi(t,`end`,n);if(r!==null&&i!==null)return r===i?{start:r,span:1}:{start:Math.min(r,i),span:Math.abs(i-r)};if(r!==null)return{start:r,span:(t.kind===`span`?Vi(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Vi(i,e,-1,n):i-1;return{start:t,span:i-t}}return{start:null,span:e.kind===`span`?e.value:t.kind===`span`?t.value:1}}function Ui(e,t,n,r){let i=r.direction===`row`,a=e.map(e=>i?e.row:e.col),o=e.map(e=>i?e.col:e.row),s=i?t:n,c=i?n:t,l=0,u=Math.max(s,1);for(let t=0;t<e.length;t++){let e=o[t];e.start!==null&&(l=Math.min(l,e.start),u=Math.max(u,e.start+e.span))}for(let t=0;t<e.length;t++){let e=o[t];e.start===null&&(u=Math.max(u,l+e.span))}let d=0;for(let t=0;t<e.length;t++){let e=a[t];e.start!==null&&(d=Math.min(d,e.start))}let f=new Set,p=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)if(f.has(`${i}:${e}`))return!1;return!0},m=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)f.add(`${i}:${e}`)},h=e.map(()=>null);for(let t=0;t<e.length;t++){let e=a[t],n=o[t];e.start!==null&&n.start!==null&&(h[t]={major:e.start,minor:n.start},m(e.start,n.start,e.span,n.span))}let g=new Map;for(let t=0;t<e.length;t++){let e=a[t],n=o[t];if(e.start===null||n.start!==null)continue;let i=r.dense?l:Math.max(l,g.get(e.start)??l);for(;!p(e.start,i,e.span,n.span);)i++;h[t]={major:e.start,minor:i},m(e.start,i,e.span,n.span),r.dense||g.set(e.start,i+n.span),u=Math.max(u,i+n.span)}let _=d,v=l;for(let t=0;t<e.length;t++){if(h[t]!==null)continue;let e=a[t],n=o[t];if(r.dense&&(_=d,v=l),n.start!==null){for(n.start<v&&_++;!p(_,n.start,e.span,n.span);)_++;h[t]={major:_,minor:n.start},m(_,n.start,e.span,n.span),v=n.start+n.span}else{let r=_,i=v;for(;;){if(i+n.span>u){r++,i=l;continue}if(p(r,i,e.span,n.span))break;i++}h[t]={major:r,minor:i},m(r,i,e.span,n.span),_=r,v=i+n.span}}let y=Math.max(c,d);for(let t=0;t<e.length;t++)y=Math.max(y,h[t].major+a[t].span);let b=e.map((e,t)=>{let n={start:h[t].major-d,span:a[t].span},r={start:h[t].minor-l,span:o[t].span};return i?{col:r,row:n}:{col:n,row:r}}),x=y-d,S=u-l;return i?{items:b,colOrigin:l,colCount:S,rowOrigin:d,rowCount:x}:{items:b,colOrigin:d,colCount:x,rowOrigin:l,rowCount:S}}function Wi(e,t,n,r,i,a){let o=typeof r==`number`?r:void 0,s=e.map((e,n)=>{if(t[n])return{base:0,limit:0,baseIntrinsic:!1,limitKind:`fixed`,frFactor:0,collapsed:!0};let r=Ii(e.min,o),i=r??0,a=r===void 0,s=e.max;if(s.kind===`fr`)return{base:i,limit:null,baseIntrinsic:a,limitKind:`fr`,frFactor:s.value,collapsed:!1};let c=Ii(s,o);return c===void 0?{base:i,limit:null,baseIntrinsic:a,limitKind:s.kind===`min-content`?`intrinsic-min`:`intrinsic-max`,frFactor:0,collapsed:!1}:{base:i,limit:c,baseIntrinsic:a,limitKind:`fixed`,frFactor:0,collapsed:!1}}),c=s.map((e,t)=>t===0||e.collapsed?0:s.slice(0,t).some(e=>!e.collapsed)?i:0),l=(e,t)=>{let n=0;for(let r=e+1;r<e+t;r++)n+=c[r];return n},u=e=>e.collapsed?0:e.limitKind===`fixed`?e.limit:Math.max(e.base,e.limit??e.base),d=[...n].sort((e,t)=>e.span-t.span);for(let e of d){let t=[],n=!1;for(let r=e.start;r<e.start+e.span;r++){let e=s[r];e!==void 0&&(e.limitKind===`fr`&&(n=!0),t.push(e))}if(t.length===0)continue;let r=l(e.start,e.span);if(n){let n=t.filter(e=>e.limitKind===`fr`&&e.baseIntrinsic&&!e.collapsed);if(n.length===0)continue;let i=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-i;if(a>0){let e=n.reduce((e,t)=>e+t.frFactor,0),t=K(n.map(t=>e>0?t.frFactor:1),a);n.forEach((e,n)=>{e.base+=t[n]})}continue}let i=t.filter(e=>e.baseIntrinsic&&!e.collapsed);if(i.length>0){let n=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-n;if(a>0){let e=K(i.map(()=>1),a);i.forEach((t,n)=>{t.base+=e[n]})}}for(let[n,i]of[[`intrinsic-min`,e.min],[`intrinsic-max`,e.max]]){let e=t.filter(e=>e.limitKind===n&&!e.collapsed);if(e.length===0)continue;let a=i-(t.reduce((e,t)=>e+u(t),0)+r);if(a>0){let t=K(e.map(()=>1),a);e.forEach((e,n)=>{e.limit=u(e)+t[n]})}}}for(let e of s)e.collapsed||(e.limitKind===`fixed`?e.base=Math.min(e.base,e.limit):e.limitKind!==`fr`&&(e.limit=Math.max(e.base,e.limit??e.base)));if(o===void 0){let e=s.filter(e=>e.limitKind===`fr`&&!e.collapsed);if(e.length>0){let t=0;for(let n of e)n.frFactor>0&&(t=Math.max(t,n.base/n.frFactor));for(let e of n){let n=0,r=l(e.start,e.span);for(let t=e.start;t<e.start+e.span;t++){let e=s[t];e===void 0||e.collapsed||(e.limitKind===`fr`?n+=e.frFactor:r+=u(e))}n<=0||(t=Math.max(t,(e.max-r)/Math.max(n,1)))}for(let n of e){let e=Math.max(n.base,Ze(n.frFactor*t));n.limit=e,r===`max-content`&&(n.base=e)}}if(r===`max-content`)for(let e of s)!e.collapsed&&e.limitKind!==`fr`&&(e.base=u(e))}else{let e=c.reduce((e,t)=>e+t,0),t=o-e-s.reduce((e,t)=>e+t.base,0);for(;!(t<=0);){let e=s.filter(e=>!e.collapsed&&e.limitKind!==`fr`&&e.base<u(e));if(e.length===0)break;let n=K(e.map(()=>1),t),r=0;if(e.forEach((e,t)=>{let i=Math.min(n[t],u(e)-e.base);e.base+=i,r+=i}),t-=r,r===0)break}let n=s.filter(e=>e.limitKind===`fr`);if(n.length>0){let t=Math.max(0,o-e-s.reduce((e,t)=>e+(t.limitKind===`fr`?0:t.base),0)),r=n,i=t,a=n.reduce((e,t)=>e+t.frFactor,0);for(a<1&&(i=Math.floor(i*a));;){let e=K(r.map(e=>e.frFactor),i),t=r.filter((t,n)=>e[n]<t.base);if(t.length===0){r.forEach((t,n)=>{t.base=Math.max(t.base,e[n])});break}for(let e of t)i-=e.base;if(i=Math.max(0,i),r=r.filter(e=>!t.includes(e)),r.length===0)break}}if(a){let t=o-e-s.reduce((e,t)=>e+t.base,0),n=s.filter(e=>!e.collapsed&&e.limitKind===`intrinsic-max`);if(t>0&&n.length>0){let e=K(n.map(()=>1),t);n.forEach((t,n)=>{t.base+=e[n]})}}}return{sizes:s.map(e=>e.base),gapBefore:c,limits:s.map(e=>u(e))}}function Gi(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Ki(e)),o=ui(n===`stretch`?`start`:n,r,a),s=[],c=0;for(let e=0;e<r.length;e++)c+=i[e],s.push(o[e]+c);return s}function Ki(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function qi(e,t,n,r){let i=n+r-1;return e[n]===void 0||e[i]===void 0?0:e[i]+t[i]-e[n]}function Ji(e,t,n,r,i){let a=t??0,o=n??0,s=r-i;return t===null&&n===null?Math.floor(s/2):t===null?s-o:n===null?a:a+pi(e,r,i+a+o)}function Yi(e,t,n){let r=e.columnWidth===null?null:Math.max(1,Math.floor((t+n)/(e.columnWidth+n)));return e.columnCount!==null&&r!==null?Math.max(1,Math.min(e.columnCount,r)):r===null?Math.max(1,e.columnCount??1):r}function Xi(e,t,n){let r=Yi(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r)),a=Math.max(0,t-(r*i+(r-1)*n));return Array.from({length:r},(e,t)=>i+ +(t<a))}function Zi(e,t){let n=Math.max(typeof e.gapX==`number`?e.gapX:0,e.ruleX?.width??0);return e.columnCount===null?Math.max(e.columnWidth??1,t):e.columnCount*t+(e.columnCount-1)*n}function Qi(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function $i(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function ea(e,t,n){let r=Yi(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r));return{count:r,width:i,leftover:Math.max(0,t-(r*i+(r-1)*n))}}function ta(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function na(e,t,n,r){let i=_o(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=vo(e,i),s=e.style.lineGap,c=ia(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=$i(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>ra(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=ra(c,s,l);return{spans:i,lineY:u.top,textY:u.top.map((e,t)=>e+o[t]),lineX:u.column.map(e=>e*(t.width+n)),totalRows:u.maxUsed,columnCount:t.count,columnWidth:t.width,gap:n,columnsUsed:i.length>0?u.columns:0}}function ra(e,t,n,r=`truncate`){let i=0,a=0,o=0,s=[],c=[];for(let l=0;l<e.length;l++){let u=e[l],d=r===`glue`||l===0||a>0?u.pre:0;a>0&&(u.forced||a+d+u.rows+u.post-t>n)&&(r===`truncate`&&(d=0),i+=1,a=0);let f=u.rows/u.lines;if(u.lines>1&&u.rows-t>n){for(let e=0;e<u.lines;e++)a>0&&a+d+f-t>n&&(r===`truncate`&&(d=0),i+=1,a=0),s.push(i),c.push(a+d),a+=d+f,d=0,o=Math.max(o,a-t);a+=u.post,u.post>0&&(o=Math.max(o,a));continue}for(let e=0;e<u.lines;e++)s.push(i),c.push(a+d+e*f);a+=d+u.rows+u.post,o=Math.max(o,a-(u.post>0?0:t))}return{columns:i+1,maxUsed:o,column:s,top:c}}function ia(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var aa=null;function oa(){if(aa!==null)return aa;let e=document.createElement(`div`);e.style.cssText=`position:absolute;left:-9999px;visibility:hidden;columns:2;column-gap:0;column-fill:balance;width:200px;font:10px/20px monospace;orphans:1;widows:1`,e.innerHTML=`<div style="margin:0;padding:0 0 20px 0">aaaaaa aaaaaa aaaaaa</div><div style="margin:0"><span>bbbbbb</span> bbbbbb</div>`,document.body.appendChild(e);let t=e.getBoundingClientRect().top,n=e.querySelector(`span`).getBoundingClientRect();return e.remove(),aa=!(n.width>0&&n.top-t>=10),aa}function sa(e,t,n,r){let a=e.style;if(!a.ruleX)return;let o=t.columnCount*t.columnWidth+(t.columnCount-1)*t.gap,s=t.ruleSegments??[{start:0,end:t.totalRows,columns:t.columnsUsed}],c=[];for(let e of s){let n=Math.min(e.columns,t.columnCount);for(let r=0;r<t.columnCount-1;r++)ta(a.ruleVisibilityItems,r<n,r+1<n)&&c.push({bandStart:(r+1)*t.columnWidth+r*t.gap,bandSize:t.gap,start:e.start,end:e.end})}e.decorationRuns=er({glyphs:i(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:ii(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderWeight:a.borderWeight,borderColor:a.borderColor,padding:r})}function ca(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.float===`none`&&n.position===`static`&&!n.columnSpan&&n.whiteSpace===`normal`&&n.lineGap===t.lineGap&&n.border.top===0&&n.border.right===0&&n.border.bottom===0&&n.border.left===0&&r.top===0&&r.right===0&&r.bottom===0&&r.left===0&&n.backgroundColor===void 0&&!n.backgroundClear&&n.overflow.x===`visible`&&n.overflow.y===`visible`&&(n.width===void 0||n.width.kind===`auto`)&&(n.height===void 0||n.height.kind===`auto`)&&(n.minWidth===`auto`||n.minWidth===0||n.minWidth===void 0)&&(n.minHeight===`auto`||n.minHeight===0||n.minHeight===void 0)&&n.maxWidth===void 0&&n.maxHeight===void 0}function la(e,t,n,r,i,a,o){let s=e.style,c=yo(s,`x`,n),l=ea(s,n,c);a.right+=l.leftover;let u=s.lineGap,d=i.left+a.left,f=i.top+a.top,p=n-l.leftover,m=[[]],h=[];for(let e of t)e.style.columnSpan?(h[m.length-1]=e,m.push([])):m[m.length-1].push(e);let g=m.length>1,_=g?`glue`:`truncate`,v=[],y=0,b=0;for(let e=0;e<m.length;e++){let t=m[e],n=0;if(t.length>0){let i=t.map(e=>({node:e,spans:_o(e,Math.max(1,l.width-e.style.tracking)),margin:xo(e.style.margin,l.width),pre:0,post:0})),a=[],o=null,h=null,x=!1;for(let e of i){let{node:t,spans:n,margin:r}=e,i=o===null?r.top??0:ko(o,r.top??0),s=i;_===`glue`&&h!==null?(s=0,h.post=i,a[a.length-1].post=i):e.pre=i;let c=x||t.style.breakBeforeColumn;if(t.style.breakInsideAvoid&&n.length>0)a.push({rows:n.length*(1+u),pre:s,post:0,forced:c,lines:n.length});else for(let e=0;e<n.length;e++)a.push({rows:1+u,pre:e>0?0:s,post:0,forced:e===0&&c,lines:1});n.length>0&&(o=r.bottom??0,h=e),x=t.style.breakAfterColumn}n=o??0;let S;if(s.columnFill===`auto`&&r!==void 0)S=Math.max(1,r);else{let e=$i(1,Math.max(1,ra(a,u,1/0,_).maxUsed),e=>ra(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=ra(a,u,S,_);for(let e=0,t=0;e<i.length;e++){let{node:n,spans:r,margin:a,pre:o,post:s}=i[e],u=[],m=[];for(let e=0;e<r.length;e++,t++)u.push(y+C.top[t]),m.push(C.column[t]*(l.width+c));delete n.decorationRuns,n.multicolGeometry={spans:r,lineY:u,textY:u,lineX:m,totalRows:y+C.maxUsed,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:C.columns},n.multicolFlow=g?{top:o,right:a.right,bottom:s,left:a.left}:a,n.localRect={x:d,y:f,width:p,height:C.maxUsed},n.resolvedPadding={top:0,right:0,bottom:0,left:0}}a.length>0&&(v.push({start:y,end:y+C.maxUsed,columns:C.columns}),b=Math.max(b,C.columns),y+=C.maxUsed+(e<m.length-1?u:0))}let i=h[e];if(i){let e=xo(i.style.margin,p),t=(e.left??0)+(e.right??0);Y(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=Oo(e,p,i.localRect.width),a=(e.top??0)+n;y+=a,i.localRect={...i.localRect,x:d+r,y:f+y},i.multicolFlowSpan={top:a,right:0,bottom:e.bottom??0,left:r},y+=i.localRect.height+(e.bottom??0)}}let x=y;for(let t of e.children){if(!J(t.style))continue;let e=xo(t.style.margin,n);t.staticSlot={kind:`block`,x:d+(e.left??0),y:f+(e.top??0)}}return e.multicolGeometry={spans:[],lineY:[],textY:[],lineX:[],totalRows:x,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:b,...g?{ruleSegments:v,nativeBalance:!0}:{}},x}function ua(e,t,n,r,a,o,s){let c=e.style,l=Qi(n,r),u=e.children.filter(e=>!J(e.style)),d=u.filter(e=>!e.style.columnSpan),f=u.reduce((e,t,n)=>!t.style.columnSpan&&(n===0||u[n-1].style.columnSpan)?e+1:e,0);if(d.length>0&&d.every(e=>ca(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(oa()||f<=1&&d.every(e=>(e.style.margin.top===0||e.style.margin.top===null)&&(e.style.margin.bottom===0||e.style.margin.bottom===null)))))return la(e,u,t,l,a,o,s);let p=yo(c,`x`,t),m=Xi(c,t,p),h=m.length,g=[];{let e=0;for(let t of m)g.push(e),e+=t+p}let _=e=>e<h?g[e]:g[h-1]+(e-h+1)*(m[h-1]+p),v=e=>m[Math.min(e,h-1)],y=m[h-1],b=a.left+o.left,x=a.top+o.top,S=[],C=0,w=[],T=[],E=!1,D=(e,t)=>{let r=0,i=0,a=null,o=0,c=e=>{if(t)for(let t of T){if(t.index!==e)continue;let n=a===null?t.margin.top??0:ko(a,t.margin.top??0);t.child.staticSlot={kind:`block`,x:b+_(r)+(t.margin.left??0),y:x+C+i+n}}};for(let l=0;l<w.length;l++){let u=w[l];c(l);let d=a===null?l===0?u.margin.top??0:0:ko(a,u.margin.top??0),f=u.node.localRect.height;if(a!==null&&(u.breakBefore||i+d+f>e)&&(r+=1,i=0,a=null,d=0),t){let e=u.node,t=v(r);if(t!==y){let r=(u.margin.left??0)+(u.margin.right??0);Y(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+Oo(u.margin,t,e.localRect.width),y:x+C+i+d}}i+=d+u.node.localRect.height,o=Math.max(o,i),a=u.margin.bottom??0}return c(w.length),{columns:r+1,maxUsed:o}},O=()=>{if(w.length===0){for(let e of T)e.child.staticSlot={kind:`block`,x:b+(e.margin.left??0),y:x+C+(e.margin.top??0)};T=[];return}let e=l===void 0?void 0:Math.max(1,l-C),t=c.columnFill===`auto`&&e!==void 0,r;if(t)r=e;else{let t=$i(1,D(1/0,!1).maxUsed,e=>D(e,!1).columns<=h);r=e===void 0?t:Math.min(t,e)}let i=D(r,!0),a=t&&n!==void 0?Math.max(i.maxUsed,r):i.maxUsed;if(c.ruleX)for(let e=0;e<h-1;e++){let t=Math.min(i.columns,h);ta(c.ruleVisibilityItems,e<t,e+1<t)&&S.push({bandStart:g[e]+m[e],bandSize:p,start:C,end:C+a})}C+=a,w=[],T=[]};for(let r of e.children){if(J(r.style)){T.push({child:r,margin:xo(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=xo(r.style.margin,t),i=(e.left??0)+(e.right??0);Y(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+Oo(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=xo(r.style.margin,y),i=(e.left??0)+(e.right??0);Y(r,Math.max(0,y-i),n,0,0,`fill`,s),w.push({node:r,margin:e,breakBefore:E||r.style.breakBeforeColumn}),E=r.style.breakAfterColumn}return O(),c.ruleX&&S.length>0&&(e.decorationRuns=er({glyphs:i(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:ii(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderWeight:c.borderWeight,borderColor:c.borderColor,padding:o})),C}function da(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&ee(t.source,`Table content outside the expected structure (rows in tables, cells in rows) can't be laid out and was hidden — no anonymous table boxes (specs/table.md).`)}function fa(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isNaN(n)?1:t===`colspan`?Math.min(1e3,Math.max(1,n)):Math.min(65534,Math.max(0,n))}function pa(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Fo(i,0,t,n):void 0,o=i&&i.kind===`percent`?i.value:void 0;for(let t=0;t<r;t++)e.colFixed.push(a),e.colPercent.push(o)};if(t.style.tableRole===`column`){r(t,ma(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,ma(t.source));else for(let e of i)r(e,ma(e.source));for(let n of t.children)n.style.tableRole!==`column`&&da(e,n)}function ma(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function ha(e,t){let n={caption:null,rows:[],rowGroups:[],groupEnds:[],cells:[],columnCount:0,colFixed:[],colPercent:[],hidden:[]},r=[],i=[],a=[];for(let o of e.children){if(J(o.style))continue;let e=o.style.tableRole;if(e===`row`)i.push({row:o,group:null});else if(e===`header-group`||e===`row-group`||e===`footer-group`){let t=e===`header-group`?r:e===`footer-group`?a:i;for(let e of o.children)J(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):da(n,e))}else e===`caption`?n.caption===null?n.caption=o:da(n,o):e===`column`||e===`column-group`?(pa(n,o,t),n.hidden.push(o)):da(n,o)}let o=[...r,...i,...a],s=0;for(let e=0;e<o.length;e++){n.rows.push(o[e].row),n.rowGroups.push(o[e].group);let t=o[e+1]?.group;if(!(e+1<o.length&&(o[e].group===t||o[e].group===null&&t===null))){for(let t=s;t<=e;t++)n.groupEnds.push(e+1);s=e+1}}return ga(n),n}function ga(e){let t=[];for(let n=0;n<e.rows.length;n++){let r=e.rows[n],i=0;for(let a of r.children){if(J(a.style))continue;if(a.style.tableRole!==`cell`){da(e,a);continue}for(;(t[i]??0)>n;)i++;let o=fa(a.source,`colspan`),s=fa(a.source,`rowspan`),c=e.groupEnds[n],l=Math.max(1,Math.min(s===0?c-n:s,c-n));for(let e=i;e<i+o;e++)t[e]=Math.max(t[e]??0,n+l);e.cells.push({node:a,rowNode:r,row:n,col:i,rowSpan:l,colSpan:o}),i+=o}}e.columnCount=Math.max(t.length,e.colFixed.length)}function _a(e,t,n){let r=e.style,i=zo(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Fo(r.width,0,e,n):void 0;a=t===void 0?Io(e,n):Math.max(i,t)}let o=typeof r.minWidth==`number`?r.minWidth:0,s=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,fo(a,o,s))}function va(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function ya(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>0),a=Array.from({length:r},()=>0),o=Array.from({length:r},()=>void 0);for(let t=0;t<r;t++)e.colFixed[t]!==void 0&&(a[t]=e.colFixed[t]),o[t]=e.colPercent[t];let s=[];for(let t of e.cells){if(t.colSpan>1){s.push(t);continue}i[t.col]=Math.max(i[t.col],_a(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],_a(t.node,`max`,n));let e=va(t.node);e!==void 0&&(o[t.col]=Math.max(o[t.col]??0,e))}s.sort((e,t)=>e.colSpan-t.colSpan);for(let e of s){let r=e.col,o=e.col+e.colSpan,s=Ta(t,r,o),c=a.slice(r,o);for(let t of[`min`,`max`]){let l=t===`min`?i:a,u=l.slice(r,o).reduce((e,t)=>e+t,0)+s,d=_a(e.node,t,n)-u;if(d<=0)continue;let f=K(c.some(e=>e>0)?c:c.map(()=>1),d);for(let e=r;e<o;e++)l[e]+=f[e-r]}}for(let e=0;e<r;e++)a[e]=Math.max(a[e],i[e]);return{min:i,max:a,percent:o}}function ba(e,t){let n=e.min.length,r=e.min.slice(),i=[],a=[];for(let t=0;t<n;t++)(e.percent[t]===void 0?a:i).push(t);if(i.length>0){let n=i.reduce((t,n)=>t+e.percent[n],0),o=Math.max(100,n);for(let n of i){let i=Math.round(t*e.percent[n]/o);r[n]=Math.max(e.min[n],i)}let s=a.reduce((t,n)=>t+e.min[n],0),c=i.reduce((e,t)=>e+r[t],0)-(t-s);if(c>0){let t=i.map(t=>r[t]-e.min[t]),n=K(t,Math.min(c,t.reduce((e,t)=>e+t,0)));i.forEach((e,t)=>r[e]-=n[t])}}let o=t-r.reduce((e,t)=>e+t,0);if(o>0&&a.length>0){let t=a.map(t=>e.max[t]-e.min[t]),n=t.reduce((e,t)=>e+t,0),i=K(t,Math.min(o,n));a.forEach((e,t)=>r[e]+=i[t]),o-=Math.min(o,n)}if(o>0){let t=a.length>0?a:i;if(t.length>0){let n=t.map(t=>e.max[t]),i=K(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function xa(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>void 0);for(let n=0;n<r;n++)e.colFixed[n]===void 0?e.colPercent[n]!==void 0&&(i[n]=Math.max(0,Math.round(t*e.colPercent[n]/100))):i[n]=e.colFixed[n];for(let r of e.cells){if(r.row!==0)continue;let e=r.node.style,a;if(e.width&&e.width.kind===`percent`?a=Math.max(0,Math.round(t*e.width.value/100)):e.width&&e.width.kind!==`auto`&&(a=Fo(e.width,0,r.node,n)),a===void 0)continue;let o=K(Array.from({length:r.colSpan},()=>1),a);for(let e=0;e<r.colSpan;e++){let t=r.col+e;i[t]===void 0&&(i[t]=o[e])}}let a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length;if(o>0){let e=K(Array.from({length:o},()=>1),Math.max(0,t-a)),n=0;for(let t=0;t<r;t++)i[t]===void 0&&(i[t]=e[n++])}return i.map(e=>e??0)}function Sa(e,t){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let n=null;for(let{border:t,side:r}of e){if(!t||t.width[r]<=0)continue;let e=t.weight[r],i=t.style[r];(n===null||e>n.weight||e===n.weight&&nr[i]>nr[n.style])&&(n={weight:e,style:i,color:t.color[r]})}if(!n)return null;let{style:r,weight:i}=n;return{...n,width:w(r,i,t).cells,weight:T(r,i,t)}}function Ca(e,t){let n=t.columnCount,r=t.rows.length,a=e.style.borderCollapse,o=i(e.style.glyphSet),s={collapsed:a,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:a?0:e.style.borderSpacingX,spacingY:a?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!a||n===0||r===0)return s;let c=Array.from({length:r},()=>Array.from({length:n},()=>void 0));for(let e of t.cells)for(let t=e.row;t<e.row+e.rowSpan;t++)for(let n=e.col;n<e.col+e.colSpan;n++)c[t][n]=e;let l=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?c[a][e-1]:void 0,s=e<n?c[a][e]:void 0;if(r!==void 0&&r===s){i.push(null);continue}let u=[];r&&r.col+r.colSpan===e&&u.push({border:r.node.style.latticeBorder,side:`right`}),s&&s.col===e&&u.push({border:s.node.style.latticeBorder,side:`left`});let d=e===0?`left`:e===n?`right`:null;if(d){u.push({border:t.rows[a].style.latticeBorder,side:d});let e=t.rowGroups[a];e&&u.push({border:e.style.latticeBorder,side:d}),u.push({border:l,side:d})}i.push(Sa(u,o))}s.vSegments.push(i),s.vLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}for(let e=0;e<=r;e++){let i=[];for(let a=0;a<n;a++){let n=e>0?c[e-1][a]:void 0,s=e<r?c[e][a]:void 0;if(n!==void 0&&n===s){i.push(null);continue}let u=[];n&&n.row+n.rowSpan===e&&u.push({border:n.node.style.latticeBorder,side:`bottom`}),s&&s.row===e&&u.push({border:s.node.style.latticeBorder,side:`top`}),e>0&&u.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&u.push({border:t.rows[e].style.latticeBorder,side:`top`});let d=e>0?t.rowGroups[e-1]:null,f=e<r?t.rowGroups[e]:null;d&&d!==f&&u.push({border:d.style.latticeBorder,side:`bottom`}),f&&f!==d&&u.push({border:f.style.latticeBorder,side:`top`}),e===0&&u.push({border:l,side:`top`}),e===r&&u.push({border:l,side:`bottom`}),i.push(Sa(u,o))}s.hSegments.push(i),s.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return s}function wa(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function Ta(e,t,n){if(!e.collapsed)return e.spacingX*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.vLines[i];return r}function Ea(e,t,n){if(!e.collapsed)return e.spacingY*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.hLines[i];return r}function Da(e,t){let n=t.tableData.get(e);if(n)return n;let r=ha(e,t),i=Ca(e,r),a={structure:r,chrome:i,bounds:ya(r,i,t),chromeX:wa(i,r.columnCount)};return t.tableData.set(e,a),a}function Oa(e,t){let{structure:n,bounds:r,chromeX:i}=Da(e,t),a=r.min.reduce((e,t)=>e+t,0)+i,o=r.max.reduce((e,t)=>e+t,0)+i;return n.caption&&(a=Math.max(a,zo(n.caption,t)),o=Math.max(o,Io(n.caption,t))),{min:a,max:o}}function ka(e,t,n){let r=e.style,{bounds:i,chromeX:a}=Da(e,n),{min:o,max:s}=Oa(e,n),c=r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+at(r).right,l=i.max.reduce((e,t)=>e+t,0),u=0,d=0;for(let e=0;e<i.max.length;e++){let t=i.percent[e];t===void 0?d+=i.max[e]:u+=t}if(u>=100)l=1/0;else if(u>0){for(let e=0;e<i.max.length;e++){let t=i.percent[e];t!==void 0&&t>0&&(l=Math.max(l,Math.ceil(i.max[e]*100/t)))}l=Math.max(l,Math.ceil(d*100/(100-u)))}let f=Math.max(l+a,s)+c;return Math.max(o+c,Math.min(f,t))}function Aa(e,t,n,r,a,o){let{structure:s,chrome:c,bounds:l}=Da(e,o),u=s.columnCount,d=s.rows.length,f=r.left+a.left,p=r.top+a.top;for(let e of s.hidden)e.tableHidden=!0,e.localRect={x:0,y:0,width:0,height:0},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=0;let m=Math.max(0,t-wa(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?xa(s,m,o):ba(l,m),_=[],v=0;for(let e=0;e<u;e++)v+=c.collapsed?c.vLines[e]:c.spacingX,_.push(v),v+=g[e];let y=v+(c.collapsed?c.vLines[u]??0:c.spacingX),b=0;s.caption&&(Y(s.caption,t,void 0,f,p,`fill`,o),b=s.caption.localRect.height);let x=new Map,S=new Map;for(let e of s.cells){let t=e.col+e.colSpan,n=g.slice(e.col,t).reduce((e,t)=>e+t,0)+Ta(c,e.col,t);S.set(e,n),Y(e.node,n,void 0,0,0,`fill`,o,{width:n}),x.set(e,e.node.localRect.height)}let C=c.collapsed?c.hLines.reduce((e,t)=>e+t,0):(d+1)*c.spacingY,w=n===void 0?void 0:Math.max(0,n-b-C),T=e=>e!==void 0&&e.kind===`percent`&&w!==void 0?$e(e.value,w):0,E=Array.from({length:d},()=>0),D=Array.from({length:d},()=>!1);for(let e=0;e<d;e++){let t=s.rows[e].style.height;t!==void 0&&t.kind===`cells`&&(E[e]=t.value);let n=T(t);n>0&&(E[e]=Math.max(E[e],n),D[e]=!0)}for(let e of s.cells)if(e.rowSpan===1){let t=T(e.node.style.height);t>0&&(D[e.row]=!0),E[e.row]=Math.max(E[e.row],x.get(e),t)}let O=s.cells.filter(e=>e.rowSpan>1).sort((e,t)=>e.rowSpan-t.rowSpan);for(let e of O){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+Ea(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=K(Array.from({length:e.rowSpan},()=>1),r);for(let n=e.row;n<t;n++)E[n]+=i[n-e.row]}if(n!==void 0&&d>0){let e=n-b-C-E.reduce((e,t)=>e+t,0);if(e>0){let t=[];for(let e=0;e<d;e++)D[e]||t.push(e);let n=t.length>0?t:Array.from({length:d},(e,t)=>t),r=K(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let k=s.caption&&e.style.captionSide===`top`?b:0,A=[],j=k;for(let e=0;e<d;e++)j+=c.collapsed?c.hLines[e]:c.spacingY,A.push(j),j+=E[e];let ee=d>0?j+(c.collapsed?c.hLines[d]??0:c.spacingY):k,te=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!te.has(t)&&te.set(t,A[e])}for(let[e,t]of te){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=A[t]+E[t]);e.localRect={x:f,y:p+t,width:y,height:n-t},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=n-t}for(let e=0;e<d;e++){let t=s.rows[e],n=s.rowGroups[e],r=n?te.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+A[e]:A[e]-r,width:y,height:E[e]},t.resolvedPadding={top:0,right:0,bottom:0,left:0},t.unclampedHeight=E[e]}for(let e of s.cells){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+Ea(c,e.row,t);e.node.children.some(e=>!J(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&Y(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),ja(e.node,n-(e.node.naturalContentHeight??e.node.localRect.height)),e.node.localRect={x:_[e.col],y:0,width:e.node.localRect.width,height:n}}for(let t of e.children)J(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+ee),c.collapsed&&u>0&&d>0){let t=Array.from({length:d},()=>Array.from({length:u},()=>void 0));for(let e of s.cells){let n={node:e.node,row:e.rowNode,group:s.rowGroups[e.row]};for(let r=e.row;r<e.row+e.rowSpan;r++)for(let i=e.col;i<e.col+e.colSpan;i++)t[r][i]=n}e.lattice={vLines:c.vLines,hLines:c.hLines,vSegments:c.vSegments,hSegments:c.hSegments,widths:g,rowHeights:E,colX:_,rowY:A,contentLeft:f,contentTop:p,cells:t,set:i(e.style.glyphSet)}}return e.style.captionSide===`bottom`?ee+b:ee}function ja(e,t){if(t<=0)return;let n=e.style.verticalAlign,r=n===`center`?Math.floor(t/2):n===`end`?t:0;if(!e.children.some(e=>!J(e.style)&&!e.inlineBox)){e.resolvedPadding.top+=r,e.resolvedPadding.bottom+=t-r;return}if(!(r<=0))for(let t of e.children)t.inlineBox||(J(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Ma(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function Na(e,t,n,r,i,a=new Map){for(let o of e.children){let s=Ma(o.style);if(s===`relative`){let t=e.localRect.width-e.style.border.left-e.style.border.right-e.resolvedPadding.left-e.resolvedPadding.right,n=e.localRect.height-e.style.border.top-e.style.border.bottom-e.resolvedPadding.top-e.resolvedPadding.bottom;o.localRect.x+=Pa(o.style.insets.left,o.style.insets.right,t),o.localRect.y+=Pa(o.style.insets.top,o.style.insets.bottom,n)}else s===`absolute`&&Ra(o,e,t,n,r,i,a);Fa(o,t+o.localRect.x,n+o.localRect.y,r,a),Na(o,t+o.localRect.x,n+o.localRect.y,[...r,{node:o,absX:t+o.localRect.x,absY:n+o.localRect.y}],i,a)}}function Pa(e,t,n){return e===null?t===null?0:-X(t,n):X(e,n)}function Fa(e,t,n,r,i){let a=e.inlineElements?.some(e=>e.anchorNames.length>0)??!1;if(e.style.anchorNames.length===0&&!a)return;let o=Ia(r),{width:s,height:c}=e.localRect;for(let r of e.style.anchorNames)i.set(r,{rect:{x:t,y:n,width:s,height:c},scrollers:o});if(!a)return;let l=new Map;for(let t of e.inlineElements)t.anchorNames.length>0&&!l.has(t.element)&&l.set(t.element,t.anchorNames);for(let{element:r,rect:a}of ms(e,t,n)){let e=l.get(r);if(e!==void 0){for(let t of e)i.set(t,{rect:a,scrollers:o});l.delete(r)}}}function Ia(e){return e.map(e=>e.node).filter(e=>e.scroll)}function La(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!so(n.node.style))continue;let r=n.node.style.border;return{x:n.absX+r.left,y:n.absY+r.top,width:Math.max(0,n.node.localRect.width-r.left-r.right),height:Math.max(0,n.node.localRect.height-r.top-r.bottom)}}let n=e[0];return{x:n.absX,y:n.absY,width:n.node.localRect.width,height:n.node.localRect.height}}function Ra(e,t,n,r,i,a,o){let s=e.style,c=s.position===`fixed`,l=e.staticSlot,u=l?.kind===`grid`&&!c&&so(t.style)?{x:n+l.area.x,y:r+l.area.y,width:l.area.width,height:l.area.height}:La(i,c),d=s.positionAnchor===null?void 0:o.get(s.positionAnchor);if(s.positionArea&&d){let{rect:t,movers:o}=Ba(d,c?[]:Ia(i));if(o.length>0){let e=i[0].node;e.anchorScrollers??=new Set;for(let t of o)e.anchorScrollers.add(t.source)}Ha(e,n,r,u,t,s.positionArea,a)}else za(e,t,n,r,u,a);c&&(e.hostRect={x:n+e.localRect.x,y:r+e.localRect.y})}function za(e,t,n,r,i,a){let o=e.style;delete e.anchorArea;let s=o.insets.left===null?null:X(o.insets.left,i.width),c=o.insets.right===null?null:X(o.insets.right,i.width),l=o.insets.top===null?null:X(o.insets.top,i.height),u=o.insets.bottom===null?null:X(o.insets.bottom,i.height),d=xo(o.margin,i.width),f=d.left??0,p=d.right??0,m=d.top??0,h=d.bottom??0,g=o.height===void 0||o.height.kind===`auto`,_={width:Va(e,i.width,s,c,f+p,a)};l!==null&&u!==null&&g&&(_.height=fo(Math.max(0,i.height-l-u-m-h),Co(o.minHeight,i.height)??0,Co(o.maxHeight,i.height))),Y(e,i.width,i.height,0,0,`shrink`,a,_);let v=e.localRect.width,y=e.localRect.height,b;if(s!==null&&c!==null){let e=Math.max(0,i.width-s-c-v-f-p),t=d.left===null&&d.right===null;b=i.x+s+f+(t?Math.floor(e/2):d.left===null?e:0)}else b=s===null?c===null?Qa(e,t,n,v):i.x+i.width-c-v-p:i.x+s+f;let x;if(l!==null&&u!==null){let e=Math.max(0,i.height-l-u-y-m-h),t=d.top===null&&d.bottom===null;x=i.y+l+m+(t?Math.floor(e/2):d.top===null?e:0)}else x=l===null?u===null?$a(e,t,r,y):i.y+i.height-u-y-h:i.y+l+m;e.localRect={...e.localRect,x:b-n,y:x-r}}function Ba(e,t){let n=0,r=0,i=[];for(let a of e.scrollers)t.includes(a)||(n-=a.scroll.x,r-=a.scroll.y,i.push(a));for(let a of t)e.scrollers.includes(a)||(n+=a.scroll.x,r+=a.scroll.y,i.push(a));return{rect:{...e.rect,x:e.rect.x+n,y:e.rect.y+r},movers:i}}function Va(e,t,n,r,i,a){let o=e.style,s=wo(o.minWidth,t,e,a)??0,c=wo(o.maxWidth,t,e,a);if(o.width!==void 0&&o.width.kind!==`auto`)return fo(Fo(o.width,t,e,a),s,c);if(n!==null&&r!==null)return fo(Math.max(0,t-n-r-i),s,c);let l=Math.max(0,t-(n??0)-(r??0)-i);return fo(Math.min(Io(e,a),Math.max(zo(e,a),l)),s,c)}function Ha(e,t,n,r,i,a,o){let s=e.style,c=[{area:a},...s.positionTryFallbacks.map(e=>`flipBlock`in e?{area:qa(a,e),tactic:e}:{area:e})],l=({area:a,tactic:c})=>{let[l,u]=Wa(a.x,r.x,r.width,i.x,i.width),[d,f]=Wa(a.y,r.y,r.height,i.y,i.height),p={x:l,y:d,width:u,height:f},m=xo(s.margin,p.width),h=c?Ua(m,c):m,g=(h.left??0)+(h.right??0),_=(h.top??0)+(h.bottom??0);Y(e,p.width,p.height,0,0,`shrink`,o,{width:Va(e,p.width,null,null,g,o)});let{width:v,height:y}=e.localRect,b=Ga(a.x,p.x,p.width,i.x,i.width,v,h.left??0,h.right??0,s.anchorCenter.x?`anchor-center`:s.justifySelf),x=Ga(a.y,p.y,p.height,i.y,i.height,y,h.top??0,h.bottom??0,s.anchorCenter.y?`anchor-center`:s.alignSelf);return e.localRect={...e.localRect,x:b-t,y:x-n},e.anchorArea=a,v+g<=p.width&&y+_<=p.height};for(let e of c)if(l(e))return;l(c[0])}function Ua(e,t){let{top:n,right:r,bottom:i,left:a}=e;return t.flipBlock&&([n,i]=[i,n]),t.flipInline&&([a,r]=[r,a]),t.flipStart&&([n,r,i,a]=[a,i,r,n]),{top:n,right:r,bottom:i,left:a}}function Wa(e,t,n,r,i){let a=t+n,o=r+i;switch(e){case`start`:return[t,Math.max(0,r-t)];case`end`:return[o,Math.max(0,a-o)];case`center`:return[r,i];case`span-start`:return[t,Math.max(0,o-t)];case`span-end`:return[r,Math.max(0,a-r)];case`span-all`:return[t,n]}}function Ga(e,t,n,r,i,a,o,s,c){let l=t+o,u=t+n-s-a;if(c===`start`)return l;if(c===`end`)return u;if(c===`center`)return t+Math.floor((n-a-o-s)/2)+o;if(c!==`anchor-center`){if(e===`start`||e===`span-start`)return u;if(e===`end`||e===`span-end`)return l}let d=r+Math.floor((i-a-o-s)/2)+o;return Math.max(l,Math.min(d,u))}var Ka={start:`end`,end:`start`,center:`center`,"span-start":`span-end`,"span-end":`span-start`,"span-all":`span-all`};function qa(e,t){let{x:n,y:r}=e;return t.flipBlock&&(r=Ka[r]),t.flipInline&&(n=Ka[n]),t.flipStart&&([n,r]=[r,n]),{x:n,y:r}}function Ja(e,t,n){return ui(e,[n],Math.max(0,t-n))[0]}function Ya(e,t,n,r){return pi(fi(e,t),n,r)}function Xa(e,t,n,r,i){let a=xo(e.style.margin,n.innerWidth),[o,s,c,l]=r===`x`?[a.left??0,a.right??0,n.innerWidth,n.direction===`row`]:[a.top??0,a.bottom??0,n.innerHeight,n.direction===`column`],u=i+o+s;return(l?Ja(_i(t.style),c,u):Ya(e,t,c,u))+o}function Za(e,t,n,r,i){let a=xo(e.style.margin,n.width),o=e.style.justifySelf===`auto`?t.style.justifyItems:e.style.justifySelf,[s,c,l,u]=r===`x`?[a.left??0,a.right??0,n.width,o]:[a.top??0,a.bottom??0,n.height,fi(e,t)];return pi(u,l,i+s+c)+s}function Qa(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.x:i.kind===`grid`?n+i.staticArea.x+Za(e,t,i.staticArea,`x`,r):n+i.originX+Xa(e,t,i,`x`,r)}function $a(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.y:i.kind===`grid`?n+i.staticArea.y+Za(e,t,i.staticArea,`y`,r):n+i.originY+Xa(e,t,i,`y`,r)}function eo(e,t,n,r=1){let i=0,a=t;for(let t of e)n+r<=t.y||n>=t.y+t.height||(t.side===`left`?i=Math.max(i,t.x+t.width):a=Math.min(a,t.x));return{x:i,width:Math.max(0,a-i)}}function to(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return no(e,t,n,o,i,a)}function no(e,t,n,r,i,a){let o=[r,...e.map(e=>e.y+e.height).filter(e=>e>r)].sort((e,t)=>e-t),s=o.find(n=>eo(e,t,n,a).width>=i)??o[o.length-1],c=eo(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function ro(e,t,n){if(t===`none`)return n;let r=n;for(let n of e)(t===`both`||n.side===t)&&(r=Math.max(r,n.y+n.height));return r}function io(e){return ro(e,`both`,0)}function ao(e,t,n){let r=co();Y(e,t,void 0,0,0,`fill`,r),n?.(e),Na(e,0,0,[{node:e,absX:0,absY:0}],r);let i=e.localRect.height,a=jo(e),{overflow:o}=e.style;return o.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,a.x)),o.y===`visible`&&(e.localRect.height=Math.max(i,a.y)),{height:i}}function J(e){return e.position===`absolute`||e.position===`fixed`}function oo(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!J(e.style))}function so(e){return e.position!==`static`}function co(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function Y(e,t,n,r,i,a,o,s,c){let l=e.style,u=s?.height;delete e.decorationRuns,delete e.lattice,delete e.latticeRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.flow,delete e.textExtent,delete e.lineBands;let d=wo(l.minWidth,t,e,o)??0,f=wo(l.maxWidth,t,e,o),p=Co(l.minHeight,n)??0,m=Co(l.maxHeight,n),h=at(l),g=it(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:X(l.padding.top,t),right:X(l.padding.right,t)+h.right,bottom:X(l.padding.bottom,t)+h.bottom,left:X(l.padding.left,t)};e.resolvedPadding=_;let v=Math.max(s?.width??fo(Ao(l,t,a,e,o),d,f),bo(l.border,_,`x`)),y=Po(l,n),b=Vo(v,u??y??(p>0?p:void 0)??1/0,l.border,_),x=u!==void 0||y!==void 0,S=m===void 0?void 0:Math.max(0,m-l.border.top-l.border.bottom-_.top-_.bottom),C=uo(e),w=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(C)return lo(e,b.width,t,r,S,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return ai(e,b.width,t,r,l.border,_,o);if(l.display===`flex`)return si(e,b.width,t,n,l.border,_,o);if(l.display===`grid`)return bi(e,b.width,t,l.border,_,o);if(l.display===`table`)return Aa(e,b.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&ee(t.source,`float on a multicol container's own child is ignored — it lays out as a column item; float it inside a child instead (specs/float.md).`);return ua(e,b.width,r,S,l.border,_,o)}return To(e,b.width,r,l.border,_,o)},T=w(b.height,x);if(!C&&(l.display===`flex`||l.display===`grid`)&&!x&&m!==void 0){let e=l.border.top+l.border.bottom+_.top+_.bottom,t=fo(T+e,p,m)-e;t<T&&(T=w(Math.max(0,t),!0))}let E=T+l.border.top+l.border.bottom+_.top+_.bottom,D=u??y??E;e.unclampedHeight=D,e.naturalContentHeight=E;let O=Math.max(fo(D,p,m),bo(l.border,_,`y`)),k=e.multicolGeometry;if(k){let t=O-l.border.top-l.border.bottom-_.top-_.bottom;t>k.totalRows&&(_.bottom+=t-k.totalRows),sa(e,k,l.border,_)}if(e.localRect={x:r,y:i,width:v,height:O},nt(l.overflow.x)||nt(l.overflow.y)){let c=jo(e),u=Math.max(0,c.x-l.border.left-_.left),d=Math.max(0,c.y-l.border.top-_.top),f=Math.max(0,v-l.border.left-l.border.right-_.left-_.right),p=Math.max(0,O-l.border.top-l.border.bottom-_.top-_.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:nt(l.overflow.x)?Math.max(0,u-f):0,maxY:nt(l.overflow.y)?Math.max(0,d-p):0},l.scrollbarWidth!==`none`){let c=s?.gutter??{right:!1,bottom:!1},u=c.right||l.overflow.y===`auto`&&e.scrollRange.maxY>0,d=c.bottom||l.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==c.right||d!==c.bottom){Y(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:h.right,bottom:h.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function lo(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=rt(e);Zr(e.text,(n,r)=>{let i=u[r];Y(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d;if(c.display===`multicol`){let n=yo(c,`x`,t),o=ea(c,t,n);a.right+=o.leftover;let s=na(e,o,n,Qi(r,i));e.multicolGeometry=s,d=s}else d=mo(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let f=d.textY.at(-1);f!==void 0&&(e.baselineRow=c.border.top+a.top+f);let p=e.lineBands;e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+Jr(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows};let m=po(e,d,t,n,a);if(u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);Zr(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=d.spans[i];u[r].localRect={...u[r].localRect,x:c.border.left+a.left+ho(e,i,o,m).x+qr(o.start,n,e.advances),y:c.border.top+a.top+d.lineY[i]}})}}else l=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=xo(n.style.margin,t);n.staticSlot={kind:`block`,x:c.border.left+a.left+(e.left??0),y:c.border.top+a.top+(e.top??0)}}return l}function uo(e){return e.children.some(e=>!J(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function fo(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function po(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return n;let o=a.display===`flex`&&a.flexDirection===`column`,s=n,c=t.spans.reduce((t,n)=>Math.max(t,Jr(e.text,n.start,n.end,e.advances,a.tracking)),0),l=Math.max(0,n-c);if(l>0){let e=a.display===`grid`?pi(a.justifyItems,n,c):o?pi(a.alignItems,n,c):ui(_i(a),[c],l)[0];e>0&&(i.left+=e,i.right+=l-e,s=c)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?pi(a.alignItems,r,t.totalRows):ui(_i(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}return s}function mo(e,t,n){let r,i;if(n)r=[],i=go(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=_o(e,t,i),{heights:o,textOffsets:s}=vo(e,a),c=[],l=[],u=0;for(let t=0;t<a.length;t++)r&&(u=r[t].row),c.push(u),l.push(u+s[t]),u+=o[t]+(t<a.length-1?e.style.lineGap:0);return{spans:a,lineY:c,textY:l,totalRows:u,bands:r}}function ho(e,t,n,r){let i=e.style,a=e.lineBands?.[t],o=e.multicolGeometry,s=a?a.width:o?Math.max(1,o.columnWidth-i.tracking):r,c=t===0?i.textIndent:0,l=Jr(e.text,n.start,n.end,e.advances,i.tracking),u=Math.max(0,s-c-l),d=i.textAlign===`end`?u:i.textAlign===`center`?Math.floor(u/2):0;return{width:s,indent:c,x:(o?.lineX[t]??0)+(a?.x??0)+c+d}}function go(e,t,n,r){let{border:i,lineGap:a}=e.style,o=e.resolvedPadding,s=n.x+i.left+o.left,c=n.y+i.top+o.top,l=io(n.boxes),u=rt(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?vo(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=eo(n.boxes,n.contentWidth,c+d),a=Math.max(e.x,s),o=Math.min(e.x+e.width,s+t);if(o>a||c+d>=l){let e={row:d,x:Math.max(0,a-s),width:Math.max(0,o-a)};return r[i]=e,e.width}d++}}}function _o(e,t,n){if(e.style.whiteSpace!==`normal`){let t=Gr(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return Kr(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function vo(e,t){let n=rt(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0,c=[];for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a++];c.push(i);let o=i.localRect.height;t=Math.max(t,o),i.style.verticalAlign===`end`?s=Math.max(s,o-1):i.style.verticalAlign===`center`&&(s=Math.max(s,Math.floor((o-1)/2)))}let l=Math.min(s,t-1);for(let e of c)e.inlineTextRow=l;r.push(t),i.push(l)}return{heights:r,textOffsets:i}}function yo(e,t,n){let r=X(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function bo(e,t,n){return n===`x`?e.left+e.right+t.left+t.right:e.top+e.bottom+t.top+t.bottom}function X(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:$e(e.percent,t)+(e.cells??0)}function xo(e,t){let n=e=>e===null?null:X(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function So(e){return typeof e==`number`?e:0}function Co(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return $e(e.percent,t)+(e.cells??0)}}function wo(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Fo({kind:e},t,n,r):Co(e,t)}function To(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=[],l=s,u=null;for(let r of e.children){let e=xo(r.style.margin,t),i=e.top??0,d=e.bottom??0,f=e.left??0,p=e.right??0,m=l+(u===null?i:ko(u,i));if(J(r.style)){r.staticSlot={kind:`block`,x:o+f,y:m};continue}let h=Math.max(0,t-f-p);if(r.style.float!==`none`){let e=ro(c,r.style.clear,l+(u??0)-s);Y(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=to(c,t,r.style.float,e,m,g);c.push({..._,width:m,height:g,side:r.style.float}),r.localRect={...r.localRect,x:o+_.x+f,y:s+_.y+i};continue}let g=s+ro(c,r.style.clear,m-s);if(c.length>0&&oo(r)){let i=Eo(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>Y(r,h,n,0,0,`fill`,a,void 0,c.length>0?{boxes:c,contentWidth:t,x:e,y:g-s}:void 0);i(f);let l=Oo(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=Oo(e,t,r.localRect.width)),r.localRect={...r.localRect,x:o+l,y:g}}l=r.localRect.y+r.localRect.height,u=d}return u!==null&&(l+=u),(c.length>0||e.children.some(e=>e.anonymous))&&Do(e,o,s,t,c),Math.max(l-s,io(c))}function Eo(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Ro(e,`min`,o)+s,l=t=>Y(e,Math.max(0,t-s),a,0,0,`fill`,o),u=[...new Set(t.map(e=>e.y+e.height))].filter(e=>e>r).sort((e,t)=>e-t);for(let a of[r,...u.slice(0,-1)]){let r=eo(t,n,a);for(;r.width>=c;){l(r.width);let o=eo(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+Oo(i,o.width,e.localRect.width),y:a};if(o.width===r.width)break;r=o}}let d=u[u.length-1]??r;return l(n),{x:Oo(i,n,e.localRect.width),y:d}}function Do(e,t,n,r,i){let a=e.style.lineGap,o=e=>xo(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(J(u.style))continue;let{x:e,y:d,height:f}=u.localRect;if(u.style.float!==`none`){c?.flow&&(c.flow.bottom=Math.max(0,o(c))),l.push({float:u,previous:c});continue}if(u.anonymous)c?.flow&&(c.flow.bottom=d-s),s=d+f+a;else{let o=i.length>0&&oo(u)?eo(i,r,d-n,f).x:0,l=c?.flow?.bottom??0,p=d+a/2-s;u.flow={top:p>=l?p:p-l,right:0,bottom:0,left:e-t-o},s=d+a/2+f}c=u}for(let{float:e,previous:t}of l){let n=xo(e.style.margin,r),i=t?.flow?o(t)-(t.flow.bottom??0):0;e.flow={top:(n.top??0)+i,right:n.right??0,bottom:n.bottom??0,left:n.left??0}}}function Oo(e,t,n){let r=t-n;return e.left===null&&e.right===null?Math.floor(r/2):e.left===null?r-(e.right??0):e.left}function ko(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function Ao(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!J(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?Fo(a,t,r,i):Math.min(t,Io(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Fo(a,t,r,i);return Math.max(e,No(r,t,i))}return ka(r,t,i)}return a!==void 0&&a.kind!==`auto`?Fo(a,t,r,i):n===`shrink`?Math.min(t,Io(r,i)):t}function jo(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=Mo(r);t=Math.max(t,r.localRect.x+e.x),n=Math.max(n,r.localRect.y+e.y)}if(e.textExtent){let{border:r}=e.style,i=e.resolvedPadding;t=Math.max(t,r.left+i.left+e.textExtent.width),n=Math.max(n,r.top+i.top+e.textExtent.rows)}return{x:t,y:n}}function Mo(e){let{width:t,height:n}=e.localRect,r=e.style.overflow.x!==`visible`,i=e.style.overflow.y!==`visible`;if(r&&i)return{x:t,y:n};let a=jo(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function No(e,t,n){let r=e.style;return Oa(e,n).min+r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+at(r).right}function Po(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return $e(e.height.value,t)}function Fo(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return $e(e.value,t);case`min-content`:return zo(n,r);case`max-content`:return Io(n,r);case`fit-content`:return Math.min(Io(n,r),Math.max(zo(n,r),t));case`auto`:return Io(n,r)}}function Io(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Lo(e,t)+r.border.left+r.border.right+So(r.padding.left)+So(r.padding.right)+at(r).right;return t.maxContent.set(e,i),i}function Lo(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?Zi(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Oi(e,t).max;if(e.style.display===`table`)return Oa(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(So(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ro(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Ro(n,`max`,t)),0);if(e.style.display===`multicol`)return Zi(e.style,r);if(e.style.display===`block`&&n.some(e=>e.style.float!==`none`)){let e=0,r=0,i=0;for(let a of n){let n=Ro(a,`max`,t);a.style.float===`none`?a.style.clear===`none`?i=Math.max(i,n):(e=Math.max(e,r+i),r=0,i=n):r+=n}return Math.max(e,r+i)}return r}function Ro(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Fo(r.width,0,e,n)),i===void 0&&(i=t===`min`?zo(e,n):Io(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,fo(i,a,o))}function zo(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Bo(e,t)+r.border.left+r.border.right+So(r.padding.left)+So(r.padding.right)+at(r).right;return t.minContent.set(e,i),i}function Bo(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:Xr(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Oi(e,t).min;if(e.style.display===`table`)return Oa(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(So(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ro(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Ro(n,`min`,t)),0)}function Vo(e,t,n,r){return{width:Math.max(0,e-n.left-n.right-r.left-r.right),height:Math.max(0,t-n.top-n.bottom-r.top-r.bottom)}}function Ho(e){let{store:t,layers:n}=ts(e,{});return ns(t,n),t.grid.map(e=>e.join(``).trimEnd()).join(`
|
|
956
|
-
`)}function Uo(e,t={}){let{store:n,layers:r}=ts(e,t),i=(e,n)=>e.map((e,r)=>Wo(e,n[r],t.boxed));return{segments:i(n.grid,n.paints),cells:n.grid,layers:r.map(e=>({layer:e,segments:i(e.grid,e.paints)}))}}function Wo(e,t,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];if(o===``)continue;let s=t[a],c=1;for(;e[a+c]===``;)c++;if(n&&(o.length>1||o.charCodeAt(0)>=128)&&n(o,c,s)){r.push({text:o,cells:c,box:!0,...s}),i=0;continue}let l=r[r.length-1];if(l&&!l.box&&Ko(l,s))l.text+=o,i+=c;else if(l&&!l.box&&s&&(l.backgrounds||l.backgroundColor!==void 0)&&Go(l,s,`backgroundColor`)){l.backgrounds??=Array.from({length:i},()=>l.backgroundColor),delete l.backgroundColor,l.text+=o,i+=c;for(let e=0;e<c;e++)l.backgrounds.push(s.backgroundColor)}else if(l&&!l.box&&s&&s.backgroundColor===void 0&&(l.colors||l.color!==void 0)&&Go(l,s,`color`)){l.colors??=Array.from({length:i},()=>l.color),delete l.color,l.text+=o,i+=c;for(let e=0;e<c;e++)l.colors.push(s.color)}else r.push({text:o,...s}),i=c}return r}function Go(e,t,n){let r=n===`color`?`text`:`fill`,i=n===`color`?`backgroundColor`:`color`;return e.gradient===r&&t.gradient===r&&t[n]!==void 0&&e.selected===void 0&&t.selected===void 0&&e[i]===t[i]&&e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle&&e.textDecorationLine===t.textDecorationLine&&e.opacity===t.opacity}function Ko(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.gradient===t?.gradient&&e.backgrounds===t?.backgrounds&&e.colors===t?.colors&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function qo(e,t){e.selected?(t.color=e.backgroundColor??`var(--mw-bg, canvas)`,t.backgroundColor=e.color??`var(--mw-fg, canvastext)`):(e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor),e.backgrounds&&(t.backgroundImage=`linear-gradient(to right, ${Xo(e.backgrounds)})`),e.colors&&(t.backgroundImage=`linear-gradient(to right, ${Xo(e.colors)})`,t.webkitBackgroundClip=`text`,t.backgroundClip=`text`,t.color=`transparent`)),e.fontWeight!==void 0&&(t.fontWeight=e.fontWeight),e.fontStyle!==void 0&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==void 0&&(t.textDecoration=e.textDecorationLine),e.opacity!==void 0&&(t.opacity=e.opacity)}function Jo(e,t,n){let r=new Map;return(i,a,o)=>{let s=e[o-n]?.[a-t];if(s==null||i?.color===void 0)return i;let c=r.get(i.color);if(c===void 0&&r.set(i.color,c=Ve(i.color)),c===null||c.a>=1)return i;let l=Ve(s);return l?{...i,color:Ye(Je(c,l)),gradient:`text`}:i}}function Yo(e,t){let{border:n}=e.style;if(t===`padding-box`)return n;let r=e.resolvedPadding;return{top:n.top+r.top,right:n.right+r.right,bottom:n.bottom+r.bottom,left:n.left+r.left}}function Xo(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];e[n+1]!==r&&t.push(`${r} 0 calc(var(--mw-cw, 1ch) * ${n+1})`)}return t.join(`, `)}function Zo(e){return e.color===void 0&&e.backgroundColor===void 0&&e.backgrounds===void 0&&e.colors===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function Qo(e,t,n){let r=Array.from({length:t},()=>Array.from({length:e},()=>` `)),i=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),a=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),o=(n,r)=>n>=0&&n<e&&r>=0&&r<t,s=(e,t)=>{let n=a[t][e];if(n)for(let e=0;e<n.cells;e++)r[t][n.x+e]=` `,a[t][n.x+e]=void 0},c=(e,t,n)=>{let r=i[t][e];i[t][e]=r?{backgroundColor:r.backgroundColor,gradient:r.gradient===`fill`?`fill`:void 0,...n}:n};return{grid:r,paints:i,put:(e,i,l,u,d=1)=>{if(i<0||i>=t)return;if(n&&es(n,e,i,d),d===1){if(!o(e,i))return;s(e,i),r[i][e]=l,c(e,i,u);return}let f=o(e,i)&&o(e+d-1,i);for(let t=0;t<d;t++)o(e+t,i)&&(s(e+t,i),r[i][e+t]=f?t===0?l:``:` `,f&&(a[i][e+t]={x:e,cells:d}),c(e+t,i,u))},clear:(e,t)=>{o(e,t)&&(s(e,t),r[t][e]=` `,i[t][e]=void 0)}}}function $o(e,t,n){for(let r=t.y0;r<t.y1;r++){let i=e.get(r);i||e.set(r,i=[]),i.push({x0:t.x0,x1:t.x1,cover:n})}}function es(e,t,n,r){let i=e.get(n);if(i){for(let{x0:e,x1:a,cover:o}of i)if(!(t>=a||t+r<=e))for(let i=Math.max(t,e);i<Math.min(t+r,a);i++)o(i,n)}}function ts(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=new Map,a=Qo(n,r,i),o={options:t,layers:[],layer:null,covers:i,width:n,height:r,put:a.put};ls(e,0,0,o,o.put);for(let{node:t}of e.topLayer??[])ls(t,0,0,o,o.put,t.style.opacity);return{store:a,layers:o.layers}}function ns(e,t){for(let n of t)for(let t=0;t<n.height;t++){let r=n.grid[t];for(let i=0;i<n.width;i++){let a=r[i];if(a===``||!is(n,n.x+i,n.y+t))continue;let o=n.paints[t][i];if(a===` `&&o?.backgroundColor===void 0&&!o?.backgrounds)continue;let s=1;for(;r[i+s]===``;)s++;e.put(n.x+i,n.y+t,a,o,s)}}}var rs=(e,t,n)=>e===null||t>=e.x0&&t<e.x1&&n>=e.y0&&n<e.y1;function is(e,t,n){for(let r=e;r;r=r.parent)if(!rs(r.clip,t,n))return!1;return!0}var as=(e,t)=>e===null?t:{x0:Math.max(e.x0,t.x0),y0:Math.max(e.y0,t.y0),x1:Math.min(e.x1,t.x1),y1:Math.min(e.y1,t.y1)};function os(e,t,n,r){let i={node:t,box:n,x:0,y:0,width:0,height:0,grid:[],paints:[],holes:new Set,clip:r&&as(r,{x0:0,y0:0,x1:e.width,y1:e.height}),parent:e.layer};e.layers.push(i);let a=new Map,o=1/0,s=1/0,c=-1/0,l=-1/0,u=(t,n,r,i)=>{let a=Math.max(0,t),u=Math.min(e.width,t+r),d=Math.max(0,n),f=Math.min(e.height,n+i);return a>=u||d>=f?!1:(o=Math.min(o,a),s=Math.min(s,d),c=Math.max(c,u),l=Math.max(l,f),!0)};u(n.x,n.y,n.width,n.height);let d=[];return{put:(e,t,n,r,i=1)=>{es(a,e,t,i),u(e,t,i,1)&&d.push([e,t,n,r,i])},close:()=>{if(o===1/0)return;let{clip:t}=i;if(t&&(c<=t.x0||o>=t.x1||l<=t.y0||s>=t.y1))return;let n=c-o,{grid:r,paints:u,put:f,clear:p}=Qo(n,l-s);for(let[e,t,n,r,i]of d)f(e-o,t-s,n,r,i);Object.assign(i,{x:o,y:s,width:n,height:l-s,grid:r,paints:u}),$o(e.covers,{x0:o,y0:s,x1:c,y1:l},(e,t)=>{p(e-o,t-s),i.holes.add((t-s)*n+(e-o)),es(a,e,t,1)})},layer:i,covers:a}}function ss(e,t){return(n,r,i,a,o=1)=>{if(o===1){t(n,r)||e(n,r,i,a);return}let s=!0;for(let e=0;e<o;e++)t(n+e,r)&&(s=!1);if(s)e(n,r,i,a,o);else for(let i=0;i<o;i++)t(n+i,r)||e(n+i,r,` `,a)}}function cs(e,t=!0){let n={};return e.color&&(n.color=e.color),t&&e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(n.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(n.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(n.textDecorationLine=e.textDecorationLine),n}function ls(e,t,n,r,a,o=1,s=null){if(e.tableHidden)return;let c=e.hostRect,l=c?c.x:t+e.localRect.x+(e.stickyShift?.x??0),u=c?c.y:n+e.localRect.y+(e.stickyShift?.y??0),d=e.style,{options:f}=r,p={x:l,y:u,width:e.localRect.width,height:e.localRect.height},m=d.layer?os(r,e,p,s):null,h=m?m.put:c?r.put:a,g=m||c?null:s,_=m?{...r,layer:m.layer,covers:m.covers,put:m.put}:r,v=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},y=e=>{let t=[];qn(d,p,e,t);for(let e of t)h(e.x,e.y,e.glyph,v(e.color===void 0?void 0:{color:e.color}))};y(!1);let b=d.backgroundImage,x=d.backgroundClip===`text`,S=f.cell??mr,C=t=>{let n={gradient:void 0,...t};for(let t=0;t<e.localRect.height;t++)for(let r=0;r<e.localRect.width;r++)h(l+r,u+t,` `,n)};d.backgroundClear&&C({backgroundColor:void 0});let w=null;if(x&&(b.length>0||d.backgroundColor!==void 0)){let{width:t,height:n}=e.localRect;w=Jo(_r(b,d.backgroundColor,t,n,S),l,u)}else if(b.length>0){let{width:t,height:n}=e.localRect,r=_r(b,d.backgroundColor,t,n,S),i=d.backgroundClip,a=i===`padding-box`||i===`content-box`?Yo(e,i):st();for(let e=a.top;e<n-a.bottom;e++)for(let n=a.left;n<t-a.right;n++){let t=r[e][n];t&&h(l+n,u+e,` `,v({backgroundColor:t,gradient:`fill`}))}}else d.backgroundColor!==void 0&&C(v({backgroundColor:d.backgroundColor}));y(!0);let T=[];Kn(d,{x:l,y:u,width:e.localRect.width,height:e.localRect.height},T);for(let e of T){let t=v(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)h(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=v(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)h(l+t.x+n,u+t.y,t.glyph,e)}let E=e.lattice?dr(e,e.lattice,(e,t)=>rs(g,l+e,u+t)):null;if(e.lattice&&E){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...E.parts.keys()];for(let[e,t]of E.parts)e.latticeRuns=t.map(e=>({...e,x:l+e.x,y:u+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)h(t.x,t.y,t.glyph,v(t.color===void 0?void 0:{color:t.color}));let D=l-(e.scroll?.x??0),O=u-(e.scroll?.y??0),k=h,j=g,ee=ds(e,l,u);if(ee&&(j=as(g,ee),k=ss(h,(e,t)=>!rs(ee,e,t))),!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=v(cs(d,b.length===0&&!w)),n=e.inlineElements?.map(e=>v(cs(e))),r=f.selection?.get(e),i=(t,n,r,i,a,o)=>{if(e.text[t]===``){a?.backgroundColor&&k(r,i,` `,v({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=G(s);c>0&&k(r,i,s,w?w(o,r,i):o,c)},a=[];us(e,D,O,(o,s,c,l)=>{let u=e.charInline?.[o]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;r&&o>=r.start&&o<r.end&&(f={...f,selected:!0}),d?.stickyShift?a.push([o,s,c,l,d,f]):i(o,s,c,l,d,f)},(e,n)=>k(e,n,`…`,t));for(let e of a)i(...e)}for(let t of Xn(e))t.topLayerRank===void 0&&ls(t,D,O,_,k,o*t.style.opacity,j);if(E)for(let e of E.runs){let t=v(e.color===void 0?void 0:{color:e.color});h(l+e.x,u+e.y,e.glyph,t)}let te=e.scrollRange,M=e.scrollGutterCells;if(te&&M&&(M.right>0||M.bottom>0)){let{track:t,thumb:n}=A(i(d.glyphSet)),r=e=>v(e?{color:e}:void 0),a=r(d.scrollbarColor?.track??d.color),o=r(d.scrollbarColor?.thumb??d.color),s=hs(e,l,u);if(s.y){let{col:r,row:i,thick:c,len:l}=s.y,{at:u,len:d}=gs(l,te.sizeY,te.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+e,i+s,c?n:t,c?o:a)}}if(s.x){let{col:r,row:i,thick:c,len:l}=s.x,{at:u,len:d}=gs(l,te.sizeX,te.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+s,i+e,c?n:t,c?o:a)}}}m?.close()}function us(e,t,n,r,i){let a=e.style,o=e.resolvedPadding,s=t+a.border.left+o.left,c=n+a.border.top+o.top,l=e.localRect.width-a.border.left-a.border.right-o.left-o.right,{spans:u,textY:d}=e.multicolGeometry??mo(e,l);for(let t=0;t<u.length;t++){let n=u[t],o=c+d[t],f=ho(e,t,n,l),p=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?_s(e.text,n,f.width-f.indent,e.advances,a):{end:n.end,ellipsis:!1},m=s+f.x,h=e.advances;for(let t=n.start;t<p.end;){let n=qr(t,t+1,h),i=1;if(h)for(;t+i<p.end&&h[t+i]===0;)i++;if(e.text[t]!==``&&n>0){let a=e.inlineElements?.[e.charInline?.[t]??-1],s=a?.insets,c=(s?s.left??(s.right===null?0:-s.right):0)+(a?.stickyShift?.x??0),l=(s?s.top??(s.bottom===null?0:-s.bottom):0)+(a?.stickyShift?.y??0);r(t,i,m+c,o+l,n)}m+=n,t+=i}p.ellipsis&&i?.(m,o)}}function ds(e,t,n){let{overflow:r,border:i}=e.style,a=r.x!==`visible`,o=r.y!==`visible`;if(!a&&!o)return null;let s=e.scrollGutterCells,{width:c,height:l}=e.localRect;return{x0:a?t+i.left:-1/0,y0:o?n+i.top:-1/0,x1:a?t+c-i.right-(s?.right??0):1/0,y1:o?n+l-i.bottom-(s?.bottom??0):1/0}}function fs(e,t,n,r,i){let a=e.multicolGeometry;if(!a)return!1;let o=e.style,s=e.resolvedPadding,c=r-(t+o.border.left+s.left),l=i-(n+o.border.top+s.top),{lineX:u,lineY:d}=a;for(let e=0;e<d.length;e++){if(c<u[e]||c>=u[e]+a.columnWidth)continue;let t=(e+1<d.length&&u[e+1]===u[e]?d[e+1]:void 0)??d[e]+1+o.lineGap;if(l>=d[e]&&l<t)return!0}return!1}function ps(e,t,n,r,i){let a=null;return us(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,o,s,c)=>{if(s!==i||r<o||r>=o+c)return;let l=e.inlineElements?.[e.charInline?.[t]??-1]?.stickyShift!==void 0;(a===null||l)&&(a=t)}),a}function ms(e,t,n){let r=e.inlineElements;if(!r||!e.charInline)return[];let i=r.map((e,t)=>r.flatMap((n,r)=>r===t||n.element.contains(e.element)?[r]:[])),a=r.map(()=>new Map);return us(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,r,o,s)=>{let c=e.charInline[t]??-1;if(!(c<0))for(let e of i[c]){let t=a[e].get(o);t?(t.x0=Math.min(t.x0,r),t.x1=Math.max(t.x1,r+s)):a[e].set(o,{x0:r,x1:r+s})}}),r.flatMap((e,t)=>[...a[t]].sort(([e],[t])=>e-t).map(([t,n])=>({element:e.element,rect:{x:n.x0,y:t,width:n.x1-n.x0,height:1}})))}function hs(e,t,n){let r=e.scrollGutterCells;if(!r)return{};let{border:i,scrollbarSize:a,scrollbarInset:o}=e.style,s=n+i.top,c=t+i.left,l=n+e.localRect.height-i.bottom,u=t+e.localRect.width-i.right,d=r.bottom>0?l-r.bottom:l-o.y,f=r.right>0?u-r.right:u-o.x,p={};return r.right>0&&(p.y={col:u-r.right,row:s+o.y,thick:Math.min(a.y,r.right),len:Math.max(0,d-s-o.y)}),r.bottom>0&&(p.x={col:c+o.x,row:l-r.bottom,thick:Math.min(a.x,r.bottom),len:Math.max(0,f-c-o.x)}),p}function gs(e,t,n,r){let i=t>0?Math.min(1,e/t):1,a=Math.max(1,Math.round(i*e));return n>0&&(a=Math.max(1,Math.min(a,e-n))),{at:n>0?Math.round(Math.min(r,n)/n*(e-a)):0,len:a}}function _s(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(Jr(e,t.start,t.end,r,o)<=n)return{end:t.end,ellipsis:!1};let s=a===`ellipsis`?n-1:n,c=t.start;for(;c<t.end&&Jr(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function vs(e,t,n){let{width:r,height:i}=e.localRect,a=e.textExtent;if(a){let{border:t,overflow:n}=e.style,o=e.resolvedPadding;n.x===`visible`&&(r=Math.max(r,t.left+o.left+a.width)),n.y===`visible`&&(i=Math.max(i,t.top+o.top+a.rows))}return{x:t,y:n,width:r,height:i}}function ys(e,t,n){let r=e.topLayer??[];for(let i=r.length-1;i>=0;i--){let{node:a,ancestors:o}=r[i],{x:s,y:c}=a.hostRect;if(!xs(vs(a,s,c),t,n))continue;let l=[],u=e.localRect.x,d=e.localRect.y;for(let e of o.slice(1))u+=e.localRect.x+(e.stickyShift?.x??0),d+=e.localRect.y+(e.stickyShift?.y??0),l.push({node:e,x:u,y:d}),u-=e.scroll?.x??0,d-=e.scroll?.y??0;return l.push({node:a,x:s,y:c}),bs(a,s,c,t,n,l),l}let i=[];return bs(e,e.localRect.x,e.localRect.y,t,n,i),i}function bs(e,t,n,r,i,a){let o=ds(e,t,n),s=o!==null&&(r<o.x0||r>=o.x1||i<o.y0||i>=o.y1),c=t-(e.scroll?.x??0),l=n-(e.scroll?.y??0),u=Xn(e);for(let e=u.length-1;e>=0;e--){let t=u[e];if(t.tableHidden||t.topLayerRank!==void 0)continue;let n=t.hostRect;if(s&&!n)continue;let o=n?n.x:c+t.localRect.x+(t.stickyShift?.x??0),d=n?n.y:l+t.localRect.y+(t.stickyShift?.y??0);if(t.multicolFlow?fs(t,o,d,r,i):xs(vs(t,o,d),r,i)){a.push({node:t,x:o,y:d}),bs(t,o,d,r,i,a);return}}}function xs(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function Ss(e){return e.closest?.(`[inert]`)!=null}function Cs(e,t,n){let r=[];for(let i of ys(e,t,n)){if(Ss(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function ws(e,t,n){let r=(e,t,n)=>e>0?-Math.ceil(e/n):t>0?Math.ceil(t/n):0;return{x:r(e.left-t.x,t.x-e.right,n.width),y:r(e.top-t.y,t.y-e.bottom,n.height)}}function*Ts(e,t,n,r){if(e<=0||t<=0)return;let i=Math.max(0,Math.min(n,e-1)),a=Math.max(0,Math.min(r,t-1));yield{x:i,y:a,edge:`self`};for(let e=i-1;e>=0;e--)yield{x:e,y:a,edge:`end`};for(let t=i+1;t<e;t++)yield{x:t,y:a,edge:`start`};for(let n=1;n<t;n++){if(a-n>=0)for(let t=e-1;t>=0;t--)yield{x:t,y:a-n,edge:`end`};if(a+n<t)for(let t=0;t<e;t++)yield{x:t,y:a+n,edge:`start`}}}var Es={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function Ds(e){return Es[e]??null}function Os(e,t,n){let r=null,i=null;for(let a of n){let n=As(e,t,a.rect);n&&(!i||ks(n,i))&&(r=a,i=n)}return r?.element??null}function ks(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function As(e,t,n){let r=e===`up`||e===`down`,[i,a,o]=r?[`y`,`x`,`height`]:[`x`,`y`,`width`],s=t[i]+t[o],c=n[i]+n[o],l=e===`down`||e===`right`?n[i]-s:t[i]-c;if(l<0)return null;let u=r?`width`:`height`,d=Math.min(t[a]+t[u],n[a]+n[u])-Math.max(t[a],n[a]);return d>0?[0,l,0]:[1,l,-d]}function js(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x+(e.stickyShift?.x??0),s=i+e.localRect.y+(e.stickyShift?.y??0);!a&&!e.anonymous&&Ns(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of ms(e,o,s))Ns(n.element)&&t.push(n);let c=e.scroll?.x??0,l=e.scroll?.y??0;for(let t of e.children)n(t,o-c,s-l,!1)};return n(e,0,0,!0),t}function Ms(e,t){let n=null;for(let{element:r,rect:i}of e)if(r===t){if(!n)n={...i};else{let e=Math.max(n.x+n.width,i.x+i.width),t=Math.max(n.y+n.height,i.y+i.height);n.x=Math.min(n.x,i.x),n.y=Math.min(n.y,i.y),n.width=e-n.x,n.height=t-n.y}}return n}function Ns(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!Ss(e)}var Ps=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),Fs=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function Is(e,t,n=!1){let r=e.tagName;if(r===`TEXTAREA`||e.closest(`[contenteditable]:not([contenteditable='false'])`))return!0;if(r===`INPUT`){let n=e.type;return n===`radio`?!0:Ps.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!Fs.has(n)}if(r===`SELECT`){let t=e,r=Number(t.size)||Number(t.getAttribute(`size`))||0;return t.multiple||r>1||n}return!1}function Ls(e,t,n,r){let i=e.ownerDocument,a=i.createRange();a.setStart(e,t),a.collapse(!0);let o=i.createRange();return o.setStart(n,r),o.collapse(!0),a.compareBoundaryPoints(a.START_TO_START,o)}function Rs(e){let t=ae(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function zs(e,t){let n=t,r=null;for(let t of Vs(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function Bs(e,t,n){if(!e.contains(t))return null;let r=e.ownerDocument.createRange();return r.selectNodeContents(e),r.setEnd(t,n),r.toString().length}function*Vs(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function Hs(e,t,n){if(!e.charSource){let r=Rs(e);return(r&&Bs(r,t,n))??0}let r=rt(e).findIndex(e=>e.source.contains(t));if(r>=0){let t=-1;for(let n=0;n<=r;n++)t=e.text.indexOf(``,t+1);if(t>=0)return t}let i=e.charSource??[],a=0,o=i.length;for(;a<o;){let e=a+o>>1,r=i[e];Ls(r.node,r.offset,t,n)<=0?a=e+1:o=e}if(a===0)return 0;let s=i[a-1];return t===s.node&&n<s.offset+s.length?s.index+(n-s.offset):s.index+s.length}function Us(e,t){if(!e.charSource){let n=Rs(e),r=n&&zs(n,t);return r&&{node:r[0],offset:r[1]}}let n=e.charSource??[],r=0,i=n.length;for(;r<i;){let e=r+i>>1;n[e].index<=t?r=e+1:i=e}let a=n[r-1];if(!a)return null;let o=t-a.index;return o<=a.length?{node:a.node,offset:a.offset+o}:null}function Ws(e,t=[]){try{let n=e.ownerDocument.getSelection();if(!n)return null;if(n.getComposedRanges)return n.getComposedRanges({shadowRoots:[e,...t]})[0]??null;let r=e.getSelection?.();return!r||r.rangeCount===0?null:r.getRangeAt(0)}catch{return null}}function Gs(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:Ks(e,r)&&Ks(e,i)?`light`:`outside`}function Ks(e,t){for(let n=t;n;){if(e.contains(n))return!0;let t=n.getRootNode();n=t instanceof ShadowRoot&&t.host!==e?t.host:null}return!1}function qs(e){let t=[],n=e=>{let r=Rs(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function Js(e,t){let n=t.startContainer.getRootNode();if(!(n instanceof ShadowRoot)||n.host===e.source)return null;let r=null,i=e=>{if(!r){if(e.source===n.host)r=e;else for(let t of e.children)i(t)}};if(i(e),!r)return null;let a=r,o=Hs(a,t.startContainer,t.startOffset),s=Hs(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function Ys(e,t){let n=Js(e,t);if(n){let{leaf:e,start:t,end:r}=n;return r>t?new Map([[e,{start:t,end:r}]]):new Map}let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=new Map,a=e=>{if(!e.tableHidden&&ic(e,r)){if(oc(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(ac(e,r.startContainer)&&(n=Hs(e,r.startContainer,r.startOffset)),ac(e,r.endContainer)&&(a=Hs(e,r.endContainer,r.endOffset))),a>n&&i.set(e,{start:n,end:a})}for(let t of e.children)a(t)}};return a(e),i}function Xs(e,t){let n=Js(e,t);if(n)return n.leaf.text.slice(n.start,n.end);let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=[];return Zs(e,r,i),cc(i)}function Zs(e,t,n){if(e.tableHidden||!ic(e,t))return;let r=tc(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Qs(e,t,n);else if(e.style.display===`table`){let r=ec(e);for(let r of e.children)r.style.tableRole===`row`||$s(r)||Zs(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
|
|
957
|
-
`}),
|
|
958
|
-
`)&&(a=a.slice(0,-1));let o=
|
|
959
|
-
`.repeat(n)),n=0,t+=r.text)}return t}var
|
|
960
|
-
`||e===``||e===``}function fc(e){let t=lc.get(e);return t===void 0&&(t=pc(e)??pc(``),lc.set(e,t)),t}function pc(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var mc=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`}],hc=/^[\u2591-\u2593]$/,gc=class{#e=new Map;#t=new Map;#n;#r={style:`normal`,weight:`400`,size:`16px`,family:`monospace`};#i={width:0,height:0,letterSpacing:0};#a=1;#o;constructor(e){this.#o=e}configure(e,t){let n=typeof devicePixelRatio==`number`&&devicePixelRatio||1;(e.style!==this.#r.style||e.weight!==this.#r.weight||e.size!==this.#r.size||e.family!==this.#r.family||t.width!==this.#i.width||t.height!==this.#i.height||t.letterSpacing!==this.#i.letterSpacing||n!==this.#a)&&(this.#r={...e},this.#i={...t},this.#a=n,this.#e.clear(),this.#t.clear())}invalidate(){this.#e.clear(),this.#t.clear()}box(e,t,n){let r=n?.fontWeight??this.#r.weight,i=n?.fontStyle??this.#r.style,a=`${i}|${r}|${e}`,o=this.#e.get(a);return o===void 0&&(o=this.#s(e,t,`${i} ${r} ${this.#r.size} ${this.#r.family}`),document.fonts?.status!==`loading`&&this.#e.set(a,o)),o}#s(e,t,n){let r=this.#u(),{width:i,height:a,letterSpacing:o}=this.#i;if(!r||i<=0||a<=0)return null;r.font=n;let s=mc.find(t=>t.range.test(e));if(s)return this.#c(s.reference,r,n);if(hc.test(e))return this.#c(`█`,r,n)?this.#c(e,r,n,!0):null;let c=r.measureText(e),l=c.width+o,u=t*i;if(Math.abs(l-u)<=.01*i)return null;let d=l>0?u/l:1,f=c.actualBoundingBoxLeft+c.actualBoundingBoxRight,p=c.actualBoundingBoxAscent+c.actualBoundingBoxDescent;return f>0&&(d=Math.min(d,u/f)),p>0&&(d=Math.min(d,a/p)),{scale:Math.round(d*1e3)/1e3}}shift(e,t){let n=(e.period??0)*this.#a;if(!n)return 0;let r=(n-t*this.#i.height*this.#a%n)%n,i=n-r,a=e.reach;return(a&&r>a.above*this.#a&&i<=a.below*this.#a?-i:r)/this.#a}#c(e,t,n,r=!1){let i=`${e}|${n}`,a=this.#t.get(i);if(a!==void 0)return a;let{width:o,height:s,letterSpacing:c}=this.#i,l=t.measureText(e),u=l.actualBoundingBoxAscent+l.actualBoundingBoxDescent,d=u<s-.05,f=Math.abs(l.width+c-o)>.01*o;if(a=null,(d||f)&&u>0){let t=(s+3)/u,i,o=r?this.#l(e,n):null;if(o){let e=o*this.#a,n=Math.ceil(t*e-1e-6);t=n/e,i=n/this.#a}let c=l.fontBoundingBoxAscent,d=l.fontBoundingBoxDescent;if(a={scale:Math.round(t*1e3)/1e3},i&&(a.period=i),Number.isFinite(c+d)){let n=t*(2*l.actualBoundingBoxAscent-c+d)-3;if(this.#o){let t=this.#o(e,a.scale,n)-l.actualBoundingBoxAscent*a.scale;n-=2*(t+1.5)}if(a.lineHeight=Math.round(n*100)/100,i){let e=(c+d)*t,r=(n-e)/2;a.reach={above:Math.round(-r*100)/100,below:Math.round((r+e-s)*100)/100}}}}return this.#t.set(i,a),a}#l(e,t){let n=parseFloat(this.#r.size)||16,r=Math.ceil(n*2*4),i=document.createElement(`canvas`);i.width=i.height=r;let a=i.getContext(`2d`);if(!a||typeof a.getImageData!=`function`)return null;a.scale(4,4),a.font=t,a.textBaseline=`top`,a.fillText(e,n/2,n/2);let o=a.getImageData(0,0,r,r).data,s=[],c=0;for(let e of[.25,.375,.5,.625,.75]){let t=Math.round((n/2+this.#i.width*e)*4),i=[];for(let e=0;e<r;e++)i.push(o[(e*r+t)*4+3]);let a=i.findIndex(e=>e>0),l=i.length-1;for(;l>a&&i[l]===0;)l--;if(a<0||l-a<8)continue;let u=i.slice(a,l+1),d=u.reduce((e,t)=>e+t,0)/u.length,f=u.map(e=>e-d),p=f.reduce((e,t)=>e+t*t,0);p>c&&(c=p,s=f)}if(c===0)return null;let l=e=>{let t=0;for(let n=0;n+e<s.length;n++)t+=s[n]*s[n+e];return t/c},u=l(1),d=!1;for(let e=2;e<=s.length/2;e++){let t=l(e);if(d&&t<u&&u>.3)return(e-1)/4;d=t>u,u=t}return null}#u(){if(this.#n===void 0)try{let e=document.createElement(`canvas`).getContext(`2d`);this.#n=e&&typeof e.measureText==`function`?e:null}catch{this.#n=null}return this.#n}},_c=new WeakMap,vc=new WeakMap;function yc(e){return Rc(e,!0)!==null}function bc(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n)=>r.box(e,t,n)!==null||n?.opacity!==void 0&&jc(e)),n.selection&&(i.selection=n.selection),n.cell&&(i.cell=n.cell);let{segments:a,cells:o,layers:s}=Uo(e,i);if(!Ac(t,a,o,n))return!1;let c={width:o[0]?.length??0,height:o.length};return!n.layers||Ec(n.layers,s,n,c)}var xc=new WeakMap;function Sc(e){let t=xc.get(e);if(t)for(let e of t.order)Oc(e,t.cell)}function Cc(e,t,n){let r=xc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let i=r.order[e],a=Tc(i,t,n);if(!a||a.x<0||a.y<0||a.x>=i.width||a.y>=i.height)continue;let{layer:o}=i,s=Math.floor(a.x/r.cell.width),c=Math.floor(a.y/r.cell.height);if(o.holes.has(c*o.width+s))continue;let{box:l}=o;if(s>=l.x-o.x&&s<l.x-o.x+l.width&&c>=l.y-o.y&&c<l.y-o.y+l.height||(Nc(i.grid,s,c)??` `)!==` `)return{col:o.x+s,row:o.y+c,grid:i.grid,x:o.x,y:o.y}}return null}function wc(e,t,n){let r=xc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let{layer:i,grid:a}=r.order[e];if(t>=i.x&&t<i.x+i.width&&n>=i.y&&n<i.y+i.height&&is(i,t,n))return{grid:a,x:i.x,y:i.y}}return null}function Tc(e,t,n){let r=e.parent?Tc(e.parent,t,n):{x:t,y:n};if(!r||!e.inverse)return null;let{clip:i}=e;if(i&&(r.x<i.left||r.x>=i.left+i.width||r.y<i.top||r.y>=i.top+i.height))return null;let a=e.inverse.transformPoint({x:r.x-e.left,y:r.y-e.top});return{x:a.x,y:a.y}}function Ec(e,t,n,r){let i=xc.get(e);i||xc.set(e,i={nodes:new Map,order:[],cell:mr}),i.cell=n.cell??mr,i.order=[];let a=new Map,o=!1;for(let{layer:s,segments:c}of t){let t=s.node.source,l=i.nodes.get(t);if(!l){let e=document.createElement(`div`);e.className=`layer`;let n=document.createElement(`pre`);n.className=`grid`,n.setAttribute(`aria-hidden`,`true`),e.appendChild(n),l={box:e,grid:n,clipNode:null,backdrop:null,layer:s,parent:null,left:0,top:0,width:0,height:0,clip:null,inverse:null,placed:``},i.nodes.set(t,l)}l.layer=s,l.parent=s.parent?i.nodes.get(s.parent.node.source):null,i.order.push(l),s.clip&&!l.clipNode?(l.clipNode=document.createElement(`div`),l.clipNode.className=`clip`,l.clipNode.appendChild(l.box)):!s.clip&&l.clipNode&&(l.clipNode.replaceWith(l.box),l.clipNode=null);let u=l.clipNode??l.box,d=s.node.style.backdrop;d&&!l.backdrop?(l.backdrop=document.createElement(`div`),l.backdrop.className=`backdrop`):!d&&l.backdrop&&(l.backdrop.remove(),l.backdrop=null);let f=l.parent?.box??e,p=a.get(f),m=l.parent?l.parent.grid.nextSibling:f.firstChild,h=p?p.nextSibling:m;l.backdrop&&(l.backdrop!==h&&f.insertBefore(l.backdrop,h),h=l.backdrop.nextSibling),u!==h&&f.insertBefore(u,h),a.set(f,u),l.backdrop&&d&&Dc(l.backdrop,d,r,i.cell),n.placeLayers!==!1&&Oc(l,i.cell),Ac(l.grid,c,s.grid,n)||(o=!0)}let s=new Set(i.order);for(let[e,t]of i.nodes)s.has(t)||((t.clipNode??t.box).remove(),t.backdrop?.remove(),i.nodes.delete(e));return!o}function Dc(e,t,n,r){let i=e.style;i.width=`${n.width*r.width}px`,i.height=`${n.height*r.height}px`,i.backgroundColor=t.backgroundColor,i.backgroundImage=t.backgroundImage,i.backdropFilter=t.backdropFilter,i.opacity=t.opacity}function Oc(e,t){let{layer:n}=e,r=getComputedStyle(n.node.source),[i=`0`,a=`0`]=r.transformOrigin.split(` `),o=(parseFloat(i)||0)+(n.box.x-n.x)*t.width,s=(parseFloat(a)||0)+(n.box.y-n.y)*t.height,[c=0,l=0]=r.translate.split(` `).map((e,r)=>e.endsWith(`%`)?parseFloat(e)/100*(r===0?n.box.width*t.width:n.box.height*t.height):parseFloat(e)||0),u=r.transform||`none`,d=r.rotate||`none`,f=r.scale||`none`,p=r.filter||`none`,{backdropFilter:m}=n.node.style.layer,h=n.parent??{x:0,y:0};e.left=(n.x-h.x)*t.width,e.top=(n.y-h.y)*t.height,e.width=n.width*t.width,e.height=n.height*t.height;let{clip:g}=n;e.clip=g&&{left:(g.x0-h.x)*t.width,top:(g.y0-h.y)*t.height,width:(g.x1-g.x0)*t.width,height:(g.y1-g.y0)*t.height};let _=[e.left,e.top,e.width,e.height,e.clip&&[e.clip.left,e.clip.top,e.clip.width,e.clip.height],o,s,c,l,u,d,f,p,m].join(`|`);if(e.placed===_)return;e.placed=_;let v=e.box.style;if(e.clip&&e.clipNode){let t=e.clipNode.style;t.left=`${e.clip.left}px`,t.top=`${e.clip.top}px`,t.width=`${e.clip.width}px`,t.height=`${e.clip.height}px`}v.left=`${e.left-(e.clip?.left??0)}px`,v.top=`${e.top-(e.clip?.top??0)}px`,v.width=`${e.width}px`,v.height=`${e.height}px`,v.transformOrigin=`${o}px ${s}px`,v.translate=r.translate===`none`?`none`:`${c}px ${l}px`,v.rotate=d,v.scale=f,v.transform=u,v.filter=p,v.backdropFilter=m,e.inverse=kc(o,s,c,l,d,f,u)}function kc(e,t,n,r,i,a,o){if(typeof DOMMatrix!=`function`)return null;try{let s=i.split(` `),c=s.slice(0,-1).join(` `),l=(c===``||c===`z`)&&parseFloat(s.at(-1))||0,[u=1,d=u]=a===`none`?[]:a.split(` `).map(Number),f=new DOMMatrix().translate(e,t).translate(n,r).rotate(l).scale(u,d).multiply(o===`none`?new DOMMatrix:new DOMMatrix(o)).translate(-e,-t).inverse();return Number.isFinite(f.a)?f:null}catch{return null}}function Ac(e,t,n,r){let i=r.glyphs,a=Bc(t);if(_c.get(e)===a)return!0;let o=vc.get(e),s=new Set;if(o&&o.rows.length===t.length)for(let n=0;n<t.length;n++)Ic(e,o.rows[n].nodes,t[n])||s.add(n);if((s.size>0||!o||o.rows.length!==t.length)&&r.holdStructural&&yc(e))return!1;if(_c.set(e,a),!o||o.rows.length!==t.length){let r=document.createDocumentFragment(),a=[];for(let e=0;e<t.length;e++){let{nodes:n,units:o}=Mc(t[e],i,e);for(let e of n)r.appendChild(e);let s=e<t.length-1?document.createTextNode(`
|
|
961
|
-
`):null;s&&r.appendChild(s),
|
|
962
|
-
`)}return t.join(``)}function Vc(e){let t=new Set;Uc(e,!0,t);for(let n of Array.from(e.source.querySelectorAll(`[data-mw-inline-inset]`)))if(!t.has(n)){n.removeAttribute(`data-mw-inline-inset`);let e=n.style;for(let t of[`--mw-it`,`--mw-ir`,`--mw-ib`,`--mw-il`])e.removeProperty(t)}}function Z(e,t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function Q(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function Hc(e,t,n){e.getAttribute(t)!==n&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function $(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function Uc(e,t,n,r){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o,sticky:s}of e.inlineElements){let e=t;Z(e,`--mw-ls`,String(r)),i>0?Z(e,`--mw-ipl`,String(i)):Q(e,`--mw-ipl`),a>0?Z(e,`--mw-ipr`,String(a)):Q(e,`--mw-ipr`),(o||s)&&(n.add(t),qc(e,o??{top:0,right:null,bottom:null,left:0}))}t?Kc(e):e.anonymous||$c(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&Gc(e.source,e,i),!e.tableHidden)for(let t of Xn(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&Yn(t,e)&&!t.inlineBox?Z(n,`--mw-z`,String(t.style.zIndex)):Q(n,`--mw-z`)}Uc(t,!1,n,i)}}var Wc=`input, textarea, select, [contenteditable], [contenteditable] *`;function Gc(e,t,n){e.matches(Wc)&&(t.style.color===void 0?Q(e,`--mw-ink`):Z(e,`--mw-ink`,t.style.color),n===void 0?Q(e,`--mw-ground`):Z(e,`--mw-ground`,n))}function Kc(e){let t=e.source,n=e.text.length>0||e.children.some(e=>e.anonymous),{whiteSpace:r,textAlignBlocked:i,textIndent:a}=e.style;$(t,`data-mw-leaf`,n),$(t,`data-mw-nowrap`,n&&r!==`normal`),$(t,`data-mw-pre`,n&&r===`pre`),$(t,`data-mw-text-align-blocked`,n&&i),n?Z(t,`--mw-ti`,String(a)):Q(t,`--mw-ti`)}function qc(e,t){$(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?Q(e,t):Z(e,t,String(n))};n(`--mw-it`,t.top),n(`--mw-ir`,t.right),n(`--mw-ib`,t.bottom),n(`--mw-il`,t.left)}function Jc(e){for(let{node:t,ancestors:n}of e){if(t.style.position===`sticky`){let e=t.source,n=t.stickyShift;n?(Z(e,`--mw-sx`,String(n.x)),Z(e,`--mw-sy`,String(n.y))):(Q(e,`--mw-sx`),Q(e,`--mw-sy`))}else if(t.hostRect){let e=t.source,r=0,i=0;for(let e of n)r+=(e.scroll?.x??0)-(e.stickyShift?.x??0),i+=(e.scroll?.y??0)-(e.stickyShift?.y??0);Z(e,`--mw-sx`,String(r)),Z(e,`--mw-sy`,String(i))}for(let e of t.inlineElements??[]){if(e.sticky===void 0)continue;let t=e.element;Z(t,`--mw-it`,String(e.stickyShift?.y??0)),Z(t,`--mw-il`,String(e.stickyShift?.x??0))}}}var Yc={start:`left`,end:`right`,"span-start":`span-left`,"span-end":`span-right`},Xc={start:`top`,end:`bottom`,"span-start":`span-top`,"span-end":`span-bottom`};function Zc({x:e,y:t}){return`${Yc[e]??e} ${Xc[t]??t}`}function Qc(e){if(e.text.length>0)return e.baselineRow;for(let t=e.children.length-1;t>=0;t--){let n=e.children[t];if(n.anonymous&&n.baselineRow!==void 0)return n.localRect.y+n.baselineRow}}function $c(e){let t=e.source,n=e.topLayerRank!==void 0,r=n?{...e.localRect,...e.hostRect}:e.localRect;$(t,`data-mw-top`,n),e.style.position!==`sticky`&&(Q(t,`--mw-sx`),Q(t,`--mw-sy`));let i=e.resolvedPadding,{border:a,textAlignBlocked:o,overflow:s,whiteSpace:c,tracking:l,lineGap:u}=e.style,d=e.multicolFlow,f=e.multicolFlowSpan;$(t,`data-mw-laid-out`,!e.inlineBox&&!d&&!f&&!e.flow),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!d),$(t,`data-mw-multicol-flow-span`,!!f);let p=e.flow&&e.style.float!==`none`?e.style.float:null;Hc(t,`data-mw-float`,p),Hc(t,`data-mw-flow`,e.flow&&!p?oo(e)?`box`:`text`:null);let m=d??f??e.flow;m?(Z(t,`--mw-mt`,String(m.top??0)),Z(t,`--mw-mr`,String(m.right??0)),Z(t,`--mw-mb`,String(m.bottom??0)),Z(t,`--mw-ml`,String(m.left??0))):(Q(t,`--mw-mt`),Q(t,`--mw-mr`),Q(t,`--mw-mb`),Q(t,`--mw-ml`)),Hc(t,`data-mw-area`,e.anchorArea?Zc(e.anchorArea):null);let{verticalAlign:h}=e.style;$(t,`data-mw-vbottom`,!!e.inlineBox&&h===`end`);let g=!!e.inlineBox&&h===`center`&&e.inlineTextRow!==void 0;$(t,`data-mw-vmiddle`,g);let _=g?Qc(e):void 0;g?Z(t,`--mw-va`,String(e.inlineTextRow-(_??r.height))):Q(t,`--mw-va`),g&&_===void 0?Z(t,`--mw-vb`,`1`):Q(t,`--mw-vb`),Z(t,`--mw-ls`,String(l)),Z(t,`--mw-lh`,String(u+1)),Z(t,`--mw-lhs`,String(-u/2)),$(t,`data-mw-nowrap`,c!==`normal`);let v=d||f?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!v),$(t,`data-mw-multicol-balance`,!!v?.nativeBalance),v?(Z(t,`--mw-colc`,String(v.columnCount)),Z(t,`--mw-colg`,String(v.gap))):(Q(t,`--mw-colc`),Q(t,`--mw-colg`)),$(t,`data-mw-pre`,c===`pre`),Z(t,`--mw-x`,String(r.x)),Z(t,`--mw-y`,String(r.y)),Z(t,`--mw-w`,String(r.width)),Z(t,`--mw-h`,String(r.height)),$(t,`data-mw-clip`,s.x===`clip`||s.y===`clip`),$(t,`data-mw-scroll`,e.scrollRange!==void 0),e.scrollRange){let{maxX:n,maxY:r}=e.scrollRange;Z(t,`--mw-se-x`,String(n>0?n+e.localRect.width:1)),Z(t,`--mw-se-y`,String(r>0?r+e.localRect.height:1))}else Q(t,`--mw-se-x`),Q(t,`--mw-se-y`);Z(t,`--mw-pt`,String(i.top)),Z(t,`--mw-pr`,String(i.right)),Z(t,`--mw-pb`,String(i.bottom)),Z(t,`--mw-pl`,String(i.left)),Z(t,`--mw-bt`,String(a.top)),Z(t,`--mw-br`,String(a.right)),Z(t,`--mw-bb`,String(a.bottom)),Z(t,`--mw-bl`,String(a.left)),Z(t,`--mw-ti`,String(e.style.textIndent)),$(t,`data-mw-text-align-blocked`,o),$(t,`data-mw-table-hidden`,!!e.tableHidden),$(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function el(e,t,n,r,i){let a=0;return i!==null&&e.end>n.end-i&&(a=n.end-i-e.end),r!==null&&e.start+a<n.start+r&&(a=n.start+r-e.start),a>0?Math.min(a,Math.max(0,t.end-e.end)):a<0?Math.max(a,Math.min(0,t.start-e.start)):0}function tl(e){let t=[],n=[],r=e=>{n.length>0&&nl(e)&&t.push({node:e,ancestors:n.slice()}),n.push(e);for(let t of e.children)r(t);n.pop()};return r(e),t}function nl(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)||e.hostRect!==void 0&&e.topLayerRank===void 0}function rl(e){for(let t of e)il(t)}function il({node:e,ancestors:t}){let n={x:0,y:0},r=null,i=null;for(let e of t){let t={x:n.x+e.localRect.x+(e.stickyShift?.x??0),y:n.y+e.localRect.y+(e.stickyShift?.y??0)};n={x:t.x-(e.scroll?.x??0),y:t.y-(e.scroll?.y??0)},e.scrollRange&&(r={node:e,origin:t}),e.style.display===`table`&&(i={node:e,origin:n})}let a=t[t.length-1],o=r&&ds(r.node,r.origin.x,r.origin.y),s={x:n.x+e.localRect.x,y:n.y+e.localRect.y};if(e.style.position===`sticky`&&(delete e.stickyShift,o)){let t=e.style.tableRole!==`none`&&i?i:{node:a,origin:n},c=cl(t.node,t.origin,r.node),l=t===i&&i.node.lattice?ol(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:el({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},sl(u.left,o.x1-o.x0),sl(u.right,o.x1-o.x0)),y:el({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},sl(u.top,o.y1-o.y0),sl(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&al(e,s,o)}function al(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=cl(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=ms(e,r.x,r.y).filter(({element:e})=>e===t.element).map(({rect:e})=>e);if(a.length===0)continue;let o={x:{start:Math.min(...a.map(e=>e.x)),end:Math.max(...a.map(e=>e.x+e.width))},y:{start:Math.min(...a.map(e=>e.y)),end:Math.max(...a.map(e=>e.y+e.height))}},s={x:el(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:el(o.y,i.y,{start:n.y0,end:n.y1},t.sticky.top,t.sticky.bottom)};(s.x!==0||s.y!==0)&&(t.stickyShift=s)}}function ol(e,t){let n=fr(e,t);if(!n)return{top:0,right:0,bottom:0,left:0};let{r0:r,r1:i,c0:a,c1:o}=n,s=t.style.tableRole===`cell`;return{top:e.hLines[r],bottom:e.hLines[i+1],left:s?e.vLines[a]:0,right:s?e.vLines[o+1]:0}}function sl(e,t){return e===null?null:X(e,t)}function cl(e,t,n){let{border:r}=e.style,i=e.resolvedPadding,a=t.x+r.left+i.left,o=t.y+r.top+i.top,s=e.localRect.width-r.left-r.right-i.left-i.right,c=e.localRect.height-r.top-r.bottom-i.top-i.bottom;return e===n&&e.scrollRange&&(s=Math.max(s,e.scrollRange.sizeX),c=Math.max(c,e.scrollRange.sizeY)),{x:{start:a,end:a+s},y:{start:o,end:o+c}}}function ll(e,t,n,r){let i=lt(e,t,n);if(i.display===`none`)return null;let a=ae(e.tagName);if(a)return gl(e,i,a);let o=Array.from(e.children),s=o.map(xl),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||Il(e.tagName)?hl(e,i,o,s,c):{source:e,style:i,children:ul(e,Array.from(e.childNodes),t,n,r),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:st()}}function ul(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=ll(e,n,r,i);t&&s.push(t)},l=a,u=[],d=[],f=!1,p=()=>{let t=u.filter(e=>e instanceof Element);if(f)l??=ml(e,n,r),s.push(dl(e,u,t,d,o,l));else for(let e of t)c(e);u=[],d=[],f=!1};for(let e of t){if(e instanceof Element){let t=xl(e);if(t===`none`)continue;if(t===`block`){p(),c(e);continue}d.push(t),f||=t===`inline`}else if(e.nodeType!==Node.TEXT_NODE)continue;else f||=/[^ \t\r\n\f]/.test(e.textContent??``);u.push(e)}return p(),s}function dl(e,t,n,r,i,a){let o=hl(e,a,n,r,i,t);return o.anonymous=!0,o}function fl(e,t,n,r){let i=Array.from(e.childNodes).filter(e=>!(e instanceof Element&&e.hasAttribute(`data-mw-probe`))),a=i.filter(e=>e instanceof Element),o=a.map(xl);return o.includes(`block`)||!Pl(e)&&!o.includes(`inline`)?null:hl(e,pl(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function pl(e,t,n){return{...ml(e,t,n),tracking:0,lineGap:0}}function ml(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...ot(),...Ft(e,r,t),lineGap:Kt(r.lineHeight,i),tracking:Gt(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return At(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function hl(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Il(l),d=Sl(e,t.tracking,{rootFontSizePx:o,rootLetterSpacingPx:s?.letterSpacing??0,cellMetrics:s,textareaWidths:c,preserve:t.whiteSpace===`pre`,tabSize:t.tabSize},a),f=d.chars.join(``),{advances:p,charInline:m}=kl(d);if(d.boxes.length>0){let e=co();Zr(f,(t,n)=>{p[t]=Math.max(1,Io(d.boxes[n],e))})}let h=jl(f,p,t.tracking);if(u&&h===0){if(l===`INPUT`)h=Number(e.size)||20;else if(l===`TEXTAREA`)h=Number(e.cols)||20;else{let t=e,n=e=>e?.label||e?.textContent||``,r=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?[n(t.selectedOptions[0])]:Array.from(t.options,n);h=Math.max(1,...r.map(e=>Hr(e.trim())))}}let g=f.length>0?Ml(f):0,_;if(l===`TEXTAREA`){let n=e,r=n.value??``,i=c?.get(n),a=+!!r.endsWith(`
|
|
963
|
-
`),o=i!==void 0&&i>0?
|
|
964
|
-
`);t.whiteSpace=`pre`,(t.width===void 0||t.width.kind===`auto`)&&(t.width={kind:`max-content`});let o=
|
|
965
|
-
`;t--)e+=r.advances[t];return e};for(let a of e)if(a.nodeType===Node.TEXT_NODE){if(n.preserve){let e=a.textContent??``,o=0;for(let s of
|
|
951
|
+
`},_i=class{start(e){performance.mark(`${e} (start)`)}end(e,t){performance.mark(`${e} (end)`),performance.measure(e,{start:`${e} (start)`,end:`${e} (end)`,detail:t})}hit(e,t){performance.mark(e,{detail:t})}error(e){throw performance.mark(`(error)`,{detail:{error:`${e}`}}),e}},vi=`text/tailwindcss`,yi,bi=new Set,xi=``,Si=document.createElement(`style`),Ci=Promise.resolve(),wi=1,Ti=new _i;async function Ei(){Ti.start(`Create compiler`),Ti.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${vi}"]`),t=``;for(let n of e)Mi(n),t+=n.textContent+`
|
|
952
|
+
`;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),Ti.end(`Reading Stylesheets`,{size:t.length,changed:xi!==t}),xi!==t){xi=t,Ti.start(`Compile CSS`);try{yi=await gi(t,{base:`/`,loadStylesheet:Di,loadModule:Oi})}finally{Ti.end(`Compile CSS`),Ti.end(`Create compiler`)}bi.clear()}}async function Di(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:q.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:q.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:q.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:q.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return Ti.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw Ti.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Oi(){throw Error(`The browser build does not support plugins or config files.`)}async function ki(e){if(!yi)return;let t=new Set;Ti.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)bi.has(n)||(bi.add(n),t.add(n));Ti.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(Ti.start(`Build utilities`),Si.textContent=yi.build(Array.from(t)),Ti.end(`Build utilities`))}function Ai(e){async function t(){if(!yi&&e!==`full`)return;let t=wi++;Ti.start(`Build #${t} (${e})`),e===`full`&&await Ei(),Ti.start(`Build`),await ki(e),Ti.end(`Build`),Ti.end(`Build #${t} (${e})`)}Ci=Ci.then(t).catch(e=>Ti.error(e))}var ji=new MutationObserver(()=>Ai(`full`));function Mi(e){ji.observe(e,{attributes:!0,attributeFilter:[`type`],characterData:!0,subtree:!0,childList:!0})}new MutationObserver(e=>{let t=0,n=0;for(let r of e){for(let e of r.addedNodes)e.nodeType===Node.ELEMENT_NODE&&e.tagName===`STYLE`&&e.getAttribute(`type`)===vi&&(Mi(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==Si&&n++;r.type===`attributes`&&n++}if(t>0)return Ai(`full`);if(n>0)return Ai(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Ai(`full`),document.head.append(Si)})();var e=[`h`,`v`,`tl`,`tr`,`bl`,`br`,`teeUp`,`teeDown`,`teeLeft`,`teeRight`,`cross`],t=new Map,n=new Set;function r(e,r){let i=e.toLowerCase().trim();t.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`);for(let e of Object.values(r)){for(let t of Object.values(e))if(Array.isArray(t)){for(let e of t)typeof e==`object`&&Object.freeze(e);Object.freeze(t)}Object.freeze(e)}t.set(i,Object.freeze(r)),a.clear(),o.clear();for(let e of n)e()}function i(e){if(e)return a.get(e)??t.get(e.toLowerCase().trim())}var a=new Map,o=new Map;function s(e){let t=(e??``).trim().replace(/^["']|["']$/g,``);return new Set(Array.from(t).filter(e=>!/[\s,]/.test(e)))}function c(e,t){if(!t)return e;let n=e??``,r=o.get(n);r||o.set(n,r=new Map);let c=r.get(t);if(c!==void 0)return c;let u=s(t),d=u.size>0?l(i(e)??{},u):void 0,f=e;return d!==void 0&&(f=`${n}\u0000${t}`,a.set(f,d)),r.set(t,f),f}function l(e,t){let n={},r=!1,i=new Set([...Object.keys(e),...Object.keys(f)]);for(let a of i){let i={...e[a]};for(let[e,n]of Object.entries(i))typeof n==`string`&&t.has(n)&&(delete i[e],r=!0);i.shadow?.some(e=>t.has(e))&&(delete i.shadow,r=!0),i.weights&&=i.weights.map(e=>{let n={...e};for(let[e,i]of Object.entries(n))typeof i==`string`&&t.has(i)&&(delete n[e],r=!0);return n});let o=i.rounded??f[a]??[],s=!1,c=o.map(e=>{let n={radius:e.radius};for(let r of[`tl`,`tr`,`bl`,`br`]){let a=e[r];a!==void 0&&(t.has(a)?(i.rounded!==void 0||i[r]===void 0)&&(s=!0):n[r]=a)}return n}).filter(e=>e.tl??e.tr??e.bl??e.br);s&&(i.rounded=c,r=!0);for(let e of[i.weights,i.rounded])if(e){for(let t of e)Object.freeze(t);Object.freeze(e)}Object.keys(i).length>0&&(n[a]=Object.freeze(i))}return r?Object.freeze(n):void 0}function u(e){return n.add(e),()=>n.delete(e)}var d={radius:1,tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`},f={solid:[d],dashed:[d],dotted:[d]};function p(e,t,n,r,i){let a=r.roles[t];if(r.band?.[t]!==void 0)return a;let o=i?.[e],s=o?.rounded??(o?.[t]===void 0?f[e]??[]:[]),c={radius:0,glyph:a};for(let e of s){let r=e[t];if(r===void 0)continue;let i=Math.abs(e.radius-n),a=Math.abs(c.radius-n);(i<a||i===a&&e.radius>c.radius)&&(c={radius:e.radius,glyph:r})}return c.glyph}function m(e){switch(e){case 1:case 2:case 3:return`h`;case 4:case 8:case 12:return`v`;case 5:return`tl`;case 6:return`tr`;case 9:return`bl`;case 10:return`br`;case 7:return`teeDown`;case 11:return`teeUp`;case 13:return`teeRight`;case 14:return`teeLeft`;case 15:return`cross`;default:return null}}var h=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],g=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function _(e){let t={};for(let n=1;n<16;n++){let r=m(n);r&&!(r in t)&&(t[r]=e[n])}return t}var v=e=>_(Array.from({length:16},()=>e)),y=[` `,`━`,`━`,`━`,`┃`,`┏`,`┓`,`┳`,`┃`,`┗`,`┛`,`┻`,`┃`,`┣`,`┫`,`╋`],b=_(h),x=_(g),S=_(y),C={solid:b,double:x,dashed:{...b,h:`╌`,v:`╎`},dotted:{...b,h:`┄`,v:`┊`}},w={solid:[{width:2,...S}],dashed:[{width:2,...S,h:`╍`,v:`╏`}],dotted:[{width:2,...S,h:`┉`,v:`┋`}]},T=t=>{let n={};if(t)for(let r of e)t[r]!==void 0&&(n[r]=t[r]);return n},E=new WeakMap,D=new Map,O=e=>{if(!e)return D;let t=E.get(e);return t||E.set(e,t=new Map),t};function k(e,t,n){let r=O(n),i=`${e}:${t}`,a=r.get(i);if(a)return a;let o=n?.[e],s=o?.weights??(o?[]:w[e]??[]),c=null,l=Math.abs(t-1);for(let e of s){let n=Math.abs(e.width-t);(n<l||n===l&&e.width>(c?.width??1))&&(c=e,l=n)}let u={roles:{...C[e],...T(o),...T(c)},cells:c?.cells??1,band:c};return r.set(i,u),u}function A(e,t,n){return k(e,t,n).band?t:1}r(`default`,{});var j=[{width:2,cells:2}];r(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`,weights:j},dashed:{weights:j},dotted:{weights:j}});var M={...v(`+`),h:`-`,v:`|`};r(`ascii`,{solid:{...M,scrollTrack:`|`,scrollThumb:`#`,shadow:[`#`,`+`,`:`,`.`],weights:j},double:{...M,h:`=`},dashed:{...M,weights:j},dotted:{...M,h:`.`,v:`:`,weights:j}}),r(`single`,{solid:{rounded:[],weights:j},double:{...b,weights:j},dashed:{...b,weights:j},dotted:{...b,weights:j}});var ee=[{width:2,...x}];r(`cp437`,{solid:{rounded:[],weights:ee},dashed:{...b,weights:ee},dotted:{...b,weights:ee}});function N(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function te(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}r(`blocks`,{solid:{...v(`█`),weights:j},double:{...v(`█`),weights:j},dashed:{...v(`▒`),weights:j},dotted:{...v(`░`),weights:j}});var ne=new WeakMap;function re(e,t){let n=ne.get(e);n||ne.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,ie(e)))}function ie(e){if(!globalThis.process?.versions?.node)return e;let t=e.id?`#${e.id}`:``,n=e.classList.length?`.${Array.from(e.classList).join(`.`)}`:``;return`<${e.tagName.toLowerCase()}${t}${n}>`}var ae=new Map,oe=new Set;function se(e){let t=e.tag.toLowerCase();if(!t.includes(`-`)){console.warn(`[monowind] registerLeafRenderer: "${e.tag}" is not a custom-element tag name (needs a hyphen); ignored.`);return}ae.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),ae.set(t,{...e,tag:t}),fe()}function ce(){fe()}function le(e){return ae.get(e.toLowerCase())}function ue(e){return oe.add(e),()=>oe.delete(e)}function de(e,t){try{return e.render(t)}catch(n){return re(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function fe(){for(let e of oe)e()}var pe=new Set([`transform`,`translate`,`rotate`,`scale`,`filter`]),me=new Set([`color`,`opacity`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),P=new Set([`offset`,`computedOffset`,`easing`,`composite`]),he=new Set;function F(e,t){let n=new Set;if(t&&(t.animationName===``||t.animationName===`none`))return n;for(let t of e.getAnimations?.()??[]){if(!(`animationName`in t)||t.playState!==`running`)continue;let e=t.effect;if(e?.getKeyframes)for(let t of e.getKeyframes())for(let e of Object.keys(t))P.has(e)||n.add(e)}return t&&n.size>0&&he.add(e),n}function I(e){let t=[];for(let n of he){let r=e.contains(n);(r||!n.isConnected)&&he.delete(n),r&&t.push(n)}return t}function ge(e,t){if(e.size===0)return null;let n=t!==null&&t.children.length===0&&!t.inlineElements?.length,r=t!==null&&t.style.latticeBorder!==null,i=!0;for(let a of e)if(!pe.has(a)&&(i=!1,t===null||!me.has(a)||(a===`color`?!n:r)))return`layout`;return i?`box`:`paint`}function _e(e,t){for(let n of F(e,t))if(pe.has(n))return!0;if(!/[1-9]/.test(t.transitionDuration))return!1;for(let t of e.getAnimations?.()??[])if(`transitionProperty`in t&&t.playState===`running`&&pe.has(t.transitionProperty))return!0;return!1}function ve(e,t){return F(e,t).has(`backgroundColor`)}function ye(e){let t=new Map,n=e=>{e.anonymous||t.set(e.source,e);for(let t of e.children)n(t)};return n(e),t}var be=new WeakMap,L=[],R=new Map;function z(e,t,n){let r=be.get(e);if(be.set(e,t),ve(e,n))return R.delete(e),t;let i=R.get(e);if(i){if(t!==i.toValue){let n=Se(i);return R.delete(e),L.push({el:e,from:n,to:t}),n}let n=Se(i);return n===i.toValue&&R.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(L.push({el:e,from:r,to:t}),r):t}function B(e){let t=!1;for(let n=L.length-1;n>=0;n--){let{el:r,from:i,to:a}=L[n];if(!r.isConnected){L.splice(n,1);continue}if(!e.contains(r))continue;L.splice(n,1),t=!0;let o=Ce(getComputedStyle(r),`background-color`),s=De(i),c=De(a);o&&s&&c&&R.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function xe(){let e=performance.now();for(let[t,n]of R)(!t.isConnected||e>=n.start+n.duration)&&R.delete(t);return R.size>0}function Se(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return ke(Oe(e.from,e.to,n))}var V={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};function Ce(e,t){let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=-1;for(let e=0;e<n.length;e++)(n[e]===t||n[e]===`all`)&&(r=e);if(r<0)return null;let i=e=>{let t=e.split(`,`).map(e=>e.trim());return t[r%t.length]??``},a=we(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:we(i(e.transitionDelay))*1e3,easing:Te(i(e.transitionTimingFunction))}}function we(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function Te(e){if(e===`linear`)return e=>e;let t=V[e];if(t)return Ee(...t);let n=e.match(/^cubic-bezier\(([^)]+)\)$/);if(n){let[e,t,r,i]=n[1].split(`,`).map(e=>parseFloat(e));if([e,t,r,i].every(e=>Number.isFinite(e)))return Ee(e,t,r,i)}return e=>e}function Ee(e,t,n,r){let i=(e,t,n)=>3*e*n*(1-n)*(1-n)+3*t*n*n*(1-n)+n*n*n;return a=>{let o=0,s=1;for(let t=0;t<24;t++){let t=(o+s)/2;i(e,n,t)<a?o=t:s=t}return i(t,r,(o+s)/2)}}function De(e){if(e===``||e===`transparent`)return{r:0,g:0,b:0,a:0,legacy:!0};let t=e.match(/^rgba?\(([^)]+)\)$/);if(t){let e=t[1].split(/[\s,/]+/).map(e=>parseFloat(e));return e.length<3||e.some(e=>!Number.isFinite(e))?null:{r:e[0]/255,g:e[1]/255,b:e[2]/255,a:e[3]??1,legacy:!0}}if(t=e.match(/^color\(srgb ([^)]+)\)$/),t){let e=t[1].split(/[\s/]+/).map(e=>parseFloat(e));return e.length<3||e.slice(0,3).some(e=>!Number.isFinite(e))?null:{r:e[0],g:e[1],b:e[2],a:e[3]??1,legacy:!1}}if(t=e.match(/^okl(ch|ab)\(([^)]+)\)$/),t){let e=t[1]===`ch`,n=t[2].replaceAll(`none`,`0`).split(/[\s/]+/).map(e=>parseFloat(e));if(n.length<3||n.some(e=>!Number.isFinite(e)))return null;let[r,i,a]=n;return{...Ne(r,e?i*Math.cos(a*Math.PI/180):i,e?i*Math.sin(a*Math.PI/180):a),a:n[3]??1,legacy:!1}}return null}function Oe(e,t,n){let r=e.a+(t.a-e.a)*n,i=(i,a)=>{let o=i*e.a+(a*t.a-i*e.a)*n;return r===0?0:o/r};if(e.legacy&&t.legacy)return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:r,legacy:!0};let a=Me(e.r,e.g,e.b),o=Me(t.r,t.g,t.b);return{...Ne(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function ke(e){let t=e=>Math.round(Math.min(1,Math.max(0,e))*255),n=Math.round(Math.min(1,Math.max(0,e.a))*1e3)/1e3;return`rgba(${t(e.r)}, ${t(e.g)}, ${t(e.b)}, ${n})`}function Ae(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function je(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function Me(e,t,n){let r=Ae(e),i=Ae(t),a=Ae(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{l:.2104542553*o+.793617785*s-.0040720468*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}}function Ne(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return{r:je(4.0767416621*r-3.3077115913*i+.2309699292*a),g:je(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:je(-.0041960863*r-.7034186147*i+1.707614701*a)}}function Pe(e){if(!e.hasAttribute(`popover`)&&e.localName!==`dialog`)return!1;try{return e.matches(`:popover-open, :modal`)}catch{return!1}}var Fe=class{#e=new Map;#t=0;enter(e){this.#e.has(e)||this.#e.set(e,this.#t++)}assign(e){let t=new Set,n=[],r=[],i=e=>{if(r.length>0&&!e.anonymous){e.style.topLayer&&this.enter(e.source);let i=e.hostRect?this.#e.get(e.source):void 0;i===void 0?delete e.topLayerRank:(e.topLayerRank=i,t.add(e.source),n.push({node:e,ancestors:r.slice()}))}r.push(e);for(let t of e.children)i(t);r.pop()};i(e);for(let e of this.#e.keys())t.has(e)||this.#e.delete(e);n.sort((e,t)=>e.node.topLayerRank-t.node.topLayerRank),n.length>0?e.topLayer=n:delete e.topLayer}},Ie=e=>e===`oklch`?2:e===`hsl`?0:-1,H=e=>Math.min(1,Math.max(0,e)),Le=(e,t=1)=>{if(e===`none`)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:NaN};function Re(e,t){let[n,r]=e.split(`/`),i=n.trim().split(/[\s,]+/).filter(Boolean),a=r===void 0?1:Le(r.trim());return t&&r===void 0&&i.length===4&&(a=Le(i.pop())),{tokens:i,alpha:Number.isFinite(a)?H(a):1}}var ze=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Be=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function Ve(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function He(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}var Ue=(e,t,n,r)=>{let[i,a,o]=He(e,t,n);return{r:H(Be(i)),g:H(Be(a)),b:H(Be(o)),a:r}};function We(e){let t=e.trim().toLowerCase();if(t===`transparent`)return{r:0,g:0,b:0,a:0};let n=/^([a-z-]+)\((.*)\)$/.exec(t);if(!n)return null;let[,r,i]=n,{tokens:a,alpha:o}=Re(i,r===`rgb`||r===`rgba`);switch(r){case`rgb`:case`rgba`:{let[e,t,n]=a.map(e=>Le(e,255)/255);return e===void 0||[e,t,n].some(e=>!Number.isFinite(e))?null:{r:H(e),g:H(t),b:H(n),a:o}}case`oklab`:{let[e,t,n]=[Le(a[0]??``),Le(a[1]??``,.4),Le(a[2]??``,.4)];return[e,t,n].some(e=>!Number.isFinite(e))?null:Ue(e,t,n,o)}case`oklch`:{let[e,t,n]=[Le(a[0]??``),Le(a[1]??``,.4),Le(a[2]??``)];if([e,t,n].some(e=>!Number.isFinite(e)))return null;let r=n*Math.PI/180;return Ue(e,t*Math.cos(r),t*Math.sin(r),o)}case`color`:{let[e,...t]=a,[n,r,i]=t.map(e=>Le(e));return n===void 0||[n,r,i].some(e=>!Number.isFinite(e))?null:e===`srgb-linear`?{r:H(Be(n)),g:H(Be(r)),b:H(Be(i)),a:o}:{r:H(n),g:H(r),b:H(i),a:o}}default:return null}}var Ge=e=>/^(?:rgba?|hsla?)\(|^transparent$|^#|^[a-z]+$/i.test(e.trim()),Ke=(e,t,n)=>{let r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2,o=r-i;if(o<1e-9)return[NaN,a<=1e-9||a>=1-1e-9?NaN:0,a];let s=o/(1-Math.abs(2*a-1));return[((r===e?(t-n)/o%6:r===t?(n-e)/o+2:(e-t)/o+4)*60%360+360)%360,s,a]},qe=(e,t,n,r)=>{let i=((Number.isNaN(e)?0:e)%360+360)%360,a=e=>{let r=(e+i/30)%12;return n-t*Math.min(n,1-n)*Math.max(-1,Math.min(r-3,9-r,1))};return{r:H(a(0)),g:H(a(8)),b:H(a(4)),a:r}};function Je({r:e,g:t,b:n,a:r},i){if(i===`srgb`)return{c:[e,t,n],a:r};if(i===`hsl`)return{c:Ke(e,t,n),a:r};let a=[ze(e),ze(t),ze(n)];if(i===`srgb-linear`)return{c:a,a:r};let[o,s,c]=Ve(...a);if(i===`oklab`)return{c:[o,s,c],a:r};let l=Math.hypot(s,c);return{c:[o,l,l<1e-6?NaN:(Math.atan2(c,s)*180/Math.PI%360+360)%360],a:r}}function Ye(e,t,n,r){for(let n=0;n<3;n++)Number.isNaN(e.c[n])&&(e.c[n]=Number.isNaN(t.c[n])?0:t.c[n]),Number.isNaN(t.c[n])&&(t.c[n]=e.c[n]);let i=Ie(n);if(i<0)return;let a=e=>(e%360+360)%360,o=a(t.c[i])-a(e.c[i]);r===`shorter`?o>180?o-=360:o<-180&&(o+=360):r===`longer`?o>0&&o<180?o-=360:o>-180&&o<=0&&(o+=360):r===`increasing`?o<0&&(o+=360):o>0&&(o-=360),t.c[i]=e.c[i]+o}function Xe(e,t,n,r){let i=e.a+(t.a-e.a)*n;if(i===0)return{r:0,g:0,b:0,a:0};let a=Ie(r),o=(e,t)=>e.c[t]||0,s=r=>r===a?o(e,r)+(o(t,r)-o(e,r))*n:(o(e,r)*e.a*(1-n)+o(t,r)*t.a*n)/i,[c,l,u]=[s(0),s(1),s(2)];switch(r){case`srgb`:return{r:c,g:l,b:u,a:i};case`srgb-linear`:return{r:H(Be(c)),g:H(Be(l)),b:H(Be(u)),a:i};case`hsl`:return qe(c,l,u,i);case`oklab`:return Ue(c,l,u,i);default:{let e=u*Math.PI/180;return Ue(c,l*Math.cos(e),l*Math.sin(e),i)}}}function Ze(e,t){let n=e.a+t.a*(1-e.a);if(n===0)return{r:0,g:0,b:0,a:0};let r=(r,i)=>(r*e.a+i*t.a*(1-e.a))/n;return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:n}}function Qe({r:e,g:t,b:n,a:r}){let i=e=>Math.round(H(e)*255),a=`${i(e)} ${i(t)} ${i(n)}`;return r>=1?`rgb(${a})`:`rgb(${a} / ${Math.round(r*1e3)/1e3})`}function $e(e){let t=We(e);if(t)return t.a;let n=/\/\s*([\d.]+%?)\s*\)$/.exec(e.trim()),r=n?Le(n[1]):1;return Number.isFinite(r)?H(r):1}function et(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function tt(e,t){return t<=0?0:et(e/(.25*t))}function nt(e,t){return et(t*e/100)}function rt(e,t){let n=t.getBoundingClientRect(),r=parseFloat(getComputedStyle(e).letterSpacing)||0,i=t.ownerDocument.createRange();i.selectNodeContents(t);let a=i.getBoundingClientRect().height,o=Math.max(0,a-n.height),s=Math.max(0,n.height-a),c=n.width/100,l=Math.ceil(c*64-1e-6)/64,u=t.lastElementChild,d=u?u.getBoundingClientRect().top-n.top:void 0;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s,...d===void 0?{}:{baseline:d}}}function it(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}function at(e){return e===`auto`||e===`scroll`}function ot(e){return e.children.filter(e=>e.inlineBox)}function st(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function ct(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=st(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function lt(){return{display:`block`,flexDirection:`row`,flexReverse:!1,flexWrap:`nowrap`,wrapReverse:!1,flexGrow:0,flexShrink:0,flexBasis:void 0,order:0,justifyContent:`stretch`,alignContent:`stretch`,alignItems:`stretch`,alignSelf:`auto`,justifyItems:`stretch`,justifySelf:`auto`,gridTemplateColumns:{kind:`none`},gridTemplateRows:{kind:`none`},gridAutoColumns:[dt()],gridAutoRows:[dt()],gridAutoFlow:{direction:`row`,dense:!1},gridTemplateAreas:null,gridColumnStart:{kind:`auto`},gridColumnEnd:{kind:`auto`},gridRowStart:{kind:`auto`},gridRowEnd:{kind:`auto`},width:void 0,height:void 0,minWidth:`auto`,minHeight:`auto`,maxWidth:void 0,maxHeight:void 0,padding:ut(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,float:`none`,clear:`none`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:ut(),borderWeight:{top:1,right:1,bottom:1,left:1},borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},borderRadius:{tl:0,tr:0,bl:0,br:0},overflow:{x:`visible`,y:`visible`},scrollbarWidth:`auto`,scrollbarSize:{x:1,y:1},scrollbarInset:{x:0,y:0},overscroll:{x:!0,y:!0},scrollbarColor:null,whiteSpace:`normal`,tabSize:8,lineGap:0,tracking:0,textOverflow:`clip`,color:void 0,backgroundColor:void 0,backgroundClear:!1,backgroundImage:[],backgroundClip:`border-box`,fontWeight:`400`,fontStyle:`normal`,textDecorationLine:`none`,borderColor:{top:void 0,right:void 0,bottom:void 0,left:void 0},textAlignBlocked:!1,textAlign:`start`,textIndent:0,tableRole:`none`,tableLayout:`auto`,borderCollapse:!1,borderSpacingX:0,borderSpacingY:0,captionSide:`top`,verticalAlign:`start`,glyphSet:null,boxShadow:[],opacity:1,layer:null,anchorNames:[],positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1},topLayer:!1,backdrop:null,zIndex:null,latticeBorder:null,ruleX:null,ruleY:null,ruleBreak:`normal`,ruleInset:0,ruleVisibilityItems:`normal`,columnCount:null,columnWidth:null,columnFill:`balance`,columnSpan:!1,breakBeforeColumn:!1,breakAfterColumn:!1,breakInsideAvoid:!1}}function ut(){return{top:0,right:0,bottom:0,left:0}}function dt(){return{min:{kind:`auto`},max:{kind:`auto`}}}function ft(e,t,n){let r=getComputedStyle(e),a=parseFloat(r.fontSize)||t,o=Ut(e)?e.computedStyleMap():null,s=e.getAttribute(`class`)??``,l=e.style;zt(e,s,l);let u=c(r.getPropertyValue(`--mw-border-glyphs`).trim()||null,r.getPropertyValue(`--mw-missing-glyphs`)),d=i(u),f=(e,r,i)=>An(o,e,r,s,i,l,n,t)??Mn(o,e,r,s,i,l,n,t)??_n(r,t),p=r.display||Ft[e.tagName]||``,m=It[p]??`none`,h=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,g=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,_=Number.isFinite(g)?Math.max(1,tt(g,t)):null,v=p===`flex`||p===`inline-flex`?`flex`:p===`grid`||p===`inline-grid`?`grid`:p===`table`||p===`inline-table`?`table`:p===`none`||Pt(e,r)?`none`:h!==null||_!==null?`multicol`:`block`,y={kind:`none`},b={kind:`none`},x=[dt()],S=[dt()],C={direction:`row`,dense:!1},w=null;if(v===`grid`){if(o)y=Fn(o.get(`grid-template-columns`)?.toString()??``,t),b=Fn(o.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{y=Fn(r.getPropertyValue(`grid-template-columns`),t),b=Fn(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}x=zn(r.getPropertyValue(`grid-auto-columns`),t),S=zn(r.getPropertyValue(`grid-auto-rows`),t),C=Gn(r.getPropertyValue(`grid-auto-flow`)),w=Rn(r.getPropertyValue(`grid-template-areas`))}let T=`auto`,E=!1,D=0,O=0;if(v===`table`&&(T=r.tableLayout===`fixed`?`fixed`:`auto`,E=r.borderCollapse===`collapse`,!E)){let e=r.borderSpacing.split(` `);D=tt(parseFloat(e[0]??``)||0,t),O=tt(parseFloat(e[1]??e[0]??``)||0,t)}let k=Pe(e),A=k||e.hasAttribute(`popover`),j=A||r.position===`absolute`||r.position===`fixed`,M={display:v,tableRole:m,tableLayout:T,borderCollapse:E,borderSpacingX:D,borderSpacingY:O,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:m===`cell`||p.startsWith(`inline-`)?Lt(e,r):`start`,flexDirection:r.flexDirection.startsWith(`column`)?`column`:`row`,flexReverse:r.flexDirection.endsWith(`-reverse`),flexWrap:r.flexWrap.startsWith(`wrap`)?`wrap`:`nowrap`,wrapReverse:r.flexWrap===`wrap-reverse`,flexGrow:Number(r.flexGrow)||0,flexShrink:r.flexShrink===``?1:Number(r.flexShrink)||0,flexBasis:Nn(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Wt(r.justifyContent),alignContent:Wt(r.alignContent),alignItems:Gt(r.alignItems),alignSelf:Kt(r.alignSelf),justifyItems:Gt(r.justifyItems),justifySelf:Kt(r.justifySelf),gridTemplateColumns:y,gridTemplateRows:b,gridAutoColumns:x,gridAutoRows:S,gridAutoFlow:C,gridTemplateAreas:w,gridColumnStart:Wn(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Wn(r.getPropertyValue(`grid-column-end`)),gridRowStart:Wn(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Wn(r.getPropertyValue(`grid-row-end`)),width:En(o,r.width,`width`,t,s,l,n),height:En(o,r.height,`height`,t,s,l,n),minWidth:f(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:f(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:f(`max-width`,r.maxWidth,`max-w`),maxHeight:f(`max-height`,r.maxHeight,`max-h`),padding:Kn(r,t),margin:qt(r,o,s,l,t),position:Xt(r.position),float:Zt(r.position)?`none`:Qt(r.float),clear:G(r.clear),insets:$t(r,o,s,l,t),gapX:vn(r.columnGap===`normal`||r.columnGap===``?v===`multicol`?`${a}px`:`0px`:r.columnGap,t),gapY:vn(r.rowGap===`normal`?`0px`:r.rowGap,t),...qn(r,d),borderRadius:{tl:hn(r.borderTopLeftRadius,t),tr:hn(r.borderTopRightRadius,t),bl:hn(r.borderBottomLeftRadius,t),br:hn(r.borderBottomRightRadius,t)},overflow:Nt(r),scrollbarWidth:kt(e,r),scrollbarColor:At(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:jt(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:jt(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:jt(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:jt(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Rt(e,r,t),lineGap:Yt(r.lineHeight,a),tracking:Jt(r.letterSpacing,a,n?.letterSpacing??0),...wn(r),fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:wt(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,backgroundImage:tn(r.backgroundImage,r.color,t),backgroundClip:sn(r.backgroundClip),layer:Sn(e,r),...pt(e,r,j),topLayer:k,backdrop:A?xt(e):null,glyphSet:u,boxShadow:K(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:v===`flex`||v===`grid`||v===`multicol`?Vt(r,`x`,d):null,ruleY:v===`flex`||v===`grid`?Vt(r,`y`,d):null,ruleBreak:Bt(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,et(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:Bt(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:h,columnWidth:_,columnFill:r.columnFill===`auto`?`auto`:`balance`,columnSpan:r.columnSpan===`all`,breakBeforeColumn:r.breakBefore===`column`,breakAfterColumn:r.breakAfter===`column`,breakInsideAvoid:r.breakInside===`avoid`||r.breakInside===`avoid-column`};return St(M,r),A&&(bt(M,s,l),M.backdrop&&(M.layer??={backdropFilter:`none`,resampled:!1})),M}function pt(e,t,n){let r=ht(e,t);return n?{anchorNames:r,positionAnchor:mt(e,t),positionArea:vt(t.getPropertyValue(`position-area`)),positionTryFallbacks:yt(t.getPropertyValue(`position-try-fallbacks`)),anchorCenter:{x:t.justifySelf===`anchor-center`,y:t.alignSelf===`anchor-center`}}:{anchorNames:r,positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1}}}function mt(e,t){let n=t.getPropertyValue(`position-anchor`).trim();if(n.startsWith(`--`))return n;if(n===`match-parent`){let t=e.parentElement;return t?mt(t,getComputedStyle(t)):null}return[``,`auto`,`normal`].includes(n)&&e.hasAttribute(`popover`)&&e.id!==``?`--mw:${e.id}`:null}function ht(e,t){let n=t.getPropertyValue(`anchor-name`).trim();if(n!==``&&n!==`none`)return n.split(`,`).map(e=>e.trim());let r=e.getAttribute(`popovertarget`)??e.getAttribute(`commandfor`);return r?[`--mw:${r}`]:[]}var U={left:`start`,right:`end`,"span-left":`span-start`,"span-right":`span-end`,"x-start":`start`,"x-end":`end`,"span-x-start":`span-start`,"span-x-end":`span-end`,"x-self-start":`start`,"x-self-end":`end`,"span-x-self-start":`span-start`,"span-x-self-end":`span-end`,"inline-start":`start`,"inline-end":`end`,"span-inline-start":`span-start`,"span-inline-end":`span-end`,"self-inline-start":`start`,"self-inline-end":`end`,"span-self-inline-start":`span-start`,"span-self-inline-end":`span-end`},gt={top:`start`,bottom:`end`,"span-top":`span-start`,"span-bottom":`span-end`,"y-start":`start`,"y-end":`end`,"span-y-start":`span-start`,"span-y-end":`span-end`,"y-self-start":`start`,"y-self-end":`end`,"span-y-self-start":`span-start`,"span-y-self-end":`span-end`,"block-start":`start`,"block-end":`end`,"span-block-start":`span-start`,"span-block-end":`span-end`,"self-block-start":`start`,"self-block-end":`end`,"span-self-block-start":`span-start`,"span-self-block-end":`span-end`},_t={start:`start`,end:`end`,center:`center`,"span-start":`span-start`,"span-end":`span-end`,"span-all":`span-all`,"self-start":`start`,"self-end":`end`,"span-self-start":`span-start`,"span-self-end":`span-end`};function vt(e){let t=e.trim().split(/\s+/);if(t[0]===``||t[0]===`none`)return null;let n=e=>e in U?[`x`,U[e]]:e in gt?[`y`,gt[e]]:e in _t?[`both`,_t[e]]:null,r=n(t[0]);if(!r)return null;if(t.length===1){let[e,t]=r;return e===`both`?{x:t,y:t}:e===`x`?{x:t,y:`span-all`}:{x:`span-all`,y:t}}let i=t.length===2?n(t[1]):null;return i?r[0]===`both`&&i[0]===`both`||r[0]===`y`||i[0]===`x`?{y:r[1],x:i[1]}:{x:r[1],y:i[1]}:null}function yt(e){let t=e.trim();if(t===``||t===`none`)return[];let n=[];for(let e of t.split(`,`)){let t=e.trim().split(/\s+/);if(t.every(e=>e.startsWith(`flip-`)))n.push({flipBlock:t.includes(`flip-block`),flipInline:t.includes(`flip-inline`),flipStart:t.includes(`flip-start`)});else{let t=vt(e);t&&n.push(t)}}return n}function bt(e,t,n){e.position=`fixed`;for(let t of[`top`,`right`,`bottom`,`left`])e.insets[t]??=0;(e.width===void 0||e.width.kind===`auto`)&&(e.width={kind:`fit-content`}),(e.height===void 0||e.height.kind===`auto`)&&(e.height={kind:`fit-content`});let r=(e,r)=>RegExp(`(?:^|[\\s:.[!])-?(?:${e})-`).test(t)||n.getPropertyValue(r)!==``;r(`m|my|mt`,`margin-top`)||(e.margin.top=null),r(`m|mx|mr|me`,`margin-right`)||(e.margin.right=null),r(`m|my|mb`,`margin-bottom`)||(e.margin.bottom=null),r(`m|mx|ml|ms`,`margin-left`)||(e.margin.left=null)}function xt(e){try{let t=getComputedStyle(e,`::backdrop`),n=t.backgroundColor,r=t.backgroundImage||`none`,i=t.backdropFilter||`none`;return Ct(n)&&r===`none`&&i===`none`?null:{backgroundColor:n,backgroundImage:r,backdropFilter:i,opacity:t.opacity||`1`}}catch{return null}}function St(e,t){t.borderCollapse===`collapse`&&(e.display===`table`||e.tableRole===`cell`||e.tableRole===`row`||e.tableRole===`row-group`||e.tableRole===`header-group`||e.tableRole===`footer-group`)&&(e.latticeBorder={width:e.border,weight:e.borderWeight,style:e.borderStyle,color:e.borderColor,hidden:{top:t.borderTopStyle===`hidden`,right:t.borderRightStyle===`hidden`,bottom:t.borderBottomStyle===`hidden`,left:t.borderLeftStyle===`hidden`}},e.border=ut(),e.display===`table`&&(e.padding=ut()))}function Ct(e){let t=e.trim().toLowerCase();return t===``||t===`currentcolor`||$e(t)===0}function wt(e,t,n){let r=z(e,Ct(t)?``:t,n);return r===``?void 0:r}function Tt(e){return e===`hidden`||e===`clip`}var Et=new WeakMap,Dt=null;function Ot(e){if(Dt!==null)return Dt;if(!e.body)return!0;let t=e.createElement(`div`);return t.style.cssText=`position: absolute; width: 0; height: 0; overflow: auto`,e.body.appendChild(t),Dt=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),Dt}function kt(e,t){if(!Ot(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=Et.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return Et.set(e,n),n}function At(e){let t=(e??``).trim();if(!t||t===`auto`)return null;let n=0;for(let e=0;e<t.length;e++){let r=t[e];if(r===`(`)n++;else if(r===`)`)n--;else if(r===` `&&n===0)return{thumb:t.slice(0,e),track:t.slice(e+1).trim()}}return null}function jt(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function Mt(e){return Tt(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function Nt(e){let t=Mt(e.overflowX||e.overflow),n=Mt(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function Pt(e,t){if(t.position!==`absolute`&&t.position!==`fixed`)return!1;let n=t.clip.replace(/\s/g,``);return n===`rect(0px,0px,0px,0px)`||n===`rect(0,0,0,0)`||!le(e.tagName)&&(Tt(t.overflow)||Tt(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Ft={TABLE:`table`,THEAD:`table-header-group`,TBODY:`table-row-group`,TFOOT:`table-footer-group`,TR:`table-row`,TD:`table-cell`,TH:`table-cell`,CAPTION:`table-caption`,COL:`table-column`,COLGROUP:`table-column-group`},It={"table-header-group":`header-group`,"table-row-group":`row-group`,"table-footer-group":`footer-group`,"table-row":`row`,"table-cell":`cell`,"table-caption":`caption`,"table-column":`column`,"table-column-group":`column-group`};function Lt(e,t){let n=t.verticalAlign||e.getAttribute(`valign`)?.toLowerCase()||(e.tagName===`TD`||e.tagName===`TH`?`middle`:`baseline`);return n===`top`?`start`:n===`middle`?`center`:n===`bottom`?`end`:`start`}function Rt(e,t,n){return{whiteSpace:t.whiteSpace===`pre`?`pre`:t.whiteSpace===`nowrap`?`nowrap`:`normal`,tabSize:Math.max(1,Math.floor(parseFloat(t.tabSize))||8),textOverflow:t.textOverflow===`ellipsis`?`ellipsis`:`clip`,textDecorationLine:t.textDecorationLine,textAlignBlocked:W(e,t),textAlign:Ht(e,t),textIndent:Tn(t,n)}}function zt(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&re(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function Bt(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Vt(e,t,n){let r=parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0;if(r<=0)return null;let i=gn(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),a=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:k(i,r,n).cells,weight:A(i,r,n),style:i,color:a&&a!==`currentcolor`&&a!==`currentColor`?a:e.color}}function W(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Ht(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Ut(e){return typeof e.computedStyleMap==`function`}function Wt(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:case`right`:return`end`;case`space-between`:return`space-between`;case`space-around`:return`space-around`;case`space-evenly`:return`space-evenly`;case`normal`:case`stretch`:case``:return`stretch`;default:return`start`}}function Gt(e){switch(e){case`center`:case`anchor-center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function Kt(e){return e===`auto`||e===``||e===`normal`?`auto`:Gt(e)}function qt(e,t,n,r,i){let a=(a,o,s)=>{if(t){let e=t.get(a)?.toString().trim();if(e===`auto`||t.get(o)?.toString().trim()===`auto`)return null;if(e&&(e.endsWith(`%`)||e.startsWith(`calc(`))){let t=vn(e,i);if(t!==0)return t}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=vn(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:vn(u,i)};return{top:a(`margin-top`,`margin-block-start`,/(?:^|[\s:.[!])(?:m|my|mt)-auto\b/),right:a(`margin-right`,`margin-inline-end`,/(?:^|[\s:.[!])(?:m|mx|mr|me)-auto\b/),bottom:a(`margin-bottom`,`margin-block-end`,/(?:^|[\s:.[!])(?:m|my|mb)-auto\b/),left:a(`margin-left`,`margin-inline-start`,/(?:^|[\s:.[!])(?:m|mx|ml|ms)-auto\b/)}}function Jt(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function Yt(e,t){if(!e||e===`normal`||t<=0)return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.floor(n/t+1e-6)-1):0}function Xt(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function Zt(e){return e===`absolute`||e===`fixed`}function Qt(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function G(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;case`both`:return`both`;default:return`none`}}function $t(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:vn(e,i)}let s=r[a];if(s)return s===`auto`?null:vn(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=en(n,o,i);return l===void 0?c?vn(c,i):null:l};return{top:a(`top`,`top|inset(?!-[xy])|inset-y`),right:a(`right`,`right|end|inset(?!-[xy])|inset-x`),bottom:a(`bottom`,`bottom|inset(?!-[xy])|inset-y`),left:a(`left`,`left|start|inset(?!-[xy])|inset-x`)}}function en(e,t,n){let r=`(?:^|[\\s:.[!])(-?)(?:${t})-`,i=(e,t)=>e===`-`?typeof t==`number`?-t:t.cells===void 0?{percent:-t.percent}:{percent:-t.percent,cells:-t.cells}:t,a=RegExp(`${r}(\\d+)/(\\d+)(?![\\w./])`).exec(e);if(a)return i(a[1],{percent:100*Number(a[2])/Number(a[3])});let o=RegExp(`${r}full(?![\\w-])`).exec(e);if(o)return i(o[1],{percent:100});let s=RegExp(`${r}\\[(calc\\([^\\]]*\\)|\\d+(?:\\.\\d+)?%)\\]`).exec(e);if(s)return i(s[1],vn(s[2].replaceAll(`_`,` `),n))}function K(e,t,n){if(!e||e===`none`)return[];let r=e=>/^-?[\d.]+(?:e[+-]?\d+)?(?:px)?$/i.test(e),i=(e,n)=>{if(e===0)return 0;let r=n?Math.abs(e)/n:Math.abs(tt(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of mn(e)){let e=Un(o),s=e.filter(r).map(parseFloat);if(s.length<2)continue;let[c,l,u=0,d=0]=s;a.push({x:i(c,n?.width),y:i(l,n?.height),blur:u/(.25*t),spread:tt(d,t),color:e.find(e=>!r(e)&&e!==`inset`)??`currentcolor`,inset:e.includes(`inset`)})}return a}function tn(e,t,n){let r=[];if(!e||e===`none`)return r;for(let i of mn(e.replace(/\bcurrentcolor\b/gi,t))){let e=/^\s*(repeating-)?(linear|radial|conic)-gradient\((.*)\)\s*$/s.exec(i);if(!e)continue;let[,t,a,o]=e,s=Hn(o).map(e=>e.trim()),c=s.length>0&&!nn(s[0]),l=c?Un(s[0]):[],u=c?s.slice(1):s,d=pn(u,n);if(d.length<2)continue;let f={repeating:t!==void 0,...on(l,u),stops:d};if(a===`linear`)r.push({kind:a,...f,direction:ln(l)});else if(a===`radial`)r.push({kind:a,...f,...fn(l,n)});else{let e=l.indexOf(`from`);r.push({kind:`conic`,...f,from:e>=0?cn(l[e+1]??``):0,at:dn(l,n)})}}return r}var nn=e=>/^(?:rgba?|hsla?|oklab|oklch|color)\(|^transparent\b/i.test(e),rn=[`oklab`,`oklch`,`srgb`,`srgb-linear`,`hsl`],an=[`shorter`,`longer`,`increasing`,`decreasing`];function on(e,t){let n=e.indexOf(`in`);if(n>=0){let t=e[n+1],r=e[n+2];return{space:rn.includes(t)?t:`oklab`,hue:an.includes(r)?r:`shorter`}}return{space:t.filter(nn).every(e=>Ge(Un(e)[0]??``))?`srgb`:`oklab`,hue:`shorter`}}function sn(e){let t=e.split(`,`)[0].trim();return t===`text`||t===`padding-box`||t===`content-box`?t:`border-box`}function cn(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`grad`)?t*.9:e.endsWith(`rad`)?t*180/Math.PI:e.endsWith(`turn`)?t*360:t:0}function ln(e){if(e[0]===`to`){let t=0,n=0;for(let r of e.slice(1))r===`left`?t=-1:r===`right`?t=1:r===`top`?n=-1:r===`bottom`&&(n=1);return{toX:t,toY:n}}let t=e.find(e=>/^-?[\d.]+(?:deg|grad|rad|turn)$/.test(e));return t===void 0?{angle:180}:{angle:cn(t)}}function un(e,t){let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?{fraction:n/100}:/(?:deg|grad|rad|turn)$/.test(e)?{fraction:cn(e)/360}:{cells:tt(n,t)}:null}function dn(e,t){let n=e.indexOf(`at`),r={fraction:.5};if(n<0)return{x:r,y:r};let i={left:{fraction:0},top:{fraction:0},center:r,right:{fraction:1},bottom:{fraction:1}},a=e.slice(n+1,n+3).filter(e=>e!==`in`),[o,s]=a.map(e=>i[e]??un(e,t)),c=a[0]===`top`||a[0]===`bottom`||a[1]===`left`||a[1]===`right`;return{x:(c?s:o)??r,y:(c?o:s)??r}}function fn(e,t){let n=e.indexOf(`at`),r=n<0?e:e.slice(0,n),i=r.find(e=>[`closest-side`,`farthest-side`,`closest-corner`,`farthest-corner`].includes(e)),a=r.map(e=>/^[\d.]/.test(e)?un(e,t):null).filter(e=>e!==null),o=r.includes(`circle`)?`circle`:`ellipse`,s=i??`farthest-corner`;return a.length===1?(o=`circle`,s={rx:a[0],ry:a[0]}):a.length>=2&&(o=`ellipse`,s={rx:a[0],ry:a[1]}),{shape:o,size:s,at:dn(e,t)}}function pn(e,t){let n=[];for(let r of e){let e=Un(r),i=We(e[0]??``);if(!i){let r=un(e[0]??``,t),i=n[n.length-1];r&&i&&(i.hint=r);continue}let a=e.slice(1,3).map(e=>un(e,t));a.length===0&&a.push(null);for(let e of a)n.push({color:i,position:e})}return n}function mn(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t}function hn(e,t){let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return 0;let r=1/0;for(let e of n){let n=parseFloat(e);if(!Number.isFinite(n)||n<=0)return 0;r=Math.min(r,e.endsWith(`%`)?1/0:n/(.25*t))}return r}function gn(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function _n(e,t){if(!e||e===`none`||e===`auto`)return;if(e===`min-content`||e===`max-content`||e===`fit-content`)return e;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{percent:t}:void 0}let n=parseFloat(e);return Number.isFinite(n)?tt(n,t):void 0}function vn(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=jn(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=et(n.cells);return n.percent===0?r:r===0?{percent:n.percent}:{percent:n.percent,cells:r}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?tt(n,t):0}function yn(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}var bn=new Set([`matrix(1, 0, 0, 1, 0, 0)`,`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)`,`1`,`1 1`,`1 1 1`,`0deg`,`0px`,`0px 0px`,`0px 0px 0px`]),xn=[`transform`,`translate`,`rotate`,`scale`,`filter`];function Sn(e,t){let n=e=>{let n=t.getPropertyValue(e).trim();return n===``||bn.has(n)?`none`:n},r=n(`backdrop-filter`);return r!==`none`||xn.some(e=>n(e)!==`none`)||_e(e,t)?{backdropFilter:r,resampled:Cn(n)}:null}function Cn(e){if(e(`scale`)!==`none`||e(`rotate`)!==`none`)return!0;let t=e(`transform`);if(t===`none`)return!1;if(t.startsWith(`matrix3d(`))return!0;let n=/^matrix\(([^)]*)\)$/.exec(t);if(!n)return t.replaceAll(/translate(?:[XYZ]|3d)?\([^)]*\)/g,``).trim()!==``;let[r,i,a,o]=n[1].split(`,`).map(Number);return r!==1||i!==0||a!==0||o!==1}function wn(e){return{color:e.color,opacity:yn(e.opacity),borderColor:{top:e.borderTopColor,right:e.borderRightColor,bottom:e.borderBottomColor,left:e.borderLeftColor}}}function Tn(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,tt(r,t)):0}function En(e,t,n,r,i,a,o){let s=Dn(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:kn(s,n,o,r)};let c=An(e,n,t,i,n===`width`?`w`:`h`,a,o,r);if(c!==void 0)return{kind:`cells`,value:c};let l=n===`width`?`w`:`h`,u=On(i,l)??On(i,`size`);if(u!==null){let i=parseFloat(e?String(e.get(n)??``):t),a=Number.isFinite(i)&&Math.abs(i-u)<=u*.3;if(a||!Number.isFinite(i))return{kind:`cells`,value:kn(a?i:u,n,o,r)}}if(e){let t=e.get(n);if(t==null)return;let i=t.toString().trim();if(i===`auto`)return{kind:`auto`};let a=Pn(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:tt(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:et(parseFloat(i)/.25)};let s=Dn(i);if(s!==null)return{kind:`cells`,value:kn(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=Pn(d);if(e)return e;if(d.endsWith(`%`))return{kind:`percent`,value:parseFloat(d)};let t=parseFloat(d);if(Number.isFinite(t))return{kind:`cells`,value:tt(t,r)}}let f=`(?:^|[\\s:.[!])(?:${l}|size)-`;if(RegExp(`${f}min\\b`).test(i))return{kind:`min-content`};if(RegExp(`${f}max\\b`).test(i))return{kind:`max-content`};if(RegExp(`${f}fit\\b`).test(i))return{kind:`fit-content`};let p=RegExp(`${f}(\\d+)/(\\d+)(?![\\w./])`).exec(i);if(p)return{kind:`percent`,value:100*Number(p[1])/Number(p[2])};if(RegExp(`${f}full(?![\\w-])`).test(i))return{kind:`percent`,value:100};let m=RegExp(`${f}\\[(\\d+(?:\\.\\d+)?)%\\]`).exec(i);if(m)return{kind:`percent`,value:Number(m[1])};let h=RegExp(`${f}(\\d+(?:\\.\\d+)?)(?![\\w-/])`).exec(i);if(h)return{kind:`cells`,value:et(Number(h[1]))};if(!new RegExp(f).test(i)||t===`auto`)return{kind:`auto`};if(t.endsWith(`%`))return{kind:`percent`,value:parseFloat(t)};let g=parseFloat(t);if(Number.isFinite(g))return{kind:`cells`,value:tt(g,r)}}function Dn(e){let t=/^(-?[\d.]+)((?:[dsl]?v)(?:h|w|min|max)|vi|vb)$/.exec(e.trim());if(!t||typeof window>`u`)return null;let n=parseFloat(t[1]);if(!Number.isFinite(n))return null;let r=t[2],i=window.innerHeight,a=window.innerWidth,o=r.endsWith(`h`)?i:r.endsWith(`min`)?Math.min(a,i):r.endsWith(`max`)?Math.max(a,i):r===`vb`?i:a;return n/100*o}function On(e,t){if(typeof window>`u`)return null;let n=RegExp(`(?:^|[\\s:.[!])${t}-(screen|[dsl]v[hw])(?![\\w-])`).exec(e);if(n){let e=n[1];return e===`screen`?t.includes(`h`)?window.innerHeight:window.innerWidth:e.endsWith(`h`)?window.innerHeight:window.innerWidth}let r=RegExp(`(?:^|[\\s:.[!])${t}-\\[(-?[\\d.]+(?:[dsl]?v(?:h|w|min|max)|vi|vb))\\]`).exec(e);return r?Dn(r[1]):null}function kn(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):tt(e,r)}function An(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=a.getPropertyValue(t).trim(),u=l.startsWith(`calc(`);if(!u&&!r.includes(`-[calc(`))return;let d=RegExp(`(?:^|[\\s:.[!])${i}-\\[(calc\\([^\\]]*\\))\\]`).exec(r),f=u?l:d?.[1]?.replaceAll(`_`,` `);if(!f)return;let p=jn(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,et(p.cells));if(u)return m;let h=(e?String(e.get(t)??``):n).trim(),g=parseFloat(h);return(Number.isFinite(g)?Math.abs(g-p.px)<=Math.abs(p.px)*.3:h===``)?m:void 0}function jn(e,t,n,r){let i=e.match(/--spacing\(\s*-?[\d.]+\s*\)|calc|[\d.]+[a-z%]*|[()+\-*/]/g);if(!i||i.join(``).replace(/\s+/g,``)!==e.replace(/\s+/g,``))return null;let a=0,o=()=>i[a],s=()=>i[a++],c=(e,t)=>({cells:e,px:t,percent:0,unitless:!1}),l=e=>{let i=/^--spacing\(\s*(-?[\d.]+)\s*\)$/.exec(e);if(i){let e=parseFloat(i[1]);return c(e,e*r/4)}let a=/^([\d.]+)([a-z%]*)$/.exec(e);if(!a)return null;let o=parseFloat(a[1]),s=a[2];if(!Number.isFinite(o))return null;if(s===``)return{cells:o,px:o,percent:0,unitless:!0};if(s===`%`)return{cells:0,px:0,percent:o,unitless:!1};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=Dn(e);return l===null?null:c(kn(l,t,n,r),l)},u=(e,t,n)=>{if(e===`+`||e===`-`){if(t.unitless!==n.unitless)return null;let r=e===`+`?1:-1;return{cells:t.cells+r*n.cells,px:t.px+r*n.px,percent:t.percent+r*n.percent,unitless:t.unitless}}if(e===`*`){if(!t.unitless&&!n.unitless)return null;let[e,r]=t.unitless?[t,n]:[n,t];return{cells:r.cells*e.cells,px:r.px*e.px,percent:r.percent*e.cells,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,percent:t.percent/n.cells,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{...e,cells:-e.cells,px:-e.px,percent:-e.percent}}return e===`calc`?s()===`(`?f():null:e===`(`?f():l(e)},f=()=>{let e=m();return s()===`)`?e:null},p=()=>{let e=d();for(;e&&(o()===`*`||o()===`/`);){let t=s(),n=d();e=n?u(t,e,n):null}return e},m=()=>{let e=p();for(;e&&(o()===`+`||o()===`-`);){let t=s(),n=p();e=n?u(t,e,n):null}return e},h=m();return a===i.length?h:null}function Mn(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Dn(a.getPropertyValue(t))??Dn(e?.get(t)?.toString().trim()??``);if(l!==null)return kn(l,c,o,s);let u=On(r,i);if(u===null)return;let d=(e?String(e.get(t)??``):n).trim(),f=parseFloat(d),p=Number.isFinite(f)&&Math.abs(f-u)<=u*.3;if(p||d===``)return kn(p?f:u,c,o,s)}function Nn(e,t){if(!e||e===`auto`||e===`content`)return;let n=Pn(e);if(n)return n;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:void 0}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:tt(r,t)}:void 0}function Pn(e){if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};if(e===`fit-content`)return{kind:`fit-content`}}function Fn(e,t){let n=e.trim();if(!n||n===`none`)return{kind:`none`};if(n===`subgrid`||n.startsWith(`subgrid `))return{kind:`subgrid`};let r=[],i=[],a=[],o=e=>{i.push(a),a=[],r.push(e)},s;for(let e of Un(n)){let n=Ln(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=In(i[2].trim(),t);if(e.tracks.length===0)continue;let n=i[1];if(n===`auto-fill`||n===`auto-fit`){s||(s={index:r.length,tracks:e.tracks,mode:n},e.lineNames.some(e=>e.length>0)&&(s.lineNames=e.lineNames),a.length>0&&(s.leadingNames=a),a=[]);continue}let c=Math.max(0,Math.floor(Number(n)||0));for(let t=0;t<c;t++){a.push(...e.lineNames[0]);for(let t=0;t<e.tracks.length;t++)o(e.tracks[t]),a.push(...e.lineNames[t+1])}continue}o(Bn(e,t))}if(i.push(a),r.length===0&&!s)return{kind:`none`};let c={kind:`tracks`,tracks:r};return i.some(e=>e.length>0)&&(c.lineNames=i),s&&(c.autoRepeat=s),c}function In(e,t){let n=[],r=[],i=[];for(let a of Un(e)){let e=Ln(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(Bn(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Ln(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Rn(e){let t=[];for(let n of e.matchAll(/"([^"]*)"|'([^']*)'/g)){let e=(n[1]??n[2]??``).trim().split(/\s+/).filter(e=>e!==``);if(e.length===0)return null;t.push(e)}if(t.length===0)return null;let n=t[0].length;if(t.some(e=>e.length!==n))return null;let r=new Map;t.forEach((e,t)=>{e.forEach((e,n)=>{if(/^\.+$/.test(e))return;let i=r.get(e);i?(i.colStart=Math.min(i.colStart,n),i.colEnd=Math.max(i.colEnd,n+1),i.rowStart=Math.min(i.rowStart,t),i.rowEnd=Math.max(i.rowEnd,t+1)):r.set(e,{colStart:n,colEnd:n+1,rowStart:t,rowEnd:t+1})})});for(let[e,n]of r)for(let r=n.rowStart;r<n.rowEnd;r++)for(let i=n.colStart;i<n.colEnd;i++)if(t[r][i]!==e)return null;return{columns:n,rows:t.length,areas:r}}function zn(e,t){let n=Un(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>Bn(e,t));return n.length>0?n:[dt()]}function Bn(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Hn(n[1]).map(e=>e.trim());return e.length===2?{min:Vn(e[0],t),max:Vn(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Vn(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Vn(e,t){if(e===`auto`||e.startsWith(`fit-content`))return{kind:`auto`};if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};let n=e.match(/^(min|max)\((.*)\)$/s);if(n){let e=Hn(n[2]).map(e=>Vn(e.trim(),t)),r=e.every(e=>e.kind===`cells`||e.kind===`percent`||e.kind===`math`);return e.length>0&&r?{kind:`math`,fn:n[1],args:e}:{kind:`auto`}}if(e.endsWith(`fr`)){let t=parseFloat(e);return Number.isFinite(t)&&t>=0?{kind:`fr`,value:t}:{kind:`auto`}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:{kind:`auto`}}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:e.endsWith(`rem`)?et(r/.25):tt(r,t)}:{kind:`auto`}}function Hn(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.filter(e=>e.trim()!==``)}function Un(e){let t=[],n=0,r=-1;for(let i=0;i<e.length;i++){let a=e[i];a===`(`||a===`[`?n++:(a===`)`||a===`]`)&&n--,/\s/.test(a)&&n===0?(r!==-1&&t.push(e.slice(r,i)),r=-1):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t}function Wn(e){let t=e.trim();if(!t||t===`auto`)return{kind:`auto`};let n=!1,r,i;for(let e of t.split(/\s+/))e===`span`?n=!0:/^-?\d+$/.test(e)?r=Number(e):i=e;if(n){let e=r??1;return e<1?{kind:`auto`}:i===void 0?{kind:`span`,value:e}:{kind:`span`,value:e,name:i}}return i===void 0?r!==void 0&&r!==0?{kind:`line`,value:r}:{kind:`auto`}:r===0?{kind:`auto`}:r===void 0?{kind:`name`,name:i}:{kind:`name`,name:i,nth:r}}function Gn(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Kn(e,t){return{top:vn(e.getPropertyValue(`padding-top`),t),right:vn(e.getPropertyValue(`padding-right`),t),bottom:vn(e.getPropertyValue(`padding-bottom`),t),left:vn(e.getPropertyValue(`padding-left`),t)}}function qn(e,t){let n=ut(),r={top:1,right:1,bottom:1,left:1},i={top:`solid`,right:`solid`,bottom:`solid`,left:`solid`};for(let a of[`top`,`right`,`bottom`,`left`]){let o=e.getPropertyValue(`border-${a}-style`),s=o===`none`||o===`hidden`?0:parseFloat(e.getPropertyValue(`border-${a}-width`))||0;i[a]=gn(o),!(s<=0)&&(r[a]=s,n[a]=k(i[a],s,t).cells)}return{border:n,borderWeight:r,borderStyle:i}}var Jn=new Set(`class.style.id.role.hidden.open.popover.popovertarget.commandfor.inert.dir.lang.contenteditable.disabled.checked.selected.readonly.required.min.max.step.pattern.minlength.maxlength.multiple.placeholder.type.value.size.rows.cols.wrap.href.src.alt.width.height.label.start.reversed.colspan.rowspan.span.align.valign.nowrap.border.cellpadding.cellspacing.bgcolor.color.aria-busy.aria-checked.aria-current.aria-disabled.aria-expanded.aria-hidden.aria-invalid.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort`.split(`.`));function Yn(e,t){return t.startsWith(`data-`)?!t.startsWith(`data-mw-`):Jn.has(t)||le(e.tagName)!==void 0}function Xn(e,t,n){let r=e.border;if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return;let a=Math.max(r.top,r.right,r.bottom,r.left);for(let o=0;o<a;o++){let a={top:o<r.top,right:o<r.right,bottom:o<r.bottom,left:o<r.left},s={top:Math.min(o,r.top),right:Math.min(o,r.right),bottom:Math.min(o,r.bottom),left:Math.min(o,r.left)},c={x:t.x+s.left,y:t.y+s.top,width:t.width-s.left-s.right,height:t.height-s.top-s.bottom};if(c.width<=0||c.height<=0)continue;let l={tl:Math.max(0,e.borderRadius.tl-o),tr:Math.max(0,e.borderRadius.tr-o),bl:Math.max(0,e.borderRadius.bl-o),br:Math.max(0,e.borderRadius.br-o)};Qn(n,e.borderStyle,e.borderWeight,e.borderColor,l,c,a,i(e.glyphSet))}}function Zn(e,t,n,r){let a=e.boxShadow.filter(e=>e.inset===n);if(a.length===0)return;let o=N(i(e.glyphSet)),s=o.length-1,{border:c}=e,l={x:t.x+c.left,y:t.y+c.top,width:t.width-c.left-c.right,height:t.height-c.top-c.bottom};for(let e of a.slice().reverse()){let i=$e(e.color);if(i===0)continue;let a=Math.round((1-Math.sqrt(i))*s),c=i<1?`color-mix(in srgb, ${e.color} ${Math.round(i*100)}%, var(--mw-fg, canvastext))`:e.color,u=Math.max(0,Math.round(e.blur/2)),d=Array.from({length:u+1},(e,t)=>{if(t===u)return{glyph:o[a],color:c};let n=a+Math.round((u-t)*(s-a)/u),r=Math.round(100*(t+1)/(u+1));return{glyph:o[n],color:`color-mix(in srgb, ${c} ${r}%, transparent)`}});if(n){let t={x0:l.x+e.x+e.spread,y0:l.y+e.y+e.spread,x1:l.x+e.x+l.width-e.spread,y1:l.y+e.y+l.height-e.spread};for(let e=l.y;e<l.y+l.height;e++)for(let n=l.x;n<l.x+l.width;n++){let i=Math.min(n-t.x0,t.x1-1-n,e-t.y0,t.y1-1-e);if(i>=u)continue;let a=i<0?u:u-1-i;r.push({...d[a],x:n,y:e,length:1})}continue}let f=e.spread+u,p=t.x+e.x-f,m=t.y+e.y-f,h=t.x+e.x+t.width+f,g=t.y+e.y+t.height+f;for(let e=m;e<g;e++)for(let n=p;n<h;n++){if(n>=t.x&&n<t.x+t.width&&e>=t.y&&e<t.y+t.height)continue;let i=Math.min(n-p,h-1-n,e-m,g-1-e,u);r.push({...d[i],x:n,y:e,length:1})}}}function Qn(e,t,n,r,i,a,o,s){let c=k(t.top,n.top,s).roles,l=k(t.right,n.right,s).roles,u=k(t.bottom,n.bottom,s).roles,d=k(t.left,n.left,s).roles,f=(e,r,a)=>{let o=t[e]===t[r]?t[e]:`solid`,c=Math.max(A(t[e],n[e],s),A(t[r],n[r],s));return p(o,a,i[a],k(o,c,s),s)},{x:m,y:h,width:g,height:_}=a,v=g>=2&&_>=2,y=m+ +!!o.left,b=m+g-+!!o.right,x=h+ +!!o.top,S=h+_-+!!o.bottom;if(o.top&&b>y&&e.push({glyph:c.h,x:y,y:h,length:b-y,color:r.top}),o.bottom&&_>+!!o.top&&b>y&&e.push({glyph:u.h,x:y,y:h+_-1,length:b-y,color:r.bottom}),o.left)for(let t=x;t<S;t++)e.push({glyph:d.v,x:m,y:t,length:1,color:r.left});if(o.right&&g>+!!o.left)for(let t=x;t<S;t++)e.push({glyph:l.v,x:m+g-1,y:t,length:1,color:r.right});v&&(o.top&&o.left&&e.push({glyph:f(`top`,`left`,`tl`),x:m,y:h,length:1,color:r.top}),o.top&&o.right&&e.push({glyph:f(`top`,`right`,`tr`),x:m+g-1,y:h,length:1,color:r.top}),o.bottom&&o.left&&e.push({glyph:f(`bottom`,`left`,`bl`),x:m,y:h+_-1,length:1,color:r.bottom}),o.bottom&&o.right&&e.push({glyph:f(`bottom`,`right`,`br`),x:m+g-1,y:h+_-1,length:1,color:r.bottom}))}function $n(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function er(e){if(e.children.length<=1)return e.children;let t=null,n=null,r=null,i=null,a=null;for(let o of e.children)$n(o,e)?(o.style.zIndex??0)<0?(t??=[]).push(o):(a??=[]).push(o):o.inlineBox?(i??=[]).push(o):o.style.float===`none`?(n??=[]).push(o):(r??=[]).push(o);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),a&&a.length>1&&a.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i&&!a?n:!t&&!n&&!r&&i&&!a?i:!t&&!n&&!r&&!i&&a?a:[...t??[],...n??[],...r??[],...i??[],...a??[]]}function tr(e,t,n,r){return k(e,t,r).roles[n]}function nr(e,t,n,r,i,a,o){let s=m((n?8:0)|(r?4:0)|(i?2:0)|!!a);return s?k(e,t,o).roles[s]:` `}function rr(e,t,n,r){let i=e.map(e=>e.spanned?!1:n===`between`?e.beforeOccupied&&e.afterOccupied:n!==`around`||e.beforeOccupied||e.afterOccupied),a=[];for(let n=0;n<e.length;n++)if(a.push({start:e[n].start,end:e[n].end,covered:i[n]}),n+1<e.length){let r=t===`intersection`?!1:t===`none`?i[n]||i[n+1]:i[n]&&i[n+1];a.push({start:e[n].end,end:e[n+1].start,covered:r})}let o=[];for(let e of a){if(!e.covered)continue;let t=o[o.length-1];t&&t.end===e.start?t.end=e.end:o.push({start:e.start,end:e.end})}if(r===`overlap-join`){let t=new Map,n=new Map;for(let r=0;r+1<e.length;r++){let i=e[r].end,a=e[r+1].start-i;a<=0||(n.set(i,i+Math.ceil(a/2)),t.set(e[r+1].start,i+Math.floor(a/2)))}return o.map(e=>{let r=t.get(e.start),i=n.get(e.end);return{start:r??e.start,end:i??e.end,startHalf:r!==void 0,endHalf:i!==void 0}})}return o.map(e=>({start:e.start+r,end:e.end-r})).filter(e=>e.end>e.start)}function ir(e){let t=[],n=e.border.left+e.padding.left,r=e.border.top+e.padding.top,i=(e,t)=>({line:t.bandStart+Math.floor((t.bandSize-e.width)/2),start:t.start,end:t.end,startHalf:t.startHalf===!0,endHalf:t.endHalf===!0}),a=e.ruleX?e.vertical.map(t=>i(e.ruleX,t)):[],o=e.ruleY?e.horizontal.map(t=>i(e.ruleY,t)):[],s=e.ruleX?.width??0,c=e.ruleY?.width??0,l=(e,t,n,r)=>e.some(e=>n>=e.line&&n<e.line+t&&(e.start<r&&e.end>r||e.end===r&&!e.endHalf||e.start===r&&!e.startHalf)),u=(e,t)=>o.some(n=>t>=n.line&&t<n.line+c&&e>=n.start&&e<n.end);if(e.ruleX){let i=tr(e.ruleX.style,e.ruleX.weight,`v`,e.glyphs);for(let o of a){for(let a=0;a<s;a++)for(let s=o.start;s<o.end;s++)u(o.line+a,s)||t.push({glyph:i,x:n+o.line+a,y:r+s,length:1,color:e.ruleX.color});ar(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`,u=Math.max(e.ruleY.weight,e.ruleX?.weight??0);for(let d of o){for(let f=0;f<c;f++){let p=d.line+f;for(let f=d.start;f<d.end;f++){let d=l(a,s,f,p),m=l(a,s,f,p+1);t.push({glyph:d||m?nr(i?`double`:`solid`,u,d,m,l(o,c,p,f),l(o,c,p,f+1),e.glyphs):tr(e.ruleY.style,e.ruleY.weight,`h`,e.glyphs),x:n+f,y:r+p,length:1,color:e.ruleY.color})}}ar(e,t,`y`,d.line,d.start,d.end)}}return t}function ar(e,t,n,r,i,a){let o=n===`x`?e.ruleX:e.ruleY,s=e.border.left+e.padding.left,c=e.border.top+e.padding.top,l=s+e.contentWidth+e.padding.right+e.border.right,u=c+e.contentHeight+e.padding.bottom+e.border.bottom,d=(n,r,i,a,s,c,l)=>{let u=o.style===`double`&&e.borderStyle[i]===`double`?`double`:`solid`,d=Math.max(o.weight,A(e.borderStyle[i],e.borderWeight[i],e.glyphs));t.push({glyph:nr(u,d,a,s,c,l,e.glyphs),x:n,y:r,length:1,color:e.borderColor[i]})};if(n===`x`)for(let t=0;t<o.width;t++){let n=s+r+t;i<=0&&e.padding.top===0&&e.border.top>0&&d(n,e.border.top-1,`top`,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,`bottom`,!0,!1,!0,!0)}else for(let t=0;t<o.width;t++){let n=c+r+t;i<=0&&e.padding.left===0&&e.border.left>0&&d(e.border.left-1,n,`left`,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,`right`,!0,!0,!0,!1)}}var or={double:3,solid:2,dashed:1,dotted:0},sr=8,cr=4,lr=2,ur=1,dr=(e,t)=>e!=null&&t<e.width,fr=(e,t)=>Math.max(1,e?.width??0,t?.width??0);function pr(e){let{vLines:t,hLines:n,widths:r,rowHeights:i,colX:a,rowY:o}=e,s=r.length,c=i.length;return{lineX:e=>e<s?a[e]-t[e]:a[s-1]+r[s-1],lineY:e=>e<c?o[e]-n[e]:o[c-1]+i[c-1]}}function mr(e,t,{lineX:n,lineY:r}){let{vLines:i,hLines:a,widths:o,cells:s}=t,c=o.length,l=new Map,u=e=>{l.set(e,l.size);for(let t of er(e))u(t)};u(e);let d=e=>e?l.get(e)??-1:-1,f=new Map,p=new Set;for(let e of s)for(let o of e){if(!o)continue;let{shift:e,owner:s}=_r(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=gr(t,s),g=s.style.tableRole!==`cell`,_={x0:t.contentLeft+e.x+n(g?0:m),x1:t.contentLeft+e.x+(g?n(c)+i[c]:n(h+1)+i[h+1]),rank:d(s),shift:e},v=t.contentTop+e.y+r(l),y=t.contentTop+e.y+r(u+1)+a[u+1];for(let e=v;e<y;e++){let t=f.get(e);t?t.push(_):f.set(e,[_])}}return{rankOf:d,coveredAt:(e,t,n,r)=>f.get(t)?.some(t=>t.rank>n&&(t.shift.x!==r.x||t.shift.y!==r.y)&&e>=t.x0&&e<t.x1)??!1}}function hr(e,t,n){let{vLines:r,hLines:i,vSegments:a,hSegments:o,widths:s,rowHeights:c,colX:l,rowY:u,cells:d,set:f}=t,p=s.length,m=c.length,h=pr(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=mr(e,t,h),b=new Map,x=0,S=(e,r,i,a,o,s,{shift:c,owners:l,rank:u})=>{if(e+=t.contentLeft,r+=t.contentTop,!n(e,r))return;if(y(e,r,u,c)){let t=(e,t)=>n(e,t)&&!y(e,t,u,c);if(t(e,r-1)||(i&=-9),t(e,r+1)||(i&=-5),t(e-1,r)||(i&=-3),t(e+1,r)||(i&=-2),i===0)return}let d=r*65536+e+32768,f=b.get(d);if(!f){b.set(d,{x:e,y:r,mask:i,allDouble:a.style===`double`,dominant:a,only:s?{id:o,axis:s}:null,owners:new Set(l)});return}f.mask|=i,f.allDouble&&=a.style===`double`,(a.weight>f.dominant.weight||a.weight===f.dominant.weight&&or[a.style]>or[f.dominant.style])&&(f.dominant=a),(!s||f.only?.id!==o)&&(f.only=null);for(let e of l)f.owners.add(e)},C=e=>{let t=[];for(let n of e){if(!n)continue;let{shift:e,owner:r}=_r(n),i=t.find(t=>t.shift.x===e.x&&t.shift.y===e.y);i?i.owners.includes(r)||(i.owners.push(r),i.rank=Math.max(i.rank,v(r))):t.push({shift:e,owners:[r],rank:v(r)})}return t};for(let e=0;e<=p;e++)for(let t=0;t<m;t++){let n=a[e][t];if(!n)continue;let r=x++,s=a[e][t-1],l=a[e][t+1],f=o[t],p=o[t+1],m=i[t],h=i[t+1];for(let i of C([d[t][e-1],d[t][e]])){let{shift:a}=i;for(let o=0;o<n.width;o++){let d=g(e)+o+a.x;for(let e=u[t];e<u[t]+c[t];e++)S(d,e+a.y,12,n,r,`v`,i);let v=dr(s,o)||f[e-1]||f[e]?m:Math.min(m,1),y=_(t)+m-1+a.y;for(let e=0;e<v;e++)S(d,y-e,cr|(e+1<v?sr:0),n,r,null,i);let b=dr(l,o)?h:Math.min(h,fr(p[e-1],p[e])),x=_(t+1)+a.y;for(let e=0;e<b;e++)S(d,x+e,sr|(e+1<b?cr:0),n,r,null,i)}}}for(let e=0;e<=m;e++)for(let t=0;t<p;t++){let n=o[e][t];if(!n)continue;let i=x++,c=o[e][t-1],u=o[e][t+1],f=a[t],p=a[t+1],m=r[t],h=r[t+1];for(let r of C([d[e-1]?.[t],d[e]?.[t]])){let{shift:a}=r;for(let o=0;o<n.width;o++){let d=_(e)+o+a.y;for(let e=l[t];e<l[t]+s[t];e++)S(e+a.x,d,3,n,i,`h`,r);let v=dr(c,o)||f[e-1]||f[e]?m:Math.min(m,1),y=g(t)+m-1+a.x;for(let e=0;e<v;e++)S(y-e,d,ur|(e+1<v?lr:0),n,i,null,r);let b=dr(u,o)?h:Math.min(h,fr(p[e-1],p[e])),x=g(t+1)+a.x;for(let e=0;e<b;e++)S(x+e,d,lr|(e+1<b?ur:0),n,i,null,r)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?tr(e.dominant.style,e.dominant.weight,e.only.axis,f):nr(e.allDouble?`double`:`solid`,e.dominant.weight,(e.mask&sr)!==0,(e.mask&cr)!==0,(e.mask&lr)!==0,(e.mask&ur)!==0,f),x:e.x,y:e.y,length:1,color:e.dominant.color};for(let n of e.owners)if(n===null)w.push(t);else{let e=T.get(n);e?e.push(t):T.set(n,[t])}}return{runs:w,parts:T}}function gr(e,t){let n=1/0,r=-1,i=1/0,a=-1;return e.cells.forEach((e,o)=>e.forEach((e,s)=>{!e||e.node!==t&&e.row!==t&&e.group!==t||(n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,s),a=Math.max(a,s))})),r<0?null:{r0:n,r1:r,c0:i,c1:a}}function _r(e){let t=[e.node,e.row,e.group],n={x:0,y:0},r=null;for(let e of t)e?.stickyShift&&(n.x+=e.stickyShift.x,n.y+=e.stickyShift.y,r??=e);return{shift:n,owner:r}}var vr={width:1,height:2},yr={r:0,g:0,b:0,a:0},br=new WeakMap;function xr(e,t,n,r,i){let a=`${t}|${n}|${r}|${i.width}|${i.height}`,o=br.get(e);if(o?.key===a)return o.rows;let s=t===void 0?null:We(t),c={width:n*i.width,height:r*i.height,cell:i},l=e.map(e=>Sr(e,c)),u=[];for(let e=0;e<r;e++){let r=[];for(let a=0;a<n;a++){let n=(a+.5)*i.width,o=(e+.5)*i.height,c=s??yr;for(let e=l.length-1;e>=0;e--)c=Ze(kr(l[e],n,o),c);r.push(c.a===0&&s===null?t??null:Qe(c))}u.push(r)}return br.set(e,{key:a,rows:u}),u}function Sr(e,t){let n=t.cell.width;if(e.kind===`linear`){let r=Dr(e,t);return{gradient:e,stops:Tr(e,n/r.length),kind:`linear`,...r,cx:t.width/2,cy:t.height/2}}if(e.kind===`radial`){let r=Or(e,t);return{gradient:e,stops:Tr(e,n/r.rx),kind:`radial`,...r}}let{x:r,y:i}=wr(e.at,t);return{gradient:e,stops:Tr(e,0),kind:`conic`,cx:r,cy:i,from:e.from}}var Cr=(e,t,n)=>`fraction`in e?e.fraction*t:e.cells*n.cell.width,wr=({x:e,y:t},n)=>({x:Cr(e,n.width,n),y:Cr(t,n.height,n)});function Tr(e,t){let n=e=>`fraction`in e?e.fraction:e.cells*t,r=e.stops,i=r.map(e=>e.position===null?null:n(e.position));i[0]===null&&(i[0]=0),i[i.length-1]===null&&(i[i.length-1]=1);for(let e=1;e<i.length;e++){if(i[e]!==null){i[e]=Math.max(i[e],i[e-1]);continue}let t=e+1;for(;i[t]===null;)t++;let n=i[e-1],r=(Math.max(i[t],n)-n)/(t-e+1);for(let a=e;a<t;a++)i[a]=n+r*(a-e+1)}let a=r.map(t=>Je(t.color,e.space)),o=e=>({c:[...e.c],a:e.a});return r.map((t,r)=>{let s=a[r+1],c=null;return s&&(c={from:o(a[r]),to:o(s)},Ye(c.from,c.to,e.space,e.hue)),{color:a[r],at:i[r],hint:t.hint===void 0?null:n(t.hint),pair:c}})}function Er(e,t,n){let{space:r}=e,i=e=>Xe(e.color,e.color,0,r),a=t[0],o=t[t.length-1];if(e.repeating&&o.at>a.at){let e=o.at-a.at;n=a.at+((n-a.at)%e+e)%e}if(n<=a.at)return i(a);if(n>=o.at)return i(o);let s=0;for(;t[s+1].at<n;)s++;let c=t[s],l=t[s+1];if(l.at===c.at)return i(l);let u=(n-c.at)/(l.at-c.at);if(c.hint!==null){let e=Math.min(.999,Math.max(.001,(c.hint-c.at)/(l.at-c.at)));u**=Math.log(.5)/Math.log(e)}return Xe(c.pair.from,c.pair.to,u,r)}function Dr(e,t){let{direction:n}=e,r;if(`angle`in n)r=n.angle;else{let{toX:e,toY:i}=n,a=Math.atan2(t.height,t.width)*180/Math.PI;r=e===0?i<0?0:180:i===0?e>0?90:270:e>0?i<0?a:180-a:i<0?360-a:180+a}let i=r*Math.PI/180,a=Math.sin(i),o=-Math.cos(i);return{dx:a,dy:o,length:Math.abs(t.width*a)+Math.abs(t.height*o)}}function Or(e,t){let{x:n,y:r}=wr(e.at,t),{size:i}=e;if(typeof i==`object`)return{cx:n,cy:r,rx:Cr(i.rx,t.width,t),ry:Cr(i.ry,t.height,t)};let a=i.startsWith(`closest`)?Math.min:Math.max,o=a(n,t.width-n),s=a(r,t.height-r);if(e.shape===`circle`&&(o=s=a(o,s)),i.endsWith(`corner`)){let i=a(n,t.width-n),c=a(r,t.height-r),l=e.shape===`circle`?Math.hypot(i,c)/o:Math.hypot(i/(o||1),c/(s||1));o*=l,s*=l}return{cx:n,cy:r,rx:o||1,ry:s||1}}function kr(e,t,n){let r;if(e.kind===`linear`){let{dx:i,dy:a,length:o,cx:s,cy:c}=e;r=o===0?0:((t-s)*i+(n-c)*a)/o+.5}else if(e.kind===`radial`){let{cx:i,cy:a,rx:o,ry:s}=e;r=Math.hypot((t-i)/o,(n-a)/s)}else r=((Math.atan2(t-e.cx,-(n-e.cy))*180/Math.PI-e.from)%360+360)%360/360;return Er(e.gradient,e.stops,r)}var Ar=[[4352,4447],[9001,9002],[11904,11929],[11931,12019],[12032,12245],[12272,12287],[12288,12350],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12773],[12783,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101631,101640],[110576,110590],[110592,110882],[110898,110898],[110928,110930],[110933,110933],[110948,110951],[110960,111355],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[131072,196605],[196608,262141]];function jr(e){let t=0,n=Ar.length;for(;t<n;){let r=t+n>>1,[i,a]=Ar[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Mr=/^\p{Extended_Pictographic}/u,Nr=/^\p{Emoji_Presentation}/u,Pr=/^\p{Regional_Indicator}/u,Fr=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,Ir=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,Lr=`︎`,Rr=`️`,zr=``,Br=`⃣`;function Vr(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Mr.test(e)?e.includes(Lr)?1:e.includes(Rr)||e.includes(zr)||Nr.test(e)?2:1:e.includes(Br)?2:Pr.test(e)?Fr.test(e)?2:1:jr(t)||Nr.test(e)?2:+!Ir.test(e)}var Hr=/^[\x00-\x7f]*$/,Ur;function Wr(e){return Hr.test(e)?e.split(``):(Ur===void 0&&(Ur=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Ur?Array.from(Ur.segment(e),e=>e.segment):Array.from(e))}function Gr(e,t){let n=Vr(e);return n===0?0:n+t}function Kr(e,t=0){let n=[];for(let r of Wr(e)){n.push(Gr(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function qr(e){let t=0;for(let n of Wr(e))t+=Vr(n);return t}function Jr(e,t,n={}){return Zr(e,t,n).length}function Yr(e,t){return t.endsWith(`
|
|
953
|
+
`)&&e.pop(),e}function Xr(e){let t=[],n=0;for(let r=0;r<=e.length;r++)(r===e.length||e[r]===`
|
|
954
|
+
`)&&(t.push({start:n,end:r}),n=r+1);return Yr(t,e)}function Zr(e,t,n={}){if(!/[^ \t\r\f]/.test(e))return[];let r=[],i=0,a=n.firstLineIndent??0;for(let o=0;o<=e.length;o++)(o===e.length||e[o]===`
|
|
955
|
+
`)&&(oi(e,i,o,t,n,a,r),a=0,i=o+1);return Yr(r,e)}function Qr(e,t,n){if(!n)return t-e;let r=0;for(let i=e;i<t;i++)r+=n[i]??1;return r}function $r(e,t,n,r,i=0){return n<=t?0:Qr(t,n,r)-Math.min(i,ei(e,n-1,r))}function ei(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,Vr(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function ti(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of ai(e,0,e.length))for(let a of ri(e,t.start,t.end))i=Math.max(i,$r(e,a.start,a.end,n,r));return i}function ni(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function ri(e,t,n){let r=[],i=t;for(let a=t;a<n;a++){if(e[a]===``){a>i&&r.push({start:i,end:a}),r.push({start:a,end:a+1}),i=a+1;continue}if(e[a]!==`-`)continue;let o=a===t;for(;a+1<n&&e[a+1]===`-`;)a++;let s=a+1;!o&&s<n&&(r.push({start:i,end:s}),i=s)}return r.push({start:i,end:n}),r}var ii=/[ \t\r\n\f]/;function ai(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&ii.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!ii.test(e[i]);)i++;r.push({start:t,end:i})}return r}function oi(e,t,n,r,{advances:i,tracking:a=0,openLine:o},s,c){let l=-1,u=r,d=()=>(l!==c.length&&(l=c.length,u=o?.(l,c)??r),u),f=ai(e,t,n);if(f.length===0){d(),c.push({start:t,end:t});return}if(r<=0){d(),c.push({start:f[0].start,end:f[f.length-1].end});return}let p=null,m=0,h=Math.max(0,s),g=()=>d()-h;for(let t of f){let n=!1;for(let r of ri(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+Qr(s,o,i),u=Math.min(a,ei(e,o-1,i));if(p!==null&&l-u<=g())p.end=o,m=l;else{for(p!==null&&(c.push(p),h=0);;){let n=t;for(;n<o&&$r(e,t,n+1,i,a)<=g();)n++;if(n===o||n===t)break;c.push({start:t,end:n}),h=0,t=n}p={start:t,end:o},m=Qr(t,o,i)}n=!0}}p!==null&&c.push(p)}function si(e,t){let n=e.row.map(e=>e.node.localRect).sort((e,t)=>e.x-t.x),r=[];for(let e=1;e<n.length;e++){let i=n[e-1].x+n[e-1].width-t,a=n[e].x-t;a>i&&r.push({start:i,end:a})}return r}function ci(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>si(e,r)).sort((e,t)=>e.start-t.start),o=(e,t)=>({start:e,end:t,spanned:!1,beforeOccupied:!0,afterOccupied:!0}),s=[],c=0;for(let e of a)e.start>c&&s.push(o(c,e.start)),c=Math.max(c,e.end);return c<i&&s.push(o(c,i)),rr(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function li(e,t){return typeof t!=`number`||t<=0?e:e.map(e=>({...e,start:e.start+t,end:e.end-t})).filter(e=>e.end>e.start)}function ui(e,t,n,r,a,o,s){let c=To(e.style,`x`,t),l=To(e.style,`y`,n),u=bi(e).map(e=>{let n=Do(e.style.margin,t);return{node:e,base:yi(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:Math.max(wi(e,t,s),Ci(e,`x`,t)),max:ko(e.style.maxWidth,t),margin:n}}),d=[];if(e.style.flexWrap===`wrap`){let n=[],r=0;for(let e of u){let i=Math.max(0,vo(e.base,e.min,e.max))+(e.margin.left??0)+(e.margin.right??0),a=n.length===0?i:r+c+i;n.length>0&&a>t&&(d.push(n),n=[],r=0),n.push(e),r=n.length===1?i:r+c+i}n.length>0&&d.push(n),e.style.wrapReverse&&d.reverse()}else d.push(u);let f=a.left+o.left,p=a.top+o.top,m=d.map(e=>{let n=c*Math.max(0,e.length-1),i=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-i),o=e.some(e=>e.margin.left===null||e.margin.right===null),l=e.reduce((e,t)=>e+t.base,0),u=o&&l<=a?e.map(e=>Math.max(0,vo(e.base,e.min,e.max))):gi(e,a);for(let n=0;n<e.length;n++)Y(e[n].node,t,r,0,0,`fill`,s,{width:u[n]});return{row:e,widths:u,availableForItems:a,height:e.reduce((e,t)=>Math.max(e,t.node.localRect.height),0)}}),h=m.map(e=>e.height),g=l*Math.max(0,m.length-1),_;if(e.style.flexWrap===`nowrap`)r===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=r,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=xi(e.style);if(i===`stretch`&&r>0){let e=q(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=hi(`start`,h,0)}else _=hi(i===`stretch`?`start`:i,h,r)}for(let i=0;i<m.length;i++){let{row:a,widths:o,availableForItems:u}=m[i],d=h[i],g=_[i]+i*l;for(let i=0;i<a.length;i++){let c=a[i].node,l=_i(c,e),u=a[i].margin,f=u.top===null||u.bottom===null,p=c.style.height!==void 0&&c.style.height.kind!==`auto`;if(l===`stretch`&&!f&&!p&&d!==c.localRect.height){let e=u.top??0,a=u.bottom??0,l=Number.isFinite(n)?n:void 0,f=vo(Math.max(0,d-e-a),ko(c.style.minHeight,l)??0,ko(c.style.maxHeight,l));if(f===c.localRect.height)continue;Y(c,t,r,0,0,`fill`,s,{width:o[i],height:f})}}let v=o.reduce((e,t)=>e+t,0),y=Math.max(0,u-v),b=a.reduce((e,t)=>e+ +(t.margin.left===null)+ +(t.margin.right===null),0),x=Array.from({length:a.length},()=>0),S=Array.from({length:a.length},()=>0),C;if(b>0&&y>0){let e=q(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<a.length;n++)a[n].margin.left===null&&(x[n]=e[t++]),a[n].margin.right===null&&(S[n]=e[t++]);C=hi(`start`,o,0)}else C=hi(Si(e.style),o,y);let w=0;for(let t=0;t<a.length;t++){let n=a[t],r=n.node,i=n.margin.left??0,o=n.margin.right??0;w+=x[t]+i,r.localRect={...r.localRect,x:f+C[t]+t*c+w,y:p+g+pi(r,e.style.alignItems,d,n.margin)},w+=S[t]+o}}let v=h.reduce((e,t)=>e+t,0)+g,y=Number.isFinite(n)?Math.max(n,v):v;if(e.style.ruleX||e.style.ruleY){let n=[],r=[];for(let i=0;i<m.length;i++){let a=_[i]+i*l;for(let e of si(m[i],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[i]});if(i>0){let n=_[i-1]+(i-1)*l+h[i-1];if(a>n)for(let o of ci(e,m,i,f,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=ir({glyphs:i(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:li(n,e.style.ruleInset),horizontal:li(r,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return di(e,a,o,t,y),y}function di(e,t,n,r,i){for(let a of e.children)J(a.style)&&(a.staticSlot={kind:`flex`,direction:e.style.flexDirection,originX:t.left+n.left,originY:t.top+n.top,innerWidth:r,innerHeight:i})}function fi(e,t,n,r,a,o,s){let c=To(e.style,`y`,n),l=bi(e).map(i=>{let a=Do(i.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=_i(i,e)===`stretch`;Y(i,o,r&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);let l=Number.isFinite(n)?n:void 0,u=i.style.flexBasis,d=u===void 0||u.kind===`auto`?i.unclampedHeight:u.kind===`cells`?u.value:u.kind===`percent`&&l!==void 0?nt(u.value,l):i.unclampedHeight,f=i.style.minHeight===`auto`?i.style.overflow.y===`visible`?i.localRect.height:0:void 0;return{node:i,base:d,grow:i.style.flexGrow,shrink:i.style.flexShrink,min:Math.max(f??ko(i.style.minHeight,l)??0,Ci(i,`y`,o)),max:ko(i.style.maxHeight,l),margin:a}}),u=c*Math.max(0,l.length-1),d=l.reduce((e,t)=>e+(t.margin.top??0)+(t.margin.bottom??0),0),f=Number.isFinite(n),p=l.reduce((e,t)=>e+t.base,0),m=f?Math.max(0,n-u-d):p,h=r?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?gi(l,h):l.map(e=>Math.max(0,vo(e.base,e.min,e.max)));for(let n=0;n<l.length;n++)if(_[n]!==l[n].node.localRect.height){let r=l[n],i=Math.max(0,t-(r.margin.left??0)-(r.margin.right??0)),a=_i(r.node,e)===`stretch`;Y(r.node,i,_[n],0,0,a?`fill`:`shrink`,s,{height:_[n]})}let v=_.reduce((e,t)=>e+t,0),y=Math.max(0,h-v),b=l.reduce((e,t)=>e+ +(t.margin.top===null)+ +(t.margin.bottom===null),0),x=Array.from({length:l.length},()=>0),S=Array.from({length:l.length},()=>0),C;if(b>0&&y>0){let e=q(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<l.length;n++)l[n].margin.top===null&&(x[n]=e[t++]),l[n].margin.bottom===null&&(S[n]=e[t++]);C=hi(`start`,_,0)}else C=hi(Si(e.style),_,y);let w=a.left+o.left,T=a.top+o.top,E=0;for(let n=0;n<l.length;n++){let r=l[n],i=r.node,a=r.margin.top??0,o=r.margin.bottom??0;E+=x[n]+a,i.localRect={...i.localRect,x:w+mi(i,e.style.alignItems,t,r.margin),y:T+C[n]+n*c+E},E+=S[n]+o}let D=v+u+d,O=f?Math.max(n,D):D;if(e.style.ruleY&&l.length>1){let n=[],r=l.map(e=>e.node.localRect).slice().sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e++){let i=r[e-1].y+r[e-1].height-T,a=r[e].y-T-i;a>0&&n.push({bandStart:i,bandSize:a,start:0,end:t})}e.decorationRuns=ir({glyphs:i(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:li(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return di(e,a,o,t,O),O}function pi(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.top??0,o=r.bottom??0,s=n-e.localRect.height,c=r.top===null&&r.bottom===null,l=r.top===null&&r.bottom!==null,u=r.bottom===null&&r.top!==null;return c?Math.floor(s/2):l?s-o:u?a:a+vi(i,n,e.localRect.height)}function mi(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.left??0,o=r.right??0,s=n-e.localRect.width,c=r.left===null&&r.right===null,l=r.left===null&&r.right!==null,u=r.right===null&&r.left!==null;return c?Math.floor(s/2):l?s-o:u?a:a+vi(i,n,e.localRect.width)}function hi(e,t,n){let r=t.length;if(r===0)return[];let i=[],a=0;if(e===`space-between`&&r>1){let e=Math.floor(n/(r-1)),o=n-e*(r-1);for(let n=0;n<r;n++)i.push(a),a+=t[n]+e+ +(n<o);return i}if((e===`space-around`||e===`space-evenly`)&&n>0){let o=q(Array.from({length:r+1},(t,n)=>e===`space-evenly`||n===0||n===r?1:2),n);for(let e=0;e<r;e++)a+=o[e],i.push(a),a+=t[e];return i}e===`center`?a=Math.floor(n/2):e===`end`&&(a=n);for(let e=0;e<r;e++)i.push(a),a+=t[e];return i}function gi(e,t){let n=e.length,r=(t,n)=>Math.max(0,vo(t,e[n].min??0,e[n].max)),i=e.map(e=>e.base),a=t>=i.reduce((e,t,n)=>e+r(t,n),0),o=Array.from({length:n},()=>0),s=Array.from({length:n},()=>!1);for(let t=0;t<n;t++){let n=r(i[t],t);((a?e[t].grow:e[t].shrink)===0||a&&i[t]>n||!a&&i[t]<n)&&(o[t]=n,s[t]=!0)}for(;;){let c=[];for(let e=0;e<n;e++)s[e]||c.push(e);if(c.length===0)break;let l=o.reduce((e,t,n)=>s[n]?e+t:e,0),u=c.reduce((e,t)=>e+i[t],0),d=t-l-u,f=a?Math.max(0,d):Math.max(0,-d),p=q(c.map(t=>a?e[t].grow:i[t]*e[t].shrink),f),m=c.map((e,t)=>i[e]+(a?p[t]:-p[t])),h=c.map((e,t)=>r(m[t],e)),g=h.reduce((e,t,n)=>e+(t-m[n]),0);if(g===0){for(let e=0;e<c.length;e++)o[c[e]]=h[e];break}for(let e=0;e<c.length;e++){let t=h[e]-m[e];(g>0?t>0:t<0)&&(o[c[e]]=h[e],s[c[e]]=!0)}}return o}function q(e,t){let n=e.reduce((e,t)=>e+t,0);if(n===0||t<=0)return e.map(()=>0);let r=e.map(e=>e/n*t),i=r.map(Math.floor),a=t-i.reduce((e,t)=>e+t,0);if(a>0){let e=r.map((e,t)=>[t,e-Math.floor(e)]).sort((e,t)=>t[1]===e[1]?e[0]-t[0]:t[1]-e[1]);for(let[t]of e){if(a<=0)break;i[t]+=1,--a}}return i}function _i(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function vi(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function yi(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Vo(r,t,e,n):i!==void 0&&i.kind!==`auto`?Vo(i,t,e,n):Ho(e,n)}function bi(e){let t=e.children.filter(e=>!J(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function xi(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function Si(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function Ci(e,t,n){let{border:r,padding:i}=e.style,a=ct(e.style);return Eo(r,{top:X(i.top,n),right:X(i.right,n)+a.right,bottom:X(i.bottom,n)+a.bottom,left:X(i.left,n)},t)}function wi(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?Go(e,n):0:ko(e.style.minWidth,t)??0}function Ti(e,t,n,r,a,o){let s=e.style,c=Number.isFinite(n)?n:void 0,l=e.subgrid?.cols,u=e.subgrid?.rows,d=l?l.gap:To(s,`x`,t),f=u?u.gap:To(s,`y`,c),p=Fi(e,t,c,d,f,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),{children:m,placed:h,colLines:g,rowLines:_,colTracks:v,rowTracks:y,colCollapsed:b,rowCollapsed:x}=p,S=m.map(e=>Do(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(Ei),T=l?Oi(l):Xi(v,b,ki(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:Zi(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=$i(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-zi(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?Di(E,T,d,n.col.start,n.col.span,ji(t,`cols`,i,r)):void 0;t.subgrid={colSpan:n.col.span,rowSpan:n.row.span,cols:e,rows:void 0}}else t.subgrid=void 0;let c=C[e],l=i.left===null||i.right===null,u=t.style.width!==void 0&&t.style.width.kind!==`auto`;s.cols?Y(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?Y(t,r,void 0,0,0,`fill`,o,{width:vo(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?Go(t,o):0:ko(t.style.minWidth,r)??0,Ao(t.style.maxWidth,r,t,o))}):Y(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?Oi(u):Xi(y,x,Ai(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),k=Qi(O),A=u?u.positions:Zi(O,c??k,s.alignContent),j=r.left+a.left,M=r.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=$i(E,T.sizes,r.col.start,r.col.span),s=$i(A,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Bi(i)),l=_i(n,e),u=i.top===null||i.bottom===null,d=n.style.height!==void 0&&n.style.height.kind!==`auto`;if(w[t].rows)n.subgrid.rows=Di(A,O,f,r.row.start,r.row.span,ji(n,`rows`,i,a)),Y(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=vo(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:ko(n.style.minHeight,s)??0,ko(n.style.maxHeight,s));e!==n.localRect.height&&Y(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&Y(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:j+E[r.col.start]+ea(C[t],i.left,i.right,a,n.localRect.width),y:M+A[r.row.start]+ea(l,i.top,i.bottom,s,n.localRect.height)}}let ee=Number.isFinite(n)?Math.max(n,k):k;if(s.ruleX||s.ruleY){let n=T.sizes.length,o=O.sizes.length,c=Array.from({length:n},()=>Array.from({length:o},()=>!1)),l=Array.from({length:Math.max(0,n-1)},()=>Array.from({length:o},()=>!1)),u=Array.from({length:Math.max(0,o-1)},()=>Array.from({length:n},()=>!1));for(let e of h.items)for(let t=e.col.start;t<e.col.start+e.col.span&&t<n;t++)for(let r=e.row.start;r<e.row.start+e.row.span&&r<o;r++)c[t][r]=!0,t+1<e.col.start+e.col.span&&t<n-1&&(l[t][r]=!0),r+1<e.row.start+e.row.span&&r<o-1&&(u[r][t]=!0);let d=(e,t,n,r,i,a)=>t.map((t,o)=>({start:t,end:t+n[o],spanned:r[e]?.[o]??!1,beforeOccupied:i(o),afterOccupied:a(o)})),f=(e,t,n)=>{let r=[];for(let i=1;i<e.length;i++){let a=e[i-1]+t[i-1],o=e[i]-a;if(!(o<=0))for(let e of rr(n(i-1),s.ruleBreak,s.ruleVisibilityItems,s.ruleInset))r.push({bandStart:a,bandSize:o,...e})}return r},p=f(E,T.sizes,e=>d(e,A,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(A,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=ir({glyphs:i(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:ee,border:r,borderStyle:s.borderStyle,borderWeight:s.borderWeight,borderColor:s.borderColor,padding:a})}let N=e.children.filter(e=>J(e.style));if(N.length>0){let e=J(s)?{x:r.left,y:r.top,width:a.left+t+a.right,height:a.top+ee+a.bottom}:{x:j,y:M,width:t,height:ee};for(let n of N){let r=Ni(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=Ni(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,A,O.sizes,-a.top,ee+a.bottom);n.staticSlot={kind:`grid`,area:{x:j+r.start,y:M+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return ee}function Ei(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function Di(e,t,n,r,i,a){let o=e[r]+a.start,s=t.sizes.slice(r,r+i);return s[0]=Math.max(0,s[0]-a.start),s[i-1]=Math.max(0,s[i-1]-a.end),{positions:Array.from({length:i},(t,n)=>n===0?0:e[r+n]-o),sizes:s,gapBefore:Array.from({length:i},(e,n)=>n===0?0:t.gapBefore[r+n]),gap:n}}function Oi(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function ki(e,t,n,r){let i=[];return e.children.forEach((a,o)=>{let s=e.placed.items[o],c=n[o];if(t[o].cols){let e=ji(a,`cols`,c,0);for(let t of Mi(a,`cols`,s,e,r))i.push({...t,start:t.start+s.col.start});return}i.push({start:s.col.start,span:s.col.span,min:Wo(a,`min`,r)+zi(c),max:Wo(a,`max`,r)+zi(c)})}),i}function Ai(e,t,n){let r=[];return e.children.forEach((i,a)=>{let o=e.placed.items[a],s=n[a];if(t[a].rows){let e=ji(i,`rows`,s,0);for(let t of Mi(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Bi(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Bi(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function ji(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+X(a.left,r),end:(n.right??0)+i.right+X(a.right,r)}:{start:(n.top??0)+i.top+X(a.top,r),end:(n.bottom??0)+i.bottom+X(a.bottom,r)}}function Mi(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=Fi(e,void 0,void 0,0,0,{col:n.col.span,row:n.row.span}),s=[];if(o.children.forEach((e,n)=>{let c=o.placed.items[n],l=t===`cols`?c.col:c.row,u=l.start===0,d=l.start+l.span===a,f=(u?r.start:0)+(d?r.end:0),p=Do(e.style.margin,0);if(Ei(e)[t]){let n=ji(e,t,p,0),a=Mi(e,t,c,{start:n.start+(u?r.start:0),end:n.end+(d?r.end:0)},i);for(let e of a)s.push({...e,start:e.start+l.start});return}if(t===`cols`)s.push({start:l.start,span:l.span,min:Wo(e,`min`,i)+zi(p)+f,max:Wo(e,`max`,i)+zi(p)+f});else{let t=e.localRect.height+Bi(p)+f;s.push({start:l.start,span:l.span,min:t,max:t})}}),s.length===0){let e=r.start+r.end;s.push({start:0,span:a,min:e,max:e})}return s}function Ni(e,t,n,r,i,a,o,s){let c=Ki(e,`start`,n),l=Ki(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=qi(c,t,1,n):l!==null&&e.kind===`span`&&(c=qi(l,e,-1,n));let u=i.length,d=e=>{if(e===null)return;let t=e-r;return t<0||t>u||u===0?void 0:t},f=e=>e===u?i[u-1]+a[u-1]:i[e],p=e=>e===0?i[0]:i[e-1]+a[e-1],m=d(c),h=d(l);return{start:m===void 0?o:f(m),end:h===void 0?s:p(h)}}function Pi(e,t){let n=t.gridIntrinsic.get(e);if(n!==void 0)return n;let r=e.style,i=Math.max(typeof r.gapX==`number`?r.gapX:0,r.ruleX?.width??0),a=Fi(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(Ei),s=a.children.map(e=>Do(e.style.margin,0)),c=Xi(a.colTracks,a.colCollapsed,ki(a,o,s,t),`min-content`,i,!1),l=c.gapBefore.reduce((e,t)=>e+t,0),u={min:c.sizes.reduce((e,t)=>e+t,0)+l,max:c.limits.reduce((e,t)=>e+t,0)+l};return t.gridIntrinsic.set(e,u),u}function Fi(e,t,n,r,i,a){let o=e.style,s=Ri(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Ii(a.col):Vi(o.gridTemplateColumns,t,r),d=l?Ii(a.row):Vi(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Ui(p,u.lineNames,f.columns,o.gridAutoColumns),l||Ui(m,d.lineNames,f.rows,o.gridAutoRows);for(let[e,t]of f.areas)u.lineNames[Math.min(t.colStart,p.length)].push(`${e}-start`),u.lineNames[Math.min(t.colEnd,p.length)].push(`${e}-end`),d.lineNames[Math.min(t.rowStart,m.length)].push(`${e}-start`),d.lineNames[Math.min(t.rowEnd,m.length)].push(`${e}-end`)}let h={explicitCount:p.length,names:u.lineNames},g={explicitCount:m.length,names:d.lineNames},_=Yi(s.map(e=>({col:Ji(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Ji(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&Li(_,`col`,p.length),l&&Li(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Wi(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Wi(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:Gi(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:Gi(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Ii(e){return{tracks:Array.from({length:e},()=>dt()),lineNames:Array.from({length:e+1},()=>[])}}function Li(e,t,n){let r=t===`col`?e.colOrigin:e.rowOrigin;for(let i of e.items){let e=i[t],a=Math.min(Math.max(e.start+r,0),n-1),o=Math.min(Math.max(e.start+r+e.span,a+1),n);e.start=a,e.span=o-a}t===`col`?(e.colOrigin=0,e.colCount=n):(e.rowOrigin=0,e.rowCount=n)}function Ri(e){return e.children.filter(e=>!J(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function zi(e){return(e.left??0)+(e.right??0)}function Bi(e){return(e.top??0)+(e.bottom??0)}function Vi(e,t,n){if(e.kind!==`tracks`)return{tracks:[],lineNames:[[]]};let r=(e.lineNames??Array.from({length:e.tracks.length+1},()=>[])).map(e=>[...e]);if(!e.autoRepeat)return{tracks:e.tracks,lineNames:r};let{index:i,tracks:a,mode:o}=e.autoRepeat,s=1;if(t!==void 0){let e=a.reduce((e,n)=>{let r=Hi(n.min,t)??Hi(n.max,t)??1;return e+Math.max(1,r)},0);s=Math.max(1,Math.floor((t+n)/(e+n*a.length)))}let c=[];for(let e=0;e<s;e++)c.push(...a);let l=[...e.tracks.slice(0,i),...c,...e.tracks.slice(i)],u=e.autoRepeat.lineNames??Array.from({length:a.length+1},()=>[]),d=r.slice(0,i),f=[...e.autoRepeat.leadingNames??[]];for(let e=0;e<s;e++){f.push(...u[0]);for(let e=0;e<a.length;e++)d.push(f),f=[...u[e+1]]}return d.push([...f,...r[i]]),d.push(...r.slice(i+1)),o===`auto-fit`?{tracks:l,lineNames:d,autoFit:{start:i,end:i+c.length}}:{tracks:l,lineNames:d}}function Hi(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return nt(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=Hi(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Ui(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Wi(e,t,n,r){let i=[];for(let a=0;a<n;a++){let n=a+t;if(n>=0&&n<e.length)i.push(e[n]);else{let t=n<0?n:n-e.length;i.push(r[(t%r.length+r.length)%r.length])}}return i}function Gi(e,t,n,r){let i=Array.from({length:n},()=>!1);if(!e.autoFit)return i;for(let a=e.autoFit.start;a<e.autoFit.end;a++){let e=a-t;e<0||e>=n||r.some(t=>e>=t.start&&e<t.start+t.span)||(i[e]=!0)}return i}function Ki(e,t,n){if(e.kind===`line`)return e.value>0?e.value-1:n.explicitCount+1+e.value;if(e.kind!==`name`)return null;if(e.nth===void 0){let r=`${e.name}-${t}`,i=n.names.findIndex(e=>e.includes(r));if(i!==-1)return i}let r=e.nth??1,i=n.explicitCount,a=0;if(r>0){for(let t=0;t<=i;t++)if(n.names[t].includes(e.name)&&++a===r)return t;return i+(r-a)}for(let t=i;t>=0;t--)if(n.names[t].includes(e.name)&&++a===-r)return t;return-(-r-a)}function qi(e,t,n,r){if(t.name===void 0)return e+n*t.value;let i=t.value,a=e;for(;i>0;)a+=n,(!(a>=0&&a<=r.explicitCount)||r.names[a].includes(t.name))&&i--;return a}function Ji(e,t,n){let r=Ki(e,`start`,n),i=Ki(t,`end`,n);if(r!==null&&i!==null)return r===i?{start:r,span:1}:{start:Math.min(r,i),span:Math.abs(i-r)};if(r!==null)return{start:r,span:(t.kind===`span`?qi(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?qi(i,e,-1,n):i-1;return{start:t,span:i-t}}return{start:null,span:e.kind===`span`?e.value:t.kind===`span`?t.value:1}}function Yi(e,t,n,r){let i=r.direction===`row`,a=e.map(e=>i?e.row:e.col),o=e.map(e=>i?e.col:e.row),s=i?t:n,c=i?n:t,l=0,u=Math.max(s,1);for(let t=0;t<e.length;t++){let e=o[t];e.start!==null&&(l=Math.min(l,e.start),u=Math.max(u,e.start+e.span))}for(let t=0;t<e.length;t++){let e=o[t];e.start===null&&(u=Math.max(u,l+e.span))}let d=0;for(let t=0;t<e.length;t++){let e=a[t];e.start!==null&&(d=Math.min(d,e.start))}let f=new Set,p=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)if(f.has(`${i}:${e}`))return!1;return!0},m=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)f.add(`${i}:${e}`)},h=e.map(()=>null);for(let t=0;t<e.length;t++){let e=a[t],n=o[t];e.start!==null&&n.start!==null&&(h[t]={major:e.start,minor:n.start},m(e.start,n.start,e.span,n.span))}let g=new Map;for(let t=0;t<e.length;t++){let e=a[t],n=o[t];if(e.start===null||n.start!==null)continue;let i=r.dense?l:Math.max(l,g.get(e.start)??l);for(;!p(e.start,i,e.span,n.span);)i++;h[t]={major:e.start,minor:i},m(e.start,i,e.span,n.span),r.dense||g.set(e.start,i+n.span),u=Math.max(u,i+n.span)}let _=d,v=l;for(let t=0;t<e.length;t++){if(h[t]!==null)continue;let e=a[t],n=o[t];if(r.dense&&(_=d,v=l),n.start!==null){for(n.start<v&&_++;!p(_,n.start,e.span,n.span);)_++;h[t]={major:_,minor:n.start},m(_,n.start,e.span,n.span),v=n.start+n.span}else{let r=_,i=v;for(;;){if(i+n.span>u){r++,i=l;continue}if(p(r,i,e.span,n.span))break;i++}h[t]={major:r,minor:i},m(r,i,e.span,n.span),_=r,v=i+n.span}}let y=Math.max(c,d);for(let t=0;t<e.length;t++)y=Math.max(y,h[t].major+a[t].span);let b=e.map((e,t)=>{let n={start:h[t].major-d,span:a[t].span},r={start:h[t].minor-l,span:o[t].span};return i?{col:r,row:n}:{col:n,row:r}}),x=y-d,S=u-l;return i?{items:b,colOrigin:l,colCount:S,rowOrigin:d,rowCount:x}:{items:b,colOrigin:d,colCount:x,rowOrigin:l,rowCount:S}}function Xi(e,t,n,r,i,a){let o=typeof r==`number`?r:void 0,s=e.map((e,n)=>{if(t[n])return{base:0,limit:0,baseIntrinsic:!1,limitKind:`fixed`,frFactor:0,collapsed:!0};let r=Hi(e.min,o),i=r??0,a=r===void 0,s=e.max;if(s.kind===`fr`)return{base:i,limit:null,baseIntrinsic:a,limitKind:`fr`,frFactor:s.value,collapsed:!1};let c=Hi(s,o);return c===void 0?{base:i,limit:null,baseIntrinsic:a,limitKind:s.kind===`min-content`?`intrinsic-min`:`intrinsic-max`,frFactor:0,collapsed:!1}:{base:i,limit:c,baseIntrinsic:a,limitKind:`fixed`,frFactor:0,collapsed:!1}}),c=s.map((e,t)=>t===0||e.collapsed?0:s.slice(0,t).some(e=>!e.collapsed)?i:0),l=(e,t)=>{let n=0;for(let r=e+1;r<e+t;r++)n+=c[r];return n},u=e=>e.collapsed?0:e.limitKind===`fixed`?e.limit:Math.max(e.base,e.limit??e.base),d=[...n].sort((e,t)=>e.span-t.span);for(let e of d){let t=[],n=!1;for(let r=e.start;r<e.start+e.span;r++){let e=s[r];e!==void 0&&(e.limitKind===`fr`&&(n=!0),t.push(e))}if(t.length===0)continue;let r=l(e.start,e.span);if(n){let n=t.filter(e=>e.limitKind===`fr`&&e.baseIntrinsic&&!e.collapsed);if(n.length===0)continue;let i=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-i;if(a>0){let e=n.reduce((e,t)=>e+t.frFactor,0),t=q(n.map(t=>e>0?t.frFactor:1),a);n.forEach((e,n)=>{e.base+=t[n]})}continue}let i=t.filter(e=>e.baseIntrinsic&&!e.collapsed);if(i.length>0){let n=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-n;if(a>0){let e=q(i.map(()=>1),a);i.forEach((t,n)=>{t.base+=e[n]})}}for(let[n,i]of[[`intrinsic-min`,e.min],[`intrinsic-max`,e.max]]){let e=t.filter(e=>e.limitKind===n&&!e.collapsed);if(e.length===0)continue;let a=i-(t.reduce((e,t)=>e+u(t),0)+r);if(a>0){let t=q(e.map(()=>1),a);e.forEach((e,n)=>{e.limit=u(e)+t[n]})}}}for(let e of s)e.collapsed||(e.limitKind===`fixed`?e.base=Math.min(e.base,e.limit):e.limitKind!==`fr`&&(e.limit=Math.max(e.base,e.limit??e.base)));if(o===void 0){let e=s.filter(e=>e.limitKind===`fr`&&!e.collapsed);if(e.length>0){let t=0;for(let n of e)n.frFactor>0&&(t=Math.max(t,n.base/n.frFactor));for(let e of n){let n=0,r=l(e.start,e.span);for(let t=e.start;t<e.start+e.span;t++){let e=s[t];e===void 0||e.collapsed||(e.limitKind===`fr`?n+=e.frFactor:r+=u(e))}n<=0||(t=Math.max(t,(e.max-r)/Math.max(n,1)))}for(let n of e){let e=Math.max(n.base,et(n.frFactor*t));n.limit=e,r===`max-content`&&(n.base=e)}}if(r===`max-content`)for(let e of s)!e.collapsed&&e.limitKind!==`fr`&&(e.base=u(e))}else{let e=c.reduce((e,t)=>e+t,0),t=o-e-s.reduce((e,t)=>e+t.base,0);for(;!(t<=0);){let e=s.filter(e=>!e.collapsed&&e.limitKind!==`fr`&&e.base<u(e));if(e.length===0)break;let n=q(e.map(()=>1),t),r=0;if(e.forEach((e,t)=>{let i=Math.min(n[t],u(e)-e.base);e.base+=i,r+=i}),t-=r,r===0)break}let n=s.filter(e=>e.limitKind===`fr`);if(n.length>0){let t=Math.max(0,o-e-s.reduce((e,t)=>e+(t.limitKind===`fr`?0:t.base),0)),r=n,i=t,a=n.reduce((e,t)=>e+t.frFactor,0);for(a<1&&(i=Math.floor(i*a));;){let e=q(r.map(e=>e.frFactor),i),t=r.filter((t,n)=>e[n]<t.base);if(t.length===0){r.forEach((t,n)=>{t.base=Math.max(t.base,e[n])});break}for(let e of t)i-=e.base;if(i=Math.max(0,i),r=r.filter(e=>!t.includes(e)),r.length===0)break}}if(a){let t=o-e-s.reduce((e,t)=>e+t.base,0),n=s.filter(e=>!e.collapsed&&e.limitKind===`intrinsic-max`);if(t>0&&n.length>0){let e=q(n.map(()=>1),t);n.forEach((t,n)=>{t.base+=e[n]})}}}return{sizes:s.map(e=>e.base),gapBefore:c,limits:s.map(e=>u(e))}}function Zi(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Qi(e)),o=hi(n===`stretch`?`start`:n,r,a),s=[],c=0;for(let e=0;e<r.length;e++)c+=i[e],s.push(o[e]+c);return s}function Qi(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function $i(e,t,n,r){let i=n+r-1;return e[n]===void 0||e[i]===void 0?0:e[i]+t[i]-e[n]}function ea(e,t,n,r,i){let a=t??0,o=n??0,s=r-i;return t===null&&n===null?Math.floor(s/2):t===null?s-o:n===null?a:a+vi(e,r,i+a+o)}function ta(e,t,n){let r=e.columnWidth===null?null:Math.max(1,Math.floor((t+n)/(e.columnWidth+n)));return e.columnCount!==null&&r!==null?Math.max(1,Math.min(e.columnCount,r)):r===null?Math.max(1,e.columnCount??1):r}function na(e,t,n){let r=ta(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r)),a=Math.max(0,t-(r*i+(r-1)*n));return Array.from({length:r},(e,t)=>i+ +(t<a))}function ra(e,t){let n=Math.max(typeof e.gapX==`number`?e.gapX:0,e.ruleX?.width??0);return e.columnCount===null?Math.max(e.columnWidth??1,t):e.columnCount*t+(e.columnCount-1)*n}function ia(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function aa(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function oa(e,t,n){let r=ta(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r));return{count:r,width:i,leftover:Math.max(0,t-(r*i+(r-1)*n))}}function sa(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function ca(e,t,n,r){let i=Co(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=wo(e,i),s=e.style.lineGap,c=ua(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=aa(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>la(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=la(c,s,l);return{spans:i,lineY:u.top,textY:u.top.map((e,t)=>e+o[t]),lineX:u.column.map(e=>e*(t.width+n)),totalRows:u.maxUsed,columnCount:t.count,columnWidth:t.width,gap:n,columnsUsed:i.length>0?u.columns:0}}function la(e,t,n,r=`truncate`){let i=0,a=0,o=0,s=[],c=[];for(let l=0;l<e.length;l++){let u=e[l],d=r===`glue`||l===0||a>0?u.pre:0;a>0&&(u.forced||a+d+u.rows+u.post-t>n)&&(r===`truncate`&&(d=0),i+=1,a=0);let f=u.rows/u.lines;if(u.lines>1&&u.rows-t>n){for(let e=0;e<u.lines;e++)a>0&&a+d+f-t>n&&(r===`truncate`&&(d=0),i+=1,a=0),s.push(i),c.push(a+d),a+=d+f,d=0,o=Math.max(o,a-t);a+=u.post,u.post>0&&(o=Math.max(o,a));continue}for(let e=0;e<u.lines;e++)s.push(i),c.push(a+d+e*f);a+=d+u.rows+u.post,o=Math.max(o,a-(u.post>0?0:t))}return{columns:i+1,maxUsed:o,column:s,top:c}}function ua(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var da=null;function fa(){if(da!==null)return da;let e=document.createElement(`div`);e.style.cssText=`position:absolute;left:-9999px;visibility:hidden;columns:2;column-gap:0;column-fill:balance;width:200px;font:10px/20px monospace;orphans:1;widows:1`,e.innerHTML=`<div style="margin:0;padding:0 0 20px 0">aaaaaa aaaaaa aaaaaa</div><div style="margin:0"><span>bbbbbb</span> bbbbbb</div>`,document.body.appendChild(e);let t=e.getBoundingClientRect().top,n=e.querySelector(`span`).getBoundingClientRect();return e.remove(),da=!(n.width>0&&n.top-t>=10),da}function pa(e,t,n,r){let a=e.style;if(!a.ruleX)return;let o=t.columnCount*t.columnWidth+(t.columnCount-1)*t.gap,s=t.ruleSegments??[{start:0,end:t.totalRows,columns:t.columnsUsed}],c=[];for(let e of s){let n=Math.min(e.columns,t.columnCount);for(let r=0;r<t.columnCount-1;r++)sa(a.ruleVisibilityItems,r<n,r+1<n)&&c.push({bandStart:(r+1)*t.columnWidth+r*t.gap,bandSize:t.gap,start:e.start,end:e.end})}e.decorationRuns=ir({glyphs:i(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:li(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderWeight:a.borderWeight,borderColor:a.borderColor,padding:r})}function ma(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.float===`none`&&n.position===`static`&&!n.columnSpan&&n.whiteSpace===`normal`&&n.lineGap===t.lineGap&&n.border.top===0&&n.border.right===0&&n.border.bottom===0&&n.border.left===0&&r.top===0&&r.right===0&&r.bottom===0&&r.left===0&&n.backgroundColor===void 0&&!n.backgroundClear&&n.overflow.x===`visible`&&n.overflow.y===`visible`&&(n.width===void 0||n.width.kind===`auto`)&&(n.height===void 0||n.height.kind===`auto`)&&(n.minWidth===`auto`||n.minWidth===0||n.minWidth===void 0)&&(n.minHeight===`auto`||n.minHeight===0||n.minHeight===void 0)&&n.maxWidth===void 0&&n.maxHeight===void 0}function ha(e,t,n,r,i,a,o){let s=e.style,c=To(s,`x`,n),l=oa(s,n,c);a.right+=l.leftover;let u=s.lineGap,d=i.left+a.left,f=i.top+a.top,p=n-l.leftover,m=[[]],h=[];for(let e of t)e.style.columnSpan?(h[m.length-1]=e,m.push([])):m[m.length-1].push(e);let g=m.length>1,_=g?`glue`:`truncate`,v=[],y=0,b=0;for(let e=0;e<m.length;e++){let t=m[e],n=0;if(t.length>0){let i=t.map(e=>({node:e,spans:Co(e,Math.max(1,l.width-e.style.tracking)),margin:Do(e.style.margin,l.width),pre:0,post:0})),a=[],o=null,h=null,x=!1;for(let e of i){let{node:t,spans:n,margin:r}=e,i=o===null?r.top??0:Fo(o,r.top??0),s=i;_===`glue`&&h!==null?(s=0,h.post=i,a[a.length-1].post=i):e.pre=i;let c=x||t.style.breakBeforeColumn;if(t.style.breakInsideAvoid&&n.length>0)a.push({rows:n.length*(1+u),pre:s,post:0,forced:c,lines:n.length});else for(let e=0;e<n.length;e++)a.push({rows:1+u,pre:e>0?0:s,post:0,forced:e===0&&c,lines:1});n.length>0&&(o=r.bottom??0,h=e),x=t.style.breakAfterColumn}n=o??0;let S;if(s.columnFill===`auto`&&r!==void 0)S=Math.max(1,r);else{let e=aa(1,Math.max(1,la(a,u,1/0,_).maxUsed),e=>la(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=la(a,u,S,_);for(let e=0,t=0;e<i.length;e++){let{node:n,spans:r,margin:a,pre:o,post:s}=i[e],u=[],m=[];for(let e=0;e<r.length;e++,t++)u.push(y+C.top[t]),m.push(C.column[t]*(l.width+c));delete n.decorationRuns,n.multicolGeometry={spans:r,lineY:u,textY:u,lineX:m,totalRows:y+C.maxUsed,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:C.columns},n.multicolFlow=g?{top:o,right:a.right,bottom:s,left:a.left}:a,n.localRect={x:d,y:f,width:p,height:C.maxUsed},n.resolvedPadding={top:0,right:0,bottom:0,left:0}}a.length>0&&(v.push({start:y,end:y+C.maxUsed,columns:C.columns}),b=Math.max(b,C.columns),y+=C.maxUsed+(e<m.length-1?u:0))}let i=h[e];if(i){let e=Do(i.style.margin,p),t=(e.left??0)+(e.right??0);Y(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=Po(e,p,i.localRect.width),a=(e.top??0)+n;y+=a,i.localRect={...i.localRect,x:d+r,y:f+y},i.multicolFlowSpan={top:a,right:0,bottom:e.bottom??0,left:r},y+=i.localRect.height+(e.bottom??0)}}let x=y;for(let t of e.children){if(!J(t.style))continue;let e=Do(t.style.margin,n);t.staticSlot={kind:`block`,x:d+(e.left??0),y:f+(e.top??0)}}return e.multicolGeometry={spans:[],lineY:[],textY:[],lineX:[],totalRows:x,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:b,...g?{ruleSegments:v,nativeBalance:!0}:{}},x}function ga(e,t,n,r,a,o,s){let c=e.style,l=ia(n,r),u=e.children.filter(e=>!J(e.style)),d=u.filter(e=>!e.style.columnSpan),f=u.reduce((e,t,n)=>!t.style.columnSpan&&(n===0||u[n-1].style.columnSpan)?e+1:e,0);if(d.length>0&&d.every(e=>ma(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(fa()||f<=1&&d.every(e=>(e.style.margin.top===0||e.style.margin.top===null)&&(e.style.margin.bottom===0||e.style.margin.bottom===null)))))return ha(e,u,t,l,a,o,s);let p=To(c,`x`,t),m=na(c,t,p),h=m.length,g=[];{let e=0;for(let t of m)g.push(e),e+=t+p}let _=e=>e<h?g[e]:g[h-1]+(e-h+1)*(m[h-1]+p),v=e=>m[Math.min(e,h-1)],y=m[h-1],b=a.left+o.left,x=a.top+o.top,S=[],C=0,w=[],T=[],E=!1,D=(e,t)=>{let r=0,i=0,a=null,o=0,c=e=>{if(t)for(let t of T){if(t.index!==e)continue;let n=a===null?t.margin.top??0:Fo(a,t.margin.top??0);t.child.staticSlot={kind:`block`,x:b+_(r)+(t.margin.left??0),y:x+C+i+n}}};for(let l=0;l<w.length;l++){let u=w[l];c(l);let d=a===null?l===0?u.margin.top??0:0:Fo(a,u.margin.top??0),f=u.node.localRect.height;if(a!==null&&(u.breakBefore||i+d+f>e)&&(r+=1,i=0,a=null,d=0),t){let e=u.node,t=v(r);if(t!==y){let r=(u.margin.left??0)+(u.margin.right??0);Y(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+Po(u.margin,t,e.localRect.width),y:x+C+i+d}}i+=d+u.node.localRect.height,o=Math.max(o,i),a=u.margin.bottom??0}return c(w.length),{columns:r+1,maxUsed:o}},O=()=>{if(w.length===0){for(let e of T)e.child.staticSlot={kind:`block`,x:b+(e.margin.left??0),y:x+C+(e.margin.top??0)};T=[];return}let e=l===void 0?void 0:Math.max(1,l-C),t=c.columnFill===`auto`&&e!==void 0,r;if(t)r=e;else{let t=aa(1,D(1/0,!1).maxUsed,e=>D(e,!1).columns<=h);r=e===void 0?t:Math.min(t,e)}let i=D(r,!0),a=t&&n!==void 0?Math.max(i.maxUsed,r):i.maxUsed;if(c.ruleX)for(let e=0;e<h-1;e++){let t=Math.min(i.columns,h);sa(c.ruleVisibilityItems,e<t,e+1<t)&&S.push({bandStart:g[e]+m[e],bandSize:p,start:C,end:C+a})}C+=a,w=[],T=[]};for(let r of e.children){if(J(r.style)){T.push({child:r,margin:Do(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=Do(r.style.margin,t),i=(e.left??0)+(e.right??0);Y(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+Po(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=Do(r.style.margin,y),i=(e.left??0)+(e.right??0);Y(r,Math.max(0,y-i),n,0,0,`fill`,s),w.push({node:r,margin:e,breakBefore:E||r.style.breakBeforeColumn}),E=r.style.breakAfterColumn}return O(),c.ruleX&&S.length>0&&(e.decorationRuns=ir({glyphs:i(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:li(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderWeight:c.borderWeight,borderColor:c.borderColor,padding:o})),C}function _a(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&re(t.source,`Table content outside the expected structure (rows in tables, cells in rows) can't be laid out and was hidden — no anonymous table boxes (specs/table.md).`)}function va(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isNaN(n)?1:t===`colspan`?Math.min(1e3,Math.max(1,n)):Math.min(65534,Math.max(0,n))}function ya(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Vo(i,0,t,n):void 0,o=i&&i.kind===`percent`?i.value:void 0;for(let t=0;t<r;t++)e.colFixed.push(a),e.colPercent.push(o)};if(t.style.tableRole===`column`){r(t,ba(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,ba(t.source));else for(let e of i)r(e,ba(e.source));for(let n of t.children)n.style.tableRole!==`column`&&_a(e,n)}function ba(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function xa(e,t){let n={caption:null,rows:[],rowGroups:[],groupEnds:[],cells:[],columnCount:0,colFixed:[],colPercent:[],hidden:[]},r=[],i=[],a=[];for(let o of e.children){if(J(o.style))continue;let e=o.style.tableRole;if(e===`row`)i.push({row:o,group:null});else if(e===`header-group`||e===`row-group`||e===`footer-group`){let t=e===`header-group`?r:e===`footer-group`?a:i;for(let e of o.children)J(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):_a(n,e))}else e===`caption`?n.caption===null?n.caption=o:_a(n,o):e===`column`||e===`column-group`?(ya(n,o,t),n.hidden.push(o)):_a(n,o)}let o=[...r,...i,...a],s=0;for(let e=0;e<o.length;e++){n.rows.push(o[e].row),n.rowGroups.push(o[e].group);let t=o[e+1]?.group;if(!(e+1<o.length&&(o[e].group===t||o[e].group===null&&t===null))){for(let t=s;t<=e;t++)n.groupEnds.push(e+1);s=e+1}}return Sa(n),n}function Sa(e){let t=[];for(let n=0;n<e.rows.length;n++){let r=e.rows[n],i=0;for(let a of r.children){if(J(a.style))continue;if(a.style.tableRole!==`cell`){_a(e,a);continue}for(;(t[i]??0)>n;)i++;let o=va(a.source,`colspan`),s=va(a.source,`rowspan`),c=e.groupEnds[n],l=Math.max(1,Math.min(s===0?c-n:s,c-n));for(let e=i;e<i+o;e++)t[e]=Math.max(t[e]??0,n+l);e.cells.push({node:a,rowNode:r,row:n,col:i,rowSpan:l,colSpan:o}),i+=o}}e.columnCount=Math.max(t.length,e.colFixed.length)}function Ca(e,t,n){let r=e.style,i=Go(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Vo(r.width,0,e,n):void 0;a=t===void 0?Ho(e,n):Math.max(i,t)}let o=typeof r.minWidth==`number`?r.minWidth:0,s=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,vo(a,o,s))}function wa(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function Ta(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>0),a=Array.from({length:r},()=>0),o=Array.from({length:r},()=>void 0);for(let t=0;t<r;t++)e.colFixed[t]!==void 0&&(a[t]=e.colFixed[t]),o[t]=e.colPercent[t];let s=[];for(let t of e.cells){if(t.colSpan>1){s.push(t);continue}i[t.col]=Math.max(i[t.col],Ca(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],Ca(t.node,`max`,n));let e=wa(t.node);e!==void 0&&(o[t.col]=Math.max(o[t.col]??0,e))}s.sort((e,t)=>e.colSpan-t.colSpan);for(let e of s){let r=e.col,o=e.col+e.colSpan,s=ja(t,r,o),c=a.slice(r,o);for(let t of[`min`,`max`]){let l=t===`min`?i:a,u=l.slice(r,o).reduce((e,t)=>e+t,0)+s,d=Ca(e.node,t,n)-u;if(d<=0)continue;let f=q(c.some(e=>e>0)?c:c.map(()=>1),d);for(let e=r;e<o;e++)l[e]+=f[e-r]}}for(let e=0;e<r;e++)a[e]=Math.max(a[e],i[e]);return{min:i,max:a,percent:o}}function Ea(e,t){let n=e.min.length,r=e.min.slice(),i=[],a=[];for(let t=0;t<n;t++)(e.percent[t]===void 0?a:i).push(t);if(i.length>0){let n=i.reduce((t,n)=>t+e.percent[n],0),o=Math.max(100,n);for(let n of i){let i=Math.round(t*e.percent[n]/o);r[n]=Math.max(e.min[n],i)}let s=a.reduce((t,n)=>t+e.min[n],0),c=i.reduce((e,t)=>e+r[t],0)-(t-s);if(c>0){let t=i.map(t=>r[t]-e.min[t]),n=q(t,Math.min(c,t.reduce((e,t)=>e+t,0)));i.forEach((e,t)=>r[e]-=n[t])}}let o=t-r.reduce((e,t)=>e+t,0);if(o>0&&a.length>0){let t=a.map(t=>e.max[t]-e.min[t]),n=t.reduce((e,t)=>e+t,0),i=q(t,Math.min(o,n));a.forEach((e,t)=>r[e]+=i[t]),o-=Math.min(o,n)}if(o>0){let t=a.length>0?a:i;if(t.length>0){let n=t.map(t=>e.max[t]),i=q(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function Da(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>void 0);for(let n=0;n<r;n++)e.colFixed[n]===void 0?e.colPercent[n]!==void 0&&(i[n]=Math.max(0,Math.round(t*e.colPercent[n]/100))):i[n]=e.colFixed[n];for(let r of e.cells){if(r.row!==0)continue;let e=r.node.style,a;if(e.width&&e.width.kind===`percent`?a=Math.max(0,Math.round(t*e.width.value/100)):e.width&&e.width.kind!==`auto`&&(a=Vo(e.width,0,r.node,n)),a===void 0)continue;let o=q(Array.from({length:r.colSpan},()=>1),a);for(let e=0;e<r.colSpan;e++){let t=r.col+e;i[t]===void 0&&(i[t]=o[e])}}let a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length;if(o>0){let e=q(Array.from({length:o},()=>1),Math.max(0,t-a)),n=0;for(let t=0;t<r;t++)i[t]===void 0&&(i[t]=e[n++])}return i.map(e=>e??0)}function Oa(e,t){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let n=null;for(let{border:t,side:r}of e){if(!t||t.width[r]<=0)continue;let e=t.weight[r],i=t.style[r];(n===null||e>n.weight||e===n.weight&&or[i]>or[n.style])&&(n={weight:e,style:i,color:t.color[r]})}if(!n)return null;let{style:r,weight:i}=n;return{...n,width:k(r,i,t).cells,weight:A(r,i,t)}}function ka(e,t){let n=t.columnCount,r=t.rows.length,a=e.style.borderCollapse,o=i(e.style.glyphSet),s={collapsed:a,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:a?0:e.style.borderSpacingX,spacingY:a?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!a||n===0||r===0)return s;let c=Array.from({length:r},()=>Array.from({length:n},()=>void 0));for(let e of t.cells)for(let t=e.row;t<e.row+e.rowSpan;t++)for(let n=e.col;n<e.col+e.colSpan;n++)c[t][n]=e;let l=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?c[a][e-1]:void 0,s=e<n?c[a][e]:void 0;if(r!==void 0&&r===s){i.push(null);continue}let u=[];r&&r.col+r.colSpan===e&&u.push({border:r.node.style.latticeBorder,side:`right`}),s&&s.col===e&&u.push({border:s.node.style.latticeBorder,side:`left`});let d=e===0?`left`:e===n?`right`:null;if(d){u.push({border:t.rows[a].style.latticeBorder,side:d});let e=t.rowGroups[a];e&&u.push({border:e.style.latticeBorder,side:d}),u.push({border:l,side:d})}i.push(Oa(u,o))}s.vSegments.push(i),s.vLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}for(let e=0;e<=r;e++){let i=[];for(let a=0;a<n;a++){let n=e>0?c[e-1][a]:void 0,s=e<r?c[e][a]:void 0;if(n!==void 0&&n===s){i.push(null);continue}let u=[];n&&n.row+n.rowSpan===e&&u.push({border:n.node.style.latticeBorder,side:`bottom`}),s&&s.row===e&&u.push({border:s.node.style.latticeBorder,side:`top`}),e>0&&u.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&u.push({border:t.rows[e].style.latticeBorder,side:`top`});let d=e>0?t.rowGroups[e-1]:null,f=e<r?t.rowGroups[e]:null;d&&d!==f&&u.push({border:d.style.latticeBorder,side:`bottom`}),f&&f!==d&&u.push({border:f.style.latticeBorder,side:`top`}),e===0&&u.push({border:l,side:`top`}),e===r&&u.push({border:l,side:`bottom`}),i.push(Oa(u,o))}s.hSegments.push(i),s.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return s}function Aa(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function ja(e,t,n){if(!e.collapsed)return e.spacingX*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.vLines[i];return r}function Ma(e,t,n){if(!e.collapsed)return e.spacingY*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.hLines[i];return r}function Na(e,t){let n=t.tableData.get(e);if(n)return n;let r=xa(e,t),i=ka(e,r),a={structure:r,chrome:i,bounds:Ta(r,i,t),chromeX:Aa(i,r.columnCount)};return t.tableData.set(e,a),a}function Pa(e,t){let{structure:n,bounds:r,chromeX:i}=Na(e,t),a=r.min.reduce((e,t)=>e+t,0)+i,o=r.max.reduce((e,t)=>e+t,0)+i;return n.caption&&(a=Math.max(a,Go(n.caption,t)),o=Math.max(o,Ho(n.caption,t))),{min:a,max:o}}function Fa(e,t,n){let r=e.style,{bounds:i,chromeX:a}=Na(e,n),{min:o,max:s}=Pa(e,n),c=r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+ct(r).right,l=i.max.reduce((e,t)=>e+t,0),u=0,d=0;for(let e=0;e<i.max.length;e++){let t=i.percent[e];t===void 0?d+=i.max[e]:u+=t}if(u>=100)l=1/0;else if(u>0){for(let e=0;e<i.max.length;e++){let t=i.percent[e];t!==void 0&&t>0&&(l=Math.max(l,Math.ceil(i.max[e]*100/t)))}l=Math.max(l,Math.ceil(d*100/(100-u)))}let f=Math.max(l+a,s)+c;return Math.max(o+c,Math.min(f,t))}function Ia(e,t,n,r,a,o){let{structure:s,chrome:c,bounds:l}=Na(e,o),u=s.columnCount,d=s.rows.length,f=r.left+a.left,p=r.top+a.top;for(let e of s.hidden)e.tableHidden=!0,e.localRect={x:0,y:0,width:0,height:0},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=0;let m=Math.max(0,t-Aa(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?Da(s,m,o):Ea(l,m),_=[],v=0;for(let e=0;e<u;e++)v+=c.collapsed?c.vLines[e]:c.spacingX,_.push(v),v+=g[e];let y=v+(c.collapsed?c.vLines[u]??0:c.spacingX),b=0;s.caption&&(Y(s.caption,t,void 0,f,p,`fill`,o),b=s.caption.localRect.height);let x=new Map,S=new Map;for(let e of s.cells){let t=e.col+e.colSpan,n=g.slice(e.col,t).reduce((e,t)=>e+t,0)+ja(c,e.col,t);S.set(e,n),Y(e.node,n,void 0,0,0,`fill`,o,{width:n}),x.set(e,e.node.localRect.height)}let C=c.collapsed?c.hLines.reduce((e,t)=>e+t,0):(d+1)*c.spacingY,w=n===void 0?void 0:Math.max(0,n-b-C),T=e=>e!==void 0&&e.kind===`percent`&&w!==void 0?nt(e.value,w):0,E=Array.from({length:d},()=>0),D=Array.from({length:d},()=>!1);for(let e=0;e<d;e++){let t=s.rows[e].style.height;t!==void 0&&t.kind===`cells`&&(E[e]=t.value);let n=T(t);n>0&&(E[e]=Math.max(E[e],n),D[e]=!0)}for(let e of s.cells)if(e.rowSpan===1){let t=T(e.node.style.height);t>0&&(D[e.row]=!0),E[e.row]=Math.max(E[e.row],x.get(e),t)}let O=s.cells.filter(e=>e.rowSpan>1).sort((e,t)=>e.rowSpan-t.rowSpan);for(let e of O){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+Ma(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=q(Array.from({length:e.rowSpan},()=>1),r);for(let n=e.row;n<t;n++)E[n]+=i[n-e.row]}if(n!==void 0&&d>0){let e=n-b-C-E.reduce((e,t)=>e+t,0);if(e>0){let t=[];for(let e=0;e<d;e++)D[e]||t.push(e);let n=t.length>0?t:Array.from({length:d},(e,t)=>t),r=q(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let k=s.caption&&e.style.captionSide===`top`?b:0,A=[],j=k;for(let e=0;e<d;e++)j+=c.collapsed?c.hLines[e]:c.spacingY,A.push(j),j+=E[e];let M=d>0?j+(c.collapsed?c.hLines[d]??0:c.spacingY):k,ee=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!ee.has(t)&&ee.set(t,A[e])}for(let[e,t]of ee){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=A[t]+E[t]);e.localRect={x:f,y:p+t,width:y,height:n-t},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=n-t}for(let e=0;e<d;e++){let t=s.rows[e],n=s.rowGroups[e],r=n?ee.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+A[e]:A[e]-r,width:y,height:E[e]},t.resolvedPadding={top:0,right:0,bottom:0,left:0},t.unclampedHeight=E[e]}for(let e of s.cells){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+Ma(c,e.row,t);e.node.children.some(e=>!J(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&Y(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),La(e.node,n-(e.node.naturalContentHeight??e.node.localRect.height)),e.node.localRect={x:_[e.col],y:0,width:e.node.localRect.width,height:n}}for(let t of e.children)J(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+M),c.collapsed&&u>0&&d>0){let t=Array.from({length:d},()=>Array.from({length:u},()=>void 0));for(let e of s.cells){let n={node:e.node,row:e.rowNode,group:s.rowGroups[e.row]};for(let r=e.row;r<e.row+e.rowSpan;r++)for(let i=e.col;i<e.col+e.colSpan;i++)t[r][i]=n}e.lattice={vLines:c.vLines,hLines:c.hLines,vSegments:c.vSegments,hSegments:c.hSegments,widths:g,rowHeights:E,colX:_,rowY:A,contentLeft:f,contentTop:p,cells:t,set:i(e.style.glyphSet)}}return e.style.captionSide===`bottom`?M+b:M}function La(e,t){if(t<=0)return;let n=e.style.verticalAlign,r=n===`center`?Math.floor(t/2):n===`end`?t:0;if(!e.children.some(e=>!J(e.style)&&!e.inlineBox)){e.resolvedPadding.top+=r,e.resolvedPadding.bottom+=t-r;return}if(!(r<=0))for(let t of e.children)t.inlineBox||(J(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Ra(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function za(e,t,n,r,i,a=new Map){for(let o of e.children){let s=Ra(o.style);if(s===`relative`){let t=e.localRect.width-e.style.border.left-e.style.border.right-e.resolvedPadding.left-e.resolvedPadding.right,n=e.localRect.height-e.style.border.top-e.style.border.bottom-e.resolvedPadding.top-e.resolvedPadding.bottom;o.localRect.x+=Ba(o.style.insets.left,o.style.insets.right,t),o.localRect.y+=Ba(o.style.insets.top,o.style.insets.bottom,n)}else s===`absolute`&&Wa(o,e,t,n,r,i,a);Va(o,t+o.localRect.x,n+o.localRect.y,r,a),za(o,t+o.localRect.x,n+o.localRect.y,[...r,{node:o,absX:t+o.localRect.x,absY:n+o.localRect.y}],i,a)}}function Ba(e,t,n){return e===null?t===null?0:-X(t,n):X(e,n)}function Va(e,t,n,r,i){let a=e.inlineElements?.some(e=>e.anchorNames.length>0)??!1;if(e.style.anchorNames.length===0&&!a)return;let o=Ha(r),{width:s,height:c}=e.localRect;for(let r of e.style.anchorNames)i.set(r,{rect:{x:t,y:n,width:s,height:c},scrollers:o});if(!a)return;let l=new Map;for(let t of e.inlineElements)t.anchorNames.length>0&&!l.has(t.element)&&l.set(t.element,t.anchorNames);for(let{element:r,rect:a}of xs(e,t,n)){let e=l.get(r);if(e!==void 0){for(let t of e)i.set(t,{rect:a,scrollers:o});l.delete(r)}}}function Ha(e){return e.map(e=>e.node).filter(e=>e.scroll)}function Ua(e,t,n=!1){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!mo(n.node.style))continue;let r=n.node.style.border;return{x:n.absX+r.left,y:n.absY+r.top,width:Math.max(0,n.node.localRect.width-r.left-r.right),height:Math.max(0,n.node.localRect.height-r.top-r.bottom)}}let r=e[0],i={x:r.absX,y:r.absY,width:r.node.localRect.width,height:r.node.localRect.height},a=n?r.node.visibleCells:void 0;if(!a)return i;let o=Math.max(i.x,a.x),s=Math.max(i.y,a.y),c=Math.min(i.x+i.width,a.x+a.width)-o,l=Math.min(i.y+i.height,a.y+a.height)-s;return c>0&&l>0?{x:o,y:s,width:c,height:l}:i}function Wa(e,t,n,r,i,a,o){let s=e.style,c=s.position===`fixed`,l=e.staticSlot,u=l?.kind===`grid`&&!c&&mo(t.style)?{x:n+l.area.x,y:r+l.area.y,width:l.area.width,height:l.area.height}:Ua(i,c,s.topLayer),d=s.positionAnchor===null?void 0:o.get(s.positionAnchor);if(s.positionArea&&d){let{rect:t,movers:o}=Ka(d,c?[]:Ha(i));if(o.length>0){let e=i[0].node;e.anchorScrollers??=new Set;for(let t of o)e.anchorScrollers.add(t.source)}Ja(e,n,r,u,t,s.positionArea,a)}else Ga(e,t,n,r,u,a);c&&(e.hostRect={x:n+e.localRect.x,y:r+e.localRect.y})}function Ga(e,t,n,r,i,a){let o=e.style;delete e.anchorArea;let s=o.insets.left===null?null:X(o.insets.left,i.width),c=o.insets.right===null?null:X(o.insets.right,i.width),l=o.insets.top===null?null:X(o.insets.top,i.height),u=o.insets.bottom===null?null:X(o.insets.bottom,i.height),d=Do(o.margin,i.width),f=d.left??0,p=d.right??0,m=d.top??0,h=d.bottom??0,g=o.height===void 0||o.height.kind===`auto`,_={width:qa(e,i.width,s,c,f+p,a)};l!==null&&u!==null&&g&&(_.height=vo(Math.max(0,i.height-l-u-m-h),ko(o.minHeight,i.height)??0,ko(o.maxHeight,i.height))),Y(e,i.width,i.height,0,0,`shrink`,a,_);let v=e.localRect.width,y=e.localRect.height,b;if(s!==null&&c!==null){let e=Math.max(0,i.width-s-c-v-f-p),t=d.left===null&&d.right===null;b=i.x+s+f+(t?Math.floor(e/2):d.left===null?e:0)}else b=s===null?c===null?io(e,t,n,v):i.x+i.width-c-v-p:i.x+s+f;let x;if(l!==null&&u!==null){let e=Math.max(0,i.height-l-u-y-m-h),t=d.top===null&&d.bottom===null;x=i.y+l+m+(t?Math.floor(e/2):d.top===null?e:0)}else x=l===null?u===null?ao(e,t,r,y):i.y+i.height-u-y-h:i.y+l+m;e.localRect={...e.localRect,x:b-n,y:x-r}}function Ka(e,t){let n=0,r=0,i=[];for(let a of e.scrollers)t.includes(a)||(n-=a.scroll.x,r-=a.scroll.y,i.push(a));for(let a of t)e.scrollers.includes(a)||(n+=a.scroll.x,r+=a.scroll.y,i.push(a));return{rect:{...e.rect,x:e.rect.x+n,y:e.rect.y+r},movers:i}}function qa(e,t,n,r,i,a){let o=e.style,s=Ao(o.minWidth,t,e,a)??0,c=Ao(o.maxWidth,t,e,a);if(o.width!==void 0&&o.width.kind!==`auto`)return vo(Vo(o.width,t,e,a),s,c);if(n!==null&&r!==null)return vo(Math.max(0,t-n-r-i),s,c);let l=Math.max(0,t-(n??0)-(r??0)-i);return vo(Math.min(Ho(e,a),Math.max(Go(e,a),l)),s,c)}function Ja(e,t,n,r,i,a,o){let s=e.style,c=[{area:a},...s.positionTryFallbacks.map(e=>`flipBlock`in e?{area:$a(a,e),tactic:e}:{area:e})],l=({area:a,tactic:c})=>{let[l,u]=Xa(a.x,r.x,r.width,i.x,i.width),[d,f]=Xa(a.y,r.y,r.height,i.y,i.height),p={x:l,y:d,width:u,height:f},m=Do(s.margin,p.width),h=c?Ya(m,c):m,g=(h.left??0)+(h.right??0),_=(h.top??0)+(h.bottom??0);Y(e,p.width,p.height,0,0,`shrink`,o,{width:qa(e,p.width,null,null,g,o)});let{width:v,height:y}=e.localRect,b=Za(a.x,p.x,p.width,i.x,i.width,v,h.left??0,h.right??0,s.anchorCenter.x?`anchor-center`:s.justifySelf),x=Za(a.y,p.y,p.height,i.y,i.height,y,h.top??0,h.bottom??0,s.anchorCenter.y?`anchor-center`:s.alignSelf);return e.localRect={...e.localRect,x:b-t,y:x-n},e.anchorArea=a,v+g<=p.width&&y+_<=p.height};for(let e of c)if(l(e))return;l(c[0])}function Ya(e,t){let{top:n,right:r,bottom:i,left:a}=e;return t.flipBlock&&([n,i]=[i,n]),t.flipInline&&([a,r]=[r,a]),t.flipStart&&([n,r,i,a]=[a,i,r,n]),{top:n,right:r,bottom:i,left:a}}function Xa(e,t,n,r,i){let a=t+n,o=r+i;switch(e){case`start`:return[t,Math.max(0,r-t)];case`end`:return[o,Math.max(0,a-o)];case`center`:return[r,i];case`span-start`:return[t,Math.max(0,o-t)];case`span-end`:return[r,Math.max(0,a-r)];case`span-all`:return[t,n]}}function Za(e,t,n,r,i,a,o,s,c){let l=t+o,u=t+n-s-a;if(c===`start`)return l;if(c===`end`)return u;if(c===`center`)return t+Math.floor((n-a-o-s)/2)+o;if(c!==`anchor-center`){if(e===`start`||e===`span-start`)return u;if(e===`end`||e===`span-end`)return l}let d=r+Math.floor((i-a-o-s)/2)+o;return Math.max(l,Math.min(d,u))}var Qa={start:`end`,end:`start`,center:`center`,"span-start":`span-end`,"span-end":`span-start`,"span-all":`span-all`};function $a(e,t){let{x:n,y:r}=e;return t.flipBlock&&(r=Qa[r]),t.flipInline&&(n=Qa[n]),t.flipStart&&([n,r]=[r,n]),{x:n,y:r}}function eo(e,t,n){return hi(e,[n],Math.max(0,t-n))[0]}function to(e,t,n,r){return vi(_i(e,t),n,r)}function no(e,t,n,r,i){let a=Do(e.style.margin,n.innerWidth),[o,s,c,l]=r===`x`?[a.left??0,a.right??0,n.innerWidth,n.direction===`row`]:[a.top??0,a.bottom??0,n.innerHeight,n.direction===`column`],u=i+o+s;return(l?eo(Si(t.style),c,u):to(e,t,c,u))+o}function ro(e,t,n,r,i){let a=Do(e.style.margin,n.width),o=e.style.justifySelf===`auto`?t.style.justifyItems:e.style.justifySelf,[s,c,l,u]=r===`x`?[a.left??0,a.right??0,n.width,o]:[a.top??0,a.bottom??0,n.height,_i(e,t)];return vi(u,l,i+s+c)+s}function io(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.x:i.kind===`grid`?n+i.staticArea.x+ro(e,t,i.staticArea,`x`,r):n+i.originX+no(e,t,i,`x`,r)}function ao(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.y:i.kind===`grid`?n+i.staticArea.y+ro(e,t,i.staticArea,`y`,r):n+i.originY+no(e,t,i,`y`,r)}function oo(e,t,n,r=1){let i=0,a=t;for(let t of e)n+r<=t.y||n>=t.y+t.height||(t.side===`left`?i=Math.max(i,t.x+t.width):a=Math.min(a,t.x));return{x:i,width:Math.max(0,a-i)}}function so(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return co(e,t,n,o,i,a)}function co(e,t,n,r,i,a){let o=[r,...e.map(e=>e.y+e.height).filter(e=>e>r)].sort((e,t)=>e-t),s=o.find(n=>oo(e,t,n,a).width>=i)??o[o.length-1],c=oo(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function lo(e,t,n){if(t===`none`)return n;let r=n;for(let n of e)(t===`both`||n.side===t)&&(r=Math.max(r,n.y+n.height));return r}function uo(e){return lo(e,`both`,0)}function fo(e,t,n){let r=ho();Y(e,t,void 0,0,0,`fill`,r),n?.(e),za(e,0,0,[{node:e,absX:0,absY:0}],r),n?.(e);let i=e.localRect.height,a=Lo(e),{overflow:o}=e.style;return o.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,a.x)),o.y===`visible`&&(e.localRect.height=Math.max(i,a.y)),{height:i}}function J(e){return e.position===`absolute`||e.position===`fixed`}function po(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!J(e.style))}function mo(e){return e.position!==`static`}function ho(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function Y(e,t,n,r,i,a,o,s,c){let l=e.style,u=s?.height;delete e.decorationRuns,delete e.lattice,delete e.latticeRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.flow,delete e.textExtent,delete e.lineBands;let d=Ao(l.minWidth,t,e,o)??0,f=Ao(l.maxWidth,t,e,o),p=ko(l.minHeight,n)??0,m=ko(l.maxHeight,n),h=ct(l),g=st(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:X(l.padding.top,t),right:X(l.padding.right,t)+h.right,bottom:X(l.padding.bottom,t)+h.bottom,left:X(l.padding.left,t)};e.resolvedPadding=_;let v=Math.max(s?.width??vo(Io(l,t,a,e,o),d,f),Eo(l.border,_,`x`)),y=Bo(l,n),b=qo(v,u??y??(p>0?p:void 0)??1/0,l.border,_),x=u!==void 0||y!==void 0,S=m===void 0?void 0:Math.max(0,m-l.border.top-l.border.bottom-_.top-_.bottom),C=_o(e),w=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(C)return go(e,b.width,t,r,S,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return ui(e,b.width,t,r,l.border,_,o);if(l.display===`flex`)return fi(e,b.width,t,n,l.border,_,o);if(l.display===`grid`)return Ti(e,b.width,t,l.border,_,o);if(l.display===`table`)return Ia(e,b.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&re(t.source,`float on a multicol container's own child is ignored — it lays out as a column item; float it inside a child instead (specs/float.md).`);return ga(e,b.width,r,S,l.border,_,o)}return jo(e,b.width,r,l.border,_,o)},T=w(b.height,x);if(!C&&(l.display===`flex`||l.display===`grid`)&&!x&&m!==void 0){let e=l.border.top+l.border.bottom+_.top+_.bottom,t=vo(T+e,p,m)-e;t<T&&(T=w(Math.max(0,t),!0))}let E=T+l.border.top+l.border.bottom+_.top+_.bottom,D=u??y??E;e.unclampedHeight=D,e.naturalContentHeight=E;let O=Math.max(vo(D,p,m),Eo(l.border,_,`y`)),k=e.multicolGeometry;if(k){let t=O-l.border.top-l.border.bottom-_.top-_.bottom;t>k.totalRows&&(_.bottom+=t-k.totalRows),pa(e,k,l.border,_)}if(e.localRect={x:r,y:i,width:v,height:O},at(l.overflow.x)||at(l.overflow.y)){let c=Lo(e),u=Math.max(0,c.x-l.border.left-_.left),d=Math.max(0,c.y-l.border.top-_.top),f=Math.max(0,v-l.border.left-l.border.right-_.left-_.right),p=Math.max(0,O-l.border.top-l.border.bottom-_.top-_.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:at(l.overflow.x)?Math.max(0,u-f):0,maxY:at(l.overflow.y)?Math.max(0,d-p):0},l.scrollbarWidth!==`none`){let c=s?.gutter??{right:!1,bottom:!1},u=c.right||l.overflow.y===`auto`&&e.scrollRange.maxY>0,d=c.bottom||l.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==c.right||d!==c.bottom){Y(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:h.right,bottom:h.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function go(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=ot(e);ni(e.text,(n,r)=>{let i=u[r];Y(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d;if(c.display===`multicol`){let n=To(c,`x`,t),o=oa(c,t,n);a.right+=o.leftover;let s=ca(e,o,n,ia(r,i));e.multicolGeometry=s,d=s}else d=bo(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let f=d.textY.at(-1);f!==void 0&&(e.baselineRow=c.border.top+a.top+f);let p=e.lineBands;e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+$r(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows};let m=yo(e,d,t,n,a);if(u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);ni(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=d.spans[i];u[r].localRect={...u[r].localRect,x:c.border.left+a.left+xo(e,i,o,m).x+Qr(o.start,n,e.advances),y:c.border.top+a.top+d.lineY[i]}})}}else l=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=Do(n.style.margin,t);n.staticSlot={kind:`block`,x:c.border.left+a.left+(e.left??0),y:c.border.top+a.top+(e.top??0)}}return l}function _o(e){return e.children.some(e=>!J(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function vo(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function yo(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return n;let o=a.display===`flex`&&a.flexDirection===`column`,s=n,c=t.spans.reduce((t,n)=>Math.max(t,$r(e.text,n.start,n.end,e.advances,a.tracking)),0),l=Math.max(0,n-c);if(l>0){let e=a.display===`grid`?vi(a.justifyItems,n,c):o?vi(a.alignItems,n,c):hi(Si(a),[c],l)[0];e>0&&(i.left+=e,i.right+=l-e,s=c)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?vi(a.alignItems,r,t.totalRows):hi(Si(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}return s}function bo(e,t,n){let r,i;if(n)r=[],i=So(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=Co(e,t,i),{heights:o,textOffsets:s}=wo(e,a),c=[],l=[],u=0;for(let t=0;t<a.length;t++)r&&(u=r[t].row),c.push(u),l.push(u+s[t]),u+=o[t]+(t<a.length-1?e.style.lineGap:0);return{spans:a,lineY:c,textY:l,totalRows:u,bands:r}}function xo(e,t,n,r){let i=e.style,a=e.lineBands?.[t],o=e.multicolGeometry,s=a?a.width:o?Math.max(1,o.columnWidth-i.tracking):r,c=t===0?i.textIndent:0,l=$r(e.text,n.start,n.end,e.advances,i.tracking),u=Math.max(0,s-c-l),d=i.textAlign===`end`?u:i.textAlign===`center`?Math.floor(u/2):0;return{width:s,indent:c,x:(o?.lineX[t]??0)+(a?.x??0)+c+d}}function So(e,t,n,r){let{border:i,lineGap:a}=e.style,o=e.resolvedPadding,s=n.x+i.left+o.left,c=n.y+i.top+o.top,l=uo(n.boxes),u=ot(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?wo(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=oo(n.boxes,n.contentWidth,c+d),a=Math.max(e.x,s),o=Math.min(e.x+e.width,s+t);if(o>a||c+d>=l){let e={row:d,x:Math.max(0,a-s),width:Math.max(0,o-a)};return r[i]=e,e.width}d++}}}function Co(e,t,n){if(e.style.whiteSpace!==`normal`){let t=Xr(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return Zr(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function wo(e,t){let n=ot(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0,c=[];for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a++];c.push(i);let o=i.localRect.height;t=Math.max(t,o),i.style.verticalAlign===`end`?s=Math.max(s,o-1):i.style.verticalAlign===`center`&&(s=Math.max(s,Math.floor((o-1)/2)))}let l=Math.min(s,t-1);for(let e of c)e.inlineTextRow=l;r.push(t),i.push(l)}return{heights:r,textOffsets:i}}function To(e,t,n){let r=X(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function Eo(e,t,n){return n===`x`?e.left+e.right+t.left+t.right:e.top+e.bottom+t.top+t.bottom}function X(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:nt(e.percent,t)+(e.cells??0)}function Do(e,t){let n=e=>e===null?null:X(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function Oo(e){return typeof e==`number`?e:0}function ko(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return nt(e.percent,t)+(e.cells??0)}}function Ao(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Vo({kind:e},t,n,r):ko(e,t)}function jo(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=[],l=s,u=null;for(let r of e.children){let e=Do(r.style.margin,t),i=e.top??0,d=e.bottom??0,f=e.left??0,p=e.right??0,m=l+(u===null?i:Fo(u,i));if(J(r.style)){r.staticSlot={kind:`block`,x:o+f,y:m};continue}let h=Math.max(0,t-f-p);if(r.style.float!==`none`){let e=lo(c,r.style.clear,l+(u??0)-s);Y(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=so(c,t,r.style.float,e,m,g);c.push({..._,width:m,height:g,side:r.style.float}),r.localRect={...r.localRect,x:o+_.x+f,y:s+_.y+i};continue}let g=s+lo(c,r.style.clear,m-s);if(c.length>0&&po(r)){let i=Mo(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>Y(r,h,n,0,0,`fill`,a,void 0,c.length>0?{boxes:c,contentWidth:t,x:e,y:g-s}:void 0);i(f);let l=Po(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=Po(e,t,r.localRect.width)),r.localRect={...r.localRect,x:o+l,y:g}}l=r.localRect.y+r.localRect.height,u=d}return u!==null&&(l+=u),(c.length>0||e.children.some(e=>e.anonymous))&&No(e,o,s,t,c),Math.max(l-s,uo(c))}function Mo(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Wo(e,`min`,o)+s,l=t=>Y(e,Math.max(0,t-s),a,0,0,`fill`,o),u=[...new Set(t.map(e=>e.y+e.height))].filter(e=>e>r).sort((e,t)=>e-t);for(let a of[r,...u.slice(0,-1)]){let r=oo(t,n,a);for(;r.width>=c;){l(r.width);let o=oo(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+Po(i,o.width,e.localRect.width),y:a};if(o.width===r.width)break;r=o}}let d=u[u.length-1]??r;return l(n),{x:Po(i,n,e.localRect.width),y:d}}function No(e,t,n,r,i){let a=e.style.lineGap,o=e=>Do(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(J(u.style))continue;let{x:e,y:d,height:f}=u.localRect;if(u.style.float!==`none`){c?.flow&&(c.flow.bottom=Math.max(0,o(c))),l.push({float:u,previous:c});continue}if(u.anonymous)c?.flow&&(c.flow.bottom=d-s),s=d+f+a;else{let o=i.length>0&&po(u)?oo(i,r,d-n,f).x:0,l=c?.flow?.bottom??0,p=d+a/2-s;u.flow={top:p>=l?p:p-l,right:0,bottom:0,left:e-t-o},s=d+a/2+f}c=u}for(let{float:e,previous:t}of l){let n=Do(e.style.margin,r),i=t?.flow?o(t)-(t.flow.bottom??0):0;e.flow={top:(n.top??0)+i,right:n.right??0,bottom:n.bottom??0,left:n.left??0}}}function Po(e,t,n){let r=t-n;return e.left===null&&e.right===null?Math.floor(r/2):e.left===null?r-(e.right??0):e.left}function Fo(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function Io(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!J(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?Vo(a,t,r,i):Math.min(t,Ho(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Vo(a,t,r,i);return Math.max(e,zo(r,t,i))}return Fa(r,t,i)}return a!==void 0&&a.kind!==`auto`?Vo(a,t,r,i):n===`shrink`?Math.min(t,Ho(r,i)):t}function Lo(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=Ro(r);t=Math.max(t,r.localRect.x+e.x),n=Math.max(n,r.localRect.y+e.y)}if(e.textExtent){let{border:r}=e.style,i=e.resolvedPadding;t=Math.max(t,r.left+i.left+e.textExtent.width),n=Math.max(n,r.top+i.top+e.textExtent.rows)}return{x:t,y:n}}function Ro(e){let{width:t,height:n}=e.localRect,r=e.style.overflow.x!==`visible`,i=e.style.overflow.y!==`visible`;if(r&&i)return{x:t,y:n};let a=Lo(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function zo(e,t,n){let r=e.style;return Pa(e,n).min+r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+ct(r).right}function Bo(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return nt(e.height.value,t)}function Vo(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return nt(e.value,t);case`min-content`:return Go(n,r);case`max-content`:return Ho(n,r);case`fit-content`:return Math.min(Ho(n,r),Math.max(Go(n,r),t));case`auto`:return Ho(n,r)}}function Ho(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Uo(e,t)+r.border.left+r.border.right+Oo(r.padding.left)+Oo(r.padding.right)+ct(r).right;return t.maxContent.set(e,i),i}function Uo(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?ra(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Pi(e,t).max;if(e.style.display===`table`)return Pa(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(Oo(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Wo(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Wo(n,`max`,t)),0);if(e.style.display===`multicol`)return ra(e.style,r);if(e.style.display===`block`&&n.some(e=>e.style.float!==`none`)){let e=0,r=0,i=0;for(let a of n){let n=Wo(a,`max`,t);a.style.float===`none`?a.style.clear===`none`?i=Math.max(i,n):(e=Math.max(e,r+i),r=0,i=n):r+=n}return Math.max(e,r+i)}return r}function Wo(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Vo(r.width,0,e,n)),i===void 0&&(i=t===`min`?Go(e,n):Ho(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,vo(i,a,o))}function Go(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Ko(e,t)+r.border.left+r.border.right+Oo(r.padding.left)+Oo(r.padding.right)+ct(r).right;return t.minContent.set(e,i),i}function Ko(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:ti(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Pi(e,t).min;if(e.style.display===`table`)return Pa(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(Oo(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Wo(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Wo(n,`min`,t)),0)}function qo(e,t,n,r){return{width:Math.max(0,e-n.left-n.right-r.left-r.right),height:Math.max(0,t-n.top-n.bottom-r.top-r.bottom)}}function Jo(e){let{store:t,layers:n}=cs(e,{});return ls(t,n),t.grid.map(e=>e.join(``).trimEnd()).join(`
|
|
956
|
+
`)}function Yo(e,t={}){let{store:n,layers:r}=cs(e,t),i=(e,n,r)=>e.map((e,i)=>Zo(e,n[i],t.boxed,r));return{segments:i(n.grid,n.paints,!1),cells:n.grid,layers:r.map(e=>({layer:e,segments:i(e.grid,e.paints,Xo(e))}))}}function Xo(e){for(let t=e;t;t=t.parent)if(t.node.style.layer?.resampled)return!0;return!1}function Zo(e,t,n,r){let i=[],a=0,o;for(let s=0;s<e.length;s++){let c=e[s];if(c===``)continue;let l=t[s],u=1;for(;e[s+u]===``;)u++;let d=n&&(c.length>1||c.charCodeAt(0)>=128)?n(c,u,l,r):void 0,f=i[i.length-1];if(f?.box===1&&u===1&&c===f.text[0]&&d!==!0&&d===o&&$o(f,l)){f.text+=c,f.cells+=1;continue}if(d){i.push({text:c,cells:u,box:u,...l}),a=0,o=d;continue}if(f&&!f.box&&$o(f,l))f.text+=c,a+=u;else if(f&&!f.box&&l&&(f.backgrounds||f.backgroundColor!==void 0)&&Qo(f,l,`backgroundColor`)){f.backgrounds??=Array.from({length:a},()=>f.backgroundColor),delete f.backgroundColor,f.text+=c,a+=u;for(let e=0;e<u;e++)f.backgrounds.push(l.backgroundColor)}else if(f&&!f.box&&l&&l.backgroundColor===void 0&&(f.colors||f.color!==void 0)&&Qo(f,l,`color`)){f.colors??=Array.from({length:a},()=>f.color),delete f.color,f.text+=c,a+=u;for(let e=0;e<u;e++)f.colors.push(l.color)}else i.push({text:c,...l}),a=u}return i}function Qo(e,t,n){let r=n===`color`?`text`:`fill`,i=n===`color`?`backgroundColor`:`color`;return e.gradient===r&&t.gradient===r&&t[n]!==void 0&&e.selected===void 0&&t.selected===void 0&&e[i]===t[i]&&e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle&&e.textDecorationLine===t.textDecorationLine&&e.opacity===t.opacity}function $o(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.gradient===t?.gradient&&e.backgrounds===t?.backgrounds&&e.colors===t?.colors&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function es(e,t){e.selected?(t.color=e.backgroundColor??`var(--mw-bg, canvas)`,t.backgroundColor=e.color??`var(--mw-fg, canvastext)`):(e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor),e.backgrounds&&(t.backgroundImage=`linear-gradient(to right, ${rs(e.backgrounds)})`),e.colors&&(t.backgroundImage=`linear-gradient(to right, ${rs(e.colors)})`,t.webkitBackgroundClip=`text`,t.backgroundClip=`text`,t.color=`transparent`)),e.fontWeight!==void 0&&(t.fontWeight=e.fontWeight),e.fontStyle!==void 0&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==void 0&&(t.textDecoration=e.textDecorationLine),e.opacity!==void 0&&(t.opacity=e.opacity)}function ts(e,t,n){let r=new Map;return(i,a,o)=>{let s=e[o-n]?.[a-t];if(s==null||i?.color===void 0)return i;let c=r.get(i.color);if(c===void 0&&r.set(i.color,c=We(i.color)),c===null||c.a>=1)return i;let l=We(s);return l?{...i,color:Qe(Ze(c,l)),gradient:`text`}:i}}function ns(e,t){let{border:n}=e.style;if(t===`padding-box`)return n;let r=e.resolvedPadding;return{top:n.top+r.top,right:n.right+r.right,bottom:n.bottom+r.bottom,left:n.left+r.left}}function rs(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];e[n+1]!==r&&t.push(`${r} 0 calc(var(--mw-cw, 1ch) * ${n+1})`)}return t.join(`, `)}function is(e){return e.color===void 0&&e.backgroundColor===void 0&&e.backgrounds===void 0&&e.colors===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function as(e,t,n){let r=Array.from({length:t},()=>Array.from({length:e},()=>` `)),i=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),a=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),o=(n,r)=>n>=0&&n<e&&r>=0&&r<t,s=(e,t)=>{let n=a[t][e];if(n)for(let e=0;e<n.cells;e++)r[t][n.x+e]=` `,a[t][n.x+e]=void 0},c=(e,t,n)=>{let r=i[t][e];i[t][e]=r?{backgroundColor:r.backgroundColor,gradient:r.gradient===`fill`?`fill`:void 0,...n}:n};return{grid:r,paints:i,put:(e,i,l,u,d=1)=>{if(i<0||i>=t)return;if(n&&ss(n,e,i,d),d===1){if(!o(e,i))return;s(e,i),r[i][e]=l,c(e,i,u);return}let f=o(e,i)&&o(e+d-1,i);for(let t=0;t<d;t++)o(e+t,i)&&(s(e+t,i),r[i][e+t]=f?t===0?l:``:` `,f&&(a[i][e+t]={x:e,cells:d}),c(e+t,i,u))},clear:(e,t)=>{o(e,t)&&(s(e,t),r[t][e]=` `,i[t][e]=void 0)}}}function os(e,t,n){for(let r=t.y0;r<t.y1;r++){let i=e.get(r);i||e.set(r,i=[]),i.push({x0:t.x0,x1:t.x1,cover:n})}}function ss(e,t,n,r){let i=e.get(n);if(i){for(let{x0:e,x1:a,cover:o}of i)if(!(t>=a||t+r<=e))for(let i=Math.max(t,e);i<Math.min(t+r,a);i++)o(i,n)}}function cs(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=new Map,a=as(n,r,i),o={options:t,layers:[],layer:null,covers:i,width:n,height:r,put:a.put};gs(e,0,0,o,o.put);for(let{node:t}of e.topLayer??[])gs(t,0,0,o,o.put,t.style.opacity);return{store:a,layers:o.layers}}function ls(e,t){for(let n of t)for(let t=0;t<n.height;t++){let r=n.grid[t];for(let i=0;i<n.width;i++){let a=r[i];if(a===``||!ds(n,n.x+i,n.y+t))continue;let o=n.paints[t][i];if(a===` `&&o?.backgroundColor===void 0&&!o?.backgrounds)continue;let s=1;for(;r[i+s]===``;)s++;e.put(n.x+i,n.y+t,a,o,s)}}}var us=(e,t,n)=>e===null||t>=e.x0&&t<e.x1&&n>=e.y0&&n<e.y1;function ds(e,t,n){for(let r=e;r;r=r.parent)if(!us(r.clip,t,n))return!1;return!0}var fs=(e,t)=>e===null?t:{x0:Math.max(e.x0,t.x0),y0:Math.max(e.y0,t.y0),x1:Math.min(e.x1,t.x1),y1:Math.min(e.y1,t.y1)};function ps(e,t,n,r){let i={node:t,box:n,x:0,y:0,width:0,height:0,grid:[],paints:[],holes:new Set,clip:r&&fs(r,{x0:0,y0:0,x1:e.width,y1:e.height}),parent:e.layer};e.layers.push(i);let a=new Map,o=1/0,s=1/0,c=-1/0,l=-1/0,u=(t,n,r,i)=>{let a=Math.max(0,t),u=Math.min(e.width,t+r),d=Math.max(0,n),f=Math.min(e.height,n+i);return a>=u||d>=f?!1:(o=Math.min(o,a),s=Math.min(s,d),c=Math.max(c,u),l=Math.max(l,f),!0)};u(n.x,n.y,n.width,n.height);let d=[];return{put:(e,t,n,r,i=1)=>{ss(a,e,t,i),u(e,t,i,1)&&d.push([e,t,n,r,i])},close:()=>{if(o===1/0)return;let{clip:t}=i;if(t&&(c<=t.x0||o>=t.x1||l<=t.y0||s>=t.y1))return;let n=c-o,{grid:r,paints:u,put:f,clear:p}=as(n,l-s);for(let[e,t,n,r,i]of d)f(e-o,t-s,n,r,i);Object.assign(i,{x:o,y:s,width:n,height:l-s,grid:r,paints:u}),os(e.covers,{x0:o,y0:s,x1:c,y1:l},(e,t)=>{p(e-o,t-s),i.holes.add((t-s)*n+(e-o)),ss(a,e,t,1)})},layer:i,covers:a}}function ms(e,t){return(n,r,i,a,o=1)=>{if(o===1){t(n,r)||e(n,r,i,a);return}let s=!0;for(let e=0;e<o;e++)t(n+e,r)&&(s=!1);if(s)e(n,r,i,a,o);else for(let i=0;i<o;i++)t(n+i,r)||e(n+i,r,` `,a)}}function hs(e,t=!0){let n={};return e.color&&(n.color=e.color),t&&e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(n.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(n.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(n.textDecorationLine=e.textDecorationLine),n}function gs(e,t,n,r,a,o=1,s=null){if(e.tableHidden)return;let c=e.hostRect,l=c?c.x:t+e.localRect.x+(e.stickyShift?.x??0),u=c?c.y:n+e.localRect.y+(e.stickyShift?.y??0),d=e.style,{options:f}=r,p={x:l,y:u,width:e.localRect.width,height:e.localRect.height},m=d.layer?ps(r,e,p,s):null,h=m?m.put:c?r.put:a,g=m||c?null:s,_=m?{...r,layer:m.layer,covers:m.covers,put:m.put}:r,v=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},y=e=>{let t=[];Zn(d,p,e,t);for(let e of t)h(e.x,e.y,e.glyph,v(e.color===void 0?void 0:{color:e.color}))};y(!1);let b=d.backgroundImage,x=d.backgroundClip===`text`,S=f.cell??vr,C=t=>{let n={gradient:void 0,...t};for(let t=0;t<e.localRect.height;t++)for(let r=0;r<e.localRect.width;r++)h(l+r,u+t,` `,n)};d.backgroundClear&&C({backgroundColor:void 0});let w=null;if(x&&(b.length>0||d.backgroundColor!==void 0)){let{width:t,height:n}=e.localRect;w=ts(xr(b,d.backgroundColor,t,n,S),l,u)}else if(b.length>0){let{width:t,height:n}=e.localRect,r=xr(b,d.backgroundColor,t,n,S),i=d.backgroundClip,a=i===`padding-box`||i===`content-box`?ns(e,i):ut();for(let e=a.top;e<n-a.bottom;e++)for(let n=a.left;n<t-a.right;n++){let t=r[e][n];t&&h(l+n,u+e,` `,v({backgroundColor:t,gradient:`fill`}))}}else d.backgroundColor!==void 0&&C(v({backgroundColor:d.backgroundColor}));y(!0);let T=[];Xn(d,{x:l,y:u,width:e.localRect.width,height:e.localRect.height},T);for(let e of T){let t=v(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)h(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=v(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)h(l+t.x+n,u+t.y,t.glyph,e)}let E=e.lattice?hr(e,e.lattice,(e,t)=>us(g,l+e,u+t)):null;if(e.lattice&&E){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...E.parts.keys()];for(let[e,t]of E.parts)e.latticeRuns=t.map(e=>({...e,x:l+e.x,y:u+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)h(t.x,t.y,t.glyph,v(t.color===void 0?void 0:{color:t.color}));let D=l-(e.scroll?.x??0),O=u-(e.scroll?.y??0),k=h,A=g,j=vs(e,l,u);if(j&&(A=fs(g,j),k=ms(h,(e,t)=>!us(j,e,t))),!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=v(hs(d,b.length===0&&!w)),n=e.inlineElements?.map(e=>v(hs(e))),r=f.selection?.get(e),i=(t,n,r,i,a,o)=>{if(e.text[t]===``){a?.backgroundColor&&k(r,i,` `,v({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=Vr(s);c>0&&k(r,i,s,w?w(o,r,i):o,c)},a=[];_s(e,D,O,(o,s,c,l)=>{let u=e.charInline?.[o]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;r&&o>=r.start&&o<r.end&&(f={...f,selected:!0}),d?.stickyShift?a.push([o,s,c,l,d,f]):i(o,s,c,l,d,f)},(e,n)=>k(e,n,`…`,t));for(let e of a)i(...e)}for(let t of er(e))t.topLayerRank===void 0&&gs(t,D,O,_,k,o*t.style.opacity,A);if(E)for(let e of E.runs){let t=v(e.color===void 0?void 0:{color:e.color});h(l+e.x,u+e.y,e.glyph,t)}let M=e.scrollRange,ee=e.scrollGutterCells;if(M&&ee&&(ee.right>0||ee.bottom>0)){let{track:t,thumb:n}=te(i(d.glyphSet)),r=e=>v(e?{color:e}:void 0),a=r(d.scrollbarColor?.track??d.color),o=r(d.scrollbarColor?.thumb??d.color),s=Ss(e,l,u);if(s.y){let{col:r,row:i,thick:c,len:l}=s.y,{at:u,len:d}=Cs(l,M.sizeY,M.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+e,i+s,c?n:t,c?o:a)}}if(s.x){let{col:r,row:i,thick:c,len:l}=s.x,{at:u,len:d}=Cs(l,M.sizeX,M.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+s,i+e,c?n:t,c?o:a)}}}m?.close()}function _s(e,t,n,r,i){let a=e.style,o=e.resolvedPadding,s=t+a.border.left+o.left,c=n+a.border.top+o.top,l=e.localRect.width-a.border.left-a.border.right-o.left-o.right,{spans:u,textY:d}=e.multicolGeometry??bo(e,l);for(let t=0;t<u.length;t++){let n=u[t],o=c+d[t],f=xo(e,t,n,l),p=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?ws(e.text,n,f.width-f.indent,e.advances,a):{end:n.end,ellipsis:!1},m=s+f.x,h=e.advances;for(let t=n.start;t<p.end;){let n=Qr(t,t+1,h),i=1;if(h)for(;t+i<p.end&&h[t+i]===0;)i++;if(e.text[t]!==``&&n>0){let a=e.inlineElements?.[e.charInline?.[t]??-1],s=a?.insets,c=(s?s.left??(s.right===null?0:-s.right):0)+(a?.stickyShift?.x??0),l=(s?s.top??(s.bottom===null?0:-s.bottom):0)+(a?.stickyShift?.y??0);r(t,i,m+c,o+l,n)}m+=n,t+=i}p.ellipsis&&i?.(m,o)}}function vs(e,t,n){let{overflow:r,border:i}=e.style,a=r.x!==`visible`,o=r.y!==`visible`;if(!a&&!o)return null;let s=e.scrollGutterCells,{width:c,height:l}=e.localRect;return{x0:a?t+i.left:-1/0,y0:o?n+i.top:-1/0,x1:a?t+c-i.right-(s?.right??0):1/0,y1:o?n+l-i.bottom-(s?.bottom??0):1/0}}function ys(e,t,n,r,i){let a=e.multicolGeometry;if(!a)return!1;let o=e.style,s=e.resolvedPadding,c=r-(t+o.border.left+s.left),l=i-(n+o.border.top+s.top),{lineX:u,lineY:d}=a;for(let e=0;e<d.length;e++){if(c<u[e]||c>=u[e]+a.columnWidth)continue;let t=(e+1<d.length&&u[e+1]===u[e]?d[e+1]:void 0)??d[e]+1+o.lineGap;if(l>=d[e]&&l<t)return!0}return!1}function bs(e,t,n,r,i){let a=null;return _s(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,o,s,c)=>{if(s!==i||r<o||r>=o+c)return;let l=e.inlineElements?.[e.charInline?.[t]??-1]?.stickyShift!==void 0;(a===null||l)&&(a=t)}),a}function xs(e,t,n){let r=e.inlineElements;if(!r||!e.charInline)return[];let i=r.map((e,t)=>r.flatMap((n,r)=>r===t||n.element.contains(e.element)?[r]:[])),a=r.map(()=>new Map);return _s(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,r,o,s)=>{let c=e.charInline[t]??-1;if(!(c<0))for(let e of i[c]){let t=a[e].get(o);t?(t.x0=Math.min(t.x0,r),t.x1=Math.max(t.x1,r+s)):a[e].set(o,{x0:r,x1:r+s})}}),r.flatMap((e,t)=>[...a[t]].sort(([e],[t])=>e-t).map(([t,n])=>({element:e.element,rect:{x:n.x0,y:t,width:n.x1-n.x0,height:1}})))}function Ss(e,t,n){let r=e.scrollGutterCells;if(!r)return{};let{border:i,scrollbarSize:a,scrollbarInset:o}=e.style,s=n+i.top,c=t+i.left,l=n+e.localRect.height-i.bottom,u=t+e.localRect.width-i.right,d=r.bottom>0?l-r.bottom:l-o.y,f=r.right>0?u-r.right:u-o.x,p={};return r.right>0&&(p.y={col:u-r.right,row:s+o.y,thick:Math.min(a.y,r.right),len:Math.max(0,d-s-o.y)}),r.bottom>0&&(p.x={col:c+o.x,row:l-r.bottom,thick:Math.min(a.x,r.bottom),len:Math.max(0,f-c-o.x)}),p}function Cs(e,t,n,r){let i=t>0?Math.min(1,e/t):1,a=Math.max(1,Math.round(i*e));return n>0&&(a=Math.max(1,Math.min(a,e-n))),{at:n>0?Math.round(Math.min(r,n)/n*(e-a)):0,len:a}}function ws(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if($r(e,t.start,t.end,r,o)<=n)return{end:t.end,ellipsis:!1};let s=a===`ellipsis`?n-1:n,c=t.start;for(;c<t.end&&$r(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function Ts(e,t,n){let{width:r,height:i}=e.localRect,a=e.textExtent;if(a){let{border:t,overflow:n}=e.style,o=e.resolvedPadding;n.x===`visible`&&(r=Math.max(r,t.left+o.left+a.width)),n.y===`visible`&&(i=Math.max(i,t.top+o.top+a.rows))}return{x:t,y:n,width:r,height:i}}function Es(e,t,n){let r=e.topLayer??[];for(let i=r.length-1;i>=0;i--){let{node:a,ancestors:o}=r[i],{x:s,y:c}=a.hostRect;if(!Os(Ts(a,s,c),t,n))continue;let l=[],u=e.localRect.x,d=e.localRect.y;for(let e of o.slice(1))u+=e.localRect.x+(e.stickyShift?.x??0),d+=e.localRect.y+(e.stickyShift?.y??0),l.push({node:e,x:u,y:d}),u-=e.scroll?.x??0,d-=e.scroll?.y??0;return l.push({node:a,x:s,y:c}),Ds(a,s,c,t,n,l),l}let i=[];return Ds(e,e.localRect.x,e.localRect.y,t,n,i),i}function Ds(e,t,n,r,i,a){let o=vs(e,t,n),s=o!==null&&(r<o.x0||r>=o.x1||i<o.y0||i>=o.y1),c=t-(e.scroll?.x??0),l=n-(e.scroll?.y??0),u=er(e);for(let e=u.length-1;e>=0;e--){let t=u[e];if(t.tableHidden||t.topLayerRank!==void 0)continue;let n=t.hostRect;if(s&&!n)continue;let o=n?n.x:c+t.localRect.x+(t.stickyShift?.x??0),d=n?n.y:l+t.localRect.y+(t.stickyShift?.y??0);if(t.multicolFlow?ys(t,o,d,r,i):Os(Ts(t,o,d),r,i)){a.push({node:t,x:o,y:d}),Ds(t,o,d,r,i,a);return}}}function Os(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function ks(e){return e.closest?.(`[inert]`)!=null}function As(e,t,n){let r=[];for(let i of Es(e,t,n)){if(ks(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function js(e,t,n){let r=(e,t,n)=>e>0?-Math.ceil(e/n):t>0?Math.ceil(t/n):0;return{x:r(e.left-t.x,t.x-e.right,n.width),y:r(e.top-t.y,t.y-e.bottom,n.height)}}function*Ms(e,t,n,r){if(e<=0||t<=0)return;let i=Math.max(0,Math.min(n,e-1)),a=Math.max(0,Math.min(r,t-1));yield{x:i,y:a,edge:`self`};for(let e=i-1;e>=0;e--)yield{x:e,y:a,edge:`end`};for(let t=i+1;t<e;t++)yield{x:t,y:a,edge:`start`};for(let n=1;n<t;n++){if(a-n>=0)for(let t=e-1;t>=0;t--)yield{x:t,y:a-n,edge:`end`};if(a+n<t)for(let t=0;t<e;t++)yield{x:t,y:a+n,edge:`start`}}}var Ns={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function Ps(e){return Ns[e]??null}function Fs(e,t,n){let r=null,i=null;for(let a of n){let n=Ls(e,t,a.rect);n&&(!i||Is(n,i))&&(r=a,i=n)}return r?.element??null}function Is(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function Ls(e,t,n){let r=e===`up`||e===`down`,[i,a,o]=r?[`y`,`x`,`height`]:[`x`,`y`,`width`],s=t[i]+t[o],c=n[i]+n[o],l=e===`down`||e===`right`?n[i]-s:t[i]-c;if(l<0)return null;let u=r?`width`:`height`,d=Math.min(t[a]+t[u],n[a]+n[u])-Math.max(t[a],n[a]);return d>0?[0,l,0]:[1,l,-d]}function Rs(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x+(e.stickyShift?.x??0),s=i+e.localRect.y+(e.stickyShift?.y??0);!a&&!e.anonymous&&Bs(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of xs(e,o,s))Bs(n.element)&&t.push(n);let c=e.scroll?.x??0,l=e.scroll?.y??0;for(let t of e.children)n(t,o-c,s-l,!1)};return n(e,0,0,!0),t}function zs(e,t){let n=null;for(let{element:r,rect:i}of e)if(r===t){if(!n)n={...i};else{let e=Math.max(n.x+n.width,i.x+i.width),t=Math.max(n.y+n.height,i.y+i.height);n.x=Math.min(n.x,i.x),n.y=Math.min(n.y,i.y),n.width=e-n.x,n.height=t-n.y}}return n}function Bs(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!ks(e)}var Vs=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),Hs=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function Us(e,t,n=!1){let r=e.tagName;if(r===`TEXTAREA`||e.closest(`[contenteditable]:not([contenteditable='false'])`))return!0;if(r===`INPUT`){let n=e.type;return n===`radio`?!0:Vs.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!Hs.has(n)}if(r===`SELECT`){let t=e,r=Number(t.size)||Number(t.getAttribute(`size`))||0;return t.multiple||r>1||n}return!1}function Ws(e,t,n,r){let i=e.ownerDocument,a=i.createRange();a.setStart(e,t),a.collapse(!0);let o=i.createRange();return o.setStart(n,r),o.collapse(!0),a.compareBoundaryPoints(a.START_TO_START,o)}function Gs(e){let t=le(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function Ks(e,t){let n=t,r=null;for(let t of Js(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function qs(e,t,n){if(!e.contains(t))return null;let r=e.ownerDocument.createRange();return r.selectNodeContents(e),r.setEnd(t,n),r.toString().length}function*Js(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function Ys(e,t,n){if(!e.charSource){let r=Gs(e);return(r&&qs(r,t,n))??0}let r=ot(e).findIndex(e=>e.source.contains(t));if(r>=0){let t=-1;for(let n=0;n<=r;n++)t=e.text.indexOf(``,t+1);if(t>=0)return t}let i=e.charSource??[],a=0,o=i.length;for(;a<o;){let e=a+o>>1,r=i[e];Ws(r.node,r.offset,t,n)<=0?a=e+1:o=e}if(a===0)return 0;let s=i[a-1];return t===s.node&&n<s.offset+s.length?s.index+(n-s.offset):s.index+s.length}function Xs(e,t){if(!e.charSource){let n=Gs(e),r=n&&Ks(n,t);return r&&{node:r[0],offset:r[1]}}let n=e.charSource??[],r=0,i=n.length;for(;r<i;){let e=r+i>>1;n[e].index<=t?r=e+1:i=e}let a=n[r-1];if(!a)return null;let o=t-a.index;return o<=a.length?{node:a.node,offset:a.offset+o}:null}function Zs(e,t=[]){try{let n=e.ownerDocument.getSelection();if(!n)return null;if(n.getComposedRanges)return n.getComposedRanges({shadowRoots:[e,...t]})[0]??null;let r=e.getSelection?.();return!r||r.rangeCount===0?null:r.getRangeAt(0)}catch{return null}}function Qs(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:$s(e,r)&&$s(e,i)?`light`:`outside`}function $s(e,t){for(let n=t;n;){if(e.contains(n))return!0;let t=n.getRootNode();n=t instanceof ShadowRoot&&t.host!==e?t.host:null}return!1}function ec(e){let t=[],n=e=>{let r=Gs(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function tc(e,t){let n=t.startContainer.getRootNode();if(!(n instanceof ShadowRoot)||n.host===e.source)return null;let r=null,i=e=>{if(!r){if(e.source===n.host)r=e;else for(let t of e.children)i(t)}};if(i(e),!r)return null;let a=r,o=Ys(a,t.startContainer,t.startOffset),s=Ys(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function nc(e,t){let n=tc(e,t);if(n){let{leaf:e,start:t,end:r}=n;return r>t?new Map([[e,{start:t,end:r}]]):new Map}let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=new Map,a=e=>{if(!e.tableHidden&&dc(e,r)){if(pc(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(fc(e,r.startContainer)&&(n=Ys(e,r.startContainer,r.startOffset)),fc(e,r.endContainer)&&(a=Ys(e,r.endContainer,r.endOffset))),a>n&&i.set(e,{start:n,end:a})}for(let t of e.children)a(t)}};return a(e),i}function rc(e,t){let n=tc(e,t);if(n)return n.leaf.text.slice(n.start,n.end);let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=[];return ic(e,r,i),hc(i)}function ic(e,t,n){if(e.tableHidden||!dc(e,t))return;let r=cc(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)ac(e,t,n);else if(e.style.display===`table`){let r=sc(e);for(let r of e.children)r.style.tableRole===`row`||oc(r)||ic(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
|
|
957
|
+
`}),ic(e,t,n),i=!0)}else{pc(e)&&n.push({text:mc(e,t)});for(let r of e.children)r.inlineBox||ic(r,t,n)}r&&n.push({breaks:r})}function ac(e,t,n){let r=!1;for(let i of e.children)i.style.tableRole!==`cell`||i.tableHidden||t.intersectsNode(i.source)&&(r&&n.push({text:` `}),ic(i,t,n),r=!0)}function oc(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function sc(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if(oc(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function cc(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||oc(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`&&!e.anonymous?2:1}function lc(e){let t=[],n=e.charSource??[];if(n.length>0){let e=n[0],r=n[n.length-1];t.push({start:{node:e.node,offset:e.offset},end:{node:r.node,offset:r.offset+r.length}})}for(let n of ot(e)){let e=n.source.parentNode;if(!e)continue;let r=Array.prototype.indexOf.call(e.childNodes,n.source);t.push({start:{node:e,offset:r},end:{node:e,offset:r+1}})}if(t.length===0)return null;let r=(e,t)=>Ws(e.node,e.offset,t.node,t.offset)<0,{start:i,end:a}=t[0];for(let e of t.slice(1))r(e.start,i)&&(i=e.start),r(a,e.end)&&(a=e.end);return{start:i,end:a}}function uc(e){return[...(e.charSource??[]).map(e=>e.node),...(e.inlineElements??[]).map(e=>e.element),...e.children.map(e=>e.source)]}function dc(e,t){return e.anonymous?uc(e).some(e=>t.intersectsNode(e)):t.intersectsNode(e.source)}function fc(e,t){return e.anonymous?e.source===t||uc(e).some(e=>e===t||e.contains(t)):e.source.contains(t)}function pc(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function mc(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(fc(e,t.startContainer)&&(r=Ys(e,t.startContainer,t.startOffset)),fc(e,t.endContainer)&&(i=Ys(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
|
|
958
|
+
`)&&(a=a.slice(0,-1));let o=ot(e),s=n.slice(0,r).split(``).length-1;return a=a.replaceAll(``,()=>{let e=o[s++];if(!e||!t.intersectsNode(e.source))return``;let n=[];return ic(e,t,n),hc(n)}),a.replaceAll(``,``)}function hc(e){let t=``,n=0;for(let r of e){if(`breaks`in r){n=Math.max(n,r.breaks);continue}r.text.length!==0&&(t.length>0&&n>0&&(t+=`
|
|
959
|
+
`.repeat(n)),n=0,t+=r.text)}return t}var gc=new Map;function _c(e,t){let{text:n}=e;if(t<0||t>=n.length||vc(n[t]))return null;let r=t;for(;r>0&&!vc(n[r-1]);)r--;let i=t;for(;i<n.length&&!vc(n[i]);)i++;let a=yc(e.source.closest?.(`[lang]`)?.getAttribute(`lang`)??``);if(!a)return null;for(let e of a.segment(n.slice(r,i))){let n=r+e.index,i=n+e.segment.length;if(t>=n&&t<i)return{start:n,end:i}}return null}function vc(e){return e===`
|
|
960
|
+
`||e===``||e===``}function yc(e){let t=gc.get(e);return t===void 0&&(t=bc(e)??bc(``),gc.set(e,t)),t}function bc(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var xc=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`,level:`─`}],Sc=/^[\u2591-\u2593]$/,Cc=class{#e=new Map;#t=new Map;#n;#r={style:`normal`,weight:`400`,size:`16px`,family:`monospace`};#i={width:0,height:0,letterSpacing:0};#a=1;#o;generation=0;constructor(e){this.#o=e}configure(e,t){let n=typeof devicePixelRatio==`number`&&devicePixelRatio||1;(e.style!==this.#r.style||e.weight!==this.#r.weight||e.size!==this.#r.size||e.family!==this.#r.family||t.width!==this.#i.width||t.height!==this.#i.height||t.letterSpacing!==this.#i.letterSpacing||t.baseline!==this.#i.baseline||n!==this.#a)&&(this.#r={...e},this.#i={...t},this.#a=n,this.#e.clear(),this.#t.clear(),this.generation++)}invalidate(){this.#e.clear(),this.#t.clear(),this.generation++}box(e,t,n){let r=n?.fontWeight??this.#r.weight,i=n?.fontStyle??this.#r.style,a=`${i}|${r}|${e}`,o=this.#e.get(a);return o===void 0&&(o=this.#s(e,t,`${i} ${r} ${this.#r.size} ${this.#r.family}`),document.fonts?.status!==`loading`&&this.#e.set(a,o)),o}#s(e,t,n){let r=this.#f(),{width:i,height:a,letterSpacing:o}=this.#i;if(!r||i<=0||a<=0)return null;r.font=n;let s=null,c=xc.find(t=>t.range.test(e));if(c?s=this.#c(c.reference,r,n,!1,c.level):Sc.test(e)&&this.#c(`█`,r,n)&&(s=this.#c(e,r,n,!0)),s)return s;let l=r.measureText(e),u=l.width+o,d=t*i;if(Math.abs(u-d)<=.01*i)return null;let f=u>0?d/u:1,p=l.actualBoundingBoxLeft+l.actualBoundingBoxRight,m=l.actualBoundingBoxAscent+l.actualBoundingBoxDescent;return p>0&&(f=Math.min(f,d/p)),m>0&&(f=Math.min(f,a/m)),f=Math.round(f*1e3)/1e3,{scale:f,advance:Math.round(l.width*f*1e3)/1e3}}shift(e,t){let n=(e.period??0)*this.#a;if(!n)return 0;let r=(n-t*this.#i.height*this.#a%n)%n,i=n-r,a=e.reach;return(a&&r>a.above*this.#a&&i<=a.below*this.#a?-i:r)/this.#a}#c(e,t,n,r=!1,i){let a=`${e}|${n}`,o=this.#t.get(a);if(o!==void 0)return o;let{width:s,height:c,letterSpacing:l,baseline:u}=this.#i,d=t.measureText(e),f=d.actualBoundingBoxAscent+d.actualBoundingBoxDescent,p=f<c-.05,m=Math.abs(d.width+l-s)>.01*s,h=f>c+.05&&!m;if(o=null,(p||m||h)&&f>0){let t=d.actualBoundingBoxAscent,a=(c+3)/f,s=Math.max(a,1.08),l;if(i!==void 0&&u!==void 0){let e=this.#u(i,n);if(e!==null){let n=Math.max(s,(u-e+1)/(t-e),(c+1-u+e)/(f-t+e));n<=a*1.25&&(s=n,l=u+e*(s-1))}}let p,m=r?this.#d(e,n):null;if(m){let e=m*this.#a,t=Math.ceil(s*e-1e-6);s=t/e,p=t/this.#a}let g=d.fontBoundingBoxAscent,_=d.fontBoundingBoxDescent,v=Math.round(s*1e3)/1e3,y={scale:v,advance:Math.round(d.width*v*1e3)/1e3};if(h&&(y.past=!0),p&&(y.period=p),Number.isFinite(g+_)){let n=l===void 0?1.5:t*s-l,r=s*(2*t-g+_)-2*n,i=this.#o;if(i){let a=r=>i(e,v,r)-t*v+n,o=a(r);for(let e=0;e<3&&Math.abs(o)>.05;e++){let e=r-2*o,t=a(e);if(Math.abs(t)>=Math.abs(o))break;r=e,o=t}}if(y.lineHeight=Math.round(r*100)/100,p){let e=(g+_)*s,t=(r-e)/2;y.reach={above:Math.round(-t*100)/100,below:Math.round((t+e-c)*100)/100}}}o=y}return this.#t.set(a,o),o}#l(e,t,n,r,i){let a=parseFloat(this.#r.size)||16,o=Math.ceil(a*i*4),s=document.createElement(`canvas`);s.width=s.height=o;let c=s.getContext(`2d`);return!c||typeof c.getImageData!=`function`?null:(c.scale(4,4),c.font=t,c.textBaseline=n,c.fillText(e,a/2,r),{data:c.getImageData(0,0,o,o).data,side:o,k:4})}#u(e,t){let n=parseFloat(this.#r.size)||16,r=this.#l(e,t,`alphabetic`,n*2,3);if(!r)return null;let{data:i,side:a,k:o}=r,s=Math.round((n/2+this.#i.width/2)*o),c=-1,l=-1;for(let e=0;e<a;e++)i[(e*a+s)*4+3]>0&&(c<0&&(c=e),l=e);return c<0?null:n*2-(c+l+1)/2/o}#d(e,t){let n=parseFloat(this.#r.size)||16,r=this.#l(e,t,`top`,n/2,2);if(!r)return null;let{data:i,side:a,k:o}=r,s=[],c=0;for(let e of[.25,.375,.5,.625,.75]){let t=Math.round((n/2+this.#i.width*e)*o),r=[];for(let e=0;e<a;e++)r.push(i[(e*a+t)*4+3]);let l=r.findIndex(e=>e>0),u=r.length-1;for(;u>l&&r[u]===0;)u--;if(l<0||u-l<2*o)continue;let d=r.slice(l,u+1),f=d.reduce((e,t)=>e+t,0)/d.length,p=d.map(e=>e-f),m=p.reduce((e,t)=>e+t*t,0);m>c&&(c=m,s=p)}if(c===0)return null;let l=e=>{let t=0;for(let n=0;n+e<s.length;n++)t+=s[n]*s[n+e];return t/c},u=l(1),d=!1;for(let e=2;e<=s.length/2;e++){let t=l(e);if(d&&t<u&&u>.3)return(e-1)/o;d=t>u,u=t}return null}#f(){if(this.#n===void 0)try{let e=document.createElement(`canvas`).getContext(`2d`);this.#n=e&&typeof e.measureText==`function`?e:null}catch{this.#n=null}return this.#n}},wc=new WeakMap,Tc=new WeakMap;function Ec(e){return qc(e,!0)!==null}function Dc(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n,i)=>{let a=r.box(e,t,n);return a!==null&&(!a.past||!i)?!Rc.test(e)||a:n?.opacity!==void 0&&zc(e)}),n.selection&&(i.selection=n.selection),n.cell&&(i.cell=n.cell);let{segments:a,cells:o,layers:s}=Yo(e,i);if(!Lc(t,a,o,n))return!1;let c={width:o[0]?.length??0,height:o.length};return!n.layers||Nc(n.layers,s,n,c)}var Oc=new WeakMap;function kc(e){let t=Oc.get(e);if(t)for(let e of t.order)Fc(e,t.cell)}function Ac(e,t,n){let r=Oc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let i=r.order[e],a=Mc(i,t,n);if(!a||a.x<0||a.y<0||a.x>=i.width||a.y>=i.height)continue;let{layer:o}=i,s=Math.floor(a.x/r.cell.width),c=Math.floor(a.y/r.cell.height);if(o.holes.has(c*o.width+s))continue;let{box:l}=o;if(s>=l.x-o.x&&s<l.x-o.x+l.width&&c>=l.y-o.y&&c<l.y-o.y+l.height||(Hc(i.grid,s,c)??` `)!==` `)return{col:o.x+s,row:o.y+c,grid:i.grid,x:o.x,y:o.y}}return null}function jc(e,t,n){let r=Oc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let{layer:i,grid:a}=r.order[e];if(t>=i.x&&t<i.x+i.width&&n>=i.y&&n<i.y+i.height&&ds(i,t,n))return{grid:a,x:i.x,y:i.y}}return null}function Mc(e,t,n){let r=e.parent?Mc(e.parent,t,n):{x:t,y:n};if(!r||!e.inverse)return null;let{clip:i}=e;if(i&&(r.x<i.left||r.x>=i.left+i.width||r.y<i.top||r.y>=i.top+i.height))return null;let a=e.inverse.transformPoint({x:r.x-e.left,y:r.y-e.top});return{x:a.x,y:a.y}}function Nc(e,t,n,r){let i=Oc.get(e);i||Oc.set(e,i={nodes:new Map,order:[],cell:vr}),i.cell=n.cell??vr,i.order=[];let a=new Map,o=!1;for(let{layer:s,segments:c}of t){let t=s.node.source,l=i.nodes.get(t);if(!l){let e=document.createElement(`div`);e.className=`layer`;let n=document.createElement(`pre`);n.className=`grid`,n.setAttribute(`aria-hidden`,`true`),e.appendChild(n),l={box:e,grid:n,clipNode:null,backdrop:null,layer:s,parent:null,left:0,top:0,width:0,height:0,clip:null,inverse:null,placed:``},i.nodes.set(t,l)}l.layer=s,l.parent=s.parent?i.nodes.get(s.parent.node.source):null,i.order.push(l),s.clip&&!l.clipNode?(l.clipNode=document.createElement(`div`),l.clipNode.className=`clip`,l.clipNode.appendChild(l.box)):!s.clip&&l.clipNode&&(l.clipNode.replaceWith(l.box),l.clipNode=null);let u=l.clipNode??l.box,d=s.node.style.backdrop;d&&!l.backdrop?(l.backdrop=document.createElement(`div`),l.backdrop.className=`backdrop`):!d&&l.backdrop&&(l.backdrop.remove(),l.backdrop=null);let f=l.parent?.box??e,p=a.get(f),m=l.parent?l.parent.grid.nextSibling:f.firstChild,h=p?p.nextSibling:m;l.backdrop&&(l.backdrop!==h&&f.insertBefore(l.backdrop,h),h=l.backdrop.nextSibling),u!==h&&f.insertBefore(u,h),a.set(f,u),l.backdrop&&d&&Pc(l.backdrop,d,r,i.cell),n.placeLayers!==!1&&Fc(l,i.cell),Lc(l.grid,c,s.grid,n)||(o=!0)}let s=new Set(i.order);for(let[e,t]of i.nodes)s.has(t)||((t.clipNode??t.box).remove(),t.backdrop?.remove(),i.nodes.delete(e));return!o}function Pc(e,t,n,r){let i=e.style;i.width=`${n.width*r.width}px`,i.height=`${n.height*r.height}px`,i.backgroundColor=t.backgroundColor,i.backgroundImage=t.backgroundImage,i.backdropFilter=t.backdropFilter,i.opacity=t.opacity}function Fc(e,t){let{layer:n}=e,r=getComputedStyle(n.node.source),[i=`0`,a=`0`]=r.transformOrigin.split(` `),o=(parseFloat(i)||0)+(n.box.x-n.x)*t.width,s=(parseFloat(a)||0)+(n.box.y-n.y)*t.height,[c=0,l=0]=r.translate.split(` `).map((e,r)=>e.endsWith(`%`)?parseFloat(e)/100*(r===0?n.box.width*t.width:n.box.height*t.height):parseFloat(e)||0),u=r.transform||`none`,d=r.rotate||`none`,f=r.scale||`none`,p=r.filter||`none`,{backdropFilter:m}=n.node.style.layer,h=n.parent??{x:0,y:0};e.left=(n.x-h.x)*t.width,e.top=(n.y-h.y)*t.height,e.width=n.width*t.width,e.height=n.height*t.height;let{clip:g}=n;e.clip=g&&{left:(g.x0-h.x)*t.width,top:(g.y0-h.y)*t.height,width:(g.x1-g.x0)*t.width,height:(g.y1-g.y0)*t.height};let _=[e.left,e.top,e.width,e.height,e.clip&&[e.clip.left,e.clip.top,e.clip.width,e.clip.height],o,s,c,l,u,d,f,p,m].join(`|`);if(e.placed===_)return;e.placed=_;let v=e.box.style;if(e.clip&&e.clipNode){let t=e.clipNode.style;t.left=`${e.clip.left}px`,t.top=`${e.clip.top}px`,t.width=`${e.clip.width}px`,t.height=`${e.clip.height}px`}v.left=`${e.left-(e.clip?.left??0)}px`,v.top=`${e.top-(e.clip?.top??0)}px`,v.width=`${e.width}px`,v.height=`${e.height}px`,v.transformOrigin=`${o}px ${s}px`,v.translate=r.translate===`none`?`none`:`${c}px ${l}px`,v.rotate=d,v.scale=f,v.transform=u,v.filter=p,v.backdropFilter=m,e.inverse=Ic(o,s,c,l,d,f,u)}function Ic(e,t,n,r,i,a,o){if(typeof DOMMatrix!=`function`)return null;try{let s=i.split(` `),c=s.slice(0,-1).join(` `),l=(c===``||c===`z`)&&parseFloat(s.at(-1))||0,[u=1,d=u]=a===`none`?[]:a.split(` `).map(Number),f=new DOMMatrix().translate(e,t).translate(n,r).rotate(l).scale(u,d).multiply(o===`none`?new DOMMatrix:new DOMMatrix(o)).translate(-e,-t).inverse();return Number.isFinite(f.a)?f:null}catch{return null}}function Lc(e,t,n,r){Bc.clear();let i=r.glyphs,a=i?.generation??0,o=Tc.get(e),s=o!==void 0&&o.generation!==a,c=Xc(t);if(!s&&wc.get(e)===c)return!0;let l=new Set;if(o&&o.rows.length===t.length)for(let n=0;n<t.length;n++)Gc(e,o.rows[n].nodes,t[n])||l.add(n);if((l.size>0||!o||o.rows.length!==t.length)&&r.holdStructural&&Ec(e))return!1;if(wc.set(e,c),!o||o.rows.length!==t.length){let r=document.createDocumentFragment(),o=[];for(let e=0;e<t.length;e++){let{nodes:n,units:a}=Vc(t[e],i,e);for(let e of n)r.appendChild(e);let s=e<t.length-1?document.createTextNode(`
|
|
961
|
+
`):null;s&&r.appendChild(s),o.push({nodes:n,segments:t[e],newline:s,units:a})}Tc.set(e,{rows:o,cells:n,generation:a});let s=qc(e,!1);return e.replaceChildren(r),s&&Jc(e,s),!0}let u=l.size>0?qc(e,!1):null;for(let n=0;n<t.length;n++){let r=t[n],a=o.rows[n];if(l.has(n)){let t=Vc(r,i,n);for(let n of t.nodes)e.insertBefore(n,a.newline);for(let e of a.nodes)e.remove();a.nodes=t.nodes,a.segments=r,a.units=t.units;continue}for(let e=0;e<r.length;e++){let t=r[e];(s&&t.box||!is(t)&&!Wc(t,a.segments[e]))&&Uc(a.nodes[e],t,i,n)}a.segments=r}return o.cells=n,o.generation=a,u&&Jc(e,u),!0}var Rc=/^[\u2580-\u2588\u2594]$/;function zc(e){let t=e.codePointAt(0)??0;return t>=9472&&t<=9631}var Bc=new Map;function Vc(e,t,n){let r=[],i=0;for(let a of e){if(i+=a.text.length,is(a)&&!a.box){r.push(document.createTextNode(a.text));continue}let e=a.box?`${Yc(a)}\x1f${n}`:null,o=e===null?void 0:Bc.get(e),s;o?s=o.cloneNode(!1):(s=document.createElement(`span`),Uc(s,a,t,n),e!==null&&Bc.set(e,s.cloneNode(!1))),s.textContent=a.text,r.push(s)}return{nodes:r,units:i}}function Hc(e,t,n){return Tc.get(e)?.cells[n]?.[t]}function Uc(e,t,n,r){if(e.style.cssText=``,delete e.dataset.shade,delete e.dataset.box,es(t,e.style),!t.box)return;let i=t.cells??1,a=t.box,o=i/a,s=n?.box(o===1?t.text:t.text[0],a,t),c=e.style;if(c.width=`calc(${i} * var(--mw-cw, 1ch))`,e.dataset.box=s?``:`center`,s&&(c.textIndent=`calc(${o===1?`50%`:`50% / ${o}`} - ${s.advance/2}px)`,o>1&&(c.letterSpacing=`calc(${a} * var(--mw-cw, 1ch) - ${s.advance}px)`)),s&&s.scale!==1&&(c.fontSize=`${Math.round(s.scale*1e3)/10}%`),s?.lineHeight!==void 0){let i=s.lineHeight;s.period&&n&&(e.dataset.shade=t.text,c.setProperty(`--mw-period`,`${s.period}px`),i+=2*n.shift(s,r)),c.lineHeight=`${i}px`}}function Wc(e,t){return $o(e,t)&&e.box===t.box&&e.cells===t.cells&&e.backgrounds?.join(`,`)===t.backgrounds?.join(`,`)&&e.colors?.join(`,`)===t.colors?.join(`,`)}function Gc(e,t,n){if(t.length!==n.length)return!1;for(let r=0;r<n.length;r++){let i=t[r],a=n[r];if((is(a)&&!a.box)!==(i.nodeType===Node.TEXT_NODE)||i.textContent!==a.text||i.parentNode!==e)return!1}return!0}function Kc(e,t,n){let r=Tc.get(e);if(!r||r.rows.length===0)return 0;let i=Math.max(0,Math.min(n,r.rows.length-1)),a=0;for(let e=0;e<i;e++)a+=r.rows[e].units+1;let o=r.cells[i],s=Math.max(0,Math.min(t,o.length));for(let e=0;e<s;e++)a+=o[e].length;return a}function qc(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=Zs(r);if(!i)return null;let a=qs(e,i.startContainer,i.startOffset),o=qs(e,i.endContainer,i.endOffset);return a===null||o===null||a===o&&!t?null:{start:a,end:o,backward:n.direction===`backward`}}catch{return null}}function Jc(e,t){try{let n=Ks(e,t.start),r=Ks(e,t.end);if(!n||!r)return;let i=e.getRootNode().getSelection?.()??e.ownerDocument.getSelection();t.backward?i?.setBaseAndExtent(r[0],r[1],n[0],n[1]):i?.setBaseAndExtent(n[0],n[1],r[0],r[1])}catch{}}function Yc(e){return[e.text,e.color??``,e.backgroundColor??``,e.backgrounds?.join(`,`)??``,e.colors?.join(`,`)??``,e.fontWeight??``,e.fontStyle??``,e.textDecorationLine??``,e.opacity??``,e.selected?`s`:``,e.box?`b${e.cells}`:``].join(``)}function Xc(e){let t=[];for(let n of e){for(let e of n)t.push(Yc(e));t.push(`
|
|
962
|
+
`)}return t.join(``)}function Zc(e){let t=new Set;$c(e,!0,t);for(let n of Array.from(e.source.querySelectorAll(`[data-mw-inline-inset]`)))if(!t.has(n)){n.removeAttribute(`data-mw-inline-inset`);let e=n.style;for(let t of[`--mw-it`,`--mw-ir`,`--mw-ib`,`--mw-il`])e.removeProperty(t)}}function Z(e,t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function Q(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function Qc(e,t,n){e.getAttribute(t)!==n&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function $(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function $c(e,t,n,r){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o,sticky:s}of e.inlineElements){let e=t;Z(e,`--mw-ls`,String(r)),i>0?Z(e,`--mw-ipl`,String(i)):Q(e,`--mw-ipl`),a>0?Z(e,`--mw-ipr`,String(a)):Q(e,`--mw-ipr`),(o||s)&&(n.add(t),rl(e,o??{top:0,right:null,bottom:null,left:0}))}t?nl(e):e.anonymous||ll(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&tl(e.source,e,i),!e.tableHidden)for(let t of er(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&$n(t,e)&&!t.inlineBox?Z(n,`--mw-z`,String(t.style.zIndex)):Q(n,`--mw-z`)}$c(t,!1,n,i)}}var el=`input, textarea, select, [contenteditable], [contenteditable] *`;function tl(e,t,n){e.matches(el)&&(t.style.color===void 0?Q(e,`--mw-ink`):Z(e,`--mw-ink`,t.style.color),n===void 0?Q(e,`--mw-ground`):Z(e,`--mw-ground`,n))}function nl(e){let t=e.source,n=e.text.length>0||e.children.some(e=>e.anonymous),{whiteSpace:r,textAlignBlocked:i,textIndent:a}=e.style;$(t,`data-mw-leaf`,n),$(t,`data-mw-nowrap`,n&&r!==`normal`),$(t,`data-mw-pre`,n&&r===`pre`),$(t,`data-mw-text-align-blocked`,n&&i),n?Z(t,`--mw-ti`,String(a)):Q(t,`--mw-ti`)}function rl(e,t){$(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?Q(e,t):Z(e,t,String(n))};n(`--mw-it`,t.top),n(`--mw-ir`,t.right),n(`--mw-ib`,t.bottom),n(`--mw-il`,t.left)}function il(e){for(let{node:t,ancestors:n}of e){if(t.style.position===`sticky`){let e=t.source,n=t.stickyShift;n?(Z(e,`--mw-sx`,String(n.x)),Z(e,`--mw-sy`,String(n.y))):(Q(e,`--mw-sx`),Q(e,`--mw-sy`))}else if(t.hostRect){let e=t.source,r=0,i=0;for(let e of n)r+=(e.scroll?.x??0)-(e.stickyShift?.x??0),i+=(e.scroll?.y??0)-(e.stickyShift?.y??0);Z(e,`--mw-sx`,String(r)),Z(e,`--mw-sy`,String(i))}for(let e of t.inlineElements??[]){if(e.sticky===void 0)continue;let t=e.element;Z(t,`--mw-it`,String(e.stickyShift?.y??0)),Z(t,`--mw-il`,String(e.stickyShift?.x??0))}}}var al={start:`left`,end:`right`,"span-start":`span-left`,"span-end":`span-right`},ol={start:`top`,end:`bottom`,"span-start":`span-top`,"span-end":`span-bottom`};function sl({x:e,y:t}){return`${al[e]??e} ${ol[t]??t}`}function cl(e){if(e.text.length>0)return e.baselineRow;for(let t=e.children.length-1;t>=0;t--){let n=e.children[t];if(n.anonymous&&n.baselineRow!==void 0)return n.localRect.y+n.baselineRow}}function ll(e){let t=e.source,n=e.topLayerRank!==void 0,r=n?{...e.localRect,...e.hostRect}:e.localRect;$(t,`data-mw-top`,n),e.style.position!==`sticky`&&(Q(t,`--mw-sx`),Q(t,`--mw-sy`));let i=e.resolvedPadding,{border:a,textAlignBlocked:o,overflow:s,whiteSpace:c,tracking:l,lineGap:u}=e.style,d=e.multicolFlow,f=e.multicolFlowSpan;$(t,`data-mw-laid-out`,!e.inlineBox&&!d&&!f&&!e.flow),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!d),$(t,`data-mw-multicol-flow-span`,!!f);let p=e.flow&&e.style.float!==`none`?e.style.float:null;Qc(t,`data-mw-float`,p),Qc(t,`data-mw-flow`,e.flow&&!p?po(e)?`box`:`text`:null);let m=d??f??e.flow;m?(Z(t,`--mw-mt`,String(m.top??0)),Z(t,`--mw-mr`,String(m.right??0)),Z(t,`--mw-mb`,String(m.bottom??0)),Z(t,`--mw-ml`,String(m.left??0))):(Q(t,`--mw-mt`),Q(t,`--mw-mr`),Q(t,`--mw-mb`),Q(t,`--mw-ml`)),Qc(t,`data-mw-area`,e.anchorArea?sl(e.anchorArea):null);let{verticalAlign:h}=e.style;$(t,`data-mw-vbottom`,!!e.inlineBox&&h===`end`);let g=!!e.inlineBox&&h===`center`&&e.inlineTextRow!==void 0;$(t,`data-mw-vmiddle`,g);let _=g?cl(e):void 0;g?Z(t,`--mw-va`,String(e.inlineTextRow-(_??r.height))):Q(t,`--mw-va`),g&&_===void 0?Z(t,`--mw-vb`,`1`):Q(t,`--mw-vb`),Z(t,`--mw-ls`,String(l)),Z(t,`--mw-lh`,String(u+1)),Z(t,`--mw-lhs`,String(-u/2)),$(t,`data-mw-nowrap`,c!==`normal`);let v=d||f?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!v),$(t,`data-mw-multicol-balance`,!!v?.nativeBalance),v?(Z(t,`--mw-colc`,String(v.columnCount)),Z(t,`--mw-colg`,String(v.gap))):(Q(t,`--mw-colc`),Q(t,`--mw-colg`)),$(t,`data-mw-pre`,c===`pre`),Z(t,`--mw-x`,String(r.x)),Z(t,`--mw-y`,String(r.y)),Z(t,`--mw-w`,String(r.width)),Z(t,`--mw-h`,String(r.height)),$(t,`data-mw-clip`,s.x===`clip`||s.y===`clip`),$(t,`data-mw-scroll`,e.scrollRange!==void 0),e.scrollRange){let{maxX:n,maxY:r}=e.scrollRange;Z(t,`--mw-se-x`,String(n>0?n+e.localRect.width:1)),Z(t,`--mw-se-y`,String(r>0?r+e.localRect.height:1))}else Q(t,`--mw-se-x`),Q(t,`--mw-se-y`);Z(t,`--mw-pt`,String(i.top)),Z(t,`--mw-pr`,String(i.right)),Z(t,`--mw-pb`,String(i.bottom)),Z(t,`--mw-pl`,String(i.left)),Z(t,`--mw-bt`,String(a.top)),Z(t,`--mw-br`,String(a.right)),Z(t,`--mw-bb`,String(a.bottom)),Z(t,`--mw-bl`,String(a.left)),Z(t,`--mw-ti`,String(e.style.textIndent)),$(t,`data-mw-text-align-blocked`,o),$(t,`data-mw-table-hidden`,!!e.tableHidden),$(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function ul(e,t,n,r,i){let a=0;return i!==null&&e.end>n.end-i&&(a=n.end-i-e.end),r!==null&&e.start+a<n.start+r&&(a=n.start+r-e.start),a>0?Math.min(a,Math.max(0,t.end-e.end)):a<0?Math.max(a,Math.min(0,t.start-e.start)):0}function dl(e){let t=[],n=[],r=e=>{n.length>0&&fl(e)&&t.push({node:e,ancestors:n.slice()}),n.push(e);for(let t of e.children)r(t);n.pop()};return r(e),t}function fl(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)||e.hostRect!==void 0&&e.topLayerRank===void 0}function pl(e){for(let t of e)ml(t)}function ml({node:e,ancestors:t}){let n={x:0,y:0},r=null,i=null;for(let e of t){let t={x:n.x+e.localRect.x+(e.stickyShift?.x??0),y:n.y+e.localRect.y+(e.stickyShift?.y??0)};n={x:t.x-(e.scroll?.x??0),y:t.y-(e.scroll?.y??0)},e.scrollRange&&(r={node:e,origin:t}),e.style.display===`table`&&(i={node:e,origin:n})}let a=t[t.length-1],o=r&&vs(r.node,r.origin.x,r.origin.y),s={x:n.x+e.localRect.x,y:n.y+e.localRect.y};if(e.style.position===`sticky`&&(delete e.stickyShift,o)){let t=e.style.tableRole!==`none`&&i?i:{node:a,origin:n},c=vl(t.node,t.origin,r.node),l=t===i&&i.node.lattice?gl(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:ul({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},_l(u.left,o.x1-o.x0),_l(u.right,o.x1-o.x0)),y:ul({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},_l(u.top,o.y1-o.y0),_l(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&hl(e,s,o)}function hl(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=vl(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=xs(e,r.x,r.y).filter(({element:e})=>e===t.element).map(({rect:e})=>e);if(a.length===0)continue;let o={x:{start:Math.min(...a.map(e=>e.x)),end:Math.max(...a.map(e=>e.x+e.width))},y:{start:Math.min(...a.map(e=>e.y)),end:Math.max(...a.map(e=>e.y+e.height))}},s={x:ul(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:ul(o.y,i.y,{start:n.y0,end:n.y1},t.sticky.top,t.sticky.bottom)};(s.x!==0||s.y!==0)&&(t.stickyShift=s)}}function gl(e,t){let n=gr(e,t);if(!n)return{top:0,right:0,bottom:0,left:0};let{r0:r,r1:i,c0:a,c1:o}=n,s=t.style.tableRole===`cell`;return{top:e.hLines[r],bottom:e.hLines[i+1],left:s?e.vLines[a]:0,right:s?e.vLines[o+1]:0}}function _l(e,t){return e===null?null:X(e,t)}function vl(e,t,n){let{border:r}=e.style,i=e.resolvedPadding,a=t.x+r.left+i.left,o=t.y+r.top+i.top,s=e.localRect.width-r.left-r.right-i.left-i.right,c=e.localRect.height-r.top-r.bottom-i.top-i.bottom;return e===n&&e.scrollRange&&(s=Math.max(s,e.scrollRange.sizeX),c=Math.max(c,e.scrollRange.sizeY)),{x:{start:a,end:a+s},y:{start:o,end:o+c}}}function yl(e,t,n,r){let i=ft(e,t,n);if(i.display===`none`)return null;let a=le(e.tagName);if(a)return El(e,i,a);let o=Array.from(e.children),s=o.map(jl),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||Kl(e.tagName)?Tl(e,i,o,s,c):{source:e,style:i,children:bl(e,Array.from(e.childNodes),t,n,r),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:ut()}}function bl(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=yl(e,n,r,i);t&&s.push(t)},l=a,u=[],d=[],f=!1,p=()=>{let t=u.filter(e=>e instanceof Element);if(f)l??=wl(e,n,r),s.push(xl(e,u,t,d,o,l));else for(let e of t)c(e);u=[],d=[],f=!1};for(let e of t){if(e instanceof Element){let t=jl(e);if(t===`none`)continue;if(t===`block`){p(),c(e);continue}d.push(t),f||=t===`inline`}else if(e.nodeType!==Node.TEXT_NODE)continue;else f||=/[^ \t\r\n\f]/.test(e.textContent??``);u.push(e)}return p(),s}function xl(e,t,n,r,i,a){let o=Tl(e,a,n,r,i,t);return o.anonymous=!0,o}function Sl(e,t,n,r){let i=Array.from(e.childNodes).filter(e=>!(e instanceof Element&&e.hasAttribute(`data-mw-probe`))),a=i.filter(e=>e instanceof Element),o=a.map(jl);return o.includes(`block`)||!Wl(e)&&!o.includes(`inline`)?null:Tl(e,Cl(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function Cl(e,t,n){return{...wl(e,t,n),tracking:0,lineGap:0}}function wl(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...lt(),...Rt(e,r,t),lineGap:Yt(r.lineHeight,i),tracking:Jt(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return Nt(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function Tl(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Kl(l),d=Ml(e,t.tracking,{rootFontSizePx:o,rootLetterSpacingPx:s?.letterSpacing??0,cellMetrics:s,textareaWidths:c,preserve:t.whiteSpace===`pre`,tabSize:t.tabSize},a),f=d.chars.join(``),{advances:p,charInline:m}=zl(d);if(d.boxes.length>0){let e=ho();ni(f,(t,n)=>{p[t]=Math.max(1,Wo(d.boxes[n],`max`,e))})}let h=Vl(f,p,t.tracking);if(u&&h===0){if(l===`INPUT`)h=Number(e.size)||20;else if(l===`TEXTAREA`)h=Number(e.cols)||20;else{let t=e,n=e=>e?.label||e?.textContent||``,r=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?[n(t.selectedOptions[0])]:Array.from(t.options,n);h=Math.max(1,...r.map(e=>qr(e.trim())))}}let g=f.length>0?Hl(f):0,_;if(l===`TEXTAREA`){let n=e,r=n.value??``,i=c?.get(n),a=+!!r.endsWith(`
|
|
963
|
+
`),o=i!==void 0&&i>0?Jr(r,i,{advances:Kr(r)})+a:r===``?0:r.split(/\r\n?|\n/).length,s=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?1:Number(n.rows)||2,l=Math.max(s,o);_=l+Math.max(0,l-1)*t.lineGap}else _=u?Math.max(1,g):g;let v=new Map,y=[];for(let t of d.boxes)t.source.parentElement===e?v.set(t.source,t):y.push(t);let b=[];for(let e=0;e<n.length;e++){let t=n[e],i=v.get(t);if(i)b.push(i);else if(r[e]===`out-of-flow`){let e=yl(t,o,s,c);e&&b.push(e)}}y.length>0&&(b.push(...y),b.sort((e,t)=>e.source.compareDocumentPosition(t.source)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1));let x={source:e,style:t,children:b,text:f,intrinsicWidth:h,intrinsicHeight:_,localRect:{x:0,y:0,width:h,height:_},unclampedHeight:0,resolvedPadding:ut()};(p.some(e=>e!==1)||d.boxes.length>0)&&(x.advances=p),d.inlineElements.length>0&&(x.inlineElements=d.inlineElements,x.charInline=m);let S=Bl(d);return S.length>0&&(x.charSource=S),x}function El(e,t,n){let r=de(n,e),i=r?.lines??[],a=i.join(`
|
|
964
|
+
`);t.whiteSpace=`pre`,(t.width===void 0||t.width.kind===`auto`)&&(t.width={kind:`max-content`});let o=Kr(a,t.tracking),s=Vl(a,o,t.tracking),c=i.length,l={source:e,style:t,children:[],text:a,intrinsicWidth:s,intrinsicHeight:c,localRect:{x:0,y:0,width:s,height:c},unclampedHeight:0,resolvedPadding:ut()};o.some(e=>e!==1)&&(l.advances=o);let u=r?.runs??[];if(u.length>0&&a.length>0){let t=[0];for(let e of i)t.push(t[t.length-1]+e.length+1);let n=Array.from({length:a.length},()=>-1);l.inlineElements=u.map(t=>({element:e,tracking:0,padLeft:0,padRight:0,insets:null,anchorNames:[],color:t.paint.color,backgroundColor:t.paint.backgroundColor,fontWeight:t.paint.fontWeight??``,fontStyle:t.paint.fontStyle??``,textDecorationLine:t.paint.textDecorationLine??``})),u.forEach((e,r)=>{let a=i[e.line];if(a===void 0)return;let o=Math.max(0,e.start),s=Math.min(a.length,e.end);for(let i=o;i<s;i++)n[t[e.line]+i]=r}),l.charInline=n}return l}var Dl=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DFN.EM.I.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));function Ol(e,t){return t||(Dl.has(e.tagName)?`inline`:`block`)}function kl(e,t){let n=Ol(e,t);return n===`inline`||n===`contents`}function Al(e,t){let n=Ol(e,t);return n.startsWith(`inline`)&&n!==`inline`}function jl(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:Gl(t.float)||le(e.tagName)?`block`:kl(e,t.display)||Al(e,t.display)?`inline`:`block`}function Ml(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?Pl(r,t,n,i):Nl(e,t,n,i),n.preserve?i:Ll(i)}function Nl(e,t,n,r){Kl(e.tagName)||Pl(Array.from(e.childNodes),t,n,r)}function Pl(e,t,n,r){let i=()=>{let e=0;for(let t=r.chars.length-1;t>=0&&r.chars[t]!==`
|
|
965
|
+
`;t--)e+=r.advances[t];return e};for(let a of e)if(a.nodeType===Node.TEXT_NODE){if(n.preserve){let e=a.textContent??``,o=0;for(let s of Wr(e)){let e=o;if(o+=s.length,s===`\r
|
|
966
966
|
`||s===`\r`||s===`
|
|
967
|
-
`)
|
|
968
|
-
`,0,a,e+s.length-1);else if(s===` `){let t=(Math.floor(i()/n.tabSize)+1)*n.tabSize;for(let n=i();n<t;n++)
|
|
967
|
+
`)Rl(r,`
|
|
968
|
+
`,0,a,e+s.length-1);else if(s===` `){let t=(Math.floor(i()/n.tabSize)+1)*n.tabSize;for(let n=i();n<t;n++)Rl(r,` `,1,a,e)}else Rl(r,s,Gr(s,t),a,e)}}else{let e=0,n=!1;for(let i of Wr(a.textContent??``)){let o=i===` `||i===` `||i===`\r`||i===`
|
|
969
969
|
`||i===`\f`||i===`\r
|
|
970
|
-
`;o?n||
|
|
971
|
-
`,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(
|
|
970
|
+
`;o?n||Rl(r,` `,1+t,a,e):Rl(r,i,Gr(i,t),a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){Rl(r,`
|
|
971
|
+
`,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(Al(e,t.display)){let t=yl(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,Rl(r,``,1,null,-1),r.boxes.push(t));continue}if(!kl(e,t.display)){Ul(e);continue}let i=Jt(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=Fl(t.paddingLeft,n.rootFontSizePx),s=Fl(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`relative`?Il(t,n.rootFontSizePx):null,...t.position===`sticky`?{sticky:Il(t,n.rootFontSizePx)}:{},anchorNames:ht(e,t),color:t.color,backgroundColor:Ct(t.backgroundColor)?void 0:t.backgroundColor,fontWeight:t.fontWeight,fontStyle:t.fontStyle,textDecorationLine:t.textDecorationLine});let c=r.inlineElements.length-1;for(let e=0;e<o;e++)r.inlineIndex[r.chars.length]=c,Rl(r,``,1,null,-1);let l=r.chars.length;Nl(e,i,n,r);for(let e=l;e<r.chars.length;e++)r.inlineIndex[e]===void 0&&(r.inlineIndex[e]=c);for(let e=0;e<s;e++)r.inlineIndex[r.chars.length]=c,Rl(r,``,1,null,-1)}}function Fl(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,tt(n,t)):0}function Il(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?tt(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function Ll(e){let t=[],n=[],r=[],i=[],a=[],o=()=>{let e=t.length;for(;e>0&&t[e-1]!==`
|
|
972
972
|
`;)e--;return e},s=()=>{for(;t.length>o()&&t[t.length-1]===` `;)t.pop(),n.pop(),r.pop(),i.pop(),a.pop()};for(let o=0;o<e.chars.length;o++){let c=e.chars[o];if(c===` `){let e=t.length-1;for(;e>=0&&t[e]===``;)e--;if(e<0||t[e]===`
|
|
973
973
|
`||t[e]===` `)continue}else c===`
|
|
974
|
-
`&&s();t.push(c),n.push(e.advances[o]),r.push(e.sourceNode[o]??null),i.push(e.sourceOffset[o]??-1),a.push(e.inlineIndex[o]??-1)}return s(),{chars:t,advances:n,sourceNode:r,sourceOffset:i,inlineIndex:a,inlineElements:e.inlineElements,boxes:e.boxes}}function
|
|
975
|
-
`)&&(r=Math.max(r
|
|
974
|
+
`&&s();t.push(c),n.push(e.advances[o]),r.push(e.sourceNode[o]??null),i.push(e.sourceOffset[o]??-1),a.push(e.inlineIndex[o]??-1)}return s(),{chars:t,advances:n,sourceNode:r,sourceOffset:i,inlineIndex:a,inlineElements:e.inlineElements,boxes:e.boxes}}function Rl(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function zl(e){let t=[],n=[];for(let r=0;r<e.chars.length;r++){let i=e.inlineIndex[r]??-1;t.push(e.advances[r]),n.push(i);for(let a=1;a<e.chars[r].length;a++)t.push(0),n.push(i)}return{advances:t,charInline:n}}function Bl(e){let t=[],n=0;for(let r=0;r<e.chars.length;r++){let i=e.chars[r],a=e.sourceNode[r],o=e.sourceOffset[r],s=t[t.length-1];a&&(s&&s.node===a&&s.offset+s.length===o?s.length+=i.length:t.push({index:n,length:i.length,node:a,offset:o})),n+=i.length}return t}function Vl(e,t,n){let r=0,i=0;for(let a=0;a<=e.length;a++)(a===e.length||e[a]===`
|
|
975
|
+
`)&&(r=Math.max(r,$r(e,i,a,t,n)),i=a+1);return r}function Hl(e){return Xr(e).length}function Ul(e){re(e,`A block-level element nested inside a text run can't be laid out and was skipped. Give it its own place in the layout instead.`)}function Wl(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}function Gl(e){return e!==`none`&&e!==``}function Kl(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}var ql=`
|
|
976
976
|
<style>
|
|
977
977
|
:host { display: block; position: relative; contain: layout style; }
|
|
978
978
|
#viewport { position: relative; width: 100%; height: 100%; background: inherit; }
|
|
@@ -1011,8 +1011,25 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1011
1011
|
.layer > .grid { background: transparent; }
|
|
1012
1012
|
/* A background reaches the row's edges: the host's measured half-gap
|
|
1013
1013
|
* between the line box and the font's content area, which an inline
|
|
1014
|
-
* span paints without moving the line (specs/cell-model.md).
|
|
1015
|
-
|
|
1014
|
+
* span paints without moving the line (specs/cell-model.md). Only
|
|
1015
|
+
* where the font leaves a gap, so a span pays for the lookup on no
|
|
1016
|
+
* other page, and never on a box — a box was unpadded by an inline
|
|
1017
|
+
* declaration, which no rule could outrank. */
|
|
1018
|
+
:host([data-mw-bgpad]) .grid span:not([data-box]) {
|
|
1019
|
+
padding-block: var(--mw-bgpad, 0px);
|
|
1020
|
+
}
|
|
1021
|
+
/* The shape every box shares (specs/wide-characters.md), one rule
|
|
1022
|
+
* rather than six declarations on each: its cells' width and the
|
|
1023
|
+
* glyph's placement stay inline, being the box's own. */
|
|
1024
|
+
.grid span[data-box] {
|
|
1025
|
+
display: inline-block;
|
|
1026
|
+
padding: 0;
|
|
1027
|
+
height: var(--mw-ch, 1lh);
|
|
1028
|
+
overflow: clip;
|
|
1029
|
+
vertical-align: top;
|
|
1030
|
+
text-align: start;
|
|
1031
|
+
}
|
|
1032
|
+
.grid span[data-box="center"] { text-align: center; }
|
|
1016
1033
|
/* A shade's lattice runs on from row to row (specs/wide-characters.md):
|
|
1017
1034
|
* copies a period above and below the glyph, in its own line box. */
|
|
1018
1035
|
.grid span[data-shade] { position: relative; }
|
|
@@ -1039,8 +1056,8 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1039
1056
|
<div id="layers"></div>
|
|
1040
1057
|
<slot></slot>
|
|
1041
1058
|
</div>
|
|
1042
|
-
`,Rl=`grid`,zl=`tab`,Bl=`data-mw-semantic-selection`,Vl=[`a`,`button`,`input`,`select`,`textarea`,`label`,`summary`,`[contenteditable]:not([contenteditable='false'])`,`[tabindex]:not([tabindex='-1'], ${[`[role='grid']`,`[role='listbox']`,`[role='menu']`,`[role='menubar']`,`[role='radiogroup']`,`[role='tablist']`,`[role='tree']`,`[role='treegrid']`].join(`, `)})`,`[role='button']`,`[role^='menuitem']`,`[role='option']`,`[role='tab']`,`[role='treeitem']`,`[role='checkbox']`,`[role='radio']`,`[role='switch']`,`[role='slider']`,`[role='link']`,`[role='combobox']`].join(`, `),Hl=e=>e.parentElement??(e.parentNode instanceof ShadowRoot?e.parentNode.host:null),Ul=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Wl=/^(color|opacity|border-(top|right|bottom|left)-color|border-color|transform|translate|rotate|scale|filter)$/,Gl=/^(transform|translate|rotate|scale|filter)$/,Kl=3e4,ql=200,Jl=3,Yl=4,Xl=8,Zl=100,Ql=160,$l=500,eu=50;function tu(e,t,n){return n>0&&e.scrollTop<e.scrollHeight-e.clientHeight-.5||n<0&&e.scrollTop>.5||t>0&&e.scrollLeft<e.scrollWidth-e.clientWidth-.5||t<0&&e.scrollLeft>.5}function nu(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&tu(a,0,n)||t!==0&&r>0&&tu(a,t,0)}function ru(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var iu=typeof HTMLElement>`u`?class{}:HTMLElement,au=class e extends iu{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#Et()};static#r(t){t instanceof HTMLLinkElement&&t.rel===`stylesheet`&&!t.sheet&&t.addEventListener(`load`,e.#n,{once:!0})}static#i(t){if(e.#e.add(t),e.#t)return;for(let t of document.querySelectorAll(`link[rel=stylesheet]`))e.#r(t);let n=new MutationObserver(t=>{for(let n of t)for(let t of n.addedNodes)e.#r(t);e.#n()});n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),e.#t=n}static#a(t){e.#e.delete(t),e.#e.size===0&&(e.#t?.disconnect(),e.#t=null)}#o;#s=new CSSStyleSheet;#c=!1;#l;#u;#d;#f=null;#p=null;#m=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`);#h=()=>this.#Et();#g=null;#_=!1;#v=null;#y=null;#b=null;#x=null;#S=!1;#C=[];#w=[];#T=new Map;#E=new WeakMap;#D=null;#O=null;#k=``;#A=-1;#j=null;#M=null;#N=!1;#P=!1;#F=!1;#I=0;#L=new gc((e,t,n)=>this.#H(e,t,n));#R=null;#z=!1;#B=[];#V(e){if(e.type!==`attributes`)return!0;let t=e.attributeName??``;return e.target===this?t===`class`||t===`style`:Gn(e.target,t)}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=Ll,this.#s.replaceSync(`:host { --mw-fg: canvastext; --mw-bg: canvas }`),this.#o.adoptedStyleSheets=[this.#s],this.#l=this.#o.getElementById(`grid`),this.#u=this.#o.getElementById(`layers`),this.#d=document.createElement(`span`),this.#d.setAttribute(`aria-hidden`,`true`),this.#d.setAttribute(`data-mw-probe`,``),this.#d.style.cssText=`position:absolute!important;top:0!important;left:0!important;visibility:hidden!important;pointer-events:none!important;user-select:none!important;white-space:pre!important;overflow-wrap:normal!important;padding:0!important;margin:0!important;border:0!important;`,this.#d.textContent=`M`.repeat(100);let e=document.createElement(`span`);e.style.cssText=`display:inline-block;width:0;height:0;padding:0;margin:0;border:0`,this.#d.appendChild(e)}#H(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:hidden;padding:0;height:${this.#v?.height??0}px;line-height:${n}px;font-size:${t*100}%`,r.textContent=e;let i=document.createElement(`span`);i.style.cssText=`display:inline-block;width:0;height:0;padding:0`,r.appendChild(i),this.#l.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){if(this.#c=this.parentElement?.closest(`mono-wind`)!==null,this.#c){ee(this,`A <mono-wind> inside another <mono-wind> is unsupported; it is laid out as plain content of the outer one.`);return}this.hasAttribute(`select`)||this.setAttribute(`select`,Rl),this.hasAttribute(`focus`)||this.setAttribute(`focus`,zl),this.#d.parentNode!==this&&this.appendChild(this.#d),this.#f=new ResizeObserver(()=>this.#Et()),this.#p=new MutationObserver(()=>this.#Et()),this.#m?.addEventListener(`change`,this.#h),this.#f.observe(this),this.#fe(),this.#f.observe(this.#d),window.addEventListener(`resize`,this.#St),this.#g=new MutationObserver(e=>{e.some(e=>this.#V(e))&&this.#Et()}),this.#g.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this.#b=oe(()=>this.#Et()),this.#x=a(()=>this.#Et()),document.fonts?.ready.then(this.#Ct).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Ct);for(let e of Ul)this.addEventListener(e,this.#xt);this.addEventListener(`transitionrun`,this.#vt),this.addEventListener(`transitionend`,this.#yt),this.addEventListener(`transitioncancel`,this.#yt),this.addEventListener(`animationstart`,this.#ot),this.addEventListener(`animationiteration`,this.#ot),this.addEventListener(`animationend`,this.#st),this.addEventListener(`animationcancel`,this.#st),this.addEventListener(`toggle`,this.#ut,!0),this.addEventListener(`pointermove`,this.#ge),this.addEventListener(`pointerleave`,this.#qe),this.addEventListener(`pointerdown`,this.#Je),this.addEventListener(`scroll`,this.#oe,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#se,{capture:!0}),this.addEventListener(`wheel`,this.#le,{passive:!1}),this.addEventListener(`copy`,this.#_e),this.addEventListener(`mousedown`,this.#ve),this.addEventListener(`keydown`,this.#Ce),document.addEventListener(`selectionchange`,this.#Ge),window.addEventListener(`pointerup`,this.#Ye),window.addEventListener(`pointercancel`,this.#Ye),window.addEventListener(`mouseup`,this.#Xe,{capture:!0}),document.addEventListener(`scroll`,this.#Ze,{capture:!0,passive:!0}),e.#i(this),this.#Et()}disconnectedCallback(){window.removeEventListener(`resize`,this.#St),this.#f?.disconnect(),this.#g?.disconnect(),this.#p?.disconnect(),this.#m?.removeEventListener(`change`,this.#h),this.#f=null,this.#g=null,this.#p=null,this.#b?.(),this.#b=null,this.#x?.(),this.#x=null,document.fonts?.removeEventListener(`loadingdone`,this.#Ct);for(let e of Ul)this.removeEventListener(e,this.#xt);this.removeEventListener(`transitionrun`,this.#vt),this.removeEventListener(`transitionend`,this.#yt),this.removeEventListener(`transitioncancel`,this.#yt),this.removeEventListener(`animationstart`,this.#ot),this.removeEventListener(`animationiteration`,this.#ot),this.removeEventListener(`animationend`,this.#st),this.removeEventListener(`animationcancel`,this.#st),this.removeEventListener(`toggle`,this.#ut,!0),this.#et=0,this.#it.clear(),this.removeEventListener(`pointermove`,this.#ge),this.removeEventListener(`pointerleave`,this.#qe),this.removeEventListener(`pointerdown`,this.#Je),this.removeEventListener(`scroll`,this.#oe,{capture:!0}),this.removeEventListener(`scrollend`,this.#se,{capture:!0}),this.removeEventListener(`wheel`,this.#le),this.removeEventListener(`copy`,this.#_e),this.removeEventListener(`keydown`,this.#Ce),this.removeEventListener(`mousedown`,this.#ve),document.removeEventListener(`selectionchange`,this.#Ge);for(let e of this.#T.values())clearTimeout(e);this.#T.clear(),this.#O=null,this.#D=null,this.#xe(),window.removeEventListener(`pointerup`,this.#Ye),window.removeEventListener(`pointercancel`,this.#Ye),window.removeEventListener(`mouseup`,this.#Xe,{capture:!0}),document.removeEventListener(`scroll`,this.#Ze,{capture:!0}),this.#J=null,this.#G=null,this.#K=!1,this.#q=!1,this.#P=!1,this.#Qe(),e.#a(this)}#U=new Set;#W=new Set;#G=null;#K=!1;#q=!1;#J=null;#Y=NaN;#X=NaN;#Z=null;static#Q=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#$(){if(this.#S||this.#_)return;this.#S=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#S=!1;let t=this.#v;this.isConnected&&this.#y&&t&&(this.#ee(t),rl(this.#w),Jc(this.#w),this.#g?.takeRecords(),this.#q=!this.#Ke(this.#y),this.#te(),this.#Qe())};requestAnimationFrame(t),setTimeout(t,50)}#ee(e,t){for(let n of this.#C){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,o=t?.get(r);n.scroll=o?{x:o.pinX?i:Math.min(o.x,i),y:o.pinY?a:Math.min(o.y,a)}:this.#ne(n,e)}}#te(){this.#N&&(this.#N=!1,this.#Se())}#ne(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:su(n,`x`,t.width,r,a.x),y:su(n,`y`,t.height,i,a.y)}}#re(){let e=new Map,t=this.#v;if(!t)return e;for(let n of this.#C){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#ne(n,t);e.set(r,{top:r.scrollTop,left:r.scrollLeft,maxTop:r.scrollHeight-r.clientHeight,maxLeft:r.scrollWidth-r.clientWidth,x:o,y:s,pinX:i>0&&o>=i,pinY:a>0&&s>=a})}return e}#ie(e){for(let t of this.#C){let n=t.source,r=e.get(n);if(!r)continue;let i=n.scrollTop,a=n.scrollLeft;r.pinY&&n.scrollHeight-n.clientHeight!==r.maxTop?n.scrollTop=n.scrollHeight:i!==r.top&&(n.scrollTop=r.top),r.pinX&&n.scrollWidth-n.clientWidth!==r.maxLeft?n.scrollLeft=n.scrollWidth:a!==r.left&&(n.scrollLeft=r.left)}}#ae(e,t){clearTimeout(this.#T.get(e)),this.#T.set(e,setTimeout(()=>this.#ce(e),t))}#oe=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#N=!0,this.#$(),this.#y?.anchorScrollers?.has(t)&&this.#Et(),!(Date.now()-(this.#E.get(t)??0)<ql)&&(!(`onscrollend`in window)||Date.now()-this.#I<$l?this.#ae(t,Ql):clearTimeout(this.#T.get(t))))};#se=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#E.get(t)??0)<ql||this.#ae(t,Zl))};#ce(e){if(this.#O?.el===e)return;this.#$();let t=this.#v,n=this.#C.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#ne(n,t),a=i.y===r.maxY?e.scrollHeight-e.clientHeight:i.y*t.height,o=i.x===r.maxX?e.scrollWidth-e.clientWidth:i.x*t.width;(Math.abs(e.scrollTop-a)>.5||Math.abs(e.scrollLeft-o)>.5)&&e.scrollTo({top:a,left:o,behavior:`instant`})}#le=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#y,n=this.#v;if(!t||!n||this.#C.length===0)return;let r=e,i=r.deltaMode===1?n.height:r.deltaMode===2?this.clientHeight:1,a=r.deltaX*i,o=r.deltaY*i;if(!r.cancelable&&this.#de(a,o))return;let{col:s,row:c}=this.#pe(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#D=null,r.preventDefault();return}let d=e=>nu(e,a,o),f=this.#D,p=Math.abs(a)>=Math.abs(o)?`x`:`y`,m=f!==null&&u>f.mag*1.25+1,h=f!==null&&(Math.abs(r.clientX-f.x)>Jl||Math.abs(r.clientY-f.y)>Jl),g=f!==null&&f.decayed>=Xl,_=f!==null&&l-f.at<ql&&p===f.axis&&(h?u<=f.mag:!(g&&m)),v=null;if(_){if(f.decayed=u<=f.mag&&u>=f.mag*.5?f.decayed+1:g?f.decayed:0,f.mag=u,f.at=l,!f.el)return;v=this.#C.find(e=>e.source===f.el)??null}if(!v){let e=ys(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||Ss(n.source))continue;if(d(n)){v=n;break}let r=n.style.overscroll;if(o!==0&&!r.y||a!==0&&!r.x){v=n;break}}if(!v&&u<Yl){r.preventDefault();return}this.#D={el:v?v.source:null,x:r.clientX,y:r.clientY,axis:p,at:l,mag:u,decayed:0}}if(!v||(r.preventDefault(),!d(v)))return;let y=v.scrollRange;this.#ue(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#ue(e,t,n){let r={behavior:`instant`};t!==0&&(r.left=t),n!==0&&(r.top=n),e.scrollBy(r),e.hasAttribute(`data-mw-scroll`)&&(this.#E.set(e,Date.now()),this.#ae(e,ql))}#de(e,t){return this.#B.some(n=>tu(n,e,t))}#fe(){let e=this.parentElement;if(e&&this.#f&&this.#p){this.#f.observe(e);for(let t of e.children)t!==this&&this.#f.observe(t);for(let e=Hl(this);e;e=Hl(e))this.#p.observe(e,{attributes:!0,attributeFilter:[`class`,`style`]})}}#pe(e,t,n){if(!this.#Z){let e=this.#l.getBoundingClientRect();this.#Z={left:e.left,top:e.top}}let r=e-this.#Z.left,i=t-this.#Z.top;return Cc(this.#u,r,i)??{col:Math.floor(r/n.width),row:Math.floor(i/n.height),grid:this.#l,x:0,y:0}}#me(e,t){let n=wc(this.#u,e,t);if(n){let r=Nc(n.grid,e-n.x,t-n.y);if(r!==void 0&&r!==` `)return r}return Nc(this.#l,e,t)}#he(e,t){let n=this.#y,r=this.#v;if(!n||!r||this.#C.length===0)return null;let{col:i,row:a}=this.#pe(e,t,r),o=ys(n,i,a);for(let n=o.length-1;n>=0;n--){let{node:s,x:c,y:l}=o[n],u=s.scrollRange;if(!u||Ss(s.source))continue;let d=s.source,{y:f,x:p}=hs(s,c,l);if(f&&u.maxY>0&&i>=f.col&&i<f.col+f.thick&&a>=f.row&&a<f.row+f.len){let e=gs(f.len,u.sizeY,u.maxY,0).len,n=Math.max(1,(f.len-e)*r.height);return{el:d,axis:`y`,startClient:t,startPx:d.scrollTop,factor:u.maxY*r.height/n}}if(p&&u.maxX>0&&a>=p.row&&a<p.row+p.thick&&i>=p.col&&i<p.col+p.len){let t=gs(p.len,u.sizeX,u.maxX,0).len,n=Math.max(1,(p.len-t)*r.width);return{el:d,axis:`x`,startClient:e,startPx:d.scrollLeft,factor:u.maxX*r.width/n}}}return null}#ge=e=>{if(lu(e))return;let{clientX:t,clientY:n}=e,r=this.#O;if(r){let e=(r.axis===`y`?n:t)-r.startClient,i=r.startPx+e*r.factor;r.axis===`y`?r.el.scrollTop=i:r.el.scrollLeft=i;return}let i=!!(e.buttons&1);i&&this.#j&&this.#Pe(this.#j,t,n),i&&this.#R&&this.#Ne(this.#R,t,n),i&&this.#z&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#J={x:t,y:n};let a=this.#v;if(a){let{col:e,row:r}=this.#pe(t,n,a);if(e===this.#Y&&r===this.#X)return}this.#Qe()};#_e=e=>{let{clipboardData:t}=e,n=this.#y,r=this.#We();t&&n&&r&&(t.setData(`text/plain`,Xs(n,r)),e.preventDefault())};#ve=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=this.#je(t.composedPath()),i=n===`text`||n===`grid`&&!r&&t.target instanceof Element&&t.target.closest(`dialog:modal`)!==null;if(i){if(!this.#Le(t.target))return}else if(n!==`grid`||!r&&!this.#Ae(t.target))return;let a=this.#k===`mouse`||this.#k===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(Bl),!a))return;if(i){this.#Ie(t),this.#ye(t);return}let e=this.#v,n=e?this.#pe(t.clientX,t.clientY,e):null,o=n?this.#Te(n.col,n.row):null;(!r||o||this.#Oe())&&this.#Me(t,o);return}if(!a)return;let o=t.detail===2?`word`:`paragraph`,s=document.getSelection(),c=this.#y,l=this.#v;if(!s||!c||!l)return;let{col:u,row:d}=this.#pe(t.clientX,t.clientY,l),f=this.#ze(c,u,d,o);if(!f){this.removeAttribute(Bl),this.#j=null;return}t.preventDefault(),this.#De(u,d),this.#Ue(f);let p=t.shiftKey&&s.anchorNode&&this.#We()?du({node:s.anchorNode,offset:s.anchorOffset}):f;this.#Fe(s,p,f),this.#j={unit:o,anchor:p},this.#ye(t)};#ye(e){let t=this.#y,n=this.#v;if(!this.#j||!t||!n)return;this.#xe(),e.isTrusted&&this.setPointerCapture(this.#A);let{col:r,row:i}=this.#pe(e.clientX,e.clientY,n),a=ys(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!Ss(t.source)&&(o=t.source)}let s=this.#B[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#be(),eu);this.#M={el:c,page:!o&&!s,timer:l}}#be(){let e=this.#M,t=this.#v,n=this.#J;if(!e||!t||!n||!this.#K)return;let{el:r,page:i}=e,a=ws(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):ru(r),n,t),o=this.#C.find(e=>e.source===r),s=(e,t)=>o?nu(o,e,t):tu(r,e,t),c=a.x*t.width,l=a.y*t.height,u=s(c,0)?c:0,d=s(0,l)?l:0;(u!==0||d!==0)&&this.#ue(r,u,d)}#xe(){this.#M&&=(clearInterval(this.#M.timer),null)}#Se(){let e=this.#j,t=this.#J;e&&t&&this.#K&&this.#Pe(e,t.x,t.y)}#Ce=e=>{let t=e;if(this.#I=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=Ds(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.defaultPrevented)return;let r=this.#y,i=t.target;if(!r||!(i instanceof Element)||i===this||Is(i,t.key,this.#wt()))return;let a=js(r),o=Ms(a,i);if(!o)return;let s=Os(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#we(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#d),i=pl(this,e,t);return{source:this,style:i,children:ul(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:st()}}#Te(e,t){let n=this.#y,r=n?Cs(n,e,t).at(-1)?.closest(`[tabindex]`):null;return r&&this.contains(r)?r:null}#Ee(e){e?.focus({preventScroll:!0}),document.activeElement!==e&&this.#Oe()?.blur()}#De(e,t){this.#Ee(this.#Te(e,t))}#Oe(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ke(){return this.#K&&this.#z&&!this.#R}#Ae(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Vl)}#je(e){return e.includes(this.#l)||e.includes(this.#u)}#Me(e,t){let n=this.#v;if(!n)return;let{col:r,row:i,grid:a,x:o,y:s}=this.#pe(e.clientX,e.clientY,n);e.preventDefault();let c=Lc(a,r-o,i-s);this.#R={anchor:c,grid:a,x:o,y:s},this.#Ee(t);let l=zs(a,c);l&&document.getSelection()?.setBaseAndExtent(...l,...l)}#Ne(e,t,n){let r=this.#v;if(!r)return;let i=zs(e.grid,e.anchor),{col:a,row:o}=this.#pe(t,n,r),s=zs(e.grid,Lc(e.grid,a-e.x,o-e.y));i&&s&&document.getSelection()?.setBaseAndExtent(...i,...s)}#Pe(e,t,n){let r=this.#v,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#pe(t,n,r),s=this.#Re(a,o,e.unit);!s||e.extent&&pu(e.extent,s)||(e.extent=s,this.#Fe(i,e.anchor,s))}#Fe(e,t,n){if(pu(t,n)){fu(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#He(t),a=r?n:this.#He(n);Ls(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?fu(e,i.start,a.end):fu(e,i.end,a.start)}#Ie(e){let t=document.getSelection(),n=this.#v;if(!t||!n)return;let{col:r,row:i}=this.#pe(e.clientX,e.clientY,n),a=this.#Re(r,i,`character`);if(!a)return;e.preventDefault(),this.#De(r,i);let o=e.shiftKey&&t.anchorNode&&this.#We()?du({node:t.anchorNode,offset:t.anchorOffset}):du(a.start);this.#Fe(t,o,e.shiftKey?a:o),this.#j={unit:`character`,anchor:o}}#Le(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Vl);return!t||t===this||!this.contains(t)}#Re(e,t,n){let r=this.#y;if(!r)return null;let i={x:0,y:0,width:r.localRect.width,height:r.localRect.height},a=Math.max(0,Math.min(e,i.width-1)),o=Math.max(0,Math.min(t,i.height-1)),s=ys(r,a,o).at(-1);if(s&&Ss(s.node.source))return null;let c=s?[vs(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of Ts(e.width,e.height,a-e.x,o-e.y)){let a=e.x+t.x,o=e.y+t.y,{edge:c}=t,l=this.#me(a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#ze(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:du(c===`start`?u.start:u.end)}return null}#ze(e,t,n,r,i=null){let a=ys(e,t,n);if(i&&!a.some(e=>e.node===i))return null;for(let e=a.length-1;e>=0;e--){let{node:i,x:o,y:s}=a[e];if(oc(i))return Ss(i.source)?null:this.#Be(i,o,s,t,n,r)}return oc(e)?this.#Be(e,0,0,t,n,r):null}#Be(e,t,n,r,i,a){let o=ps(e,t,n,r,i);if(o===null||a===`character`&&e.text[o]===``)return null;if(a===`character`){let t=o+1;for(;t<e.text.length&&e.advances?.[t]===0&&e.text[t]!==`
|
|
1043
|
-
`;)t++;let n=Us(e,o),r=Us(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=ae(e.source.tagName)?Gr(e.text).find(e=>o>=e.start&&o<e.end):uc(e,o),n=t&&Us(e,t.start),r=t&&Us(e,t.end);if(n&&r)return{start:n,end:r}}return this.#Ve(e)}#Ve(e){if(e===this.#y||e.anonymous)return nc(e);let t=ae(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.childNodes.length}}}#He(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#l.getRootNode())return e;let n=t.host,r=n.parentNode;if(!r)return e;let i=Array.prototype.indexOf.call(r.childNodes,n),a=n.previousSibling,o=n.nextSibling;return{start:uu(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:uu(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Ue(e){this.setAttribute(Bl,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#We(){let e=this.#y,t=Ws(this.#l.getRootNode(),e?qs(e):[]);return!t||Gs(this,this.#l,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#Ge=()=>{let e=this.#We()!==null;this.hasAttribute(Bl)&&!e&&this.removeAttribute(Bl),(e||this.#F)&&this.#y&&this.#$(),this.#F=e};#Ke(e,t=!0){let n=this.#We(),r=this.#v;return bc(e,this.#l,{holdStructural:this.#ke(),glyphs:this.#L,selection:n?Ys(e,n):void 0,cell:r?{width:r.width,height:r.height}:void 0,layers:this.#u,placeLayers:t})}#qe=()=>{this.#J=null,this.#Qe()};#Je=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#k=t.pointerType,this.#A=t.pointerId,this.#P=!1,lu(t)))return;let n=this.#he(t.clientX,t.clientY);if(n){this.#O=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#J={x:t.clientX,y:t.clientY},this.#K=!0,this.#z=this.#je(t.composedPath()),this.#Qe(!0)};#Ye=e=>{if(e.isPrimary){if(this.#P=e.type===`pointerup`&&this.#j!==null,this.#j=null,this.#xe(),this.#R=null,this.#z=!1,this.removeAttribute(`data-mw-dragging`),this.#O){this.#ce(this.#O.el),this.#O=null;return}(this.#K||this.#G)&&(this.#K=!1,this.#G=null,this.#Qe(),this.#q&&this.#Et())}};#Xe=e=>{this.#P&&(this.#P=!1,e.preventDefault())};#Ze=e=>{let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#Z=null,this.#pt(),this.#J&&(this.#Se(),this.#Qe()))};#Qe(t=!1){let n=this.#y,r=this.#v,i=[];if(this.#J&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#K||e.#Q?.matches)){let{col:e,row:t}=this.#pe(this.#J.x,this.#J.y,r);this.#Y=e,this.#X=t,i=Cs(n,e,t)}else this.#Y=NaN,this.#X=NaN;let a=i.at(-1)??null;t&&(this.#G=a);let o=e.#Q?.matches?i:[],s=this.#G?i.indexOf(this.#G):-1,c=s>=0?i.slice(0,s+1):[],l=this.#$e(`data-mw-hover`,this.#U,o);l=this.#$e(`data-mw-active`,this.#W,c)||l;let u=a?getComputedStyle(a).cursor:``;for(let e of[this.#l,this.#u])e.style.cursor=u===`auto`?``:u;l&&this.isConnected&&this.#Et()}#$e(e,t,n){let r=!1,i=new Set(n);for(let n of t)i.has(n)||(n.removeAttribute(e),r=!0);for(let n of i)t.has(n)||(n.setAttribute(e,``),r=!0);t.clear();for(let e of i)t.add(e);return r}#et=0;#tt=0;#nt=!1;#rt=0;#it=new Map;#at=null;#ot=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&!this.#it.has(t)&&(this.#mt(t),this.#Et())};#st=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&this.#Et()};#ct(e){return e!==this&&this.contains(e)}#lt=new Me;#ut=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&(je(t)&&this.#lt.enter(t),this.#Et())};get#dt(){return this.#s.cssRules[0].style}#ft(e){let t=e.backgroundColor;for(let e=Hl(this);e&&bt(t);e=Hl(e))t=getComputedStyle(e).backgroundColor;let n=this.#dt,r=e.color,i=bt(t)?`canvas`:t;n.getPropertyValue(`--mw-fg`)!==r&&n.setProperty(`--mw-fg`,r),n.getPropertyValue(`--mw-bg`)!==i&&n.setProperty(`--mw-bg`,i)}#pt(){if(!this.#y?.topLayer)return;let e=this.#l.getBoundingClientRect(),t=this.#dt,[n,r]=[`${e.left}px`,`${e.top}px`];t.getPropertyValue(`--mw-ox`)!==n&&t.setProperty(`--mw-ox`,n),t.getPropertyValue(`--mw-oy`)!==r&&t.setProperty(`--mw-oy`,r)}#mt(e){this.#it.set(e,this.#ht(e)??`layout`),this.#bt()}#ht(e){return he(pe(e),this.#gt(e))}#gt(e){return this.#y?(this.#at??=P(this.#y),this.#at.get(e)??null):null}#_t(){let e=this.#y;if(e){for(let[e,t]of this.#it){if(t!==`paint`)continue;let n=this.#gt(e);n&&Object.assign(n.style,bn(getComputedStyle(e)))}this.#q=!this.#Ke(e)}}#vt=e=>{let t=e.propertyName;Wl.test(t)&&(Gl.test(t)?(this.#tt++,this.#Et()):this.#et++,this.#rt=performance.now(),this.#bt())};#yt=e=>{let t=e.propertyName;if(t===`display`||t===`overlay`){this.#Et();return}Wl.test(t)&&(Gl.test(t)?this.#tt=Math.max(0,this.#tt-1):this.#et=Math.max(0,this.#et-1))};#bt(){if(this.#nt)return;this.#nt=!0;let e=()=>{for(let e of this.#it.keys()){let t=this.#ct(e)?this.#ht(e):null;t?this.#it.set(e,t):this.#it.delete(e)}performance.now()-this.#rt>Kl&&(this.#et=0,this.#tt=0);let t=new Set(this.#it.values()),n=this.#et>0||xe()||t.has(`layout`);if(!this.isConnected||!n&&this.#tt===0&&this.#it.size===0){this.#nt=!1,this.#Et();return}n?this.#Tt():t.has(`paint`)?this.#_t():Sc(this.#u),requestAnimationFrame(e)};requestAnimationFrame(e)}#xt=e=>{if(!lu(e)){if(e.type===`keydown`||e.type===`keyup`){let{key:t,target:n}=e,r=n instanceof Element&&n.hasAttribute(`data-mw-scroll`);if(t!==`Enter`&&(t!==` `||r))return}if((e.type===`focusin`||e.type===`focusout`)&&e.target instanceof HTMLSelectElement){this.#Tt();return}this.#Et()}};attributeChangedCallback(e,t,n){if(e===`focus`){n!==`tab`&&n!==`arrows`&&(n!==null&&console.warn(`[monowind] Ignoring unrecognized focus="${n}". Expected "tab" (default) or "arrows".`,te(this)),this.setAttribute(`focus`,zl));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,te(this)),this.setAttribute(`select`,Rl);return}e===`select`&&this.#Qe(),this.#Et()}toPlainText(){return this.#_&&this.#Dt(),this.#y?Ho(this.#y):``}#St=()=>{this.#Et()};#Ct=()=>{requestAnimationFrame(()=>{this.#L.invalidate(),this.#Et()})};#wt(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#Tt(){try{this.#Dt()}catch(e){console.error(`[monowind] layout failed:`,e)}}#Et(){this.#_||this.#c||(this.#_=!0,requestAnimationFrame(()=>{if(this.#_=!1,this.#wt()){this.#Et();return}this.#Tt()}))}#Dt(){if(!this.isConnected)return;let e=this.#re(),t=new Map,n=getComputedStyle(this);this.#ft(n);let r=n.getPropertyValue(`--mw-cw`).trim(),i=parseFloat(r);if(Number.isFinite(i)&&i>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(r/i)))}this.setAttribute(`measuring`,``);try{this.#d.parentNode!==this&&this.appendChild(this.#d);let n=et(this,this.#d),r=this.#v;if(r===null||r.width!==n.width||r.height!==n.height||r.letterSpacing!==n.letterSpacing||r.gridLetterSpacing!==n.gridLetterSpacing||r.inkOverhang!==n.inkOverhang||r.backgroundGap!==n.backgroundGap){this.style.setProperty(`--mw-cw`,`${n.width}px`),this.style.setProperty(`--mw-ch`,`${n.height}px`),this.style.setProperty(`--mw-rls`,`${n.letterSpacing}px`),this.style.setProperty(`--mw-ink`,`${n.inkOverhang??0}px`),this.style.setProperty(`--mw-bgpad`,`${Math.ceil((n.backgroundGap??0)/2)}px`),this.style.setProperty(`--mw-base`,`${n.baseline??0}px`);for(let e of[this.#l,this.#u])e.style.lineHeight=`${n.height}px`,e.style.letterSpacing=`${n.gridLetterSpacing??n.letterSpacing}px`}this.#v=n;let i=getComputedStyle(this.#l);this.#L.configure({style:i.fontStyle,weight:i.fontWeight,size:i.fontSize,family:i.fontFamily},{width:n.width,height:n.height,letterSpacing:n.gridLetterSpacing??n.letterSpacing});let a=getComputedStyle(this),o=(parseFloat(a.paddingLeft)||0)+(parseFloat(a.paddingRight)||0),s=Math.max(0,Math.floor((this.clientWidth-o)/n.width));if(s===0)return;let c=tt(),l=fl(this,c,n,t)??this.#we(c,n,t),{height:u}=ao(l,s,t=>{this.#C=mu(t),this.#ee(n,e)});this.#lt.assign(l),Vc(l),this.#w=tl(l),rl(this.#w),Jc(this.#w),this.#q=!this.#Ke(l,!1),this.#y=l,this.#at=null;let d=`${l.localRect.width*n.width}px`,f=`${l.localRect.height*n.height}px`;this.#l.style.width!==d&&(this.#l.style.width=d),this.#l.style.height!==f&&(this.#l.style.height=f);let p=a.boxSizing===`border-box`?(parseFloat(a.paddingTop)||0)+(parseFloat(a.paddingBottom)||0)+(parseFloat(a.borderTopWidth)||0)+(parseFloat(a.borderBottomWidth)||0):0,m=`${u*n.height+p}px`;this.style.height!==m&&(this.style.height=m);let h=a.boxSizing===`border-box`?o+(parseFloat(a.borderLeftWidth)||0)+(parseFloat(a.borderRightWidth)||0):0,g=`${s*n.width+h}px`;this.style.getPropertyValue(`--mw-host-w`)!==g&&this.style.setProperty(`--mw-host-w`,g),this.hasAttribute(`data-mw-ready`)||this.setAttribute(`data-mw-ready`,``)}finally{this.setAttribute(`settling`,``),this.removeAttribute(`measuring`),getComputedStyle(this).transitionProperty,this.removeAttribute(`settling`),Sc(this.#u),this.#ie(e),this.#g?.takeRecords();for(let e of me(this))this.#it.has(e)||this.#mt(e);be(this)&&(xe()?(this.#rt=performance.now(),this.#bt()):this.#Et()),this.#fe(),this.#B=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#B.push(e);this.#Z=null,this.#pt(),this.#te(),this.#J&&this.#Qe()}}};function ou(){typeof customElements<`u`&&(customElements.get(`mono-wind`)||customElements.define(`mono-wind`,au))}function su(e,t,n,r,i){return cu(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function cu(e,t,n,r,i){if(r>0&&e>0&&e>=t-1)return r;let a=e/n-i,o=Math.abs(a)<=.5?i:i+Math.sign(a)*Math.round(Math.abs(a));return Math.min(Math.max(0,o),r)}function lu(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function uu(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function du(e){return{start:e,end:e}}function fu(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function pu(e,t){return e.start.node===t.start.node&&e.start.offset===t.start.offset&&e.end.node===t.end.node&&e.end.offset===t.end.offset}function mu(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var hu=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
|
|
1059
|
+
`,Jl=`grid`,Yl=`tab`,Xl=`data-mw-semantic-selection`,Zl=[`a`,`button`,`input`,`select`,`textarea`,`label`,`summary`,`[contenteditable]:not([contenteditable='false'])`,`[tabindex]:not([tabindex='-1'], ${[`[role='grid']`,`[role='listbox']`,`[role='menu']`,`[role='menubar']`,`[role='radiogroup']`,`[role='tablist']`,`[role='tree']`,`[role='treegrid']`].join(`, `)})`,`[role='button']`,`[role^='menuitem']`,`[role='option']`,`[role='tab']`,`[role='treeitem']`,`[role='checkbox']`,`[role='radio']`,`[role='switch']`,`[role='slider']`,`[role='link']`,`[role='combobox']`].join(`, `),Ql=e=>e.parentElement??(e.parentNode instanceof ShadowRoot?e.parentNode.host:null),$l=[`mousedown`,`click`,`dblclick`,`auxclick`],eu=(e,t)=>e.contains(t)||t.contains(e),tu=(e,t)=>e===t||e!==null&&t!==null&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,nu=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],ru=/^(color|opacity|border-(top|right|bottom|left)-color|border-color|transform|translate|rotate|scale|filter)$/,iu=/^(transform|translate|rotate|scale|filter)$/,au=3e4,ou=200,su=3,cu=4,lu=8,uu=100,du=160,fu=500,pu=50;function mu(e,t,n){return n>0&&e.scrollTop<e.scrollHeight-e.clientHeight-.5||n<0&&e.scrollTop>.5||t>0&&e.scrollLeft<e.scrollWidth-e.clientWidth-.5||t<0&&e.scrollLeft>.5}function hu(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&mu(a,0,n)||t!==0&&r>0&&mu(a,t,0)}function gu(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var _u=typeof HTMLElement>`u`?class{}:HTMLElement,vu=class e extends _u{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#Lt()};static#r(t){t instanceof HTMLLinkElement&&t.rel===`stylesheet`&&!t.sheet&&t.addEventListener(`load`,e.#n,{once:!0})}static#i(t){if(e.#e.add(t),e.#t)return;for(let t of document.querySelectorAll(`link[rel=stylesheet]`))e.#r(t);let n=new MutationObserver(t=>{for(let n of t)for(let t of n.addedNodes)e.#r(t);e.#n()});n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),e.#t=n}static#a(t){e.#e.delete(t),e.#e.size===0&&(e.#t?.disconnect(),e.#t=null)}#o;#s=new CSSStyleSheet;#c=!1;#l;#u;#d;#f=null;#p=null;#m=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`);#h=()=>this.#Lt();#g=null;#_=!1;#v=null;#y=null;#b=null;#x=null;#S=!1;#C=[];#w=[];#T=new Map;#E=new WeakMap;#D=null;#O=null;#k=``;#A=-1;#j=null;#M=null;#N=!1;#P=!1;#F=!1;#I=0;#L=new Cc((e,t,n)=>this.#U(e,t,n));#R=null;#z=!1;#B=[];#V=[];#H(e){if(e.type!==`attributes`)return!0;let t=e.attributeName??``;return e.target===this?t===`class`||t===`style`:Yn(e.target,t)}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=ql,this.#s.replaceSync(`:host { --mw-fg: canvastext; --mw-bg: canvas }`),this.#o.adoptedStyleSheets=[this.#s],this.#l=this.#o.getElementById(`grid`),this.#u=this.#o.getElementById(`layers`),this.#d=document.createElement(`span`),this.#d.setAttribute(`aria-hidden`,`true`),this.#d.setAttribute(`data-mw-probe`,``),this.#d.style.cssText=`position:absolute!important;top:0!important;left:0!important;visibility:hidden!important;pointer-events:none!important;user-select:none!important;white-space:pre!important;overflow-wrap:normal!important;padding:0!important;margin:0!important;border:0!important;`,this.#d.textContent=`M`.repeat(100);let e=document.createElement(`span`);e.style.cssText=`display:inline-block;width:0;height:0;padding:0;margin:0;border:0`,this.#d.appendChild(e)}#U(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:clip;padding:0;height:${this.#v?.height??0}px;line-height:${n}px;font-size:${t*100}%`,r.textContent=e;let i=document.createElement(`span`);i.style.cssText=`display:inline-block;width:0;height:0;padding:0`,r.appendChild(i),this.#l.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){if(this.#c=this.parentElement?.closest(`mono-wind`)!==null,this.#c){re(this,`A <mono-wind> inside another <mono-wind> is unsupported; it is laid out as plain content of the outer one.`);return}this.hasAttribute(`select`)||this.setAttribute(`select`,Jl),this.hasAttribute(`focus`)||this.setAttribute(`focus`,Yl),this.#d.parentNode!==this&&this.appendChild(this.#d),this.#f=new ResizeObserver(()=>this.#Lt()),this.#p=new MutationObserver(()=>this.#Lt()),this.#m?.addEventListener(`change`,this.#h),this.#f.observe(this),this.#he(),this.#f.observe(this.#d),window.addEventListener(`resize`,this.#Nt),this.#g=new MutationObserver(e=>{e.some(e=>this.#H(e))&&this.#Lt()}),this.#g.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this.#b=ue(()=>this.#Lt()),this.#x=u(()=>this.#Lt()),document.fonts?.ready.then(this.#Pt).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Pt);for(let e of nu)this.addEventListener(e,this.#Mt);this.addEventListener(`transitionrun`,this.#kt),this.addEventListener(`transitionend`,this.#At),this.addEventListener(`transitioncancel`,this.#At),this.addEventListener(`animationstart`,this.#pt),this.addEventListener(`animationiteration`,this.#pt),this.addEventListener(`animationend`,this.#mt),this.addEventListener(`animationcancel`,this.#mt),this.addEventListener(`toggle`,this.#bt,!0),this.addEventListener(`pointermove`,this.#ye),this.addEventListener(`pointerleave`,this.#Qe),this.addEventListener(`pointerdown`,this.#$e);for(let e of $l)this.addEventListener(e,this.#Fe,!0);this.addEventListener(`scroll`,this.#le,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#ue,{capture:!0}),this.addEventListener(`wheel`,this.#fe,{passive:!1}),this.addEventListener(`copy`,this.#be),this.addEventListener(`mousedown`,this.#xe),this.addEventListener(`keydown`,this.#Ee),document.addEventListener(`selectionchange`,this.#Xe),window.addEventListener(`pointerup`,this.#et),window.addEventListener(`pointercancel`,this.#et),window.addEventListener(`mouseup`,this.#tt,{capture:!0}),document.addEventListener(`scroll`,this.#nt,{capture:!0,passive:!0}),e.#i(this),this.#Lt()}disconnectedCallback(){window.removeEventListener(`resize`,this.#Nt),this.#f?.disconnect(),this.#g?.disconnect(),this.#p?.disconnect(),this.#m?.removeEventListener(`change`,this.#h),this.#f=null,this.#g=null,this.#p=null,this.#b?.(),this.#b=null,this.#x?.(),this.#x=null,document.fonts?.removeEventListener(`loadingdone`,this.#Pt);for(let e of nu)this.removeEventListener(e,this.#Mt);this.removeEventListener(`transitionrun`,this.#kt),this.removeEventListener(`transitionend`,this.#At),this.removeEventListener(`transitioncancel`,this.#At),this.removeEventListener(`animationstart`,this.#pt),this.removeEventListener(`animationiteration`,this.#pt),this.removeEventListener(`animationend`,this.#mt),this.removeEventListener(`animationcancel`,this.#mt),this.removeEventListener(`toggle`,this.#bt,!0),this.#st=0,this.#dt.clear(),this.removeEventListener(`pointermove`,this.#ye),this.removeEventListener(`pointerleave`,this.#Qe),this.removeEventListener(`pointerdown`,this.#$e);for(let e of $l)this.removeEventListener(e,this.#Fe,!0);this.removeEventListener(`scroll`,this.#le,{capture:!0}),this.removeEventListener(`scrollend`,this.#ue,{capture:!0}),this.removeEventListener(`wheel`,this.#fe),this.removeEventListener(`copy`,this.#be),this.removeEventListener(`keydown`,this.#Ee),this.removeEventListener(`mousedown`,this.#xe),document.removeEventListener(`selectionchange`,this.#Xe);for(let e of this.#T.values())clearTimeout(e);this.#T.clear(),this.#O=null,this.#D=null,this.#we(),window.removeEventListener(`pointerup`,this.#et),window.removeEventListener(`pointercancel`,this.#et),window.removeEventListener(`mouseup`,this.#tt,{capture:!0}),document.removeEventListener(`scroll`,this.#nt,{capture:!0}),this.#Z=null,this.#J=null,this.#Y=!1,this.#X=!1,this.#P=!1,this.#at(),e.#a(this)}#W=new Set;#G=new Set;#K=new Set;#q=null;#J=null;#Y=!1;#X=!1;#Z=null;#Q=NaN;#$=NaN;#ee=null;static#te=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#ne(){if(this.#S||this.#_)return;this.#S=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#S=!1;let t=this.#v;this.isConnected&&this.#y&&t&&(this.#re(t),pl(this.#w),il(this.#w),this.#g?.takeRecords(),this.#X=!this.#Ze(this.#y),this.#ie(),this.#at())};requestAnimationFrame(t),setTimeout(t,50)}#re(e,t){for(let n of this.#C){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,o=t?.get(r);o?n.scroll={x:o.pinX?i:Math.min(o.x,i),y:o.pinY?a:Math.min(o.y,a)}:t?n.scroll??={x:0,y:0}:n.scroll=this.#ae(n,e)}}#ie(){this.#N&&(this.#N=!1,this.#Te())}#ae(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:bu(n,`x`,t.width,r,a.x),y:bu(n,`y`,t.height,i,a.y)}}#oe(){let e=new Map,t=this.#v;if(!t)return e;for(let n of this.#C){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#ae(n,t);e.set(r,{top:r.scrollTop,left:r.scrollLeft,maxTop:r.scrollHeight-r.clientHeight,maxLeft:r.scrollWidth-r.clientWidth,x:o,y:s,pinX:i>0&&o>=i,pinY:a>0&&s>=a})}return e}#se(e){for(let t of this.#C){let n=t.source,r=e.get(n);if(!r)continue;let i=n.scrollTop,a=n.scrollLeft;r.pinY&&n.scrollHeight-n.clientHeight!==r.maxTop?n.scrollTop=n.scrollHeight:i!==r.top&&(n.scrollTop=r.top),r.pinX&&n.scrollWidth-n.clientWidth!==r.maxLeft?n.scrollLeft=n.scrollWidth:a!==r.left&&(n.scrollLeft=r.left)}}#ce(e,t){clearTimeout(this.#T.get(e)),this.#T.set(e,setTimeout(()=>this.#de(e),t))}#le=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#N=!0,this.#ne(),this.#y?.anchorScrollers?.has(t)&&this.#Lt(),!(Date.now()-(this.#E.get(t)??0)<ou)&&(!(`onscrollend`in window)||Date.now()-this.#I<fu?this.#ce(t,du):clearTimeout(this.#T.get(t))))};#ue=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#E.get(t)??0)<ou||this.#ce(t,uu))};#de(e){if(this.#O?.el===e)return;this.#ne();let t=this.#v,n=this.#C.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#ae(n,t),a=i.y===r.maxY?e.scrollHeight-e.clientHeight:i.y*t.height,o=i.x===r.maxX?e.scrollWidth-e.clientWidth:i.x*t.width;(Math.abs(e.scrollTop-a)>.5||Math.abs(e.scrollLeft-o)>.5)&&e.scrollTo({top:a,left:o,behavior:`instant`})}#fe=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#y,n=this.#v;if(!t||!n||this.#C.length===0)return;let r=e,i=r.deltaMode===1?n.height:r.deltaMode===2?this.clientHeight:1,a=r.deltaX*i,o=r.deltaY*i;if(!r.cancelable&&this.#me(a,o))return;let{col:s,row:c}=this.#ge(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#D=null,r.preventDefault();return}let d=e=>hu(e,a,o),f=this.#D,p=Math.abs(a)>=Math.abs(o)?`x`:`y`,m=f!==null&&u>f.mag*1.25+1,h=f!==null&&(Math.abs(r.clientX-f.x)>su||Math.abs(r.clientY-f.y)>su),g=f!==null&&f.decayed>=lu,_=f!==null&&l-f.at<ou&&p===f.axis&&(h?u<=f.mag:!(g&&m)),v=null;if(_){if(f.decayed=u<=f.mag&&u>=f.mag*.5?f.decayed+1:g?f.decayed:0,f.mag=u,f.at=l,!f.el)return;v=this.#C.find(e=>e.source===f.el)??null}if(!v){let e=Es(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||ks(n.source))continue;if(d(n)){v=n;break}let r=n.style.overscroll;if(o!==0&&!r.y||a!==0&&!r.x){v=n;break}}if(!v&&u<cu){r.preventDefault();return}this.#D={el:v?v.source:null,x:r.clientX,y:r.clientY,axis:p,at:l,mag:u,decayed:0}}if(!v||(r.preventDefault(),!d(v)))return;let y=v.scrollRange;this.#pe(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#pe(e,t,n){let r={behavior:`instant`};t!==0&&(r.left=t),n!==0&&(r.top=n),e.scrollBy(r),e.hasAttribute(`data-mw-scroll`)&&(this.#E.set(e,Date.now()),this.#ce(e,ou))}#me(e,t){return this.#B.some(n=>mu(n,e,t))}#he(){let e=this.parentElement;if(e&&this.#f&&this.#p){this.#f.observe(e);for(let t of e.children)t!==this&&this.#f.observe(t);for(let e=Ql(this);e;e=Ql(e))this.#p.observe(e,{attributes:!0,attributeFilter:[`class`,`style`]})}}#ge(e,t,n){if(!this.#ee){let e=this.#l.getBoundingClientRect();this.#ee={left:e.left,top:e.top}}let r=e-this.#ee.left,i=t-this.#ee.top;return Ac(this.#u,r,i)??{col:Math.floor(r/n.width),row:Math.floor(i/n.height),grid:this.#l,x:0,y:0}}#_e(e,t){let n=jc(this.#u,e,t);if(n){let r=Hc(n.grid,e-n.x,t-n.y);if(r!==void 0&&r!==` `)return r}return Hc(this.#l,e,t)}#ve(e,t){let n=this.#y,r=this.#v;if(!n||!r||this.#C.length===0)return null;let{col:i,row:a}=this.#ge(e,t,r),o=Es(n,i,a);for(let n=o.length-1;n>=0;n--){let{node:s,x:c,y:l}=o[n],u=s.scrollRange;if(!u||ks(s.source))continue;let d=s.source,{y:f,x:p}=Ss(s,c,l);if(f&&u.maxY>0&&i>=f.col&&i<f.col+f.thick&&a>=f.row&&a<f.row+f.len){let e=Cs(f.len,u.sizeY,u.maxY,0).len,n=Math.max(1,(f.len-e)*r.height);return{el:d,axis:`y`,startClient:t,startPx:d.scrollTop,factor:u.maxY*r.height/n}}if(p&&u.maxX>0&&a>=p.row&&a<p.row+p.thick&&i>=p.col&&i<p.col+p.len){let t=Cs(p.len,u.sizeX,u.maxX,0).len,n=Math.max(1,(p.len-t)*r.width);return{el:d,axis:`x`,startClient:e,startPx:d.scrollLeft,factor:u.maxX*r.width/n}}}return null}#ye=e=>{if(Su(e))return;let{clientX:t,clientY:n}=e,r=this.#O;if(r){let e=(r.axis===`y`?n:t)-r.startClient,i=r.startPx+e*r.factor;r.axis===`y`?r.el.scrollTop=i:r.el.scrollLeft=i;return}let i=!!(e.buttons&1);i&&this.#j&&this.#ze(this.#j,t,n),i&&this.#R&&this.#Re(this.#R,t,n),i&&this.#z&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#Z={x:t,y:n},this.#q=e.target instanceof Element?e.target:null;let a=this.#v;if(a){let{col:e,row:r}=this.#ge(t,n,a);if(e===this.#Q&&r===this.#$)return}this.#at()};#be=e=>{let{clipboardData:t}=e,n=this.#y,r=this.#Ye();t&&n&&r&&(t.setData(`text/plain`,rc(n,r)),e.preventDefault())};#xe=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=this.#Ie(t.composedPath()),i=n===`text`||n===`grid`&&!r&&t.target instanceof Element&&t.target.closest(`dialog:modal`)!==null;if(i){if(!this.#He(t.target))return}else if(n!==`grid`)return;else if(!r&&!this.#Ne(t.target)&&!this.#Pe(t))return;let a=this.#k===`mouse`||this.#k===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(Xl),!a))return;if(i){this.#Ve(t),this.#Se(t);return}let e=this.#v,n=e?this.#ge(t.clientX,t.clientY,e):null,o=n?this.#Oe(n.col,n.row):null;(!r||o||this.#je())&&this.#Le(t,o);return}if(!a)return;let o=t.detail===2?`word`:`paragraph`,s=document.getSelection(),c=this.#y,l=this.#v;if(!s||!c||!l)return;let{col:u,row:d}=this.#ge(t.clientX,t.clientY,l),f=this.#We(c,u,d,o);if(!f){this.removeAttribute(Xl),this.#j=null;return}t.preventDefault(),this.#Ae(u,d),this.#Je(f);let p=t.shiftKey&&s.anchorNode&&this.#Ye()?wu({node:s.anchorNode,offset:s.anchorOffset}):f;this.#Be(s,p,f),this.#j={unit:o,anchor:p},this.#Se(t)};#Se(e){let t=this.#y,n=this.#v;if(!this.#j||!t||!n)return;this.#we(),e.isTrusted&&this.setPointerCapture(this.#A);let{col:r,row:i}=this.#ge(e.clientX,e.clientY,n),a=Es(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!ks(t.source)&&(o=t.source)}let s=this.#B[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#Ce(),pu);this.#M={el:c,page:!o&&!s,timer:l}}#Ce(){let e=this.#M,t=this.#v,n=this.#Z;if(!e||!t||!n||!this.#Y)return;let{el:r,page:i}=e,a=js(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):gu(r),n,t),o=this.#C.find(e=>e.source===r),s=(e,t)=>o?hu(o,e,t):mu(r,e,t),c=a.x*t.width,l=a.y*t.height,u=s(c,0)?c:0,d=s(0,l)?l:0;(u!==0||d!==0)&&this.#pe(r,u,d)}#we(){this.#M&&=(clearInterval(this.#M.timer),null)}#Te(){let e=this.#j,t=this.#Z;e&&t&&this.#Y&&this.#ze(e,t.x,t.y)}#Ee=e=>{let t=e;if(this.#I=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=Ps(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.defaultPrevented)return;let r=this.#y,i=t.target;if(!r||!(i instanceof Element)||i===this||Us(i,t.key,this.#Ft()))return;let a=Rs(r),o=zs(a,i);if(!o)return;let s=Fs(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#De(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#d),i=Cl(this,e,t);return{source:this,style:i,children:bl(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:ut()}}#Oe(e,t){let n=this.#y,r=n?As(n,e,t).at(-1)?.closest(`[tabindex]`):null;return r&&this.contains(r)?r:null}#ke(e){e?.focus({preventScroll:!0}),document.activeElement!==e&&this.#je()?.blur()}#Ae(e,t){this.#ke(this.#Oe(e,t))}#je(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#Me(){return this.#Y&&this.#z&&!this.#R}#Ne(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Zl)}#Pe(e){let t=e,n=t.target;if(!t.isTrusted||this.getAttribute(`select`)!==`grid`||!(n instanceof Element)||n===this||!this.contains(n)||n.closest(`dialog:modal`))return!1;let r=this.#y,i=this.#v;if(!r||!i)return!1;let{col:a,row:o}=this.#ge(t.clientX,t.clientY,i),s=As(r,a,o).at(-1);return s!==void 0&&!eu(s,n)}#Fe=e=>{this.#Pe(e)&&(e.preventDefault(),e.type!==`mousedown`&&e.stopPropagation())};#Ie(e){return e.includes(this.#l)||e.includes(this.#u)}#Le(e,t){let n=this.#v;if(!n)return;let{col:r,row:i,grid:a,x:o,y:s}=this.#ge(e.clientX,e.clientY,n);e.preventDefault();let c=Kc(a,r-o,i-s);this.#R={anchor:c,grid:a,x:o,y:s},this.#ke(t);let l=Ks(a,c);l&&document.getSelection()?.setBaseAndExtent(...l,...l)}#Re(e,t,n){let r=this.#v;if(!r)return;let i=Ks(e.grid,e.anchor),{col:a,row:o}=this.#ge(t,n,r),s=Ks(e.grid,Kc(e.grid,a-e.x,o-e.y));i&&s&&document.getSelection()?.setBaseAndExtent(...i,...s)}#ze(e,t,n){let r=this.#v,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#ge(t,n,r),s=this.#Ue(a,o,e.unit);!s||e.extent&&Eu(e.extent,s)||(e.extent=s,this.#Be(i,e.anchor,s))}#Be(e,t,n){if(Eu(t,n)){Tu(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#qe(t),a=r?n:this.#qe(n);Ws(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?Tu(e,i.start,a.end):Tu(e,i.end,a.start)}#Ve(e){let t=document.getSelection(),n=this.#v;if(!t||!n)return;let{col:r,row:i}=this.#ge(e.clientX,e.clientY,n),a=this.#Ue(r,i,`character`);if(!a)return;e.preventDefault(),this.#Ae(r,i);let o=e.shiftKey&&t.anchorNode&&this.#Ye()?wu({node:t.anchorNode,offset:t.anchorOffset}):wu(a.start);this.#Be(t,o,e.shiftKey?a:o),this.#j={unit:`character`,anchor:o}}#He(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Zl);return!t||t===this||!this.contains(t)}#Ue(e,t,n){let r=this.#y;if(!r)return null;let i={x:0,y:0,width:r.localRect.width,height:r.localRect.height},a=Math.max(0,Math.min(e,i.width-1)),o=Math.max(0,Math.min(t,i.height-1)),s=Es(r,a,o).at(-1);if(s&&ks(s.node.source))return null;let c=s?[Ts(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of Ms(e.width,e.height,a-e.x,o-e.y)){let a=e.x+t.x,o=e.y+t.y,{edge:c}=t,l=this.#_e(a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#We(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:wu(c===`start`?u.start:u.end)}return null}#We(e,t,n,r,i=null){let a=Es(e,t,n);if(i&&!a.some(e=>e.node===i))return null;for(let e=a.length-1;e>=0;e--){let{node:i,x:o,y:s}=a[e];if(pc(i))return ks(i.source)?null:this.#Ge(i,o,s,t,n,r)}return pc(e)?this.#Ge(e,0,0,t,n,r):null}#Ge(e,t,n,r,i,a){let o=bs(e,t,n,r,i);if(o===null||a===`character`&&e.text[o]===``)return null;if(a===`character`){let t=o+1;for(;t<e.text.length&&e.advances?.[t]===0&&e.text[t]!==`
|
|
1060
|
+
`;)t++;let n=Xs(e,o),r=Xs(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=le(e.source.tagName)?Xr(e.text).find(e=>o>=e.start&&o<e.end):_c(e,o),n=t&&Xs(e,t.start),r=t&&Xs(e,t.end);if(n&&r)return{start:n,end:r}}return this.#Ke(e)}#Ke(e){if(e===this.#y||e.anonymous)return lc(e);let t=le(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.childNodes.length}}}#qe(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#l.getRootNode())return e;let n=t.host,r=n.parentNode;if(!r)return e;let i=Array.prototype.indexOf.call(r.childNodes,n),a=n.previousSibling,o=n.nextSibling;return{start:Cu(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:Cu(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Je(e){this.setAttribute(Xl,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#Ye(){let e=this.#y,t=Zs(this.#l.getRootNode(),e?ec(e):[]);return!t||Qs(this,this.#l,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#Xe=()=>{let e=this.#Ye()!==null;this.hasAttribute(Xl)&&!e&&this.removeAttribute(Xl),(e||this.#F)&&this.#y&&this.#ne(),this.#F=e};#Ze(e,t=!0){let n=this.#Ye(),r=this.#v;return Dc(e,this.#l,{holdStructural:this.#Me(),glyphs:this.#L,selection:n?nc(e,n):void 0,cell:r?{width:r.width,height:r.height}:void 0,layers:this.#u,placeLayers:t})}#Qe=()=>{this.#Z=null,this.#q=null,this.#at()};#$e=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#k=t.pointerType,this.#A=t.pointerId,this.#P=!1,Su(t)))return;let n=this.#ve(t.clientX,t.clientY);if(n){this.#O=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#Z={x:t.clientX,y:t.clientY},this.#q=t.target instanceof Element?t.target:null,this.#Y=!0,this.#z=this.#Ie(t.composedPath()),this.#at(!0)};#et=e=>{if(e.isPrimary){if(this.#P=e.type===`pointerup`&&this.#j!==null,this.#j=null,this.#we(),this.#R=null,this.#z=!1,this.removeAttribute(`data-mw-dragging`),this.#O){this.#de(this.#O.el),this.#O=null;return}(this.#Y||this.#J)&&(this.#Y=!1,this.#J=null,this.#at(),this.#X&&this.#Lt())}};#tt=e=>{this.#P&&(this.#P=!1,e.preventDefault())};#nt=e=>{let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#ee=null,this.#wt(),this.#Z&&(this.#Te(),this.#at()))};#rt(e){if(e===null)return[];let t=t=>t.isConnected&&!eu(e,t)&&this.#it(t)&&t.closest(`dialog:modal`)===null,n=[...this.#K].filter(t);for(let e=this.#q;e&&this.#ht(e)&&t(e);e=e.parentElement)n.includes(e)||n.push(e);return n}#it(e){let t=this.#Z;if(!t)return!1;let n=e.getBoundingClientRect();return t.x>=n.left&&t.x<n.right&&t.y>=n.top&&t.y<n.bottom}#at(t=!1){let n=this.#y,r=this.#v,i=[];if(this.#Z&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#Y||e.#te?.matches)){let{col:e,row:t}=this.#ge(this.#Z.x,this.#Z.y,r);this.#Q=e,this.#$=t,i=As(n,e,t)}else this.#Q=NaN,this.#$=NaN;let a=i.at(-1)??null;this.#ot(`data-mw-covered`,this.#K,this.#rt(a)),t&&(this.#J=a);let o=e.#te?.matches?i:[],s=this.#J?i.indexOf(this.#J):-1,c=s>=0?i.slice(0,s+1):[],l=this.#ot(`data-mw-hover`,this.#W,o);l=this.#ot(`data-mw-active`,this.#G,c)||l;let u=a?getComputedStyle(a).cursor:``;for(let e of[this.#l,this.#u])e.style.cursor=u===`auto`?``:u;l&&this.isConnected&&this.#Lt()}#ot(e,t,n){let r=!1,i=new Set(n);for(let n of t)i.has(n)||(n.removeAttribute(e),r=!0);for(let n of i)t.has(n)||(n.setAttribute(e,``),r=!0);t.clear();for(let e of i)t.add(e);return r}#st=0;#ct=0;#lt=!1;#ut=0;#dt=new Map;#ft=null;#pt=e=>{let t=e.target;t instanceof Element&&this.#ht(t)&&!this.#dt.has(t)&&(this.#Tt(t),this.#Lt())};#mt=e=>{let t=e.target;t instanceof Element&&this.#ht(t)&&this.#Lt()};#ht(e){return e!==this&&this.contains(e)}#gt=new Fe;#_t=null;#vt=!1;#yt(){this.#B=[],this.#V=[];let e=this.ownerDocument.scrollingElement??this.ownerDocument.documentElement;for(let t=this.parentElement;t;t=t.parentElement){let{overflow:n}=getComputedStyle(t);(t===e||/auto|scroll/.test(n))&&this.#B.push(t),t!==e&&/auto|scroll|hidden|clip/.test(n)&&this.#V.push(t)}}#bt=e=>{let t=e.target;t instanceof Element&&this.#ht(t)&&(Pe(t)&&this.#gt.enter(t),this.#Lt())};get#xt(){return this.#s.cssRules[0].style}#St(e){let t=e.backgroundColor;for(let e=Ql(this);e&&Ct(t);e=Ql(e))t=getComputedStyle(e).backgroundColor;let n=this.#xt,r=e.color,i=Ct(t)?`canvas`:t;n.getPropertyValue(`--mw-fg`)!==r&&n.setProperty(`--mw-fg`,r),n.getPropertyValue(`--mw-bg`)!==i&&n.setProperty(`--mw-bg`,i)}#Ct(e,t){let n=this.ownerDocument.documentElement,r=n.clientWidth,i=n.clientHeight;if(r<=0||i<=0)return null;let a=0,o=0;for(let e of this.#V){let t=e.getBoundingClientRect();a=Math.max(a,t.left),o=Math.max(o,t.top),r=Math.min(r,t.right),i=Math.min(i,t.bottom)}let s=(e,t,n,r)=>{let i=Math.max(0,Math.ceil((t-e)/r));return{at:i,span:Math.floor((n-e)/r)-i}},c=s(t.left,a,r,e.width),l=s(t.top,o,i,e.height);return c.span<=0||l.span<=0?null:{x:c.at,y:l.at,width:c.span,height:l.span}}#wt(){if(!this.#y?.topLayer)return;let e=this.#l.getBoundingClientRect(),t=this.#v;this.#vt&&t&&!tu(this.#Ct(t,e),this.#_t)&&this.#Lt();let n=this.#xt,[r,i]=[`${e.left}px`,`${e.top}px`];n.getPropertyValue(`--mw-ox`)!==r&&n.setProperty(`--mw-ox`,r),n.getPropertyValue(`--mw-oy`)!==i&&n.setProperty(`--mw-oy`,i)}#Tt(e){this.#dt.set(e,this.#Et(e)??`layout`),this.#jt()}#Et(e){return ge(F(e),this.#Dt(e))}#Dt(e){return this.#y?(this.#ft??=ye(this.#y),this.#ft.get(e)??null):null}#Ot(){let e=this.#y;if(e){for(let[e,t]of this.#dt){if(t!==`paint`)continue;let n=this.#Dt(e);n&&Object.assign(n.style,wn(getComputedStyle(e)))}this.#X=!this.#Ze(e)}}#kt=e=>{let t=e.propertyName;ru.test(t)&&(iu.test(t)?(this.#ct++,this.#Lt()):this.#st++,this.#ut=performance.now(),this.#jt())};#At=e=>{let t=e.propertyName;if(t===`display`||t===`overlay`){this.#Lt();return}ru.test(t)&&(iu.test(t)?this.#ct=Math.max(0,this.#ct-1):this.#st=Math.max(0,this.#st-1))};#jt(){if(this.#lt)return;this.#lt=!0;let e=()=>{for(let e of this.#dt.keys()){let t=this.#ht(e)?this.#Et(e):null;t?this.#dt.set(e,t):this.#dt.delete(e)}performance.now()-this.#ut>au&&(this.#st=0,this.#ct=0);let t=new Set(this.#dt.values()),n=this.#st>0||xe()||t.has(`layout`);if(!this.isConnected||!n&&this.#ct===0&&this.#dt.size===0){this.#lt=!1,this.#Lt();return}n?this.#It():t.has(`paint`)?this.#Ot():kc(this.#u),requestAnimationFrame(e)};requestAnimationFrame(e)}#Mt=e=>{if(!Su(e)){if(e.type===`keydown`||e.type===`keyup`){let{key:t,target:n}=e,r=n instanceof Element&&n.hasAttribute(`data-mw-scroll`);if(t!==`Enter`&&(t!==` `||r))return}if((e.type===`focusin`||e.type===`focusout`)&&e.target instanceof HTMLSelectElement){this.#It();return}this.#Lt()}};attributeChangedCallback(e,t,n){if(e===`focus`){n!==`tab`&&n!==`arrows`&&(n!==null&&console.warn(`[monowind] Ignoring unrecognized focus="${n}". Expected "tab" (default) or "arrows".`,ie(this)),this.setAttribute(`focus`,Yl));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,ie(this)),this.setAttribute(`select`,Jl);return}e===`select`&&this.#at(),this.#Lt()}toPlainText(){return this.#_&&this.#Rt(),this.#y?Jo(this.#y):``}#Nt=()=>{this.#Lt()};#Pt=()=>{requestAnimationFrame(()=>{this.#L.invalidate(),this.#Lt()})};#Ft(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#It(){try{this.#Rt()}catch(e){console.error(`[monowind] layout failed:`,e)}}#Lt(){this.#_||this.#c||(this.#_=!0,requestAnimationFrame(()=>{if(this.#_=!1,this.#Ft()){this.#Lt();return}this.#It()}))}#Rt(){if(!this.isConnected)return;let e=this.#oe();this.#yt();let t=new Map,n=getComputedStyle(this);this.#St(n);let r=n.getPropertyValue(`--mw-cw`).trim(),i=parseFloat(r);if(Number.isFinite(i)&&i>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(r/i)))}this.setAttribute(`measuring`,``);let a=this.querySelectorAll(`*`);for(let e of a)e.setAttribute(`data-mw-measuring`,``);try{this.#d.parentNode!==this&&this.appendChild(this.#d);let n=rt(this,this.#d),r=this.#v;if(r===null||r.width!==n.width||r.height!==n.height||r.letterSpacing!==n.letterSpacing||r.gridLetterSpacing!==n.gridLetterSpacing||r.inkOverhang!==n.inkOverhang||r.backgroundGap!==n.backgroundGap){this.style.setProperty(`--mw-cw`,`${n.width}px`),this.style.setProperty(`--mw-ch`,`${n.height}px`),this.style.setProperty(`--mw-rls`,`${n.letterSpacing}px`),this.style.setProperty(`--mw-ink`,`${n.inkOverhang??0}px`);let e=Math.ceil((n.backgroundGap??0)/2);this.style.setProperty(`--mw-bgpad`,`${e}px`),this.toggleAttribute(`data-mw-bgpad`,e>0),this.style.setProperty(`--mw-base`,`${n.baseline??0}px`);for(let e of[this.#l,this.#u])e.style.lineHeight=`${n.height}px`,e.style.letterSpacing=`${n.gridLetterSpacing??n.letterSpacing}px`}this.#v=n;let i=getComputedStyle(this.#l);this.#L.configure({style:i.fontStyle,weight:i.fontWeight,size:i.fontSize,family:i.fontFamily},{width:n.width,height:n.height,letterSpacing:n.gridLetterSpacing??n.letterSpacing,...n.baseline===void 0?{}:{baseline:n.baseline}});let a=getComputedStyle(this),o=(parseFloat(a.paddingLeft)||0)+(parseFloat(a.paddingRight)||0),s=Math.max(0,Math.floor((this.clientWidth-o)/n.width));if(s===0)return;this.#_t=this.#Ct(n,this.#l.getBoundingClientRect());let c=it(),l=Sl(this,c,n,t)??this.#De(c,n,t);this.#_t&&(l.visibleCells=this.#_t);let{height:u}=fo(l,s,t=>{this.#C=Du(t),this.#re(n,e)});this.#gt.assign(l),this.#vt=l.topLayer?.some(e=>!e.node.style.positionArea)??!1,Zc(l),this.#w=dl(l),pl(this.#w),il(this.#w),this.#X=!this.#Ze(l,!1),this.#y=l,this.#ft=null;let d=`${l.localRect.width*n.width}px`,f=`${l.localRect.height*n.height}px`;this.#l.style.width!==d&&(this.#l.style.width=d),this.#l.style.height!==f&&(this.#l.style.height=f);let p=a.boxSizing===`border-box`?(parseFloat(a.paddingTop)||0)+(parseFloat(a.paddingBottom)||0)+(parseFloat(a.borderTopWidth)||0)+(parseFloat(a.borderBottomWidth)||0):0,m=`${u*n.height+p}px`;this.style.height!==m&&(this.style.height=m);let h=a.boxSizing===`border-box`?o+(parseFloat(a.borderLeftWidth)||0)+(parseFloat(a.borderRightWidth)||0):0,g=`${s*n.width+h}px`;this.style.getPropertyValue(`--mw-host-w`)!==g&&this.style.setProperty(`--mw-host-w`,g),this.hasAttribute(`data-mw-ready`)||this.setAttribute(`data-mw-ready`,``)}finally{this.setAttribute(`settling`,``),this.removeAttribute(`measuring`);for(let e of a)e.setAttribute(`data-mw-settling`,``),e.removeAttribute(`data-mw-measuring`);getComputedStyle(this).transitionProperty,this.removeAttribute(`settling`);for(let e of a)e.removeAttribute(`data-mw-settling`);kc(this.#u),this.#se(e),this.#g?.takeRecords();for(let e of I(this))this.#dt.has(e)||this.#Tt(e);B(this)&&(xe()?(this.#ut=performance.now(),this.#jt()):this.#Lt()),this.#he(),this.#ee=null,this.#wt(),this.#ie(),this.#Z&&this.#at()}}};function yu(){typeof customElements<`u`&&(customElements.get(`mono-wind`)||customElements.define(`mono-wind`,vu))}function bu(e,t,n,r,i){return xu(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function xu(e,t,n,r,i){if(r>0&&e>0&&e>=t-1)return r;let a=e/n-i,o=Math.abs(a)<=.5?i:i+Math.sign(a)*Math.round(Math.abs(a));return Math.min(Math.max(0,o),r)}function Su(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function Cu(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function wu(e){return{start:e,end:e}}function Tu(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function Eu(e,t){return e.start.node===t.start.node&&e.start.offset===t.start.offset&&e.end.node===t.end.node&&e.end.offset===t.end.offset}function Du(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var Ou=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
|
|
1044
1061
|
* and grid gaps, engine-painted as glyph runs. The utilities set the
|
|
1045
1062
|
* real CSS properties (forward-compat; unknown ones drop harmlessly)
|
|
1046
1063
|
* AND the --mw-* mirrors the engine reads — compiled by the consumer's
|
|
@@ -1268,7 +1285,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1268
1285
|
inherits: false;
|
|
1269
1286
|
initial-value: 0;
|
|
1270
1287
|
}
|
|
1271
|
-
`,
|
|
1288
|
+
`,ku=`
|
|
1272
1289
|
@layer theme, base;
|
|
1273
1290
|
|
|
1274
1291
|
/* monowind companion stylesheet — loaded into the light DOM by the app.
|
|
@@ -1529,10 +1546,16 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1529
1546
|
* peer-* compose from them automatically. A consumer redefining a
|
|
1530
1547
|
* variant later wins (last definition counts) — their selector must
|
|
1531
1548
|
* include the data attribute to keep grid-mode states. The block form
|
|
1532
|
-
* preserves Tailwind's own (hover: hover) gate for hover.
|
|
1549
|
+
* preserves Tailwind's own (hover: hover) gate for hover.
|
|
1550
|
+
*
|
|
1551
|
+
* A covered element's own :hover is none of ours: the grid shows
|
|
1552
|
+
* another box on those cells, and the browser drops the hover with the
|
|
1553
|
+
* element's pointer events — WebKit a quarter second later, which the
|
|
1554
|
+
* :where() covers at once, costing no specificity so no utility
|
|
1555
|
+
* outranks another. */
|
|
1533
1556
|
@custom-variant hover {
|
|
1534
1557
|
@media (hover: hover) {
|
|
1535
|
-
&:is(:hover, [data-mw-hover]) {
|
|
1558
|
+
&:is(:hover:where(:not([data-mw-covered])), [data-mw-hover]) {
|
|
1536
1559
|
@slot;
|
|
1537
1560
|
}
|
|
1538
1561
|
}
|
|
@@ -1741,8 +1764,11 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1741
1764
|
/* select="grid": pointer events pass through the light DOM so a drag
|
|
1742
1765
|
* lands on the grid <pre>; the interactives opt back in for clicks,
|
|
1743
1766
|
* except during a grid drag, so the selection sweeps through their
|
|
1744
|
-
* cells
|
|
1745
|
-
*
|
|
1767
|
+
* cells, and except where the grid covers one (\`data-mw-covered\`,
|
|
1768
|
+
* element.ts): the box painted over it takes the pointer, hover and
|
|
1769
|
+
* cursor included (specs/cell-model.md "Pointer states"), its own
|
|
1770
|
+
* subtree with it. The list repeats the cursor rule's: these rules
|
|
1771
|
+
* must be important (a library writes inline pointer-events on its layers) and
|
|
1746
1772
|
* unlayered, out of the lock layer (an author's \`pointer-events-none!\`
|
|
1747
1773
|
* or \`pointer-events-auto!\` still wins), the cursor rule layered and
|
|
1748
1774
|
* plain (an author's cursor wins). interactive.test.ts holds the two
|
|
@@ -1782,7 +1808,7 @@ mono-wind[select="grid"]:not([data-mw-dragging])
|
|
|
1782
1808
|
[role="slider"],
|
|
1783
1809
|
[role="link"],
|
|
1784
1810
|
[role="combobox"]
|
|
1785
|
-
) {
|
|
1811
|
+
):not([data-mw-covered], [data-mw-covered] *) {
|
|
1786
1812
|
pointer-events: auto !important;
|
|
1787
1813
|
}
|
|
1788
1814
|
/* A modal dialog blocks the page, the grid included (specs/top-layer.md
|
|
@@ -1831,10 +1857,10 @@ mono-wind[select="grid"]:where(:not([data-mw-semantic-selection]))
|
|
|
1831
1857
|
* scrollbar — native bars hidden. Measuring-gated so the authored
|
|
1832
1858
|
* scrollbar-width/-color stay readable during the style pass. */
|
|
1833
1859
|
@layer theme {
|
|
1834
|
-
mono-wind:not([
|
|
1860
|
+
mono-wind [data-mw-scroll]:not([data-mw-measuring]) {
|
|
1835
1861
|
scrollbar-width: none !important;
|
|
1836
1862
|
}
|
|
1837
|
-
mono-wind:not([
|
|
1863
|
+
mono-wind [data-mw-scroll]:not([data-mw-measuring])::-webkit-scrollbar {
|
|
1838
1864
|
display: none !important;
|
|
1839
1865
|
}
|
|
1840
1866
|
}
|
|
@@ -1848,7 +1874,7 @@ mono-wind[select="grid"]:where(:not([data-mw-semantic-selection]))
|
|
|
1848
1874
|
* invisible scroll. Rounding can still put the ceiling a pixel either
|
|
1849
1875
|
* side of max, so the engine reads "at the ceiling" as "at max". An
|
|
1850
1876
|
* axis without range parks the spacer in the first cell (render.ts). */
|
|
1851
|
-
mono-wind:not([
|
|
1877
|
+
mono-wind [data-mw-scroll]:not([data-mw-measuring])::after {
|
|
1852
1878
|
content: "";
|
|
1853
1879
|
position: absolute;
|
|
1854
1880
|
pointer-events: none;
|
|
@@ -1893,8 +1919,10 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1893
1919
|
@media (forced-colors: none) {
|
|
1894
1920
|
@layer theme {
|
|
1895
1921
|
mono-wind:not([measuring])[data-mw-leaf]::selection,
|
|
1896
|
-
mono-wind
|
|
1897
|
-
:where(:not(input, textarea, select, [contenteditable], [contenteditable] *))
|
|
1922
|
+
mono-wind
|
|
1923
|
+
:where(:not(input, textarea, select, [contenteditable], [contenteditable] *)):not(
|
|
1924
|
+
[data-mw-measuring]
|
|
1925
|
+
)::selection {
|
|
1898
1926
|
color: transparent !important;
|
|
1899
1927
|
text-shadow: none !important;
|
|
1900
1928
|
background: transparent !important;
|
|
@@ -1905,8 +1933,10 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1905
1933
|
* transparent, from the rule above): its own rule swaps its colors as
|
|
1906
1934
|
* the grid swaps a selected cell's, from the ink and ground the engine
|
|
1907
1935
|
* measured and wrote on it (render.ts). */
|
|
1908
|
-
mono-wind
|
|
1909
|
-
:where(input, textarea, select, [contenteditable], [contenteditable] *)
|
|
1936
|
+
mono-wind
|
|
1937
|
+
:where(input, textarea, select, [contenteditable], [contenteditable] *):not(
|
|
1938
|
+
[data-mw-measuring]
|
|
1939
|
+
)::selection {
|
|
1910
1940
|
color: var(--mw-ground, var(--mw-bg, canvas));
|
|
1911
1941
|
background: var(--mw-ink, var(--mw-fg, canvastext));
|
|
1912
1942
|
}
|
|
@@ -1914,6 +1944,14 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1914
1944
|
|
|
1915
1945
|
/* === Typography locks and measuring gates ============================ */
|
|
1916
1946
|
|
|
1947
|
+
/* A gate on a light element is the element's own flag — \`data-mw-measuring\`,
|
|
1948
|
+
* then \`data-mw-settling\`, which the layout sets on every light element
|
|
1949
|
+
* as it sets the host's \`measuring\` and \`settling\` — never the host's
|
|
1950
|
+
* attribute read through a descendant combinator: that would make each
|
|
1951
|
+
* flip of the host's attribute invalidate its whole subtree, the shadow
|
|
1952
|
+
* grid's every span walked four times a layout. The host's attributes
|
|
1953
|
+
* gate the host's own rules alone. An element inserted since the last
|
|
1954
|
+
* layout has no flag, and so takes the locks until its first. */
|
|
1917
1955
|
@layer theme {
|
|
1918
1956
|
/* Lock the font on descendants so the grid metrics stay consistent —
|
|
1919
1957
|
* \`!important\` because user classes (\`.text-2xl\` etc.) would otherwise beat
|
|
@@ -1941,9 +1979,9 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1941
1979
|
* respected — background fades, which can never run natively, are
|
|
1942
1980
|
* synthesized by the engine instead. */
|
|
1943
1981
|
mono-wind[measuring],
|
|
1944
|
-
mono-wind[measuring]
|
|
1982
|
+
mono-wind [data-mw-measuring],
|
|
1945
1983
|
mono-wind[settling],
|
|
1946
|
-
mono-wind[settling]
|
|
1984
|
+
mono-wind [data-mw-settling] {
|
|
1947
1985
|
transition-property:
|
|
1948
1986
|
color, border-color, opacity, transform, translate, rotate, scale, filter !important;
|
|
1949
1987
|
}
|
|
@@ -1953,7 +1991,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1953
1991
|
* no position-try fallback of its own (from its pixel geometry, not the
|
|
1954
1992
|
* cells') and \`position-area\` reads as authored
|
|
1955
1993
|
* (specs/anchor-positioning.md). */
|
|
1956
|
-
mono-wind[measuring]
|
|
1994
|
+
mono-wind [data-mw-measuring] {
|
|
1957
1995
|
anchor-scope: all !important;
|
|
1958
1996
|
}
|
|
1959
1997
|
|
|
@@ -1961,8 +1999,8 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1961
1999
|
* (specs/top-layer.md): on them, and them alone, the mask keeps
|
|
1962
2000
|
* display and overlay alive across the passes — no lock toggles either
|
|
1963
2001
|
* there, while the grid-template read assist below toggles display. */
|
|
1964
|
-
mono-wind
|
|
1965
|
-
mono-wind
|
|
2002
|
+
mono-wind :is([popover], dialog)[data-mw-measuring],
|
|
2003
|
+
mono-wind :is([popover], dialog)[data-mw-settling] {
|
|
1966
2004
|
transition-property:
|
|
1967
2005
|
color, border-color, opacity, transform, translate, rotate, scale, filter, display, overlay !important;
|
|
1968
2006
|
}
|
|
@@ -1974,13 +2012,13 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1974
2012
|
* attribute for the duration of the read; blockifying the element makes
|
|
1975
2013
|
* getComputedStyle return the COMPUTED value, structure intact.
|
|
1976
2014
|
* \`!important\` so inline \`style="display: grid"\` can't defeat the read. */
|
|
1977
|
-
mono-wind
|
|
2015
|
+
mono-wind [data-mw-degrid][data-mw-measuring] {
|
|
1978
2016
|
display: block !important;
|
|
1979
2017
|
}
|
|
1980
2018
|
|
|
1981
2019
|
/* Grid-quantized typography and the wrap model (specs/cell-model.md). Gated
|
|
1982
|
-
* on
|
|
1983
|
-
* AUTHORED white-space / letter-spacing / line-height — that's how nowrap,
|
|
2020
|
+
* on the measuring flag (unlike the font lock above) so the style reader
|
|
2021
|
+
* sees the AUTHORED white-space / letter-spacing / line-height — that's how nowrap,
|
|
1984
2022
|
* tracking, and leading are detected without echoing our own output.
|
|
1985
2023
|
*
|
|
1986
2024
|
* letter-spacing: the root's own (\`--mw-rls\`, part of the cell) plus
|
|
@@ -1990,7 +2028,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
1990
2028
|
* the parent's grid-exact value. line-height is inherited from the
|
|
1991
2029
|
* laid-out ancestor (which sets the row multiple below) — \`leading-*\` on
|
|
1992
2030
|
* inline elements is ignored by design. */
|
|
1993
|
-
mono-wind:not([measuring])
|
|
2031
|
+
mono-wind :not([data-mw-measuring]) {
|
|
1994
2032
|
/* Baseline-shift lock (cell-model): gated like the rest, so the style
|
|
1995
2033
|
* reader sees the authored/UA vertical-align (table cells read it). */
|
|
1996
2034
|
vertical-align: baseline !important;
|
|
@@ -2025,8 +2063,8 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2025
2063
|
|
|
2026
2064
|
/* A top-layer element's backdrop is a box of the grid's beneath its
|
|
2027
2065
|
* own (specs/top-layer.md), read during [measuring] like backgrounds. */
|
|
2028
|
-
mono-wind:not([measuring])
|
|
2029
|
-
mono-wind:not([measuring])
|
|
2066
|
+
mono-wind [popover]:not([data-mw-measuring])::backdrop,
|
|
2067
|
+
mono-wind dialog:not([data-mw-measuring])::backdrop {
|
|
2030
2068
|
background: transparent !important;
|
|
2031
2069
|
backdrop-filter: none !important;
|
|
2032
2070
|
}
|
|
@@ -2045,7 +2083,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2045
2083
|
* rule that shapes a leaf's native text carries this host variant —
|
|
2046
2084
|
* render.ts writes the host's flags. */
|
|
2047
2085
|
mono-wind:not([measuring])[data-mw-leaf],
|
|
2048
|
-
mono-wind:not(
|
|
2086
|
+
mono-wind :not(input):not(textarea):not(select):not([data-mw-measuring]) {
|
|
2049
2087
|
-webkit-text-fill-color: transparent !important;
|
|
2050
2088
|
text-decoration-color: transparent !important;
|
|
2051
2089
|
}
|
|
@@ -2054,9 +2092,9 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2054
2092
|
* exclusion above: text-fill-color inherits and has no UA default on
|
|
2055
2093
|
* controls (unlike \`color\`), so without this reset an input under any
|
|
2056
2094
|
* locked ancestor would inherit transparent ink. */
|
|
2057
|
-
mono-wind:not([measuring])
|
|
2058
|
-
mono-wind:not([measuring])
|
|
2059
|
-
mono-wind:not([measuring])
|
|
2095
|
+
mono-wind input:not([data-mw-measuring]),
|
|
2096
|
+
mono-wind textarea:not([data-mw-measuring]),
|
|
2097
|
+
mono-wind select:not([data-mw-measuring]) {
|
|
2060
2098
|
-webkit-text-fill-color: currentColor !important;
|
|
2061
2099
|
}
|
|
2062
2100
|
|
|
@@ -2064,7 +2102,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2064
2102
|
* box for unwrapped hard lines, so the browser must not wrap either. Wins
|
|
2065
2103
|
* over the lock above on specificity. */
|
|
2066
2104
|
mono-wind:not([measuring])[data-mw-nowrap],
|
|
2067
|
-
mono-wind:not([
|
|
2105
|
+
mono-wind [data-mw-nowrap]:not([data-mw-measuring]) {
|
|
2068
2106
|
white-space: nowrap !important;
|
|
2069
2107
|
}
|
|
2070
2108
|
|
|
@@ -2074,24 +2112,28 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2074
2112
|
* collapse text inside nested spans). Later than the nowrap rule, so it
|
|
2075
2113
|
* wins on the leaf itself at equal specificity. */
|
|
2076
2114
|
mono-wind:not([measuring])[data-mw-pre],
|
|
2077
|
-
mono-wind:not([
|
|
2078
|
-
mono-wind:not([
|
|
2079
|
-
mono-wind
|
|
2115
|
+
mono-wind[data-mw-pre] :not([data-mw-measuring]),
|
|
2116
|
+
mono-wind [data-mw-pre]:not([data-mw-measuring]),
|
|
2117
|
+
mono-wind [data-mw-pre] *:not([data-mw-measuring]) {
|
|
2080
2118
|
white-space: pre !important;
|
|
2081
2119
|
}
|
|
2082
2120
|
|
|
2083
|
-
/* Truncation (\`truncate\` = nowrap + clip + text-overflow: ellipsis)
|
|
2084
|
-
* \`hidden\` rather than the normalized \`clip
|
|
2085
|
-
*
|
|
2086
|
-
*
|
|
2087
|
-
|
|
2121
|
+
/* Truncation (\`truncate\` = nowrap + clip + text-overflow: ellipsis)
|
|
2122
|
+
* keeps \`hidden\` rather than the normalized \`clip\`: a clip box is no
|
|
2123
|
+
* scroll container, so focus can never reveal what the ellipsis hides
|
|
2124
|
+
* — a link past the cut stays off screen for a keyboard (measured:
|
|
2125
|
+
* Chromium and Firefox scroll it into view under \`hidden\`, neither
|
|
2126
|
+
* does under \`clip\`; WebKit reveals it under neither). \`text-overflow\`
|
|
2127
|
+
* itself works the same either way in all three. Wins over the
|
|
2128
|
+
* \`[data-mw-clip]\` rule below on specificity. */
|
|
2129
|
+
mono-wind [data-mw-nowrap][data-mw-clip]:not([data-mw-measuring]) {
|
|
2088
2130
|
overflow: hidden !important;
|
|
2089
2131
|
}
|
|
2090
2132
|
|
|
2091
2133
|
/* === Engine-owned geometry =========================================== */
|
|
2092
2134
|
|
|
2093
2135
|
/* Every CSS property the engine has taken over on laid-out elements.
|
|
2094
|
-
* Gated on the
|
|
2136
|
+
* Gated on the measuring flag so the style reader still sees the
|
|
2095
2137
|
* authored values during its read pass. In the lock layer (the file's
|
|
2096
2138
|
* header) the \`!important\` beats every utility, \`!\` modifier included,
|
|
2097
2139
|
* inline \`style=""\` attributes (hand-written or CSS-in-JS), and
|
|
@@ -2110,7 +2152,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2110
2152
|
*
|
|
2111
2153
|
* Left alone: flex/grid/gap/justify/align — laid-out children are all
|
|
2112
2154
|
* position:absolute (out of flow), so nothing consumes them anyway. */
|
|
2113
|
-
mono-wind
|
|
2155
|
+
mono-wind [data-mw-laid-out]:not([data-mw-measuring]) {
|
|
2114
2156
|
position: absolute !important;
|
|
2115
2157
|
/* An anchored box is the engine's to place (specs/anchor-positioning.md):
|
|
2116
2158
|
* the browser's own anchored placement stays off. */
|
|
@@ -2143,7 +2185,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2143
2185
|
/* A top-layer element's box is the viewport's (specs/top-layer.md):
|
|
2144
2186
|
* its cells count from the grid's client origin, a \`:host\` rule of the
|
|
2145
2187
|
* shadow's in px, kept current through page scrolls. */
|
|
2146
|
-
mono-wind
|
|
2188
|
+
mono-wind [data-mw-laid-out][data-mw-top]:not([data-mw-measuring]) {
|
|
2147
2189
|
position: fixed !important;
|
|
2148
2190
|
left: calc(
|
|
2149
2191
|
var(--mw-ox, 0px) + (var(--mw-x, 0) + var(--mw-sx, 0)) * var(--mw-cw, 1px)
|
|
@@ -2156,11 +2198,11 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2156
2198
|
/* Shared cell geometry for engine-sized boxes — engine-POSITIONED
|
|
2157
2199
|
* elements, in-flow atomic inline boxes, and in-flow multicol spanners
|
|
2158
2200
|
* (below). */
|
|
2159
|
-
mono-wind
|
|
2160
|
-
mono-wind
|
|
2161
|
-
mono-wind
|
|
2162
|
-
mono-wind:not([
|
|
2163
|
-
mono-wind:not([
|
|
2201
|
+
mono-wind [data-mw-laid-out]:not([data-mw-measuring]),
|
|
2202
|
+
mono-wind [data-mw-inline-box]:not([data-mw-measuring]),
|
|
2203
|
+
mono-wind [data-mw-multicol-flow-span]:not([data-mw-measuring]),
|
|
2204
|
+
mono-wind [data-mw-flow]:not([data-mw-measuring]),
|
|
2205
|
+
mono-wind [data-mw-float]:not([data-mw-measuring]) {
|
|
2164
2206
|
box-sizing: border-box !important;
|
|
2165
2207
|
/* A sticky shift (specs/sticky.md) belongs to the box the engine wrote
|
|
2166
2208
|
* it on: custom properties inherit, so every box resets them, plainly,
|
|
@@ -2222,7 +2264,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2222
2264
|
* children; \`vertical-align: top\` pins the box's top to its line's first
|
|
2223
2265
|
* row (the global baseline lock would hang an abspos-only box below the
|
|
2224
2266
|
* line) — a box taller than one row grows its line, per CSS. */
|
|
2225
|
-
mono-wind
|
|
2267
|
+
mono-wind [data-mw-inline-box]:not([data-mw-measuring]) {
|
|
2226
2268
|
position: relative !important;
|
|
2227
2269
|
/* A sticky inline box's shift for the scroll (specs/sticky.md; the
|
|
2228
2270
|
* vars are absent otherwise) and the same half-leading lift as
|
|
@@ -2238,7 +2280,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2238
2280
|
* in every engine (probed), so it passes through; the engine drops the
|
|
2239
2281
|
* line's text to the box's last row to match. baseline is off-grid and
|
|
2240
2282
|
* behaves as top (cell-model deviation). */
|
|
2241
|
-
mono-wind
|
|
2283
|
+
mono-wind [data-mw-inline-box][data-mw-vbottom]:not([data-mw-measuring]) {
|
|
2242
2284
|
vertical-align: bottom !important;
|
|
2243
2285
|
}
|
|
2244
2286
|
/* Authored \`vertical-align: middle\`: a whole-row baseline length the
|
|
@@ -2246,7 +2288,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2246
2288
|
* box's own baseline to its line's text row, plus the row's baseline
|
|
2247
2289
|
* for a box whose baseline is its bottom edge — so the line's text
|
|
2248
2290
|
* lands on the box's middle row in every engine (probed). */
|
|
2249
|
-
mono-wind
|
|
2291
|
+
mono-wind [data-mw-inline-box][data-mw-vmiddle]:not([data-mw-measuring]) {
|
|
2250
2292
|
vertical-align: calc(
|
|
2251
2293
|
var(--mw-va, 0) * var(--mw-ch, 1px) + var(--mw-vb, 0) * var(--mw-base, 0px)
|
|
2252
2294
|
) !important;
|
|
@@ -2260,7 +2302,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2260
2302
|
* initial value of 2 vetoes single-line column endings the engine's
|
|
2261
2303
|
* model allows (probed: Chromium then breaks [3, 2, 2] where the engine
|
|
2262
2304
|
* says [3, 3, 1]), so both reset to 1. */
|
|
2263
|
-
mono-wind:not([
|
|
2305
|
+
mono-wind [data-mw-multicol]:not([data-mw-measuring]) {
|
|
2264
2306
|
column-count: var(--mw-colc, 1) !important;
|
|
2265
2307
|
column-width: auto !important;
|
|
2266
2308
|
column-gap: calc(var(--mw-colg, 0) * var(--mw-cw, 1px)) !important;
|
|
@@ -2296,7 +2338,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2296
2338
|
* natural height is full line boxes, exactly what fragmentation counts;
|
|
2297
2339
|
* typography quantization and the color/background locks come from the
|
|
2298
2340
|
* universal rules, and line-height inherits from the container. */
|
|
2299
|
-
mono-wind
|
|
2341
|
+
mono-wind [data-mw-multicol-flow]:not([data-mw-measuring]) {
|
|
2300
2342
|
position: static !important;
|
|
2301
2343
|
display: block !important;
|
|
2302
2344
|
box-sizing: border-box !important;
|
|
@@ -2319,10 +2361,10 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2319
2361
|
* text drifts out from under the grid's paint. Rewrite it in cells so
|
|
2320
2362
|
* the two agree — selection ranges land exactly where the glyphs are. */
|
|
2321
2363
|
mono-wind:not([measuring])[data-mw-leaf],
|
|
2322
|
-
mono-wind
|
|
2323
|
-
mono-wind
|
|
2324
|
-
mono-wind:not([
|
|
2325
|
-
mono-wind:not([
|
|
2364
|
+
mono-wind [data-mw-laid-out]:not([data-mw-measuring]),
|
|
2365
|
+
mono-wind [data-mw-multicol-flow]:not([data-mw-measuring]),
|
|
2366
|
+
mono-wind [data-mw-flow]:not([data-mw-measuring]),
|
|
2367
|
+
mono-wind [data-mw-float]:not([data-mw-measuring]) {
|
|
2326
2368
|
text-indent: calc(var(--mw-ti, 0) * var(--mw-cw, 1px)) !important;
|
|
2327
2369
|
}
|
|
2328
2370
|
|
|
@@ -2334,9 +2376,9 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2334
2376
|
* fragment around. \`relative\` makes them the containing block for
|
|
2335
2377
|
* their absolutized descendants and carries the half-leading lift;
|
|
2336
2378
|
* the engine owns every inset, so an authored one stays inert. */
|
|
2337
|
-
mono-wind:not([
|
|
2338
|
-
mono-wind:not([
|
|
2339
|
-
mono-wind
|
|
2379
|
+
mono-wind [data-mw-flow]:not([data-mw-measuring]),
|
|
2380
|
+
mono-wind [data-mw-float]:not([data-mw-measuring]),
|
|
2381
|
+
mono-wind [data-mw-multicol-flow-span]:not([data-mw-measuring]) {
|
|
2340
2382
|
position: relative !important;
|
|
2341
2383
|
top: calc(var(--mw-lhs, 0) * var(--mw-ch, 1px)) !important;
|
|
2342
2384
|
right: auto !important;
|
|
@@ -2347,7 +2389,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2347
2389
|
margin-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
|
|
2348
2390
|
margin-left: calc(var(--mw-ml, 0) * var(--mw-cw, 1px)) !important;
|
|
2349
2391
|
}
|
|
2350
|
-
mono-wind
|
|
2392
|
+
mono-wind [data-mw-multicol-flow-span]:not([data-mw-measuring]) {
|
|
2351
2393
|
column-span: all !important;
|
|
2352
2394
|
}
|
|
2353
2395
|
/* A formatting-context root among flow children — a container, or a leaf
|
|
@@ -2355,7 +2397,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2355
2397
|
* inside it, where the engine put that child (the shadow slot does the
|
|
2356
2398
|
* same for the host's, element.ts), and it steps aside from a float
|
|
2357
2399
|
* rather than passing under (specs/float.md). */
|
|
2358
|
-
mono-wind
|
|
2400
|
+
mono-wind [data-mw-flow="box"]:not([data-mw-measuring]) {
|
|
2359
2401
|
contain: layout !important;
|
|
2360
2402
|
}
|
|
2361
2403
|
/* A float (specs/float.md): the browser floats the engine's box, and
|
|
@@ -2367,17 +2409,17 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2367
2409
|
* tracking allowance and, as a quarter pixel, the layout-unit headroom.
|
|
2368
2410
|
* A root or a later float that fits the engine's band exactly then
|
|
2369
2411
|
* fits natively too, and a line beside a float keeps its headroom. */
|
|
2370
|
-
mono-wind:not([
|
|
2371
|
-
mono-wind
|
|
2412
|
+
mono-wind [data-mw-float]:not([data-mw-measuring]),
|
|
2413
|
+
mono-wind [data-mw-flow="box"]:not([data-mw-measuring]) {
|
|
2372
2414
|
margin-right: calc(
|
|
2373
2415
|
(var(--mw-mr, 0) - max(0, var(--mw-ls, 0) - var(--mw-pr, 0) - var(--mw-br, 0))) *
|
|
2374
2416
|
var(--mw-cw, 1px) - 0.25px
|
|
2375
2417
|
) !important;
|
|
2376
2418
|
}
|
|
2377
|
-
mono-wind
|
|
2419
|
+
mono-wind [data-mw-float="left"]:not([data-mw-measuring]) {
|
|
2378
2420
|
float: left !important;
|
|
2379
2421
|
}
|
|
2380
|
-
mono-wind
|
|
2422
|
+
mono-wind [data-mw-float="right"]:not([data-mw-measuring]) {
|
|
2381
2423
|
float: right !important;
|
|
2382
2424
|
}
|
|
2383
2425
|
|
|
@@ -2385,7 +2427,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2385
2427
|
* (probed pixel-exact in all three engines under quantized inputs):
|
|
2386
2428
|
* \`column-fill: balance\` and the natural height replace the
|
|
2387
2429
|
* fill-to-computed-height reconstruction of the base multicol rule. */
|
|
2388
|
-
mono-wind
|
|
2430
|
+
mono-wind [data-mw-multicol][data-mw-multicol-balance]:not([data-mw-measuring]) {
|
|
2389
2431
|
column-fill: balance !important;
|
|
2390
2432
|
height: auto !important;
|
|
2391
2433
|
}
|
|
@@ -2401,7 +2443,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2401
2443
|
* look. WebKit slice-spills padding at breaks instead, and its gate
|
|
2402
2444
|
* (multicol.ts detectGluedPreBreak) keeps margined spanner containers
|
|
2403
2445
|
* on atomic distribution there. */
|
|
2404
|
-
mono-wind
|
|
2446
|
+
mono-wind [data-mw-multicol-balance] > [data-mw-multicol-flow]:not([data-mw-measuring]) {
|
|
2405
2447
|
margin-top: 0 !important;
|
|
2406
2448
|
margin-bottom: 0 !important;
|
|
2407
2449
|
padding-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
|
|
@@ -2420,10 +2462,10 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2420
2462
|
* \`--mw-it/ir/ib/il\` and this rule applies them on the grid. A side
|
|
2421
2463
|
* without its var is invalid at computed-value time and falls back to
|
|
2422
2464
|
* \`auto\` — so authored subsets work and the author's raw off-grid values
|
|
2423
|
-
* never apply. Gated on
|
|
2424
|
-
* values (no echo loop). Also pins \`position: relative\` — sticky behaves
|
|
2465
|
+
* never apply. Gated on the measuring flag so the style reader sees the
|
|
2466
|
+
* authored values (no echo loop). Also pins \`position: relative\` — sticky behaves
|
|
2425
2467
|
* as relative until the scrolling milestone. */
|
|
2426
|
-
mono-wind
|
|
2468
|
+
mono-wind [data-mw-inline-inset]:not([data-mw-measuring]) {
|
|
2427
2469
|
position: relative !important;
|
|
2428
2470
|
top: calc(var(--mw-it) * var(--mw-ch, 1px)) !important;
|
|
2429
2471
|
right: calc(var(--mw-ir) * var(--mw-cw, 1px)) !important;
|
|
@@ -2435,7 +2477,7 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2435
2477
|
|
|
2436
2478
|
/* Misparented table content (no anonymous boxes, specs/table.md) and
|
|
2437
2479
|
* <col>/<colgroup> boxes: fully hidden, subtree included. */
|
|
2438
|
-
mono-wind
|
|
2480
|
+
mono-wind [data-mw-table-hidden]:not([data-mw-measuring]) {
|
|
2439
2481
|
display: none !important;
|
|
2440
2482
|
}
|
|
2441
2483
|
|
|
@@ -2443,10 +2485,10 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2443
2485
|
* (stray text in a div-table, specs/table.md): the runs have no element
|
|
2444
2486
|
* to hide, so the container hides its text, and its laid-out children
|
|
2445
2487
|
* — the rows or cells — show through the inherited value. */
|
|
2446
|
-
mono-wind
|
|
2488
|
+
mono-wind [data-mw-hidden-runs]:not([data-mw-measuring]) {
|
|
2447
2489
|
visibility: hidden !important;
|
|
2448
2490
|
}
|
|
2449
|
-
mono-wind
|
|
2491
|
+
mono-wind [data-mw-hidden-runs] > [data-mw-laid-out]:not([data-mw-measuring]) {
|
|
2450
2492
|
visibility: visible !important;
|
|
2451
2493
|
}
|
|
2452
2494
|
|
|
@@ -2454,11 +2496,11 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2454
2496
|
* \`end\`/\`center\` all land on whole cells (offset = (W - N) × cell width);
|
|
2455
2497
|
* \`justify\` produces fractional per-line offsets we can't snap to the grid. */
|
|
2456
2498
|
mono-wind:not([measuring])[data-mw-text-align-blocked],
|
|
2457
|
-
mono-wind
|
|
2499
|
+
mono-wind [data-mw-text-align-blocked]:not([data-mw-measuring]) {
|
|
2458
2500
|
text-align: start !important;
|
|
2459
2501
|
}
|
|
2460
2502
|
}
|
|
2461
|
-
`,
|
|
2503
|
+
`,Au=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
|
|
2462
2504
|
* under select="grid" the light DOM is pointer-events: none, so
|
|
2463
2505
|
* :hover/:active never match — the engine hit-tests the pointer's
|
|
2464
2506
|
* cell and marks the chain with data-mw-hover / data-mw-active. These
|
|
@@ -2466,14 +2508,20 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
2466
2508
|
* peer-* compose from them automatically. A consumer redefining a
|
|
2467
2509
|
* variant later wins (last definition counts) — their selector must
|
|
2468
2510
|
* include the data attribute to keep grid-mode states. The block form
|
|
2469
|
-
* preserves Tailwind's own (hover: hover) gate for hover.
|
|
2511
|
+
* preserves Tailwind's own (hover: hover) gate for hover.
|
|
2512
|
+
*
|
|
2513
|
+
* A covered element's own :hover is none of ours: the grid shows
|
|
2514
|
+
* another box on those cells, and the browser drops the hover with the
|
|
2515
|
+
* element's pointer events — WebKit a quarter second later, which the
|
|
2516
|
+
* :where() covers at once, costing no specificity so no utility
|
|
2517
|
+
* outranks another. */
|
|
2470
2518
|
@custom-variant hover {
|
|
2471
2519
|
@media (hover: hover) {
|
|
2472
|
-
&:is(:hover, [data-mw-hover]) {
|
|
2520
|
+
&:is(:hover:where(:not([data-mw-covered])), [data-mw-hover]) {
|
|
2473
2521
|
@slot;
|
|
2474
2522
|
}
|
|
2475
2523
|
}
|
|
2476
2524
|
}
|
|
2477
2525
|
@custom-variant active (&:is(:active, [data-mw-active]));
|
|
2478
|
-
`,
|
|
2526
|
+
`,ju=document.createElement(`style`);ju.setAttribute(`data-monowind`,``),ju.textContent=ku,document.head.appendChild(ju);var Mu=document.createElement(`style`);Mu.setAttribute(`type`,`text/tailwindcss`),Mu.setAttribute(`data-monowind-rules`,``),Mu.textContent=`${Ou}\n${Au}`,document.head.appendChild(Mu),yu(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.3.1`,registerLeafRenderer:se,invalidateLeaves:ce,glyphSetFor:i}})})();
|
|
2479
2527
|
//# sourceMappingURL=cdn.js.map
|