monowind 0.2.12 → 0.2.13
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 +36 -6
- package/dist/borders.d.ts +22 -14
- package/dist/borders.d.ts.map +1 -1
- package/dist/cdn.js +41 -38
- package/dist/cdn.js.map +1 -1
- package/dist/color.d.ts +50 -0
- package/dist/color.d.ts.map +1 -0
- package/dist/element.d.ts.map +1 -1
- package/dist/flex.d.ts.map +1 -1
- package/dist/glyphs.d.ts +44 -11
- package/dist/glyphs.d.ts.map +1 -1
- package/dist/gradient.d.ts +19 -0
- package/dist/gradient.d.ts.map +1 -0
- package/dist/grid.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2414 -1627
- package/dist/index.js.map +1 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/multicol.d.ts.map +1 -1
- package/dist/paint.d.ts +1 -0
- package/dist/paint.d.ts.map +1 -1
- package/dist/plain-text.d.ts +15 -0
- package/dist/plain-text.d.ts.map +1 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/types.d.ts +84 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +3 -0
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=L(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 I(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}},ee=new Uint8Array(256);function k(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:ee[n]=41,n++;break;case 91:ee[n]=93,n++;break;case 123:ee[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===ee[n-1]&&n--}}return r.push(e.slice(i)),r}function A(e){return{kind:`word`,value:e}}function te(e,t){return{kind:`function`,value:e,nodes:t}}function ne(e){return{kind:`separator`,value:e}}function j(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+j(n.nodes)+`)`}return t}var re=92,ie=41,ae=58,oe=44,se=34,ce=61,le=62,ue=60,de=10,fe=40,pe=39,me=47,he=32,ge=9;function M(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=we(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=I(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 F(n.trim(),r.trim(),t)}function x(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return L(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}},ee=new Uint8Array(256);function k(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:ee[n]=41,n++;break;case 91:ee[n]=93,n++;break;case 123:ee[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===ee[n-1]&&n--}}return r.push(e.slice(i)),r}function te(e){return{kind:`word`,value:e}}function ne(e,t){return{kind:`function`,value:e,nodes:t}}function re(e){return{kind:`separator`,value:e}}function A(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+A(n.nodes)+`)`}return t}var ie=92,ae=41,oe=58,se=44,ce=34,le=61,ue=62,de=60,fe=10,pe=40,me=39,he=47,ge=32,_e=9;function j(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 re:i+=e[o]+e[o+1],o++;break;case me:{if(i.length>0){let e=A(i);r?r.nodes.push(e):t.push(e),i=``}let n=A(e[o]);r?r.nodes.push(n):t.push(n);break}case ae:case oe:case ce:case le:case ue:case de:case he:case ge:{if(i.length>0){let e=A(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===ae||a===oe||a===ce||a===le||a===ue||a===de||a===he||a===ge);s++);o=s-1;let c=ne(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case pe:case se:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===re)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case fe:{let e=te(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ie:{let e=n.pop();if(i.length>0){let t=A(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(A(i)),t}var _e=(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))(_e||{}),N={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 P(e,t){typeof t==`function`?ve(e,t):ve(e,t.enter,t.exit)}function ve(e,t=()=>N.Continue,n=()=>N.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)??N.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.${_e[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??N.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.${_e[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var ye=new O(e=>{let t=[];return P(M(e),e=>{if(e.kind===`function`&&e.value===`var`)return P(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),N.Skip}),t});function be(e){return ye.get(e)}var xe=64,Se=124;function F(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function I(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function L(e,t=[]){return e.charCodeAt(0)===xe?b(e,t):F(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 be(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of Pe(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 Pe(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=M(r.value),a=!1;if(P(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(P(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(`)?M(o)[0]:null}while(i);return N.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?N.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:j(i)},s=L(`@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=L(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=L(`*, ::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=I(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=L(`@layer properties`,[I(`@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;P(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;P(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=k(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(P(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)===Se?void 0:N.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 N.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Ae.has(e.name))return f(e),d.add(e),N.Skip;if(ke.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),N.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=L(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=I(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 ie:i+=e[o]+e[o+1],o++;break;case he:{if(i.length>0){let e=te(i);r?r.nodes.push(e):t.push(e),i=``}let n=te(e[o]);r?r.nodes.push(n):t.push(n);break}case oe:case se:case le:case ue:case de:case fe:case ge:case _e:{if(i.length>0){let e=te(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===oe||a===se||a===le||a===ue||a===de||a===fe||a===ge||a===_e);s++);o=s-1;let c=re(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case me:case ce:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===ie)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case pe:{let e=ne(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ae:{let e=n.pop();if(i.length>0){let t=te(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(te(i)),t}var ve=(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))(ve||{}),M={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 N(e,t){typeof t==`function`?ye(e,t):ye(e,t.enter,t.exit)}function ye(e,t=()=>M.Continue,n=()=>M.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)??M.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.${ve[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??M.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.${ve[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var be=new O(e=>{let t=[];return N(j(e),e=>{if(e.kind===`function`&&e.value===`var`)return N(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),M.Skip}),t});function xe(e){return be.get(e)}var Se=64,Ce=124;function P(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function F(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function I(e,t=[]){return e.charCodeAt(0)===Se?b(e,t):P(e,t)}function L(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function we(e){return{kind:`comment`,value:e}}function R(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 xe(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of Pe(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=L(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 Pe(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=j(r.value),a=!1;if(N(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(N(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(`)?j(o)[0]:null}while(i);return M.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?M.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:A(i)},s=I(`@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=I(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=I(`*, ::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=F(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=I(`@layer properties`,[F(`@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;N(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;N(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=k(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(N(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)===Ce?void 0:M.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 M.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Ae.has(e.name))return f(e),d.add(e),M.Skip;if(ke.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),M.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=I(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=F(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`:``};
|
|
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 P(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),N.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 Pe(e){return e.split(/[\s,]+/)}var Fe=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Ie(e){return e.indexOf(`(`)!==-1&&Fe.some(t=>e.includes(`${t}(`))}function Le(e){if(!Fe.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(Fe.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 Re(e){if(e.indexOf(`(`)===-1)return ze(e);let t=M(e);return Be(t),e=j(t),e=Le(e),e}function ze(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 Be(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ze(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ze(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=ze(t.nodes[e].value,!0);continue}Be([t.nodes[e]])}break}t.value=ze(t.value),Be(t.nodes);break;case`separator`:case`word`:t.value=ze(t.value);break;default:Ve(t)}}function Ve(e){throw Error(`Unexpected value: ${e}`)}var He=new Uint8Array(256);function Ue(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:He[t]=41,t++;break;case 91:He[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===He[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var We=58,Ge=45,Ke=97,qe=122,Je=/^[a-zA-Z0-9_.%-]+$/;function*Ye(e,t){let n=k(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]=k(r,`/`);if(c)return;let l=s===null?null:Xe(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==Ge&&!(t>=Ke&&t<=qe))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=Re(o.slice(n+1));if(!Ue(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=k(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!Ue(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Qe(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=Re(n.slice(e+1,-1));if(!Ue(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===We){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===Ge||n>=Ke&&n<=qe))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(!Je.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Xe(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=Re(e.slice(1,-1));return!Ue(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]!==`-`||!Ue(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Re(e)})):Je.test(e)?{kind:`named`,value:e}:null}function Ze(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=Re(e.slice(1,-1));if(!Ue(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]=k(e,`/`);if(i)return null;let a=Qe(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:Xe(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=Re(n.slice(1,-1));return!Ue(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=Re(n.slice(1,-1));return!Ue(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(!Je.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:Xe(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Qe(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 $e(e,t){let n=[];for(let e of t.variants)n.unshift(tt(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=ct(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}:${rt(n)}${a}`:r+=`-${i}${rt(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${rt(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=et(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function et(e){if(e===null)return``;let t=ct(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${rt(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function tt(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${rt(at(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=ct(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${rt(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=tt(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=et(e.modifier)),t}var nt=new O(e=>{let t=M(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return P(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:N.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&P(t,e=>{if(n.has(e))return n.delete(e),N.ReplaceSkip([])}),ot(t),j(t)});function rt(e){return nt.get(e)}var it=new O(e=>{let t=M(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`?j(t[2].nodes):e});function at(e){return it.get(e)}function ot(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ut(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ut(t.value);for(let e=0;e<t.nodes.length;e++)ot([t.nodes[e]]);break}t.value=ut(t.value),ot(t.nodes);break;case`separator`:t.value=ut(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=ut(t.value));break;default:lt(t)}}var st=new O(e=>{let t=M(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function ct(e){return st.get(e)}function lt(e){throw Error(`Unexpected value: ${e}`)}function ut(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function dt(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 ft=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,pt=new O(e=>{let t=ft.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]}),mt=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(`.`)),ht=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function gt(e){return e.charCodeAt(0)===35||ht.test(e)||mt.has(e.toLowerCase())}function _t(e){return mt.has(e.toLowerCase())}var vt={color:gt,length:Lt,percentage:Mt,ratio:Pt,number:At,integer:H,url:bt,position:Rt,"bg-size":zt,"line-width":xt,image:Ct,"family-name":Tt,"generic-name":wt,"absolute-size":Et,"relative-size":Dt,angle:Vt,vector:Ut};function B(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(vt[n]?.(e))return n;return null}var yt=/^url\(.*\)$/;function bt(e){return yt.test(e)}function xt(e){return k(e,` `).every(e=>Lt(e)||At(e)||e===`thin`||e===`medium`||e===`thick`)}var St=/^(?:element|image|cross-fade|image-set)\(/,V=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Ct(e){let t=0;for(let n of k(e,`,`))if(!n.startsWith(`var(`)){if(bt(n)){t+=1;continue}if(V.test(n)){t+=1;continue}if(St.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 k(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)||Ie(e)}var jt=RegExp(`^${Ot.source}%$`);function Mt(e){return jt.test(e)||Ie(e)}var Nt=RegExp(`^${Ot.source}\\s*/\\s*${Ot.source}$`);function Pt(e){return Nt.test(e)||Ie(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)||Ie(e)}function Rt(e){let t=0;for(let n of k(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 k(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=k(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 M(t(j([e])))}return k(e,`,`).map(e=>{e=e.trim();let r=M(e),i=null,a=0,o=0,s=!1;return P(r,e=>{switch(e.kind){case`word`:if(Jt.has(e.value.toLowerCase()))return N.Continue;if(Zt.test(e.value.toLowerCase()))return o++,N.Continue;if(e.value[0]===`#`||_t(e.value))return s=!0,N.ReplaceStop(n(e));i=e,a++;break;case`function`:return Xt.has(e.value.toLowerCase())?(s=!0,N.ReplaceStop(n(e))):Yt.has(e.value.toLowerCase())?(o++,N.Skip):(i=e,a++,N.Skip);case`separator`:return N.Continue}}),s?j(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&P(r,e=>e===i?(s=!0,N.ReplaceStop(n(e))):N.Skip),s?j(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 I(`@property`,e,[R(`syntax`,n?`"${n}"`:`"*"`),R(`inherits`,`false`),...t?[R(`initial-value`,t)]:[]])}function W(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 tn(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function G(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return W(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?W(e,r):Kt(t.value)?W(e,`${t.value}%`):null}function K(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?G(r,e.modifier,t):null}var nn=/(\d+)_(\d+)/g;function rn(e){let t=new en;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():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]=k(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?Le(`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=G(n,t.modifier,e)):n=K(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]=k(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)=>dt(e,t,`asc`));let n=[R(`--tw-sort`,`--tw-container-component`),R(`width`,`100%`)];for(let e of t)n.push(I(`@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]=k(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??B(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=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-x-reverse`,`0`)]),F(`: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=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-y-reverse`,`0`)]),F(`: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`)]),()=>F(`: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`)]),()=>F(`: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=>[F(`: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??B(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=G(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=K(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`)]),F(`: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`)]),F(`: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`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([U(`--tw-divide-y-reverse`,`0`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>F(`: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??B(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}`),L(`@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??B(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=G(n,t.modifier,e),n===null?void 0:[R(`background-color`,n)]}}{let n=K(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??B(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=G(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=K(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??B(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??B(n,[`length`,`percentage`,`color`])){case`color`:return n=G(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=K(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=B(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=G(t.value.value,t.modifier,e);return n===null?void 0:[R(`fill`,n)]}let n=K(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??B(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[R(`stroke-width`,n)];default:return n=G(t.value.value,t.modifier,e),n===null?void 0:[R(`stroke`,n)]}}{let n=K(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??B(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=>[F(`&::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??B(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[R(`text-decoration-thickness`,n)];default:return n=G(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=K(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),...ln(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,k(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[s(),R(`--tw-drop-shadow-color`,W(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),...ln(`--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),...ln(`--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),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,k(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}{let n=K(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`,W(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`),I(`@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??B(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=G(n,t.modifier,e),n===null?void 0:[R(`outline-color`,n)]}}{let n=K(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??B(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=G(n,t.modifier,e),n===null?void 0:[R(`color`,n)]}}{let n=K(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),...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??B(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[C(),R(`--tw-text-shadow-color`,W(r,`var(--tw-text-shadow-alpha)`))]):[C(),R(`--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(),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),...cn(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=K(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),R(`--tw-text-shadow-color`,W(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),...cn(`--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??B(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-shadow-color`,W(r,`var(--tw-shadow-alpha)`))]):[c(),R(`--tw-shadow-alpha`,n),...cn(`--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),...cn(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=K(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-shadow-color`,W(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),...cn(`--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??B(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-inset-shadow-color`,W(r,`var(--tw-inset-shadow-alpha)`))]):[c(),R(`--tw-inset-shadow-alpha`,n),...cn(`--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),...cn(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=K(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-inset-shadow-color`,W(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??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]:(n=G(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-color`,n)])}{let n=K(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??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-inset-ring-shadow`,a(n)),R(`box-shadow`,o)]:(n=G(n,t.modifier,e),n===null?void 0:[R(`--tw-inset-ring-color`,n)])}{let n=K(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??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[R(`--tw-ring-offset-width`,n),R(`--tw-ring-offset-shadow`,u)]:(n=G(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=K(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 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}};P(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=M(e.value);P(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return P(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 N.Stop}}),N.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=k(j(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=M(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: ${
|
|
14
|
-
`);let n=t.value,r=structuredClone(e);
|
|
15
|
-
`);console.warn(o)}}),e.value=j(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(P([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=M(e.value);if(P(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),N.ReplaceSkip(a.nodes)):(f=!0,N.Stop)}if(t.value===`--modifier`){c=!0;let e=sn(a,t,n);return e?(l=!0,N.ReplaceSkip(e.nodes)):(f=!0,N.Stop)}}}),f)return N.ReplaceSkip([]);e.value=j(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(nn,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:Sn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}: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:M(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:M(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:M(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=B(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=k(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]=k(t,`/`);return{nodes:M(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:M(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:M(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||B(e.value,[t])!==null)return{nodes:M(e.value)}}}}function cn(e,t,n,r,i=``){let a=!1,o=Qt(t,e=>n==null?r(e):e.startsWith(`current`)?r(W(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(tn(e,n))));function s(e){return i?k(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[R(e,s(Qt(t,r))),L(`@supports (color: lab(from red l a b))`,[R(e,s(o))])]:[R(e,s(o))]}function ln(e,t,n,r,i=``){let a=!1,o=k(t,`,`).map(e=>Qt(e,e=>n==null?r(e):e.startsWith(`current`)?r(W(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(tn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[R(e,i+k(t,`,`).map(e=>`drop-shadow(${Qt(e,r)})`).join(` `)),L(`@supports (color: lab(from red l a b))`,[R(e,i+o)])]:[R(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]=k(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 W(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=pt.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=M(a);return Nn(e,o),j(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 P(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=M(e);return P(r,e=>{if(e.kind===`function`&&e.value in wn){let r=k(j(e.nodes).trim(),`,`).map(e=>e.trim()),i=wn[e.value](n,t,...r);return N.Replace(M(i))}}),j(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){P(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;P(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&&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=>L(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=M(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),j(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),j(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`}),j(e)):`not ${t}`}{t=t.trim();let e=k(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=k(e.params,`,`);return n.length>1?null:(n=r(e.name,n),I(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${k(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(P([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return N.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 N.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,N.Stop;l.push(F(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,N.Stop;l.push(t)}return Object.assign(e,F(`&`,l)),n=!0,N.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(P([t],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,N.Stop;let n=e.selector.replaceAll(`&`,r);k(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(P([t],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,N.Stop;let n=e.selector.replaceAll(`&`,r);k(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([I(`@property`,`--tw-content`,[R(`syntax`,`"*"`),R(`initial-value`,`""`),R(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[F(`&::before`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[F(`&::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=[F(`&:hover`,[I(`@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(P([e],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,N.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(P([e],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,N.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=[F(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Rn(n)===null)return null;e.nodes=[F(`&${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=[F(`&${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=[F(`&: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=[F(`&: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=[F(`&: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=[F(`&: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=[I(`@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=[I(`@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:dt(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=[I(`@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=[I(`@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=[I(`@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=[I(`@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=[I(`@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=[I(`@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]=k(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){P(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return N.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,z([I(e.name,e.params,e.nodes)])),N.Skip})}function Kn(e,t){let n=0;return P(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=k(e.params,`,`);for(let[n,a]of i.entries()){let o=F(`&`,n===i.length-1?e.nodes:e.nodes.map(Te)),s=k(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,N.Replace(r)}),n}function qn(e,t){let n=rn(e),r=Un(e),i=new O(e=>Ze(e,u)),a=new O(e=>Array.from(Ye(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 be(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&&P(i,e=>(e.src??=t,N.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 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 $e(u,e)},printVariant(e){return tt(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?W(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=[L(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=I(`@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;P(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,N.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=G(n,e.modifier,t.theme)),n===null?[]:[[R(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=L(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);P([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return P(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),N.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),P(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`&&P(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 Me(e,t){let n=[];return N(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),M.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 Pe(e){return e.split(/[\s,]+/)}var Fe=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Ie(e){return e.indexOf(`(`)!==-1&&Fe.some(t=>e.includes(`${t}(`))}function Le(e){if(!Fe.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(Fe.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 Re(e){if(e.indexOf(`(`)===-1)return ze(e);let t=j(e);return Be(t),e=A(t),e=Le(e),e}function ze(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 Be(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ze(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ze(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=ze(t.nodes[e].value,!0);continue}Be([t.nodes[e]])}break}t.value=ze(t.value),Be(t.nodes);break;case`separator`:case`word`:t.value=ze(t.value);break;default:Ve(t)}}function Ve(e){throw Error(`Unexpected value: ${e}`)}var He=new Uint8Array(256);function Ue(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:He[t]=41,t++;break;case 91:He[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===He[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var We=58,Ge=45,Ke=97,qe=122,Je=/^[a-zA-Z0-9_.%-]+$/;function*Ye(e,t){let n=k(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]=k(r,`/`);if(c)return;let l=s===null?null:Xe(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==Ge&&!(t>=Ke&&t<=qe))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=Re(o.slice(n+1));if(!Ue(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=k(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!Ue(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Qe(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=Re(n.slice(e+1,-1));if(!Ue(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===We){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===Ge||n>=Ke&&n<=qe))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(!Je.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Xe(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=Re(e.slice(1,-1));return!Ue(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]!==`-`||!Ue(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Re(e)})):Je.test(e)?{kind:`named`,value:e}:null}function Ze(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=Re(e.slice(1,-1));if(!Ue(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]=k(e,`/`);if(i)return null;let a=Qe(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:Xe(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=Re(n.slice(1,-1));return!Ue(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=Re(n.slice(1,-1));return!Ue(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(!Je.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:Xe(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Qe(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 $e(e,t){let n=[];for(let e of t.variants)n.unshift(tt(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=ct(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}:${rt(n)}${a}`:r+=`-${i}${rt(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${rt(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=et(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function et(e){if(e===null)return``;let t=ct(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${rt(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function tt(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${rt(at(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=ct(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${rt(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=tt(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=et(e.modifier)),t}var nt=new O(e=>{let t=j(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return N(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:M.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&N(t,e=>{if(n.has(e))return n.delete(e),M.ReplaceSkip([])}),ot(t),A(t)});function rt(e){return nt.get(e)}var it=new O(e=>{let t=j(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`?A(t[2].nodes):e});function at(e){return it.get(e)}function ot(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ut(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ut(t.value);for(let e=0;e<t.nodes.length;e++)ot([t.nodes[e]]);break}t.value=ut(t.value),ot(t.nodes);break;case`separator`:t.value=ut(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=ut(t.value));break;default:lt(t)}}var st=new O(e=>{let t=j(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function ct(e){return st.get(e)}function lt(e){throw Error(`Unexpected value: ${e}`)}function ut(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function dt(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 ft=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,pt=new O(e=>{let t=ft.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]}),mt=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(`.`)),ht=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function gt(e){return e.charCodeAt(0)===35||ht.test(e)||mt.has(e.toLowerCase())}function _t(e){return mt.has(e.toLowerCase())}var vt={color:gt,length:Rt,percentage:Nt,ratio:Ft,number:jt,integer:V,url:bt,position:zt,"bg-size":Bt,"line-width":xt,image:wt,"family-name":Et,"generic-name":Tt,"absolute-size":Dt,"relative-size":Ot,angle:Ht,vector:Wt};function B(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(vt[n]?.(e))return n;return null}var yt=/^url\(.*\)$/;function bt(e){return yt.test(e)}function xt(e){return k(e,` `).every(e=>Rt(e)||jt(e)||e===`thin`||e===`medium`||e===`thick`)}var St=/^(?:element|image|cross-fade|image-set)\(/,Ct=/^(repeating-)?(conic|linear|radial)-gradient\(/;function wt(e){let t=0;for(let n of k(e,`,`))if(!n.startsWith(`var(`)){if(bt(n)){t+=1;continue}if(Ct.test(n)){t+=1;continue}if(St.test(n)){t+=1;continue}return!1}return t>0}function Tt(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 Et(e){let t=0;for(let n of k(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function Dt(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function Ot(e){return e===`larger`||e===`smaller`}var kt=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,At=RegExp(`^${kt.source}$`);function jt(e){return At.test(e)||Ie(e)}var Mt=RegExp(`^${kt.source}%$`);function Nt(e){return Mt.test(e)||Ie(e)}var Pt=RegExp(`^${kt.source}\\s*/\\s*${kt.source}$`);function Ft(e){return Pt.test(e)||Ie(e)}var It=RegExp(`^${kt.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(`|`)})$`),Lt=/^(--spacing)\(/i;function Rt(e){return It.test(e)||Lt.test(e)||Ie(e)}function zt(e){let t=0;for(let n of k(e,` `)){if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`){t+=1;continue}if(!n.startsWith(`var(`)){if(Rt(n)||Nt(n)){t+=1;continue}return!1}}return t>0}function Bt(e){let t=0;for(let n of k(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=k(n,` `);if(e.length!==1&&e.length!==2)return!1;if(e.every(e=>e===`auto`||Rt(e)||Nt(e))){t+=1;continue}}return t>0}var Vt=RegExp(`^${kt.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function Ht(e){return Vt.test(e)}var Ut=RegExp(`^${kt.source} +${kt.source} +${kt.source}$`);function Wt(e){return Ut.test(e)}function V(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Gt(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function Kt(e){return Jt(e,.25)}function qt(e){return Jt(e,.25)}function Jt(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}var Yt=new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),Xt=new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Zt=new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Qt=/^-?(\d+|\.\d+)(.*?)$/;function $t(e,t){function n(e){return j(t(A([e])))}return k(e,`,`).map(e=>{e=e.trim();let r=j(e),i=null,a=0,o=0,s=!1;return N(r,e=>{switch(e.kind){case`word`:if(Yt.has(e.value.toLowerCase()))return M.Continue;if(Qt.test(e.value.toLowerCase()))return o++,M.Continue;if(e.value[0]===`#`||_t(e.value))return s=!0,M.ReplaceStop(n(e));i=e,a++;break;case`function`:return Zt.has(e.value.toLowerCase())?(s=!0,M.ReplaceStop(n(e))):Xt.has(e.value.toLowerCase())?(o++,M.Skip):(i=e,a++,M.Skip);case`separator`:return M.Continue}}),s?A(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&N(r,e=>e===i?(s=!0,M.ReplaceStop(n(e))):M.Skip),s?A(r):e)}).join(`, `)}var en=`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(`,`),tn=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 H(e,t,n){return F(`@property`,e,[L(`syntax`,n?`"${n}"`:`"*"`),L(`inherits`,`false`),...t?[L(`initial-value`,t)]:[]])}function U(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 U(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?U(e,r):qt(t.value)?U(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 tn;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():L(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]=k(n.value.fraction,`/`);if(!V(e)||!V(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?Le(`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`])||!Kt(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?en:[],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=>[L(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--z-index`],handle:e=>[L(`z-index`,e)],staticValues:{auto:[L(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--order`],handle:e=>[L(`order`,e)],staticValues:{first:[L(`order`,`-9999`)],last:[L(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[L(`grid-column`,e)],staticValues:{auto:[L(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[L(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[L(`grid-column-start`,e)],staticValues:{auto:[L(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[L(`grid-column-end`,e)],staticValues:{auto:[L(`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})=>V(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[L(`grid-row`,e)],staticValues:{auto:[L(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[L(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[L(`grid-row-start`,e)],staticValues:{auto:[L(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[L(`grid-row-end`,e)],staticValues:{auto:[L(`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=>[L(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})=>V(e)?e:null,handle:e=>[L(`overflow`,`hidden`),L(`display`,`-webkit-box`),L(`-webkit-box-orient`,`vertical`),L(`-webkit-line-clamp`,e)],staticValues:{none:[L(`overflow`,`visible`),L(`display`,`block`),L(`-webkit-box-orient`,`horizontal`),L(`-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]=k(e,`/`);return!Kt(t)||!Kt(n)?null:e},handle:e=>[L(`aspect-ratio`,e)],staticValues:{auto:[L(`aspect-ratio`,`auto`)],square:[L(`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=>[L(`--tw-sort`,`size`),L(`width`,e),L(`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=>[L(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=>[L(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>dt(e,t,`asc`));let n=[L(`--tw-sort`,`--tw-container-component`),L(`width`,`100%`)];for(let e of t)n.push(F(`@media`,`(width >= ${e})`,[L(`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:[L(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=k(e.value.fraction,`/`);return!V(t)||!V(n)?void 0:[L(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(V(e.value.value))return e.modifier?void 0:[L(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`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=>[L(`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([H(`--tw-border-spacing-x`,`0`,`<length>`),H(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-x`,e),L(`--tw-border-spacing-y`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-x`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-y`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[L(`transform-origin`,e)],staticValues:{center:[L(`transform-origin`,`center`)],top:[L(`transform-origin`,`top`)],"top-right":[L(`transform-origin`,`100% 0`)],right:[L(`transform-origin`,`100%`)],"bottom-right":[L(`transform-origin`,`100% 100%`)],bottom:[L(`transform-origin`,`bottom`)],"bottom-left":[L(`transform-origin`,`0 100%`)],left:[L(`transform-origin`,`0`)],"top-left":[L(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[L(`perspective-origin`,e)],staticValues:{center:[L(`perspective-origin`,`center`)],top:[L(`perspective-origin`,`top`)],"top-right":[L(`perspective-origin`,`100% 0`)],right:[L(`perspective-origin`,`100%`)],"bottom-right":[L(`perspective-origin`,`100% 100%`)],bottom:[L(`perspective-origin`,`bottom`)],"bottom-left":[L(`perspective-origin`,`0 100%`)],left:[L(`perspective-origin`,`0`)],"top-left":[L(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[L(`perspective`,e)],staticValues:{none:[L(`perspective`,`none`)]}});let c=()=>z([H(`--tw-translate-x`,`0`),H(`--tw-translate-y`,`0`),H(`--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(),L(`--tw-translate-x`,e),L(`--tw-translate-y`,e),L(`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(),L(`--tw-translate-${e}`,t),L(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),L(`--tw-translate-z`,e),L(`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([H(`--tw-scale-x`,`1`),H(`--tw-scale-y`,`1`),H(`--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,[L(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&V(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),L(`--tw-scale-x`,r),L(`--tw-scale-y`,r),L(`--tw-scale-z`,r),L(`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})=>V(e)?`${e}%`:null,handle:t=>[l(),L(`--tw-scale-${e}`,t),L(`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??B(r,[`angle`,`vector`]);if(e===`vector`)return[L(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[L(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&V(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[L(`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([H(`--tw-rotate-x`),H(`--tw-rotate-y`),H(`--tw-rotate-z`),H(`--tw-skew-x`),H(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:n=>[a(),L(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),L(`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})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-x`,`skewX(${t})`),L(`--tw-skew-y`,`skewY(${t})`),L(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-x`,`skewX(${t})`),L(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-y`,`skewY(${t})`),L(`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(),L(`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})=>V(e)?`${e}%`:null,handle:e=>[L(`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=>[L(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>z([H(`--tw-pan-x`),H(`--tw-pan-y`),H(`--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([H(`--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=>[L(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=>[L(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[L(`list-style-type`,e)],staticValues:{none:[L(`list-style-type`,`none`)],disc:[L(`list-style-type`,`disc`)],decimal:[L(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[L(`list-style-image`,e)],staticValues:{none:[L(`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})=>V(e)?e:null,handle:e=>[L(`columns`,e)],staticValues:{auto:[L(`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`])||!Kt(t)?null:`--spacing(${t})`,handle:e=>[L(`grid-auto-columns`,e)],staticValues:{auto:[L(`grid-auto-columns`,`auto`)],min:[L(`grid-auto-columns`,`min-content`)],max:[L(`grid-auto-columns`,`max-content`)],fr:[L(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(${t})`,handle:e=>[L(`grid-auto-rows`,e)],staticValues:{auto:[L(`grid-auto-rows`,`auto`)],min:[L(`grid-auto-rows`,`min-content`)],max:[L(`grid-auto-rows`,`max-content`)],fr:[L(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>Gt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[L(`grid-template-columns`,e)],staticValues:{none:[L(`grid-template-columns`,`none`)],subgrid:[L(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>Gt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[L(`grid-template-rows`,e)],staticValues:{none:[L(`grid-template-rows`,`none`)],subgrid:[L(`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=>[L(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[L(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[L(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Rt(e))})();return[z([H(`--tw-space-x-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`row-gap`),L(`--tw-space-x-reverse`,`0`),L(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),L(`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=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Rt(e))})();return[z([H(`--tw-space-y-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`column-gap`),L(`--tw-space-y-reverse`,`0`),L(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),L(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>z([H(`--tw-space-x-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`row-gap`),L(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>z([H(`--tw-space-y-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`column-gap`),L(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[L(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[L(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-color`),L(`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([H(`--tw-scrollbar-thumb`,`#0000`,`<color>`),H(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),L(`--tw-scrollbar-thumb`,t),L(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),L(`--tw-scrollbar-track`,t),L(`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})=>V(e)?e:null,handle:e=>[L(`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=>L(t,e)),staticValues:{none:t.map(e=>L(e,`0`)),full:t.map(e=>L(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??B(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(V(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([H(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[L(`border-style`,`var(--tw-border-style)`),L(`border-width`,e)],color:e=>[L(`border-color`,e)]}),a(`border-x`,{width:e=>[L(`border-inline-style`,`var(--tw-border-style)`),L(`border-inline-width`,e)],color:e=>[L(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[L(`border-block-style`,`var(--tw-border-style)`),L(`border-block-width`,e)],color:e=>[L(`border-block-color`,e)]}),a(`border-s`,{width:e=>[L(`border-inline-start-style`,`var(--tw-border-style)`),L(`border-inline-start-width`,e)],color:e=>[L(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[L(`border-inline-end-style`,`var(--tw-border-style)`),L(`border-inline-end-width`,e)],color:e=>[L(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[L(`border-block-start-style`,`var(--tw-border-style)`),L(`border-block-start-width`,e)],color:e=>[L(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[L(`border-block-end-style`,`var(--tw-border-style)`),L(`border-block-end-width`,e)],color:e=>[L(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[L(`border-top-style`,`var(--tw-border-style)`),L(`border-top-width`,e)],color:e=>[L(`border-top-color`,e)]}),a(`border-r`,{width:e=>[L(`border-right-style`,`var(--tw-border-style)`),L(`border-right-width`,e)],color:e=>[L(`border-right-color`,e)]}),a(`border-b`,{width:e=>[L(`border-bottom-style`,`var(--tw-border-style)`),L(`border-bottom-width`,e)],color:e=>[L(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[L(`border-left-style`,`var(--tw-border-style)`),L(`border-left-width`,e)],color:e=>[L(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>V(e)?`${e}px`:null,handle:e=>[z([H(`--tw-divide-x-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-x-width`),o(),L(`--tw-divide-x-reverse`,`0`),L(`border-inline-style`,`var(--tw-border-style)`),L(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),L(`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})=>V(e)?`${e}px`:null,handle:e=>[z([H(`--tw-divide-y-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-y-width`),o(),L(`--tw-divide-y-reverse`,`0`),L(`border-bottom-style`,`var(--tw-border-style)`),L(`border-top-style`,`var(--tw-border-style)`),L(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),L(`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([H(`--tw-divide-x-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([H(`--tw-divide-y-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-style`),L(`--tw-border-style`,e),L(`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[L(`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[L(`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??B(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[L(`--tw-gradient-position`,e),L(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[L(`--tw-gradient-position`,e),L(`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(V(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[L(`--tw-gradient-position`,`${r}`),I(`@supports (background-image: linear-gradient(in lab, red, red))`,[L(`--tw-gradient-position`,`${r} ${i}`)]),L(`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[L(`--tw-gradient-position`,e),L(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[L(`--tw-gradient-position`,r),L(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(V(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[L(`--tw-gradient-position`,`from ${i} ${r}`),L(`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[L(`--tw-gradient-position`,e(t.modifier)),L(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[L(`--tw-gradient-position`,e),L(`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??B(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[L(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[L(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[L(`background-image`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`background-color`,n)]}}{let n=rn(t,e,[`--background-color`,`--color`]);if(n)return[L(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[L(`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([H(`--tw-gradient-position`),H(`--tw-gradient-from`,`#0000`,`<color>`),H(`--tw-gradient-via`,`#0000`,`<color>`),H(`--tw-gradient-to`,`#0000`,`<color>`),H(`--tw-gradient-stops`),H(`--tw-gradient-via-stops`),H(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),H(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),H(`--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??B(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]===`%`&&V(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(),L(`--tw-sort`,`--tw-gradient-from`),L(`--tw-gradient-from`,e),L(`--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(),L(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),L(`--tw-sort`,`--tw-gradient-via`),L(`--tw-gradient-via`,e),L(`--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)`),L(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),L(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),L(`--tw-sort`,`--tw-gradient-to`),L(`--tw-gradient-to`,e),L(`--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(),L(`--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??B(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[L(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[L(`mask-size`,t)];default:return[L(`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[L(`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[L(`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([H(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),H(`--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??B(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||!V(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=B(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!Kt(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return V(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`])?en:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>z([H(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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(L(`--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([H(`--tw-mask-${i}-from-position`,`0%`),H(`--tw-mask-${i}-to-position`,`100%`),H(`--tw-mask-${i}-from-color`,`black`),H(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(L(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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(L(`--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([H(`--tw-mask-${i}-from-position`,`0%`),H(`--tw-mask-${i}-to-position`,`100%`),H(`--tw-mask-${i}-from-color`,`black`),H(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(L(`--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([H(`--tw-mask-linear-position`,`0deg`),H(`--tw-mask-linear-from-position`,`0%`),H(`--tw-mask-linear-to-position`,`100%`),H(`--tw-mask-linear-from-color`,`black`),H(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),L(`--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(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-to-position`,e)]});let x=()=>z([H(`--tw-mask-radial-from-position`,`0%`),H(`--tw-mask-radial-to-position`,`100%`),H(`--tw-mask-radial-from-color`,`black`),H(`--tw-mask-radial-to-color`,`transparent`),H(`--tw-mask-radial-shape`,`ellipse`),H(`--tw-mask-radial-size`,`farthest-corner`),H(`--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=>[L(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),L(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-to-position`,e)]});let S=()=>z([H(`--tw-mask-conic-position`,`0deg`),H(`--tw-mask-conic-from-position`,`0%`),H(`--tw-mask-conic-to-position`,`100%`),H(`--tw-mask-conic-from-color`,`black`),H(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),L(`--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(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--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)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--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:[L(`fill`,n)]}let n=rn(t,e,[`--fill`,`--color`]);if(n)return[L(`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??B(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[L(`stroke-width`,n)];default:return n=W(t.value.value,t.modifier,e),n===null?void 0:[L(`stroke`,n)]}}{let n=rn(t,e,[`--stroke`,`--color`]);if(n)return[L(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[L(`stroke-width`,n)];if(V(t.value.value))return[L(`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=>[L(`object-position`,e)],staticValues:{top:[L(`object-position`,`top`)],"top-left":[L(`object-position`,`left top`)],"top-right":[L(`object-position`,`right top`)],bottom:[L(`object-position`,`bottom`)],"bottom-left":[L(`object-position`,`left bottom`)],"bottom-right":[L(`object-position`,`right bottom`)],left:[L(`object-position`,`left`)],right:[L(`object-position`,`right`)],center:[L(`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=>[L(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=>[L(`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=>[L(`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??B(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[L(`font-family`,e)];default:return[z([H(`--tw-font-weight`)]),L(`--tw-font-weight`,e),L(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[L(`font-family`,e),L(`font-feature-settings`,t[`--font-feature-settings`]),L(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[z([H(`--tw-font-weight`)]),L(`--tw-font-weight`,n),L(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[L(`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!V(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[L(`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=>[P(`&::placeholder`,[L(`--tw-sort`,`placeholder-color`),L(`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??B(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[L(`text-decoration-thickness`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[L(`text-decoration-thickness`,n)];if(V(t.value.value))return t.modifier?void 0:[L(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=rn(t,e,[`--text-decoration-color`,`--color`]);if(n)return[L(`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=>[L(`animation`,e)],staticValues:{none:[L(`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([H(`--tw-blur`),H(`--tw-brightness`),H(`--tw-contrast`),H(`--tw-grayscale`),H(`--tw-hue-rotate`),H(`--tw-invert`),H(`--tw-opacity`),H(`--tw-saturate`),H(`--tw-sepia`),H(`--tw-drop-shadow`),H(`--tw-drop-shadow-color`),H(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-drop-shadow-size`)]),c=()=>z([H(`--tw-backdrop-blur`),H(`--tw-backdrop-brightness`),H(`--tw-backdrop-contrast`),H(`--tw-backdrop-grayscale`),H(`--tw-backdrop-hue-rotate`),H(`--tw-backdrop-invert`),H(`--tw-backdrop-opacity`),H(`--tw-backdrop-saturate`),H(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),L(`filter`,a)];if(e.value.kind===`arbitrary`)return[L(`filter`,e.value.value)];if(e.value.value===`none`)return[L(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[L(`-webkit-backdrop-filter`,e.value.value),L(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[L(`-webkit-backdrop-filter`,`none`),L(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),L(`--tw-blur`,`blur(${e})`),L(`filter`,a)],staticValues:{none:[s(),L(`--tw-blur`,` `),L(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),L(`--tw-backdrop-blur`,`blur(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)],staticValues:{none:[c(),L(`--tw-backdrop-blur`,` `),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-brightness`,`brightness(${e})`),L(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-brightness`,`brightness(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-contrast`,`contrast(${e})`),L(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-contrast`,`contrast(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-grayscale`,`grayscale(${e})`),L(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-grayscale`,`grayscale(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}deg`:null,handle:e=>[s(),L(`--tw-hue-rotate`,`hue-rotate(${e})`),L(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:e=>[c(),L(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-invert`,`invert(${e})`),L(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-invert`,`invert(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-saturate`,`saturate(${e})`),L(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-saturate`,`saturate(${e})`),L(`-webkit-backdrop-filter`,o),L(`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})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-sepia`,`sepia(${e})`),L(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-sepia`,`sepia(${e})`),L(`-webkit-backdrop-filter`,o),L(`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:qt(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(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,k(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),L(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[s(),L(`--tw-drop-shadow-color`,U(r,`var(--tw-drop-shadow-alpha)`)),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),L(`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(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),L(`filter`,a)]:[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,k(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),L(`filter`,a)]}{let n=rn(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),L(`--tw-drop-shadow-color`,`inherit`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),L(`--tw-drop-shadow-color`,U(n,`var(--tw-drop-shadow-alpha)`)),L(`--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})=>qt(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-opacity`,`opacity(${e})`),L(`-webkit-backdrop-filter`,o),L(`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=>[L(`transition-property`,e),L(`transition-timing-function`,a),L(`transition-duration`,o)],staticValues:{none:[L(`transition-property`,`none`)],all:[L(`transition-property`,`all`),L(`transition-timing-function`,a),L(`transition-duration`,o)],colors:[L(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),L(`transition-timing-function`,a),L(`transition-duration`,o)],opacity:[L(`transition-property`,`opacity`),L(`transition-timing-function`,a),L(`transition-duration`,o)],shadow:[L(`transition-property`,`box-shadow`),L(`transition-timing-function`,a),L(`transition-duration`,o)],transform:[L(`transition-property`,`transform, translate, scale, rotate`),L(`transition-timing-function`,a),L(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>V(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[L(`transition-delay`,e)]});{let n=()=>z([H(`--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&&V(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),L(`--tw-duration`,r),L(`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([H(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),L(`--tw-ease`,t),L(`transition-timing-function`,t)],staticValues:{initial:[e(),L(`--tw-ease`,`initial`)],linear:[e(),L(`--tw-ease`,`linear`),L(`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=>[L(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[z([H(`--tw-content`,`""`)]),L(`--tw-content`,e),L(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>z([H(`--tw-contain-size`),H(`--tw-contain-layout`),H(`--tw-contain-paint`),H(`--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=>[L(`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([H(`--tw-leading`)]),L(`--tw-leading`,e),L(`line-height`,e)],{staticValues:{none:[z([H(`--tw-leading`)]),L(`--tw-leading`,`1`),L(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[z([H(`--tw-tracking`)]),L(`--tw-tracking`,e),L(`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([H(`--tw-ordinal`),H(`--tw-slashed-zero`),H(`--tw-numeric-figure`),H(`--tw-numeric-spacing`),H(`--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([H(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[L(`--tw-outline-style`,`none`),L(`outline-style`,`none`),F(`@media`,`(forced-colors: active)`,[L(`outline`,`2px solid transparent`),L(`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(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`outline-color`,n)]}}{let n=rn(t,e,[`--outline-color`,`--color`]);if(n)return[L(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)];if(V(t.value.value))return[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`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})=>V(e)?`${e}px`:null,handle:e=>[L(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>qt(e)?`${e}%`:null,handle:e=>[L(`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})=>V(e)?`${e}px`:null,handle:e=>[L(`text-underline-offset`,e)],staticValues:{auto:[L(`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??B(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&&Kt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[L(`font-size`,n),L(`line-height`,r)]:null}return[L(`font-size`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`color`,n)]}}{let n=rn(t,e,[`--text-color`,`--color`]);if(n)return[L(`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&&Kt(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=[L(`font-size`,r)];return n&&i.push(L(`line-height`,n)),i}return typeof i==`string`?[L(`font-size`,r),L(`line-height`,i)]:[L(`font-size`,r),L(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),L(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),L(`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([H(`--tw-text-shadow-color`),H(`--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:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),L(`--tw-text-shadow-alpha`,n),...ln(`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??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[C(),L(`--tw-text-shadow-color`,U(r,`var(--tw-text-shadow-alpha)`))]):[C(),L(`--tw-text-shadow-alpha`,n),...ln(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),L(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),L(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),L(`--tw-text-shadow-alpha`,n),...ln(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=rn(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),L(`--tw-text-shadow-color`,U(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([H(`--tw-shadow`,s),H(`--tw-shadow-color`),H(`--tw-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-inset-shadow`,s),H(`--tw-inset-shadow-color`),H(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-ring-color`),H(`--tw-ring-shadow`,s),H(`--tw-inset-ring-color`),H(`--tw-inset-ring-shadow`,s),H(`--tw-ring-inset`),H(`--tw-ring-offset-width`,`0px`,`<length>`),H(`--tw-ring-offset-color`,`#fff`),H(`--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:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),L(`--tw-shadow-color`,U(r,`var(--tw-shadow-alpha)`))]):[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),L(`--tw-shadow`,s),L(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),L(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),L(`--tw-shadow-color`,U(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:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),L(`--tw-inset-shadow-color`,U(r,`var(--tw-inset-shadow-alpha)`))]):[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),L(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),L(`--tw-inset-shadow`,`inset ${s}`),L(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),L(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),L(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),L(`--tw-inset-shadow-color`,U(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(),L(`--tw-ring-shadow`,i(n)),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),L(`--tw-ring-shadow`,i(n)),L(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-ring-color`,n)])}{let n=rn(t,e,[`--ring-color`,`--color`]);if(n)return[L(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&V(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),L(`--tw-ring-shadow`,i(n)),L(`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(),L(`--tw-inset-ring-shadow`,a(`1px`)),L(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),L(`--tw-inset-ring-shadow`,a(n)),L(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-inset-ring-color`,n)])}{let n=rn(t,e,[`--ring-color`,`--color`]);if(n)return[L(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&V(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),L(`--tw-inset-ring-shadow`,a(n)),L(`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??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[L(`--tw-ring-offset-width`,n),L(`--tw-ring-offset-shadow`,u)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[L(`--tw-ring-offset-width`,n),L(`--tw-ring-offset-shadow`,u)];if(V(t.value.value))return t.modifier?void 0:[L(`--tw-ring-offset-width`,`${t.value.value}px`),L(`--tw-ring-offset-shadow`,u)]}{let n=rn(t,e,[`--ring-offset-color`,`--color`]);if(n)return[L(`--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?[L(`container-type`,t),L(`container-name`,e.modifier.value)]:[L(`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 wn(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}};N(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=j(e.value);N(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return N(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 M.Stop}}),M.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=k(A(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=j(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: ${sn.map(e=>`"${e}"`).join(`, `)}.
|
|
14
|
+
`);let n=t.value,r=structuredClone(e);N(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return M.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(A([t]).length),a=A([r]).indexOf(`¶`),o=["```css",A([e]),` `.repeat(a)+i,"```"].join(`
|
|
15
|
+
`);console.warn(o)}}),e.value=A(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(N([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=j(e.value);if(N(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=G(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),M.ReplaceSkip(a.nodes)):(f=!0,M.Stop)}if(t.value===`--modifier`){c=!0;let e=G(a,t,n);return e?(l=!0,M.ReplaceSkip(e.nodes)):(f=!0,M.Stop)}}}),f)return M.ReplaceSkip([]);e.value=A(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(...en);else if(s)for(let e of en)V(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}]})}:Cn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}:null}function G(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:j(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:j(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:j(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=B(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=k(t,`/`).map(Number);if(!V(e)||!V(n))continue}else if(n===`number`&&!Kt(t)||n===`percentage`&&!V(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=k(t,`/`);return{nodes:j(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:j(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:j(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||B(e.value,[t])!==null)return{nodes:j(e.value)}}}}function ln(e,t,n,r,i=``){let a=!1,o=$t(t,e=>n==null?r(e):e.startsWith(`current`)?r(U(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))));function s(e){return i?k(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[L(e,s($t(t,r))),I(`@supports (color: lab(from red l a b))`,[L(e,s(o))])]:[L(e,s(o))]}function un(e,t,n,r,i=``){let a=!1,o=k(t,`,`).map(e=>$t(e,e=>n==null?r(e):e.startsWith(`current`)?r(U(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[L(e,i+k(t,`,`).map(e=>`drop-shadow(${$t(e,r)})`).join(` `)),I(`@supports (color: lab(from red l a b))`,[L(e,i+o)])]:[L(e,i+o)]}var dn=/^-?[a-z][a-zA-Z0-9_-]*/,fn=37,pn=47,mn=46,hn=97,gn=122,_n=65,vn=90,yn=48,bn=57,xn=95,Sn=45;function Cn(e){let t=dn.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 fn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<yn||t>bn)return!1;break}case pn:if(e===r.length-1||i)return!1;i=!0;break;case mn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<yn||t>bn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<yn||i>bn)return!1;break}case xn:case Sn:continue;default:if(t>=hn&&t<=gn||t>=_n&&t<=vn||t>=yn&&t<=bn)continue;return!1}}return!0}function wn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=dn.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var Tn={"--alpha":En,"--spacing":Dn,"--theme":On,theme:kn};function En(e,t,n,...r){let[i,a]=k(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 U(i,a)}function Dn(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=pt.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function On(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=j(a);return Pn(e,o),A(e)}return a}function kn(e,t,n,...r){n=Nn(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 An=new RegExp(Object.keys(Tn).map(e=>`${e}\\(`).join(`|`));function jn(e,t){let n=0;return N(e,e=>{if(e.kind===`declaration`&&e.value&&An.test(e.value)){n|=8,e.value=Mn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&An.test(e.params)&&(n|=8,e.params=Mn(e.params,e,t))}),n}function Mn(e,t,n){let r=j(e);return N(r,e=>{if(e.kind===`function`&&e.value in Tn){let r=k(A(e.nodes).trim(),`,`).map(e=>e.trim()),i=Tn[e.value](n,t,...r);return M.Replace(j(i))}}),A(r)}function Nn(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 Pn(e,t){N(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 Fn(){return[]}function In(){return[]}function Ln(){return[]}function Rn(e,t){let{astNodes:n,nodeSorting:r}=Zn(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 zn(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;Bn(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(;Bn(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(;Bn(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&&!Bn(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;Bn(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(;Bn(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function Bn(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Vn=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Hn=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;N(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&&qn(r,n),Kn(r,e.nodes),e.nodes=r},{compounds:Un(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:Un([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 Un(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 Wn(e){let t=new Hn;function n(e,n,{compounds:r}={}){r??=Un(n),t.static(e,e=>{e.nodes=n.map(t=>I(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=j(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),A(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),A(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`}),A(e)):`not ${t}`}{t=t.trim();let e=k(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=k(e.params,`,`);return n.length>1?null:(n=r(e.name,n),F(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${k(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(N([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return M.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 M.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,M.Stop;l.push(P(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,M.Stop;l.push(t)}return Object.assign(e,P(`&`,l)),n=!0,M.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(N([t],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,M.Stop;let n=e.selector.replaceAll(`&`,r);k(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(N([t],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,M.Stop;let n=e.selector.replaceAll(`&`,r);k(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([F(`@property`,`--tw-content`,[L(`syntax`,`"*"`),L(`initial-value`,`""`),L(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[P(`&::before`,[e(),L(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[P(`&::after`,[e(),L(`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=[P(`&:hover`,[F(`@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(N([e],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,M.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(N([e],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,M.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-${Gn(t.value.value)}]`;if(zn(n)===null)return null;e.nodes=[P(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(zn(n)===null)return null;e.nodes=[P(`&${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-${Gn(t.value.value)}]`;if(zn(n)===null)return null;e.nodes=[P(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&: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`&&!V(t.value.value))return null;e.nodes=[P(`&: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=[F(`@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=[F(`@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:dt(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=[F(`@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=[F(`@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=[F(`@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=[F(`@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=[F(`@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=[F(`@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 Gn(e){if(e.includes(`=`)){let[t,...n]=k(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 Kn(e,t){N(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return M.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,z([F(e.name,e.params,e.nodes)])),M.Skip})}function qn(e,t){let n=0;return N(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=k(e.params,`,`);for(let[n,a]of i.entries()){let o=P(`&`,n===i.length-1?e.nodes:e.nodes.map(Te)),s=k(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($n(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,M.Replace(r)}),n}function Jn(e,t){let n=on(e),r=Wn(e),i=new O(e=>Ze(e,u)),a=new O(e=>Array.from(Ye(e,u))),o=new O(e=>new O(t=>{let n=Qn(t,u,e);try{let e=n.map(e=>e.node);jn(e,u),qn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of xe(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=Zn([r],u,{onInvalidCandidate(){e=!1}});t&&N(i,e=>(e.src??=t,M.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 Rn(this,e)},getClassList(){return Fn(this)},getVariants(){return In(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 $e(u,e)},printVariant(e){return tt(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?U(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return Ln(this,e,t)},storage:{}};return u}var Yn=`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 Xn(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 Zn(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||Xn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function Qn(e,t,n){let r=tr(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=rr(n);(e.important||i)&&nr(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if($n(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function $n(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[I(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=F(`@slot`);if($n(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;N(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,M.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function er(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function tr(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=W(n,e.modifier,t.theme)),n===null?[]:[[L(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!er(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=>er(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 nr(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&nr(t.nodes))}function rr(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=Yn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Yn.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 ir(e,t){let n=0,r=I(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);N([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),M.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),N(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of ar(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 ar(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`&&N(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
|
${je([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&&P(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 N.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=k(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 P([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,P([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 N.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 P(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=or(M(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 ar(o,a.base,n,r+1,i),f.nodes=sr(e,[we({base:a.base},o)],l,u,d)})()),N.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?j(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=j(o.nodes);continue}r=j(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=I(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=I(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=I(`@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 q(e,{theme:t},n){for(let t of n){let n=fr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of lr(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=fr(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 lr(e){let t=[];return hr(e,[],(e,n)=>{if(pr(e))return t.push([n,e]),1;if(mr(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 ur={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},dr={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`},J=/^[a-zA-Z0-9-_%/.]+$/;function fr(e){let t=ur[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!J.test(t))return null;let n=dr[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 pr(e){return typeof e==`number`||typeof e==`string`}function mr(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 hr(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`)&&hr(i,a,n)===2))return 2}}function gr(e){let t=[];for(let n of k(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 _r(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function vr(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?!_r(e[t])||!_r(i[t])?i[t]:vr({},[e[t],i[t]],n,r):a,r.pop()}return e}function yr(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=gr(r),[a,o]=br(e.theme,i),s=n(Y(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=vr({},[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&&Y(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=W(s,o)),s??i}}function br(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=fr(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)X(c,[e??`DEFAULT`],t);for(let[e,t]of o)X(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 Y(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 X(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 xr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Sr({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Cr(n);r.current|=An(o,e);let s=I(`@layer`,`base`,o);P([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=wr(n,e.nodes)},{compounds:Hn(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Cr(n),e)},matchVariant(t,n,r){function i(e,t,r){return wr(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])=>k(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=L(e,Cr(n));P([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(P(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&xr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Cr(n):[L(i,Cr(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 N.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&&P(n,t=>{if(t.kind===`rule`){let n=g(t.selector);P(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 Tr(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&&!B(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=W(l,d)),t&&(l=`calc(${l} * -1)`);let f=Cr(o(l,{modifier:d}));return Tr(f,a,s.raw),r.current|=rr(f,e),f}};if(!xr.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:yr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=gr(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 Cr(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(L(e,[I(`@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(L(e,Cr(n)));else t.push(L(e,Cr(r)))}return t}function wr(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 L(e,t)})}function Tr(e,t,n){P(e,e=>{if(e.kind===`rule`){let r=g(e.selector);P(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Er(e,t){for(let n of Dr(t))e.theme.addKeyframes(n)}function Dr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(I(`@keyframes`,n,Cr(r)));return t}var Or={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 kr(e){return{__BARE_VALUE__:e}}var Ar=kr(e=>{if(H(e.value))return e.value}),jr=kr(e=>{if(H(e.value))return`${e.value}%`}),Mr=kr(e=>{if(H(e.value))return`${e.value}px`}),Nr=kr(e=>{if(H(e.value))return`${e.value}ms`}),Pr=kr(e=>{if(H(e.value))return`${e.value}deg`}),Fr=kr(e=>{if(e.fraction===null)return;let[t,n]=k(e.fraction,`/`);if(H(t)&&H(n))return e.fraction}),Ir=kr(e=>{if(H(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Lr={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`,...Fr},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...jr}),backdropContrast:({theme:e})=>({...e(`contrast`),...jr}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...jr}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...Pr}),backdropInvert:({theme:e})=>({...e(`invert`),...jr}),backdropOpacity:({theme:e})=>({...e(`opacity`),...jr}),backdropSaturate:({theme:e})=>({...e(`saturate`),...jr}),backdropSepia:({theme:e})=>({...e(`sepia`),...jr}),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`,...Mr},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`,...jr},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Or}),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`,...Ar},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...jr},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`),...Mr}),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`,...Ar},flexShrink:{0:`0`,DEFAULT:`1`,...Ar},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%`,...jr},grayscale:{0:`0`,DEFAULT:`100%`,...jr},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`,...Ar},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`,...Ar},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`,...Ar},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`,...Ar},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))`,...Ir},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))`,...Ir},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`,...Pr},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%`,...jr},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`,...Ar},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`,...jr},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`,...Ar},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},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`,...Mr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...Pr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...jr},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`,...jr},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%`,...jr},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...Pr},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`,...Ar},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`,...Mr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},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`,...Nr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Nr},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`,...Ar}};function Rr(e){return{theme:{...Lr,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 zr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Br(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(zr)};for(let e of t)Hr(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=Ur(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Vr(e,t){if(Array.isArray(e)&&_r(e[0]))return e.concat(t);if(Array.isArray(t)&&_r(t[0])&&_r(e))return[e,...t];if(Array.isArray(t))return t}function Hr(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??[])Hr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&Hr(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 Ur(e){let t=new Set,n=yr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Or});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]=()=>vr({},n.map(i),Vr)}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 Wr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Gr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Te))}function Gr({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)=>dt(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(I(`@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,I(`@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)=>dt(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(I(`@media`,`(width >= theme(--breakpoint-${t}))`,[R(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Kr({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]=k(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 Jr(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=[I(`@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=Yr(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 Yr(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 Xr(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 Zr=/^[a-z]+$/;async function Qr({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];P(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
|
+
${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&&N(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 M.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=Zn(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=k(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 N([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,N([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 M.Replace(o)}});return n}function*ar(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 or(e,t,n,r=0,i=!1){let a=0,o=[];return N(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=sr(j(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=R({},[]);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 or(o,a.base,n,r+1,i),f.nodes=cr(e,[R({base:a.base},o)],l,u,d)})()),M.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function sr(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?A(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=A(o.nodes);continue}r=A(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function cr(e,t,n,r,i){let a=t;if(n!==null){let t=F(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=F(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=F(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function lr(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 ur(e,{theme:t},n){for(let t of n){let n=hr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of dr(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=hr(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=lr(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,lr(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,lr(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=lr(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`,lr(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,lr(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function dr(e){let t=[];return vr(e,[],(e,n)=>{if(gr(e))return t.push([n,e]),1;if(_r(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 fr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},pr={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`},mr=/^[a-zA-Z0-9-_%/.]+$/;function hr(e){let t=fr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!mr.test(t))return null;let n=pr[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 gr(e){return typeof e==`number`||typeof e==`string`}function _r(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 vr(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`)&&vr(i,a,n)===2))return 2}}function yr(e){let t=[];for(let n of k(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 br(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function xr(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?!br(e[t])||!br(i[t])?i[t]:xr({},[e[t],i[t]],n,r):a,r.pop()}return e}function Sr(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=yr(r),[a,o]=Cr(e.theme,i),s=n(wr(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=xr({},[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&&wr(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=U(s,o)),s??i}}function Cr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=hr(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)Tr(c,[e??`DEFAULT`],t);for(let[e,t]of o)Tr(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 wr(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 Tr(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 Er=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Dr({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Or(n);r.current|=jn(o,e);let s=F(`@layer`,`base`,o);N([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Vn.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=kr(n,e.nodes)},{compounds:Un(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Or(n),e)},matchVariant(t,n,r){function i(e,t,r){return kr(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])=>k(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=I(e,Or(n));N([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(N(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&Er.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Or(n):[I(i,Or(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 M.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&&N(n,t=>{if(t.kind===`rule`){let n=g(t.selector);N(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 Ar(a,t,i.raw),r.current|=ir(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&&!B(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=U(l,d)),t&&(l=`calc(${l} * -1)`);let f=Or(o(l,{modifier:d}));return Ar(f,a,s.raw),r.current|=ir(f,e),f}};if(!Er.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:Sr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=yr(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 Or(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(I(e,[F(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(L(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(L(e,n)):t.push(I(e,Or(n)));else t.push(I(e,Or(r)))}return t}function kr(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return Kn(n,t),n}return I(e,t)})}function Ar(e,t,n){N(e,e=>{if(e.kind===`rule`){let r=g(e.selector);N(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function jr(e,t){for(let n of Mr(t))e.theme.addKeyframes(n)}function Mr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(F(`@keyframes`,n,Or(r)));return t}var Nr={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 Pr(e){return{__BARE_VALUE__:e}}var Fr=Pr(e=>{if(V(e.value))return e.value}),Ir=Pr(e=>{if(V(e.value))return`${e.value}%`}),Lr=Pr(e=>{if(V(e.value))return`${e.value}px`}),Rr=Pr(e=>{if(V(e.value))return`${e.value}ms`}),zr=Pr(e=>{if(V(e.value))return`${e.value}deg`}),Br=Pr(e=>{if(e.fraction===null)return;let[t,n]=k(e.fraction,`/`);if(V(t)&&V(n))return e.fraction}),Vr=Pr(e=>{if(V(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`),...Ir}),backdropContrast:({theme:e})=>({...e(`contrast`),...Ir}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...Ir}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...zr}),backdropInvert:({theme:e})=>({...e(`invert`),...Ir}),backdropOpacity:({theme:e})=>({...e(`opacity`),...Ir}),backdropSaturate:({theme:e})=>({...e(`saturate`),...Ir}),backdropSepia:({theme:e})=>({...e(`sepia`),...Ir}),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`,...Ir},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Nr}),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`,...Fr},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...Ir},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`,...Fr},flexShrink:{0:`0`,DEFAULT:`1`,...Fr},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%`,...Ir},grayscale:{0:`0`,DEFAULT:`100%`,...Ir},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`,...Fr},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`,...Fr},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`,...Fr},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`,...Fr},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%`,...Ir},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`,...Fr},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`,...Ir},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`,...Fr},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`,...Ir},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`,...Ir},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%`,...Ir},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`,...Fr},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`,...Fr}};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)&&br(e[0]))return e.concat(t);if(Array.isArray(t)&&br(t[0])&&br(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=Sr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Nr});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]=()=>xr({},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(L(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(L(`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)=>dt(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(F(`@media`,`(width >= --theme(--breakpoint-${t}))`,[L(`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,F(`@media`,`(width >= ${t})`,[L(`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)=>dt(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(L(`padding-inline`,n));else{if(a)continue;i.push(F(`@media`,`(width >= theme(--breakpoint-${t}))`,[L(`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}`,()=>[L(`--tw-gradient-position`,`to ${n} in oklab`),L(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[L(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[L(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[L(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[L(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[L(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[L(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[L(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[L(`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[L(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[L(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[L(`-webkit-box-decoration-break`,`slice`),L(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[L(`-webkit-box-decoration-break`,`clone`),L(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[L(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||V(e.value.value))return[L(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[L(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||V(e.value.value))return[L(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[L(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[L(`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[L(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]=k(r.value.fraction,`/`);if(!V(e)||!V(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&Kt(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[L(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&Kt(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[L(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[L(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[L(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[L(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[L(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[L(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function K(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=[F(`@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 q({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];N(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:
|
|
21
21
|
|
|
22
22
|
${je([t])}
|
|
23
23
|
|
|
24
24
|
\`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=k(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 \`${je([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,M.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,M.Replace([])}}),Qr(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=ni({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|=ni({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function ni({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}=Gr(e,[{config:Ur(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Zr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Gr(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Dr({...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(Dr({...d,referenceMode:t??!1,src:n}));if(ur(e,l,u),jr(e,l),ei(l,e),K(l,e),Yr(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;N(n,(t,n)=>{if(t.kind!==`at-rule`||t.name!==`@tailwind`||t.params!==`utilities`)return;let r=Ee(n);return r.parent?.kind===`rule`&&r.parent.selector===e?M.Stop:M.ReplaceStop(P(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 ri({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:[]};N(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 J=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function ii(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=ai(s)?oi(s):k(s,`,`),l=l.flatMap(e=>ii(e));let u=ii(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function ai(e){return J.test(e)}function oi(e){let t=e.match(J);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 si(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 ci=/^[a-z]+$/;function li(){throw Error("No `loadModule` function provided to `compile`")}function Y(){throw Error("No `loadStylesheet` function provided to `compile`")}function X(e){let t=0,n=null;for(let r of k(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 ui(e,{base:t=``,from:n,loadModule:r=li,loadStylesheet:i=Y}={}){let a=0;e=[R({base:t},e)],a|=await or(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;N(e,(e,t)=>{if(e.kind!==`at-rule`)return;let n=Ee(t);if(e.name===`@tailwind`&&(e.params===`utilities`||e.params.startsWith(`utilities`))){if(f!==null||n.context.reference)return M.Replace([]);let t=k(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=cn(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=k(a,` `);for(let t of n)for(let n of ii(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return M.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(N(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,M.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]=k(e.params,` `);if(!Vn.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=k(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(P(i.join(`, `),e.nodes));for(let r of n)t.push(I(r,e.nodes));e.nodes=t},{compounds:Un([...i,...n])})}),l.set(t,new Set)}else{let n=new Set;N(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 M.ReplaceSkip([])}if(e.name===`@media`){let t=k(e.params,` `),r=[];for(let i of t)if(i.startsWith(`source(`)){let t=i.slice(7,-1);N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,M.ReplaceStop([R({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);N(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 M.Continue}if(e.name===`@theme`)return e.params+=` `+t,M.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,M.Skip})}else i===`important`?o=!0:i===`reference`?e.nodes=[R({reference:!0},e.nodes)]:r.push(i);if(r.length>0)e.params=r.join(` `);else if(t.length>0)return M.Replace(e.nodes);return M.Continue}if(e.name===`@theme`){let[t,r]=X(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!ci.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return N(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),M.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=je([F(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?M.ReplaceSkip([]):(d=P(`:root, :host`,[]),d.src=e.src,M.ReplaceSkip(d))}});let v=Jn(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await q({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of si(l,{onCircularDependency(e,t){let n=je(e.map((n,r)=>F(`@custom-variant`,n,[F(`@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=L(C(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(R({theme:!0},[z([t])]));d.nodes=[R({theme:!0},t)]}if(a|=qn(e,v),a|=jn(e,v),a|=ir(e,v),f){let e=f;e.kind=`context`,e.context={}}return N(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?M.Replace([]):M.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function di(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await ui(e,t);r.unshift(we(`! 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??=De(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??=De(r,n,t.polyfills),d;let h=Zn(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&N(h,e=>{e.src??=o.src}),!c&&f===h.length?(d??=De(r,n,t.polyfills),d):(f=h.length,o.nodes=h,d=De(r,n,t.polyfills),d)}}}async function fi(e,t={}){let n=y(e,{from:t.from}),r=await di(n,t),i=n,a=e;return{...r,build(e){let n=r.build(e);return n===i||(a=je(n,!!t.from),i=n),a},buildSourceMap(){return ri({ast:i})}}}var pi={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
|
-
`},mi=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}},hi=`text/tailwindcss`,gi,_i=new Set,vi=``,yi=document.createElement(`style`),bi=Promise.resolve(),xi=1,
|
|
952
|
-
`;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),Z.end(`Reading Stylesheets`,{size:t.length,changed:vi!==t}),vi!==t){vi=t,Z.start(`Compile CSS`);try{gi=await fi(t,{base:`/`,loadStylesheet:Ci,loadModule:wi})}finally{Z.end(`Compile CSS`),Z.end(`Create compiler`)}_i.clear()}}async function Ci(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:pi.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:pi.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:pi.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:pi.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return Z.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw Z.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function wi(){throw Error(`The browser build does not support plugins or config files.`)}async function Ti(e){if(!gi)return;let t=new Set;Z.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)_i.has(n)||(_i.add(n),t.add(n));Z.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(Z.start(`Build utilities`),yi.textContent=gi.build(Array.from(t)),Z.end(`Build utilities`))}function Ei(e){async function t(){if(!gi&&e!==`full`)return;let t=xi++;Z.start(`Build #${t} (${e})`),e===`full`&&await Si(),Z.start(`Build`),await Ti(e),Z.end(`Build`),Z.end(`Build #${t} (${e})`)}bi=bi.then(t).catch(e=>Z.error(e))}var Di=new MutationObserver(()=>Ei(`full`));function Oi(e){Di.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`)===hi&&(Oi(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==yi&&n++;r.type===`attributes`&&n++}if(t>0)return Ei(`full`);if(n>0)return Ei(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Ei(`full`),document.head.append(yi)})();var e=new Map,t=new Set;function n(n,r){let i=n.toLowerCase().trim();e.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`),e.set(i,r);for(let e of t)e()}function r(t){if(t)return e.get(t.toLowerCase().trim())}function i(e){return t.add(e),()=>t.delete(e)}var a={radius:1,tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`},o={solid:[a],dashed:[a],dotted:[a]};function s(e,t,n,r,i){let a=i?.[e],s=a?.rounded??(a?.[t]===void 0?o[e]??[]:[]),c={radius:0,glyph:r};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 c(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 l=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],u=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function d(e){let t={};for(let n=1;n<16;n++){let r=c(n);r&&!(r in t)&&(t[r]=e[n])}return t}var f=e=>d(Array.from({length:16},()=>e));n(`default`,{}),n(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`}});var p={...f(`+`),h:`-`,v:`|`};n(`ascii`,{solid:{...p,scrollTrack:`|`,scrollThumb:`#`,shadow:[`#`,`+`,`:`,`.`]},double:{...p,h:`=`},dashed:p,dotted:{...p,h:`.`,v:`:`}});var m=d(l);n(`single`,{solid:{rounded:[]},double:m,dashed:m,dotted:m}),n(`cp437`,{solid:{rounded:[]},dashed:m,dotted:m});function h(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function g(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}n(`blocks`,{solid:f(`█`),double:f(`█`),dashed:f(`▒`),dotted:f(`░`)});var _=new WeakMap;function v(e,t){let n=_.get(e);n||_.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,y(e)))}function y(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 b=new Map,x=new Set;function S(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}b.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),b.set(t,{...e,tag:t}),O()}function C(){O()}function w(e){return b.get(e.toLowerCase())}function T(){let e=new Set;for(let t of b.values())for(let n of t.observedAttributes??[])e.add(n.toLowerCase());return[...e]}function E(e){return x.add(e),()=>x.delete(e)}function D(e,t){try{return e.render(t)}catch(n){return v(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function O(){for(let e of x)e()}var ee=new WeakMap,k=[],A=new Map;function te(e,t,n){let r=ee.get(e);ee.set(e,t);let i=A.get(e);if(i){if(t!==i.toValue){let n=re(i);return A.delete(e),k.push({el:e,from:n,to:t}),n}let n=re(i);return n===i.toValue&&A.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(k.push({el:e,from:r,to:t}),r):t}function ne(e){let t=!1;for(let n=k.length-1;n>=0;n--){let{el:r,from:i,to:a}=k[n];if(!r.isConnected){k.splice(n,1);continue}if(!e.contains(r))continue;k.splice(n,1),t=!0;let o=ae(getComputedStyle(r),`background-color`),s=le(i),c=le(a);o&&s&&c&&A.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function j(){let e=performance.now();for(let[t,n]of A)(!t.isConnected||e>=n.start+n.duration)&&A.delete(t);return A.size>0}function re(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return de(ue(e.from,e.to,n))}var ie={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 ae(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=oe(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:oe(i(e.transitionDelay))*1e3,easing:se(i(e.transitionTimingFunction))}}function oe(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function se(e){if(e===`linear`)return e=>e;let t=ie[e];if(t)return ce(...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 ce(e,t,r,i)}return e=>e}function ce(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 le(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{...he(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 ue(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{...he(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function de(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 fe(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function pe(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function me(e,t,n){let r=fe(e),i=fe(t),a=fe(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 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{r:pe(4.0767416621*r-3.3077115913*i+.2309699292*a),g:pe(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:pe(-.0041960863*r-.7034186147*i+1.707614701*a)}}function ge(e,t,n){let i=e.border;if(i.top===0&&i.right===0&&i.bottom===0&&i.left===0)return;let a=Math.max(i.top,i.right,i.bottom,i.left);for(let o=0;o<a;o++){let a={top:o<i.top,right:o<i.right,bottom:o<i.bottom,left:o<i.left},s={x:t.x+(a.left?o:0),y:t.y+(a.top?o:0),width:t.width-(a.left?o:0)-(a.right?o:0),height:t.height-(a.top?o:0)-(a.bottom?o:0)};if(s.width<=0||s.height<=0)continue;let c={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)};N(n,e.borderStyle,e.borderColor,c,s,a,r(e.glyphSet))}}function M(e,t,n){if(e.boxShadow.length===0)return;let i=h(r(e.glyphSet)),a=i.length-1;for(let r of e.boxShadow.slice().reverse()){let e=_e(r.color);if(e===0)continue;let o=Math.round((1-Math.sqrt(e))*a),s=e<1?`color-mix(in srgb, ${r.color} ${Math.round(e*100)}%, var(--mw-fg, canvastext))`:r.color,c=Math.max(0,Math.round(r.blur/2)),l=Array.from({length:c+1},(e,t)=>{if(t===c)return{glyph:i[o],color:s};let n=o+Math.round((c-t)*(a-o)/c),r=Math.round(100*(t+1)/(c+1));return{glyph:i[n],color:`color-mix(in srgb, ${s} ${r}%, transparent)`}}),u=r.spread+c,d=t.x+r.x-u,f=t.y+r.y-u,p=t.x+r.x+t.width+u,m=t.y+r.y+t.height+u;for(let e=f;e<m;e++)for(let r=d;r<p;r++){if(r>=t.x&&r<t.x+t.width&&e>=t.y&&e<t.y+t.height)continue;let i=Math.min(r-d,p-1-r,e-f,m-1-e,c);n.push({...l[i],x:r,y:e,length:1})}}}function _e(e){let t=e.trim().toLowerCase();if(t===`transparent`)return 0;let n=e=>{let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,e.trim().endsWith(`%`)?t/100:t)):1},r=/\/\s*([\d.]+%?)\s*\)$/.exec(t);if(r)return n(r[1]);let i=/^(?:rgba|hsla)\(([^)]*)\)$/.exec(t);if(!i)return 1;let a=i[1].split(`,`);return a.length===4?n(a[3]):1}function N(e,t,n,r,i,a,o){let c=xe(t.top,o),l=xe(t.right,o),u=xe(t.bottom,o),d=xe(t.left,o),f=(e,t,n)=>{let i=e===t?e:`solid`;return s(i,n,r[n],xe(i,o)[n],o)},{x:p,y:m,width:h,height:g}=i,_=h>=2&&g>=2,v=p+ +!!a.left,y=p+h-+!!a.right,b=m+ +!!a.top,x=m+g-+!!a.bottom;if(a.top&&y>v&&e.push({glyph:c.h,x:v,y:m,length:y-v,color:n.top}),a.bottom&&g>+!!a.top&&y>v&&e.push({glyph:u.h,x:v,y:m+g-1,length:y-v,color:n.bottom}),a.left)for(let t=b;t<x;t++)e.push({glyph:d.v,x:p,y:t,length:1,color:n.left});if(a.right&&h>+!!a.left)for(let t=b;t<x;t++)e.push({glyph:l.v,x:p+h-1,y:t,length:1,color:n.right});_&&(a.top&&a.left&&e.push({glyph:f(t.top,t.left,`tl`),x:p,y:m,length:1,color:n.top}),a.top&&a.right&&e.push({glyph:f(t.top,t.right,`tr`),x:p+h-1,y:m,length:1,color:n.top}),a.bottom&&a.left&&e.push({glyph:f(t.bottom,t.left,`bl`),x:p,y:m+g-1,length:1,color:n.bottom}),a.bottom&&a.right&&e.push({glyph:f(t.bottom,t.right,`br`),x:p+h-1,y:m+g-1,length:1,color:n.bottom}))}function P(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function ve(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)P(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 ye(e,t,n){let r=xe(e,n);return t===`h`?r.h:r.v}function be(e,t,n,r,i,a){let o=(t?8:0)|(n?4:0)|(r?2:0)|!!i;if(a){let t=c(o),n=t&&a[e]?.[t];if(n)return n}return(e===`double`?u:l)[o]}function xe(e,t){let n=(n,r,i,a)=>be(e,n,r,i,a,t),r={h:n(!1,!1,!0,!0),v:n(!0,!0,!1,!1),tl:n(!1,!0,!1,!0),tr:n(!1,!0,!0,!1),bl:n(!0,!1,!1,!0),br:n(!0,!1,!0,!1)};return e===`dashed`?{h:`╌`,v:`╎`,...Se(r),...F(t,e)}:e===`dotted`?{h:`┄`,v:`┊`,...Se(r),...F(t,e)}:r}function Se(e){let{h:t,v:n,...r}=e;return r}function F(e,t){let n=e?.[t],r={};return n?.h&&(r.h=n.h),n?.v&&(r.v=n.v),r}function I(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 L(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=ye(e.ruleX.style,`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});R(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`;for(let u of o){for(let d=0;d<c;d++){let f=u.line+d;for(let d=u.start;d<u.end;d++){let u=l(a,s,d,f),p=l(a,s,d,f+1);t.push({glyph:u||p?be(i?`double`:`solid`,u,p,l(o,c,f,d),l(o,c,f,d+1),e.glyphs):ye(e.ruleY.style,`h`,e.glyphs),x:n+d,y:r+f,length:1,color:e.ruleY.color})}}R(e,t,`y`,u.line,u.start,u.end)}}return t}function R(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,u)=>{let d=o.style===`double`&&i===`double`?`double`:`solid`;t.push({glyph:be(d,s,c,l,u,e.glyphs),x:n,y:r,length:1,color:a})};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,e.borderStyle.top,e.borderColor.top,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,e.borderStyle.bottom,e.borderColor.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,e.borderStyle.left,e.borderColor.left,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,e.borderStyle.right,e.borderColor.right,!0,!0,!0,!1)}}var Ce={double:3,solid:2,dashed:1,dotted:0},we=8,z=4,Te=2,Ee=1;function De(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 Oe(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 ve(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}=je(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=Ae(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 ke(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=De(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=Oe(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.width>f.dominant.width||a.width===f.dominant.width&&Ce[a.style]>Ce[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}=je(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 o=x++;for(let a of C([d[t][e-1],d[t][e]])){let{shift:s}=a;for(let r=0;r<n.width;r++){let i=g(e)+r+s.x;for(let e=u[t];e<u[t]+c[t];e++)S(i,e+s.y,12,n,o,`v`,a)}for(let c=0;c<r[e];c++){for(let r=0;r<i[t];r++)S(g(e)+c+s.x,_(t)+r+s.y,z,n,o,null,a);for(let r=0;r<i[t+1];r++)S(g(e)+c+s.x,_(t+1)+r+s.y,we,n,o,null,a)}}}for(let e=0;e<=m;e++)for(let t=0;t<p;t++){let n=o[e][t];if(!n)continue;let a=x++;for(let o of C([d[e-1]?.[t],d[e]?.[t]])){let{shift:c}=o;for(let r=0;r<n.width;r++){let i=_(e)+r+c.y;for(let e=l[t];e<l[t]+s[t];e++)S(e+c.x,i,3,n,a,`h`,o)}for(let s=0;s<i[e];s++){for(let i=0;i<r[t];i++)S(g(t)+i+c.x,_(e)+s+c.y,Ee,n,a,null,o);for(let i=0;i<r[t+1];i++)S(g(t+1)+i+c.x,_(e)+s+c.y,Te,n,a,null,o)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?ye(e.dominant.style,e.only.axis,f):be(e.allDouble?`double`:`solid`,(e.mask&we)!==0,(e.mask&z)!==0,(e.mask&Te)!==0,(e.mask&Ee)!==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 Ae(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 je(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}}function Me(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function Ne(e,t){return t<=0?0:Me(e/(.25*t))}function Pe(e,t){return Me(t*e/100)}function Fe(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;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s}}function Ie(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}var Le=[[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 Re(e){let t=0,n=Le.length;for(;t<n;){let r=t+n>>1,[i,a]=Le[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var ze=/^\p{Extended_Pictographic}/u,Be=/^\p{Emoji_Presentation}/u,Ve=/^\p{Regional_Indicator}/u,He=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,Ue=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,We=`︎`,Ge=`️`,Ke=``,qe=`⃣`;function Je(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:ze.test(e)?e.includes(We)?1:e.includes(Ge)||e.includes(Ke)||Be.test(e)?2:1:e.includes(qe)?2:Ve.test(e)?He.test(e)?2:1:Re(t)||Be.test(e)?2:+!Ue.test(e)}var Ye=/^[\x00-\x7f]*$/,Xe;function Ze(e){return Ye.test(e)?e.split(``):(Xe===void 0&&(Xe=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Xe?Array.from(Xe.segment(e),e=>e.segment):Array.from(e))}function Qe(e,t){let n=Je(e);return n===0?0:n+t}function $e(e,t=0){let n=[];for(let r of Ze(e)){n.push(Qe(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function et(e){let t=0;for(let n of Ze(e))t+=Je(n);return t}function tt(e,t,n={}){return it(e,t,n).length}function nt(e,t){return t.endsWith(`
|
|
953
|
-
`)&&e.pop(),e}function
|
|
954
|
-
`)&&(t.push({start:n,end:r}),n=r+1);return
|
|
955
|
-
`)&&(pt(e,i,o,t,n,a,r),a=0,i=o+1);return nt(r,e)}function at(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 ot(e,t,n,r,i=0){return n<=t?0:at(t,n,r)-Math.min(i,st(e,n-1,r))}function st(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,Je(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function ct(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of ft(e,0,e.length))for(let a of ut(e,t.start,t.end))i=Math.max(i,ot(e,a.start,a.end,n,r));return i}function lt(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function ut(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 dt=/[ \t\r\n\f]/;function ft(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&dt.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!dt.test(e[i]);)i++;r.push({start:t,end:i})}return r}function pt(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=ft(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 ut(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+at(s,o,i),u=Math.min(a,st(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&&ot(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=at(t,o,i)}n=!0}}p!==null&&c.push(p)}function mt(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 ht(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>mt(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)),I(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function gt(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 _t(e,t,n,i,a,o,s){let c=br(e.style,`x`,t),l=br(e.style,`y`,n),u=Et(e).map(e=>{let n=X(e.style.margin,t);return{node:e,base:Tt(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:kt(e,t,s),max:Sr(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,mr(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),r=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-r),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,mr(e.base,e.min,e.max))):St(e,a);for(let n=0;n<e.length;n++)J(e[n].node,t,i,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`)i===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=i,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=Dt(e.style);if(i===`stretch`&&r>0){let e=V(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=xt(`start`,h,0)}else _=xt(i===`stretch`?`start`:i,h,r)}for(let r=0;r<m.length;r++){let{row:a,widths:o,availableForItems:u}=m[r],d=h[r],g=_[r]+r*l;for(let r=0;r<a.length;r++){let c=a[r].node,l=Ct(c,e),u=a[r].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=mr(Math.max(0,d-e-a),Sr(c.style.minHeight,l)??0,Sr(c.style.maxHeight,l));if(f===c.localRect.height)continue;J(c,t,i,0,0,`fill`,s,{width:o[r],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=V(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=xt(`start`,o,0)}else C=xt(Ot(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+yt(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=[],i=[];for(let r=0;r<m.length;r++){let a=_[r]+r*l;for(let e of mt(m[r],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[r]});if(r>0){let n=_[r-1]+(r-1)*l+h[r-1];if(a>n)for(let o of ht(e,m,r,f,t))i.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=L({glyphs:r(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:gt(n,e.style.ruleInset),horizontal:gt(i,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:o})}return vt(e,a,o,t,y),y}function vt(e,t,n,r,i){for(let a of e.children)q(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 B(e,t,n,i,a,o,s){let c=br(e.style,`y`,n),l=Et(e).map(r=>{let a=X(r.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=Ct(r,e)===`stretch`;J(r,o,i&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);let l=Number.isFinite(n)?n:void 0,u=r.style.flexBasis,d=u===void 0||u.kind===`auto`?r.unclampedHeight:u.kind===`cells`?u.value:u.kind===`percent`&&l!==void 0?Pe(u.value,l):r.unclampedHeight,f=r.style.minHeight===`auto`?r.style.overflow.y===`visible`?r.localRect.height:0:void 0;return{node:r,base:d,grow:r.style.flexGrow,shrink:r.style.flexShrink,min:f??Sr(r.style.minHeight,l)??0,max:Sr(r.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=i?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?St(l,h):l.map(e=>Math.max(0,mr(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=Ct(r.node,e)===`stretch`;J(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=V(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=xt(`start`,_,0)}else C=xt(Ot(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+bt(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=[],i=l.map(e=>e.node.localRect).slice().sort((e,t)=>e.y-t.y);for(let e=1;e<i.length;e++){let r=i[e-1].y+i[e-1].height-T,a=i[e].y-T-r;a>0&&n.push({bandStart:r,bandSize:a,start:0,end:t})}e.decorationRuns=L({glyphs:r(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:gt(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:o})}return vt(e,a,o,t,O),O}function yt(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+wt(i,n,e.localRect.height)}function bt(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+wt(i,n,e.localRect.width)}function xt(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=V(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 St(e,t){let n=e.length,r=(t,n)=>Math.max(0,mr(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=V(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 V(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 Ct(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function wt(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function Tt(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Pr(r,t,e,n):i!==void 0&&i.kind!==`auto`?Pr(i,t,e,n):Fr(e,n)}function Et(e){let t=e.children.filter(e=>!q(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function Dt(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function Ot(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function kt(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?Rr(e,n):0:Sr(e.style.minWidth,t)??0}function At(e){return e===`auto`||e===`scroll`}function jt(e){return e.children.filter(e=>e.inlineBox)}function Mt(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function Nt(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=Mt(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function Pt(){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:[It()],gridAutoRows:[It()],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:Ft(),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:Ft(),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,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,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 Ft(){return{top:0,right:0,bottom:0,left:0}}function It(){return{min:{kind:`auto`},max:{kind:`auto`}}}function Lt(e,t,n,i,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:br(s,`x`,t),f=u?u.gap:br(s,`y`,c),p=Kt(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=>X(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(Rt),T=l?Bt(l):rn(v,b,Vt(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:an(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=sn(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-Xt(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?zt(E,T,d,n.col.start,n.col.span,Ut(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?J(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?J(t,r,void 0,0,0,`fill`,o,{width:mr(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?Rr(t,o):0:Sr(t.style.minWidth,r)??0,Cr(t.style.maxWidth,r,t,o))}):J(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?Bt(u):rn(y,x,Ht(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),ee=on(O),k=u?u.positions:an(O,c??ee,s.alignContent),A=i.left+a.left,te=i.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=sn(E,T.sizes,r.col.start,r.col.span),s=sn(k,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Zt(i)),l=Ct(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=zt(k,O,f,r.row.start,r.row.span,Ut(n,`rows`,i,a)),J(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=mr(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:Sr(n.style.minHeight,s)??0,Sr(n.style.maxHeight,s));e!==n.localRect.height&&J(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&J(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:A+E[r.col.start]+cn(C[t],i.left,i.right,a,n.localRect.width),y:te+k[r.row.start]+cn(l,i.top,i.bottom,s,n.localRect.height)}}let ne=Number.isFinite(n)?Math.max(n,ee):ee;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 I(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,k,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(k,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=L({glyphs:r(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:ne,border:i,borderStyle:s.borderStyle,borderColor:s.borderColor,padding:a})}let j=e.children.filter(e=>q(e.style));if(j.length>0){let e=q(s)?{x:i.left,y:i.top,width:a.left+t+a.right,height:a.top+ne+a.bottom}:{x:A,y:te,width:t,height:ne};for(let n of j){let r=Wt(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=Wt(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,k,O.sizes,-a.top,ne+a.bottom);n.staticSlot={kind:`grid`,area:{x:A+r.start,y:te+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return ne}function Rt(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function zt(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 Bt(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function Vt(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=Ut(a,`cols`,c,0);for(let t of H(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:Lr(a,`min`,r)+Xt(c),max:Lr(a,`max`,r)+Xt(c)})}),i}function Ht(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=Ut(i,`rows`,s,0);for(let t of H(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Zt(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Zt(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function Ut(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+Y(a.left,r),end:(n.right??0)+i.right+Y(a.right,r)}:{start:(n.top??0)+i.top+Y(a.top,r),end:(n.bottom??0)+i.bottom+Y(a.bottom,r)}}function H(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=Kt(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=X(e.style.margin,0);if(Rt(e)[t]){let n=Ut(e,t,p,0),a=H(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:Lr(e,`min`,i)+Xt(p)+f,max:Lr(e,`max`,i)+Xt(p)+f});else{let t=e.localRect.height+Zt(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 Wt(e,t,n,r,i,a,o,s){let c=tn(e,`start`,n),l=tn(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=G(c,t,1,n):l!==null&&e.kind===`span`&&(c=G(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 Gt(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=Kt(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(Rt),s=a.children.map(e=>X(e.style.margin,0)),c=rn(a.colTracks,a.colCollapsed,Vt(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 Kt(e,t,n,r,i,a){let o=e.style,s=Yt(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?qt(a.col):Qt(o.gridTemplateColumns,t,r),d=l?qt(a.row):Qt(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||en(p,u.lineNames,f.columns,o.gridAutoColumns),l||en(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},_=nn(s.map(e=>({col:K(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:K(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&Jt(_,`col`,p.length),l&&Jt(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:U(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:U(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:W(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:W(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function qt(e){return{tracks:Array.from({length:e},()=>It()),lineNames:Array.from({length:e+1},()=>[])}}function Jt(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 Yt(e){return e.children.filter(e=>!q(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function Xt(e){return(e.left??0)+(e.right??0)}function Zt(e){return(e.top??0)+(e.bottom??0)}function Qt(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=$t(n.min,t)??$t(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 $t(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return Pe(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=$t(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function en(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function U(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 W(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 tn(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 G(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 K(e,t,n){let r=tn(e,`start`,n),i=tn(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`?G(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?G(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 nn(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 rn(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=$t(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=$t(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=V(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=V(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=V(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,Me(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=V(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=V(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=V(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 an(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-on(e)),o=xt(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 on(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function sn(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 cn(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+wt(e,r,i+a+o)}function ln(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 un(e,t,n){let r=ln(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 dn(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 fn(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function pn(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function mn(e,t,n){let r=ln(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 hn(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function gn(e,t,n,r){let i=vr(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=yr(e,i),s=e.style.lineGap,c=vn(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=pn(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>_n(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=_n(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 _n(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 vn(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var yn=null;function bn(){if(yn!==null)return yn;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(),yn=!(n.width>0&&n.top-t>=10),yn}function xn(e,t,n,i){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++)hn(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=L({glyphs:r(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:gt(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderColor:a.borderColor,padding:i})}function Sn(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 Cn(e,t,n,r,i,a,o){let s=e.style,c=br(s,`x`,n),l=mn(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:vr(e,Math.max(1,l.width-e.style.tracking)),margin:X(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:Or(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=pn(1,Math.max(1,_n(a,u,1/0,_).maxUsed),e=>_n(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=_n(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=X(i.style.margin,p),t=(e.left??0)+(e.right??0);J(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=Dr(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(!q(t.style))continue;let e=X(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 wn(e,t,n,i,a,o,s){let c=e.style,l=fn(n,i),u=e.children.filter(e=>!q(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=>Sn(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(bn()||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 Cn(e,u,t,l,a,o,s);let p=br(c,`x`,t),m=un(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:Or(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:Or(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);J(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+Dr(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=pn(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);hn(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(q(r.style)){T.push({child:r,margin:X(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=X(r.style.margin,t),i=(e.left??0)+(e.right??0);J(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+Dr(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=X(r.style.margin,y),i=(e.left??0)+(e.right??0);J(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=L({glyphs:r(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:gt(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderColor:c.borderColor,padding:o})),C}function Tn(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&v(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 En(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 Dn(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Pr(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,On(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,On(t.source));else for(let e of i)r(e,On(e.source));for(let n of t.children)n.style.tableRole!==`column`&&Tn(e,n)}function On(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function kn(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(q(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)q(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):Tn(n,e))}else e===`caption`?n.caption===null?n.caption=o:Tn(n,o):e===`column`||e===`column-group`?(Dn(n,o,t),n.hidden.push(o)):Tn(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 An(n),n}function An(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(q(a.style))continue;if(a.style.tableRole!==`cell`){Tn(e,a);continue}for(;(t[i]??0)>n;)i++;let o=En(a.source,`colspan`),s=En(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 jn(e,t,n){let r=e.style,i=Rr(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Pr(r.width,0,e,n):void 0;a=t===void 0?Fr(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,mr(a,o,s))}function Mn(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function Nn(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],jn(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],jn(t.node,`max`,n));let e=Mn(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=zn(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=jn(e.node,t,n)-u;if(d<=0)continue;let f=V(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 Pn(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=V(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=V(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=V(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function Fn(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=Pr(e.width,0,r.node,n)),a===void 0)continue;let o=V(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=V(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 In(e){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let t=null;for(let{border:n,side:r}of e){if(!n)continue;let e=n.width[r];if(e<=0)continue;let i=n.style[r];(t===null||e>t.width||e===t.width&&Ce[i]>Ce[t.style])&&(t={width:e,style:i,color:n.color[r]})}return t}function Ln(e,t){let n=t.columnCount,r=t.rows.length,i=e.style.borderCollapse,a={collapsed:i,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:i?0:e.style.borderSpacingX,spacingY:i?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!i||n===0||r===0)return a;let o=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++)o[t][n]=e;let s=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?o[a][e-1]:void 0,c=e<n?o[a][e]:void 0;if(r!==void 0&&r===c){i.push(null);continue}let l=[];r&&r.col+r.colSpan===e&&l.push({border:r.node.style.latticeBorder,side:`right`}),c&&c.col===e&&l.push({border:c.node.style.latticeBorder,side:`left`});let u=e===0?`left`:e===n?`right`:null;if(u){l.push({border:t.rows[a].style.latticeBorder,side:u});let e=t.rowGroups[a];e&&l.push({border:e.style.latticeBorder,side:u}),l.push({border:s,side:u})}i.push(In(l))}a.vSegments.push(i),a.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?o[e-1][a]:void 0,c=e<r?o[e][a]:void 0;if(n!==void 0&&n===c){i.push(null);continue}let l=[];n&&n.row+n.rowSpan===e&&l.push({border:n.node.style.latticeBorder,side:`bottom`}),c&&c.row===e&&l.push({border:c.node.style.latticeBorder,side:`top`}),e>0&&l.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&l.push({border:t.rows[e].style.latticeBorder,side:`top`});let u=e>0?t.rowGroups[e-1]:null,d=e<r?t.rowGroups[e]:null;u&&u!==d&&l.push({border:u.style.latticeBorder,side:`bottom`}),d&&d!==u&&l.push({border:d.style.latticeBorder,side:`top`}),e===0&&l.push({border:s,side:`top`}),e===r&&l.push({border:s,side:`bottom`}),i.push(In(l))}a.hSegments.push(i),a.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return a}function Rn(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function zn(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 Bn(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 Vn(e,t){let n=t.tableData.get(e);if(n)return n;let r=kn(e,t),i=Ln(e,r),a={structure:r,chrome:i,bounds:Nn(r,i,t),chromeX:Rn(i,r.columnCount)};return t.tableData.set(e,a),a}function Hn(e,t){let{structure:n,bounds:r,chromeX:i}=Vn(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,Rr(n.caption,t)),o=Math.max(o,Fr(n.caption,t))),{min:a,max:o}}function Un(e,t,n){let r=e.style,{bounds:i,chromeX:a}=Vn(e,n),{min:o,max:s}=Hn(e,n),c=r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+Nt(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 Wn(e,t,n,i,a,o){let{structure:s,chrome:c,bounds:l}=Vn(e,o),u=s.columnCount,d=s.rows.length,f=i.left+a.left,p=i.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-Rn(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?Fn(s,m,o):Pn(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&&(J(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)+zn(c,e.col,t);S.set(e,n),J(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?Pe(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)+Bn(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=V(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=V(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let ee=s.caption&&e.style.captionSide===`top`?b:0,k=[],A=ee;for(let e=0;e<d;e++)A+=c.collapsed?c.hLines[e]:c.spacingY,k.push(A),A+=E[e];let te=d>0?A+(c.collapsed?c.hLines[d]??0:c.spacingY):ee,ne=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!ne.has(t)&&ne.set(t,k[e])}for(let[e,t]of ne){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=k[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?ne.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+k[e]:k[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)+Bn(c,e.row,t);e.node.children.some(e=>!q(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&J(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),Gn(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)q(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+te),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:k,contentLeft:f,contentTop:p,cells:t,set:r(e.style.glyphSet)}}return e.style.captionSide===`bottom`?te+b:te}function Gn(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=>!q(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||(q(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Kn(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function qn(e,t,n,r,i){for(let a of e.children){let o=Kn(a.style);if(o===`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;a.localRect.x+=Jn(a.style.insets.left,a.style.insets.right,t),a.localRect.y+=Jn(a.style.insets.top,a.style.insets.bottom,n)}else o===`absolute`&&Xn(a,e,t,n,r,i);qn(a,t+a.localRect.x,n+a.localRect.y,[...r,{node:a,absX:t+a.localRect.x,absY:n+a.localRect.y}],i)}}function Jn(e,t,n){return e===null?t===null?0:-Y(t,n):Y(e,n)}function Yn(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!ur(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 Xn(e,t,n,r,i,a){let o=e.style,s=o.position===`fixed`,c=e.staticSlot,l=c?.kind===`grid`&&!s&&ur(t.style)?{x:n+c.area.x,y:r+c.area.y,width:c.area.width,height:c.area.height}:Yn(i,s),u=o.insets.left===null?null:Y(o.insets.left,l.width),d=o.insets.right===null?null:Y(o.insets.right,l.width),f=o.insets.top===null?null:Y(o.insets.top,l.height),p=o.insets.bottom===null?null:Y(o.insets.bottom,l.height),m=X(o.margin,l.width),h=m.left??0,g=m.right??0,_=m.top??0,v=m.bottom??0,y=o.width===void 0||o.width.kind===`auto`,b=o.height===void 0||o.height.kind===`auto`,x=Cr(o.minWidth,l.width,e,a)??0,S=Cr(o.maxWidth,l.width,e,a),C={};if(!y)C.width=mr(Pr(o.width,l.width,e,a),x,S);else if(u!==null&&d!==null)C.width=mr(Math.max(0,l.width-u-d-h-g),x,S);else{let t=Math.max(0,l.width-(u??0)-(d??0)-h-g);C.width=mr(Math.min(Fr(e,a),Math.max(Rr(e,a),t)),x,S)}f!==null&&p!==null&&b&&(C.height=mr(Math.max(0,l.height-f-p-_-v),Sr(o.minHeight,l.height)??0,Sr(o.maxHeight,l.height))),J(e,l.width,l.height,0,0,`shrink`,a,C);let w=e.localRect.width,T=e.localRect.height,E;if(u!==null&&d!==null){let e=Math.max(0,l.width-u-d-w-h-g),t=m.left===null&&m.right===null;E=l.x+u+h+(t?Math.floor(e/2):m.left===null?e:0)}else E=u===null?d===null?tr(e,t,n,w):l.x+l.width-d-w-g:l.x+u+h;let D;if(f!==null&&p!==null){let e=Math.max(0,l.height-f-p-T-_-v),t=m.top===null&&m.bottom===null;D=l.y+f+_+(t?Math.floor(e/2):m.top===null?e:0)}else D=f===null?p===null?nr(e,t,r,T):l.y+l.height-p-T-v:l.y+f+_;e.localRect={...e.localRect,x:E-n,y:D-r}}function Zn(e,t,n){return xt(e,[n],Math.max(0,t-n))[0]}function Qn(e,t,n,r){return wt(Ct(e,t),n,r)}function $n(e,t,n,r,i){let a=X(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?Zn(Ot(t.style),c,u):Qn(e,t,c,u))+o}function er(e,t,n,r,i){let a=X(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,Ct(e,t)];return wt(u,l,i+s+c)+s}function tr(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+er(e,t,i.staticArea,`x`,r):n+i.originX+$n(e,t,i,`x`,r)}function nr(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+er(e,t,i.staticArea,`y`,r):n+i.originY+$n(e,t,i,`y`,r)}function rr(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 ir(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return ar(e,t,n,o,i,a)}function ar(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=>rr(e,t,n,a).width>=i)??o[o.length-1],c=rr(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function or(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 sr(e){return or(e,`both`,0)}function cr(e,t){let n=dr();J(e,t,void 0,0,0,`fill`,n),qn(e,0,0,[{node:e,absX:0,absY:0}],n);let r=e.localRect.height,i=Ar(e),{overflow:a}=e.style;return a.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,i.x)),a.y===`visible`&&(e.localRect.height=Math.max(r,i.y)),{height:r}}function q(e){return e.position===`absolute`||e.position===`fixed`}function lr(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!q(e.style))}function ur(e){return e.position!==`static`}function dr(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function J(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=Cr(l.minWidth,t,e,o)??0,f=Cr(l.maxWidth,t,e,o),p=Sr(l.minHeight,n)??0,m=Sr(l.maxHeight,n),h=Nt(l),g=Mt(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:Y(l.padding.top,t),right:Y(l.padding.right,t)+h.right,bottom:Y(l.padding.bottom,t)+h.bottom,left:Y(l.padding.left,t)};e.resolvedPadding=_;let y=s?.width??mr(kr(l,t,a,e,o),d,f),b=Nr(l,n),x=Br(y,u??b??(p>0?p:void 0)??1/0,l.border,_),S=u!==void 0||b!==void 0,C=m===void 0?void 0:Math.max(0,m-l.border.top-l.border.bottom-_.top-_.bottom),w=pr(e),T=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(w)return fr(e,x.width,t,r,C,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return _t(e,x.width,t,r,l.border,_,o);if(l.display===`flex`)return B(e,x.width,t,n,l.border,_,o);if(l.display===`grid`)return Lt(e,x.width,t,l.border,_,o);if(l.display===`table`)return Wn(e,x.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&v(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 wn(e,x.width,r,C,l.border,_,o)}return wr(e,x.width,r,l.border,_,o)},E=T(x.height,S);if(!w&&(l.display===`flex`||l.display===`grid`)&&!S&&m!==void 0){let e=l.border.top+l.border.bottom+_.top+_.bottom,t=mr(E+e,p,m)-e;t<E&&(E=T(Math.max(0,t),!0))}let D=E+l.border.top+l.border.bottom+_.top+_.bottom,O=u??b??D;e.unclampedHeight=O,e.naturalContentHeight=D;let ee=mr(O,p,m),k=e.multicolGeometry;if(k){let t=ee-l.border.top-l.border.bottom-_.top-_.bottom;t>k.totalRows&&(_.bottom+=t-k.totalRows),xn(e,k,l.border,_)}if(e.localRect={x:r,y:i,width:y,height:ee},At(l.overflow.x)||At(l.overflow.y)){let c=Ar(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,y-l.border.left-l.border.right-_.left-_.right),p=Math.max(0,ee-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){J(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 fr(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=jt(e);lt(e.text,(n,r)=>{let i=u[r];J(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d,f;if(c.display===`multicol`){let n=br(c,`x`,t),o=mn(c,t,n);a.right+=o.leftover;let s=gn(e,o,n,fn(r,i));e.multicolGeometry=s,d=s,f=s.lineX}else d=gr(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let p=e.lineBands;if(e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+ot(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows},hr(e,d,t,n,a),u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);lt(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+(f?.[i]??0)+(p?.[i]?.x??0)+at(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=X(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 pr(e){return e.children.some(e=>!q(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function mr(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function hr(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return;let o=a.display===`flex`&&a.flexDirection===`column`,s=t.spans.reduce((t,n)=>Math.max(t,ot(e.text,n.start,n.end,e.advances,a.tracking)),0),c=Math.max(0,n-s);if(c>0){let e=a.display===`grid`?wt(a.justifyItems,n,s):o?wt(a.alignItems,n,s):xt(Ot(a),[s],c)[0];e>0&&(i.left+=e,i.right+=c-e)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?wt(a.alignItems,r,t.totalRows):xt(Ot(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}}function gr(e,t,n){let r,i;if(n)r=[],i=_r(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=vr(e,t,i),{heights:o,textOffsets:s}=yr(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 _r(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=sr(n.boxes),u=jt(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?yr(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=rr(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 vr(e,t,n){if(e.style.whiteSpace!==`normal`){let t=rt(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return it(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function yr(e,t){let n=jt(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0;for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a];t=Math.max(t,i.localRect.height),i.style.verticalAlign===`end`?s=Math.max(s,i.localRect.height-1):i.style.verticalAlign===`center`&&v(i.source,`vertical-align: middle on an inline box can't land on whole rows and behaves as top. Use align-top or align-bottom.`),a++}r.push(t),i.push(Math.min(s,t-1))}return{heights:r,textOffsets:i}}function br(e,t,n){let r=Y(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function Y(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:Pe(e.percent,t)+(e.cells??0)}function X(e,t){let n=e=>e===null?null:Y(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function xr(e){return typeof e==`number`?e:0}function Sr(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return Pe(e.percent,t)+(e.cells??0)}}function Cr(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Pr({kind:e},t,n,r):Sr(e,t)}function wr(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=X(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:Or(u,i));if(q(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=or(c,r.style.clear,l+(u??0)-s);J(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=ir(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+or(c,r.style.clear,m-s);if(c.length>0&&lr(r)){let i=Tr(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>J(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=Dr(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=Dr(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))&&Er(e,o,s,t,c),Math.max(l-s,sr(c))}function Tr(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Lr(e,`min`,o)+s,l=t=>J(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=rr(t,n,a);for(;r.width>=c;){l(r.width);let o=rr(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+Dr(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:Dr(i,n,e.localRect.width),y:d}}function Er(e,t,n,r,i){let a=e.style.lineGap,o=e=>X(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(q(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&&lr(u)?rr(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=X(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 Dr(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 Or(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function kr(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!q(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?Pr(a,t,r,i):Math.min(t,Fr(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Pr(a,t,r,i);return Math.max(e,Mr(r,t,i))}return Un(r,t,i)}return a!==void 0&&a.kind!==`auto`?Pr(a,t,r,i):n===`shrink`?Math.min(t,Fr(r,i)):t}function Ar(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=jr(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 jr(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=Ar(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function Mr(e,t,n){let r=e.style;return Hn(e,n).min+r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+Nt(r).right}function Nr(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return Pe(e.height.value,t)}function Pr(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return Pe(e.value,t);case`min-content`:return Rr(n,r);case`max-content`:return Fr(n,r);case`fit-content`:return Math.min(Fr(n,r),Math.max(Rr(n,r),t));case`auto`:return Fr(n,r)}}function Fr(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Ir(e,t)+r.border.left+r.border.right+xr(r.padding.left)+xr(r.padding.right)+Nt(r).right;return t.maxContent.set(e,i),i}function Ir(e,t){let n=e.children.filter(e=>!q(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?dn(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Gt(e,t).max;if(e.style.display===`table`)return Hn(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(xr(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Lr(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Lr(n,`max`,t)),0);if(e.style.display===`multicol`)return dn(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=Lr(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 Lr(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Pr(r.width,0,e,n)),i===void 0&&(i=t===`min`?Rr(e,n):Fr(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,mr(i,a,o))}function Rr(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=zr(e,t)+r.border.left+r.border.right+xr(r.padding.left)+xr(r.padding.right)+Nt(r).right;return t.minContent.set(e,i),i}function zr(e,t){let n=e.children.filter(e=>!q(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:ct(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Gt(e,t).min;if(e.style.display===`table`)return Hn(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(xr(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Lr(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Lr(n,`min`,t)),0)}function Br(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 Vr(e){return qr(e,{}).grid.map(e=>e.join(``).trimEnd()).join(`
|
|
956
|
-
`)}function Hr(e,t={}){let{grid:n,paints:r}=qr(e,t);return{segments:n.map((e,n)=>Ur(e,r[n],t.boxed)),cells:n}}function Ur(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i];if(a===``)continue;let o=t[i],s=1;for(;e[i+s]===``;)s++;if(n&&(a.length>1||a.charCodeAt(0)>=128)&&n(a,s,o)){r.push({text:a,cells:s,box:!0,...o});continue}let c=r[r.length-1];c&&!c.box&&Wr(c,o)?c.text+=a:r.push({text:a,...o})}return r}function Wr(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function Gr(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.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 Kr(e){return e.color===void 0&&e.backgroundColor===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function qr(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=Array.from({length:r},()=>Array.from({length:n},()=>` `)),a=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),o=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),s=(e,t)=>e>=0&&e<n&&t>=0&&t<r,c=(e,t)=>{let n=o[t][e];if(n)for(let e=0;e<n.cells;e++)i[t][n.x+e]=` `,o[t][n.x+e]=void 0},l=(e,t,n)=>{let r=a[t][e];a[t][e]=r?{...r,...n}:n};return Yr(e,0,0,t,(e,t,n,a,u=1)=>{if(t<0||t>=r)return;if(u===1){if(!s(e,t))return;c(e,t),i[t][e]=n,l(e,t,a);return}let d=s(e,t)&&s(e+u-1,t);for(let r=0;r<u;r++)s(e+r,t)&&(c(e+r,t),i[t][e+r]=d?r===0?n:``:` `,d&&(o[t][e+r]={x:e,cells:u}),l(e+r,t,a))}),{grid:i,paints:a}}function Jr(e){let t={};return e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(t.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(t.textDecorationLine=e.textDecorationLine),t}function Yr(e,t,n,i,a,o=1,s=()=>!0){if(e.tableHidden)return;let c=t+e.localRect.x+(e.stickyShift?.x??0),l=n+e.localRect.y+(e.stickyShift?.y??0),u=e.style,d=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},f=[];M(u,{x:c,y:l,width:e.localRect.width,height:e.localRect.height},f);for(let e of f)a(e.x,e.y,e.glyph,d(e.color===void 0?void 0:{color:e.color}));if(u.backgroundColor!==void 0||u.backgroundClear){let t=u.backgroundColor===void 0?{backgroundColor:void 0}:d({backgroundColor:u.backgroundColor});for(let n=0;n<e.localRect.height;n++)for(let r=0;r<e.localRect.width;r++)a(c+r,l+n,` `,t)}let p=[];ge(u,{x:c,y:l,width:e.localRect.width,height:e.localRect.height},p);for(let e of p){let t=d(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)a(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=d(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)a(c+t.x+n,l+t.y,t.glyph,e)}let m=e.lattice?ke(e,e.lattice,(e,t)=>s(c+e,l+t)):null;if(e.lattice&&m){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...m.parts.keys()];for(let[e,t]of m.parts)e.latticeRuns=t.map(e=>({...e,x:c+e.x,y:l+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)a(t.x,t.y,t.glyph,d(t.color===void 0?void 0:{color:t.color}));let h=c-(e.scroll?.x??0),_=l-(e.scroll?.y??0),v=a,y=s,b=Zr(e,c,l);if(b){let{x0:e,y0:t,x1:n,y1:r}=b,i=(i,a)=>i<e||i>=n||a<t||a>=r;y=(e,t)=>!i(e,t)&&s(e,t),v=(e,t,n,r,o=1)=>{if(o===1){i(e,t)||a(e,t,n,r);return}let s=!0;for(let n=0;n<o;n++)i(e+n,t)&&(s=!1);if(s)a(e,t,n,r,o);else for(let n=0;n<o;n++)i(e+n,t)||a(e+n,t,` `,r)}}if(!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=d(Jr(u)),n=e.inlineElements?.map(e=>d(Jr(e))),r=i.selection?.get(e),a=(t,n,r,i,a,o)=>{if(e.text[t]===``){a?.backgroundColor&&v(r,i,` `,d({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=Je(s);c>0&&v(r,i,s,o,c)},o=[];Xr(e,h,_,(i,s,c,l)=>{let u=e.charInline?.[i]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;r&&i>=r.start&&i<r.end&&(f={...f,selected:!0}),d?.stickyShift?o.push([i,s,c,l,d,f]):a(i,s,c,l,d,f)},(e,n)=>v(e,n,`…`,t));for(let e of o)a(...e)}for(let t of ve(e))Yr(t,h,_,i,v,o*t.style.opacity,y);if(m)for(let e of m.runs){let t=d(e.color===void 0?void 0:{color:e.color});a(c+e.x,l+e.y,e.glyph,t)}let x=e.scrollRange,S=e.scrollGutterCells;if(x&&S&&(S.right>0||S.bottom>0)){let{track:t,thumb:n}=g(r(u.glyphSet)),i=e=>d(e?{color:e}:void 0),o=i(u.scrollbarColor?.track??u.color),s=i(u.scrollbarColor?.thumb??u.color),f=ti(e,c,l);if(f.y){let{col:r,row:i,thick:c,len:l}=f.y,{at:u,len:d}=ni(l,x.sizeY,x.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+e,i+c,l?n:t,l?s:o)}}if(f.x){let{col:r,row:i,thick:c,len:l}=f.x,{at:u,len:d}=ni(l,x.sizeX,x.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+c,i+e,l?n:t,l?s:o)}}}}function Xr(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,u=e.multicolGeometry,{spans:d,textY:f}=u??gr(e,l),p=u?Math.max(1,u.columnWidth-a.tracking):l;for(let t=0;t<d.length;t++){let n=d[t],o=c+f[t],l=e.lineBands?.[t],m=l?l.width:p,h=t===0?a.textIndent:0,g=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?ri(e.text,n,m-h,e.advances,a):{end:n.end,ellipsis:!1},_=ot(e.text,n.start,n.end,e.advances,a.tracking),v=Math.max(0,m-h-_),y=a.textAlign===`end`?v:a.textAlign===`center`?Math.floor(v/2):0,b=s+(u?.lineX[t]??0)+(l?.x??0)+y+h,x=e.advances;for(let t=n.start;t<g.end;){let n=at(t,t+1,x),i=1;if(x)for(;t+i<g.end&&x[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,b+c,o+l,n)}b+=n,t+=i}g.ellipsis&&i?.(b,o)}}function Zr(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 Qr(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 $r(e,t,n,r,i){let a=null;return Xr(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 ei(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 Xr(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 ti(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 ni(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 ri(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(ot(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&&ot(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function ii(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 ai(e,t,n){let r=[],i=e,a=e.localRect.x,o=e.localRect.y;for(;;){let e=null;for(let r of ve(i)){if(r.tableHidden)continue;let i=a+r.localRect.x+(r.stickyShift?.x??0),s=o+r.localRect.y+(r.stickyShift?.y??0);(r.multicolFlow?Qr(r,i,s,t,n):oi(ii(r,i,s),t,n))&&(e=r)}if(!e)return r;let s=a+e.localRect.x+(e.stickyShift?.x??0),c=o+e.localRect.y+(e.stickyShift?.y??0);r.push({node:e,x:s,y:c});let l=Zr(e,s,c);if(l&&(t<l.x0||t>=l.x1||n<l.y0||n>=l.y1))return r;a=s-(e.scroll?.x??0),o=c-(e.scroll?.y??0),i=e}}function oi(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function si(e){return e.closest?.(`[inert]`)!=null}function ci(e,t,n){let r=[];for(let i of ai(e,t,n)){if(si(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function li(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*ui(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 di={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function fi(e){return di[e]??null}function pi(e,t,n){let r=null,i=null;for(let a of n){let n=hi(e,t,a.rect);n&&(!i||mi(n,i))&&(r=a,i=n)}return r?.element??null}function mi(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function hi(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 gi(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&&vi(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of ei(e,o,s))vi(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 _i(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 vi(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!si(e)}var yi=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),bi=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function xi(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:yi.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!bi.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 Z(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 Si(e){let t=w(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function Ci(e,t){let n=t,r=null;for(let t of Ti(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function wi(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*Ti(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function Ei(e,t,n){if(!e.charSource){let r=Si(e);return(r&&wi(r,t,n))??0}let r=jt(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];Z(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 Di(e,t){if(!e.charSource){let n=Si(e),r=n&&Ci(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 Oi(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 ki(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:Ai(e,r)&&Ai(e,i)?`light`:`outside`}function Ai(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 ji(e){let t=[],n=e=>{let r=Si(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function Mi(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=Ei(a,t.startContainer,t.startOffset),s=Ei(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function Ni(e,t){let n=Mi(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&&Hi(e,r)){if(Wi(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(Ui(e,r.startContainer)&&(n=Ei(e,r.startContainer,r.startOffset)),Ui(e,r.endContainer)&&(a=Ei(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 Pi(e,t){let n=Mi(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 Fi(e,r,i),Ki(i)}function Fi(e,t,n){if(e.tableHidden||!Hi(e,t))return;let r=zi(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Ii(e,t,n);else if(e.style.display===`table`){let r=Ri(e);for(let r of e.children)r.style.tableRole===`row`||Li(r)||Fi(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
|
|
961
|
-
`):null;s&&e.appendChild(s),n.push({nodes:i,segments:a[t],newline:s,units:o})}
|
|
962
|
-
`)}return t.join(``)}function ha(e){let t=new Set;va(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 Q(e,t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function $(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function ga(e,t,n){e.getAttribute(t)!==n&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function _a(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function va(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;Q(e,`--mw-ls`,String(r)),i>0?Q(e,`--mw-ipl`,String(i)):$(e,`--mw-ipl`),a>0?Q(e,`--mw-ipr`,String(a)):$(e,`--mw-ipr`),(o||s)&&(n.add(t),Sa(e,o??{top:0,right:null,bottom:null,left:0}))}t?xa(e):e.anonymous||wa(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&ba(e.source,e,i),!e.tableHidden)for(let t of ve(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&P(t,e)&&!t.inlineBox?Q(n,`--mw-z`,String(t.style.zIndex)):$(n,`--mw-z`)}va(t,!1,n,i)}}var ya=`input, textarea, select, [contenteditable], [contenteditable] *`;function ba(e,t,n){e.matches(ya)&&(t.style.color===void 0?$(e,`--mw-ink`):Q(e,`--mw-ink`,t.style.color),n===void 0?$(e,`--mw-ground`):Q(e,`--mw-ground`,n))}function xa(e){let t=e.source,n=e.text.length>0||e.children.some(e=>e.anonymous),{whiteSpace:r,textAlignBlocked:i,textIndent:a}=e.style;_a(t,`data-mw-leaf`,n),_a(t,`data-mw-nowrap`,n&&r!==`normal`),_a(t,`data-mw-pre`,n&&r===`pre`),_a(t,`data-mw-text-align-blocked`,n&&i),n?Q(t,`--mw-ti`,String(a)):$(t,`--mw-ti`)}function Sa(e,t){_a(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?$(e,t):Q(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 Ca(e){for(let{node:t}of e){if(t.style.position===`sticky`){let e=t.source,n=t.stickyShift;n?(Q(e,`--mw-sx`,String(n.x)),Q(e,`--mw-sy`,String(n.y))):($(e,`--mw-sx`),$(e,`--mw-sy`))}for(let e of t.inlineElements??[]){if(e.sticky===void 0)continue;let t=e.element;Q(t,`--mw-it`,String(e.stickyShift?.y??0)),Q(t,`--mw-il`,String(e.stickyShift?.x??0))}}}function wa(e){let t=e.source,n=e.localRect;e.style.position!==`sticky`&&($(t,`--mw-sx`),$(t,`--mw-sy`));let r=e.resolvedPadding,{border:i,textAlignBlocked:a,overflow:o,whiteSpace:s,tracking:c,lineGap:l}=e.style,u=e.multicolFlow,d=e.multicolFlowSpan;_a(t,`data-mw-laid-out`,!e.inlineBox&&!u&&!d&&!e.flow),_a(t,`data-mw-inline-box`,!!e.inlineBox),_a(t,`data-mw-multicol-flow`,!!u),_a(t,`data-mw-multicol-flow-span`,!!d);let f=e.flow&&e.style.float!==`none`?e.style.float:null;ga(t,`data-mw-float`,f),ga(t,`data-mw-flow`,e.flow&&!f?lr(e)?`box`:`text`:null);let p=u??d??e.flow;p?(Q(t,`--mw-mt`,String(p.top??0)),Q(t,`--mw-mr`,String(p.right??0)),Q(t,`--mw-mb`,String(p.bottom??0)),Q(t,`--mw-ml`,String(p.left??0))):($(t,`--mw-mt`),$(t,`--mw-mr`),$(t,`--mw-mb`),$(t,`--mw-ml`)),_a(t,`data-mw-vbottom`,!!e.inlineBox&&e.style.verticalAlign===`end`),Q(t,`--mw-ls`,String(c)),Q(t,`--mw-lh`,String(l+1)),Q(t,`--mw-lhs`,String(-l/2)),_a(t,`data-mw-nowrap`,s!==`normal`);let m=u||d?void 0:e.multicolGeometry;if(_a(t,`data-mw-multicol`,!!m),_a(t,`data-mw-multicol-balance`,!!m?.nativeBalance),m?(Q(t,`--mw-colc`,String(m.columnCount)),Q(t,`--mw-colg`,String(m.gap))):($(t,`--mw-colc`),$(t,`--mw-colg`)),_a(t,`data-mw-pre`,s===`pre`),Q(t,`--mw-x`,String(n.x)),Q(t,`--mw-y`,String(n.y)),Q(t,`--mw-w`,String(n.width)),Q(t,`--mw-h`,String(n.height)),_a(t,`data-mw-clip`,o.x===`clip`||o.y===`clip`),_a(t,`data-mw-scroll`,e.scrollRange!==void 0),e.scrollRange){let{maxX:n,maxY:r}=e.scrollRange;Q(t,`--mw-se-x`,String(n>0?n+e.localRect.width:1)),Q(t,`--mw-se-y`,String(r>0?r+e.localRect.height:1))}else $(t,`--mw-se-x`),$(t,`--mw-se-y`);Q(t,`--mw-pt`,String(r.top)),Q(t,`--mw-pr`,String(r.right)),Q(t,`--mw-pb`,String(r.bottom)),Q(t,`--mw-pl`,String(r.left)),Q(t,`--mw-bt`,String(i.top)),Q(t,`--mw-br`,String(i.right)),Q(t,`--mw-bb`,String(i.bottom)),Q(t,`--mw-bl`,String(i.left)),Q(t,`--mw-ti`,String(e.style.textIndent)),_a(t,`data-mw-text-align-blocked`,a),_a(t,`data-mw-table-hidden`,!!e.tableHidden),_a(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function Ta(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 Ea(e){let t=[],n=[],r=e=>{n.length>0&&Da(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 Da(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)}function Oa(e){for(let t of e)ka(t)}function ka({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&&Zr(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=Na(t.node,t.origin,r.node),l=t===i&&i.node.lattice?ja(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:Ta({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},Ma(u.left,o.x1-o.x0),Ma(u.right,o.x1-o.x0)),y:Ta({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},Ma(u.top,o.y1-o.y0),Ma(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&Aa(e,s,o)}function Aa(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=Na(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=ei(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:Ta(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:Ta(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 ja(e,t){let n=Ae(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 Ma(e,t){return e===null?null:Y(e,t)}function Na(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 Pa(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a=ro(e)?e.computedStyleMap():null,o=e.getAttribute(`class`)??``,s=e.style;Qa(e,o,s);let c=(e,r,i)=>ko(a,e,r,o,i,s,n,t)??jo(a,e,r,o,i,s,n,t)??xo(r,t),l=r.display||Ja[e.tagName]||``,u=Ya[l]??`none`,d=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,f=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,p=Number.isFinite(f)?Math.max(1,Ne(f,t)):null,m=l===`flex`||l===`inline-flex`?`flex`:l===`grid`||l===`inline-grid`?`grid`:l===`table`||l===`inline-table`?`table`:l===`none`||qa(e,r)?`none`:d!==null||p!==null?`multicol`:`block`,h={kind:`none`},g={kind:`none`},_=[It()],v=[It()],y={direction:`row`,dense:!1},b=null;if(m===`grid`){if(a)h=Po(a.get(`grid-template-columns`)?.toString()??``,t),g=Po(a.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{h=Po(r.getPropertyValue(`grid-template-columns`),t),g=Po(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}_=Ro(r.getPropertyValue(`grid-auto-columns`),t),v=Ro(r.getPropertyValue(`grid-auto-rows`),t),y=Wo(r.getPropertyValue(`grid-auto-flow`)),b=Lo(r.getPropertyValue(`grid-template-areas`))}let x=`auto`,S=!1,C=0,w=0;if(m===`table`&&(x=r.tableLayout===`fixed`?`fixed`:`auto`,S=r.borderCollapse===`collapse`,!S)){let e=r.borderSpacing.split(` `);C=Ne(parseFloat(e[0]??``)||0,t),w=Ne(parseFloat(e[1]??e[0]??``)||0,t)}let T={display:m,tableRole:u,tableLayout:x,borderCollapse:S,borderSpacingX:C,borderSpacingY:w,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:u===`cell`||l.startsWith(`inline-`)?Xa(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:Mo(r.flexBasis,t),order:Number(r.order)||0,justifyContent:io(r.justifyContent),alignContent:io(r.alignContent),alignItems:ao(r.alignItems),alignSelf:oo(r.alignSelf),justifyItems:ao(r.justifyItems),justifySelf:oo(r.justifySelf),gridTemplateColumns:h,gridTemplateRows:g,gridAutoColumns:_,gridAutoRows:v,gridAutoFlow:y,gridTemplateAreas:b,gridColumnStart:Uo(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Uo(r.getPropertyValue(`grid-column-end`)),gridRowStart:Uo(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Uo(r.getPropertyValue(`grid-row-end`)),width:To(a,r.width,`width`,t,o,s,n),height:To(a,r.height,`height`,t,o,s,n),minWidth:c(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:c(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:c(`max-width`,r.maxWidth,`max-w`),maxHeight:c(`max-height`,r.maxHeight,`max-h`),padding:Go(r,t),margin:so(r,a,o,s,t),position:uo(r.position),float:fo(r.position)?`none`:po(r.float),clear:mo(r.clear),insets:ho(r,a,o,s,t),gapX:So(r.columnGap===`normal`||r.columnGap===``?m===`multicol`?`${i}px`:`0px`:r.columnGap,t),gapY:So(r.rowGap===`normal`?`0px`:r.rowGap,t),border:Ko(r),borderStyle:{top:bo(r.borderTopStyle),right:bo(r.borderRightStyle),bottom:bo(r.borderBottomStyle),left:bo(r.borderLeftStyle)},borderRadius:{tl:yo(r.borderTopLeftRadius,t),tr:yo(r.borderTopRightRadius,t),bl:yo(r.borderBottomLeftRadius,t),br:yo(r.borderBottomRightRadius,t)},overflow:Ka(r),scrollbarWidth:Ha(e,r),scrollbarColor:Ua(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Wa(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Wa(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Wa(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Wa(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Za(e,r,t),lineGap:lo(r.lineHeight,i),tracking:co(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:La(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,borderColor:{top:r.borderTopColor,right:r.borderRightColor,bottom:r.borderBottomColor,left:r.borderLeftColor},opacity:Co(r.opacity),glyphSet:r.getPropertyValue(`--mw-border-glyphs`).trim()||null,boxShadow:_o(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:m===`flex`||m===`grid`||m===`multicol`?eo(r,`x`):null,ruleY:m===`flex`||m===`grid`?eo(r,`y`):null,ruleBreak:$a(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,Me(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:$a(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:d,columnWidth:p,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 Fa(T,r),T}function Fa(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,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=Ft(),e.display===`table`&&(e.padding=Ft()))}function Ia(e){if(!e)return!0;let t=e.trim().toLowerCase();return t===``||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`currentcolor`}function La(e,t,n){let r=te(e,Ia(t)?``:t,n);return r===``?void 0:r}function Ra(e){return e===`hidden`||e===`clip`}var za=new WeakMap,Ba=null;function Va(e){if(Ba!==null)return Ba;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),Ba=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),Ba}function Ha(e,t){if(!Va(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=za.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return za.set(e,n),n}function Ua(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 Wa(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function Ga(e){return Ra(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function Ka(e){let t=Ga(e.overflowX||e.overflow),n=Ga(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function qa(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)`||!w(e.tagName)&&(Ra(t.overflow)||Ra(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Ja={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`},Ya={"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 Xa(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 Za(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:to(e,t),textAlign:no(e,t),textIndent:wo(t,n)}}function Qa(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&v(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function $a(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function eo(e,t){let n=Me(parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0);if(n<=0)return null;let r=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:n,style:bo(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),color:r&&r!==`currentcolor`&&r!==`currentColor`?r:e.color}}function to(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function no(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function ro(e){return typeof e.computedStyleMap==`function`}function io(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 ao(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function oo(e){return e===`auto`||e===``||e===`normal`?`auto`:ao(e)}function so(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=So(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=So(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:So(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 co(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function lo(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 uo(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function fo(e){return e===`absolute`||e===`fixed`}function po(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function mo(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 ho(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:So(e,i)}let s=r[a];if(s)return s===`auto`?null:So(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=go(n,o,i);return l===void 0?c?So(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 go(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],So(s[2].replaceAll(`_`,` `),n))}function _o(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(Ne(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of vo(e)){let e=Ho(o);if(e.includes(`inset`))continue;let 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:Ne(d,t),color:e.find(e=>!r(e))??`currentcolor`})}return a}function vo(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 yo(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 bo(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function xo(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)?Ne(n,t):void 0}function So(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=Ao(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=Me(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)?Ne(n,t):0}function Co(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}function wo(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,Ne(r,t)):0}function To(e,t,n,r,i,a,o){let s=Eo(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Oo(s,n,o,r)};let c=ko(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=Do(i,l)??Do(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:Oo(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=No(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:Ne(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:Me(parseFloat(i)/.25)};let s=Eo(i);if(s!==null)return{kind:`cells`,value:Oo(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=No(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:Ne(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:Me(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:Ne(g,r)}}function Eo(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 Do(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?Eo(r[1]):null}function Oo(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):Ne(e,r)}function ko(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=Ao(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,Me(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 Ao(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=Eo(e);return l===null?null:c(Oo(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 jo(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Eo(a.getPropertyValue(t))??Eo(e?.get(t)?.toString().trim()??``);if(l!==null)return Oo(l,c,o,s);let u=Do(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 Oo(p?f:u,c,o,s)}function Mo(e,t){if(!e||e===`auto`||e===`content`)return;let n=No(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:Ne(r,t)}:void 0}function No(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 Po(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 Ho(n)){let n=Io(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=Fo(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(zo(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 Fo(e,t){let n=[],r=[],i=[];for(let a of Ho(e)){let e=Io(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(zo(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Io(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Lo(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 Ro(e,t){let n=Ho(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>zo(e,t));return n.length>0?n:[It()]}function zo(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Vo(n[1]).map(e=>e.trim());return e.length===2?{min:Bo(e[0],t),max:Bo(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Bo(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Bo(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=Vo(n[2]).map(e=>Bo(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`)?Me(r/.25):Ne(r,t)}:{kind:`auto`}}function Vo(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 Ho(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 Uo(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 Wo(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Go(e,t){return{top:So(e.getPropertyValue(`padding-top`),t),right:So(e.getPropertyValue(`padding-right`),t),bottom:So(e.getPropertyValue(`padding-bottom`),t),left:So(e.getPropertyValue(`padding-left`),t)}}function Ko(e){let t=(t,n)=>e.getPropertyValue(n)===`none`?0:Me(parseFloat(e.getPropertyValue(t))||0);return{top:t(`border-top-width`,`border-top-style`),right:t(`border-right-width`,`border-right-style`),bottom:t(`border-bottom-width`,`border-bottom-style`),left:t(`border-left-width`,`border-left-style`)}}function qo(e,t,n,r){let i=Pa(e,t,n);if(i.display===`none`)return null;let a=w(e.tagName);if(a)return es(e,i,a);let o=Array.from(e.children),s=o.map(as),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||bs(e.tagName)?$o(e,i,o,s,c):{source:e,style:i,children:Jo(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:Ft()}}function Jo(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=qo(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??=Qo(e,n,r),s.push(Yo(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=as(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 Yo(e,t,n,r,i,a){let o=$o(e,a,n,r,i,t);return o.anonymous=!0,o}function Xo(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(as);return o.includes(`block`)||!vs(e)&&!o.includes(`inline`)?null:$o(e,Zo(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function Zo(e,t,n){return{...Qo(e,t,n),tracking:0,lineGap:0}}function Qo(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...Pt(),...Za(e,r,t),lineGap:lo(r.lineHeight,i),tracking:co(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return Ka(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function $o(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=bs(l),d=os(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}=ps(d);if(d.boxes.length>0){let e=dr();lt(f,(t,n)=>{p[t]=Math.max(1,Fr(d.boxes[n],e))})}let h=hs(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=>et(e.trim())))}}let g=f.length>0?gs(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
|
+
`},mi=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}},hi=`text/tailwindcss`,gi,_i=new Set,vi=``,yi=document.createElement(`style`),bi=Promise.resolve(),xi=1,Si=new mi;async function Ci(){Si.start(`Create compiler`),Si.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${hi}"]`),t=``;for(let n of e)ki(n),t+=n.textContent+`
|
|
952
|
+
`;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),Si.end(`Reading Stylesheets`,{size:t.length,changed:vi!==t}),vi!==t){vi=t,Si.start(`Compile CSS`);try{gi=await fi(t,{base:`/`,loadStylesheet:wi,loadModule:Ti})}finally{Si.end(`Compile CSS`),Si.end(`Create compiler`)}_i.clear()}}async function wi(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:pi.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:pi.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:pi.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:pi.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return Si.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw Si.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Ti(){throw Error(`The browser build does not support plugins or config files.`)}async function Ei(e){if(!gi)return;let t=new Set;Si.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)_i.has(n)||(_i.add(n),t.add(n));Si.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(Si.start(`Build utilities`),yi.textContent=gi.build(Array.from(t)),Si.end(`Build utilities`))}function Di(e){async function t(){if(!gi&&e!==`full`)return;let t=xi++;Si.start(`Build #${t} (${e})`),e===`full`&&await Ci(),Si.start(`Build`),await Ei(e),Si.end(`Build`),Si.end(`Build #${t} (${e})`)}bi=bi.then(t).catch(e=>Si.error(e))}var Oi=new MutationObserver(()=>Di(`full`));function ki(e){Oi.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`)===hi&&(ki(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==yi&&n++;r.type===`attributes`&&n++}if(t>0)return Di(`full`);if(n>0)return Di(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Di(`full`),document.head.append(yi)})();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 ee(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function k(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 te=new WeakMap;function ne(e,t){let n=te.get(e);n||te.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,re(e)))}function re(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 A=new Map,ie=new Set;function ae(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}A.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),A.set(t,{...e,tag:t}),de()}function oe(){de()}function se(e){return A.get(e.toLowerCase())}function ce(){let e=new Set;for(let t of A.values())for(let n of t.observedAttributes??[])e.add(n.toLowerCase());return[...e]}function le(e){return ie.add(e),()=>ie.delete(e)}function ue(e,t){try{return e.render(t)}catch(n){return ne(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function de(){for(let e of ie)e()}var fe=new WeakMap,pe=[],me=new Map;function he(e,t,n){let r=fe.get(e);fe.set(e,t);let i=me.get(e);if(i){if(t!==i.toValue){let n=j(i);return me.delete(e),pe.push({el:e,from:n,to:t}),n}let n=j(i);return n===i.toValue&&me.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(pe.push({el:e,from:r,to:t}),r):t}function ge(e){let t=!1;for(let n=pe.length-1;n>=0;n--){let{el:r,from:i,to:a}=pe[n];if(!r.isConnected){pe.splice(n,1);continue}if(!e.contains(r))continue;pe.splice(n,1),t=!0;let o=M(getComputedStyle(r),`background-color`),s=xe(i),c=xe(a);o&&s&&c&&me.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function _e(){let e=performance.now();for(let[t,n]of me)(!t.isConnected||e>=n.start+n.duration)&&me.delete(t);return me.size>0}function j(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return Ce(Se(e.from,e.to,n))}var ve={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 M(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=N(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:N(i(e.transitionDelay))*1e3,easing:ye(i(e.transitionTimingFunction))}}function N(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function ye(e){if(e===`linear`)return e=>e;let t=ve[e];if(t)return be(...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 be(e,t,r,i)}return e=>e}function be(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 xe(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{...L(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 Se(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=I(e.r,e.g,e.b),o=I(t.r,t.g,t.b);return{...L(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function Ce(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 P(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function F(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function I(e,t,n){let r=P(e),i=P(t),a=P(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 L(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:F(4.0767416621*r-3.3077115913*i+.2309699292*a),g:F(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:F(-.0041960863*r-.7034186147*i+1.707614701*a)}}var we=e=>e===`oklch`?2:e===`hsl`?0:-1,R=e=>Math.min(1,Math.max(0,e)),z=(e,t=1)=>{if(e===`none`)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:NaN};function Te(e,t){let[n,r]=e.split(`/`),i=n.trim().split(/[\s,]+/).filter(Boolean),a=r===void 0?1:z(r.trim());return t&&r===void 0&&i.length===4&&(a=z(i.pop())),{tokens:i,alpha:Number.isFinite(a)?R(a):1}}var Ee=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,De=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function Oe(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 ke(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 Ae=(e,t,n,r)=>{let[i,a,o]=ke(e,t,n);return{r:R(De(i)),g:R(De(a)),b:R(De(o)),a:r}};function je(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}=Te(i,r===`rgb`||r===`rgba`);switch(r){case`rgb`:case`rgba`:{let[e,t,n]=a.map(e=>z(e,255)/255);return e===void 0||[e,t,n].some(e=>!Number.isFinite(e))?null:{r:R(e),g:R(t),b:R(n),a:o}}case`oklab`:{let[e,t,n]=[z(a[0]??``),z(a[1]??``,.4),z(a[2]??``,.4)];return[e,t,n].some(e=>!Number.isFinite(e))?null:Ae(e,t,n,o)}case`oklch`:{let[e,t,n]=[z(a[0]??``),z(a[1]??``,.4),z(a[2]??``)];if([e,t,n].some(e=>!Number.isFinite(e)))return null;let r=n*Math.PI/180;return Ae(e,t*Math.cos(r),t*Math.sin(r),o)}case`color`:{let[e,...t]=a,[n,r,i]=t.map(e=>z(e));return n===void 0||[n,r,i].some(e=>!Number.isFinite(e))?null:e===`srgb-linear`?{r:R(De(n)),g:R(De(r)),b:R(De(i)),a:o}:{r:R(n),g:R(r),b:R(i),a:o}}default:return null}}var Me=e=>/^(?:rgba?|hsla?)\(|^transparent$|^#|^[a-z]+$/i.test(e.trim()),Ne=(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]},Pe=(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:R(a(0)),g:R(a(8)),b:R(a(4)),a:r}};function Fe({r:e,g:t,b:n,a:r},i){if(i===`srgb`)return{c:[e,t,n],a:r};if(i===`hsl`)return{c:Ne(e,t,n),a:r};let a=[Ee(e),Ee(t),Ee(n)];if(i===`srgb-linear`)return{c:a,a:r};let[o,s,c]=Oe(...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 Ie(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=we(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 Le(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=we(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:R(De(c)),g:R(De(l)),b:R(De(u)),a:i};case`hsl`:return Pe(c,l,u,i);case`oklab`:return Ae(c,l,u,i);default:{let e=u*Math.PI/180;return Ae(c,l*Math.cos(e),l*Math.sin(e),i)}}}function Re(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 ze({r:e,g:t,b:n,a:r}){let i=e=>Math.round(R(e)*255),a=`${i(e)} ${i(t)} ${i(n)}`;return r>=1?`rgb(${a})`:`rgb(${a} / ${Math.round(r*1e3)/1e3})`}function Be(e){let t=je(e);if(t)return t.a;let n=/\/\s*([\d.]+%?)\s*\)$/.exec(e.trim()),r=n?z(n[1]):1;return Number.isFinite(r)?R(r):1}function Ve(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)};Ue(n,e.borderStyle,e.borderWeight,e.borderColor,l,c,a,i(e.glyphSet))}}function He(e,t,n,r){let a=e.boxShadow.filter(e=>e.inset===n);if(a.length===0)return;let o=ee(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=Be(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 Ue(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 We(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function Ge(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)We(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 Ke(e,t,n,r){return w(e,t,r).roles[n]}function qe(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 Je(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 Ye(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=Ke(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});Xe(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?qe(i?`double`:`solid`,u,d,m,l(o,c,p,f),l(o,c,p,f+1),e.glyphs):Ke(e.ruleY.style,e.ruleY.weight,`h`,e.glyphs),x:n+f,y:r+p,length:1,color:e.ruleY.color})}}Xe(e,t,`y`,d.line,d.start,d.end)}}return t}function Xe(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:qe(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 Ze={double:3,solid:2,dashed:1,dotted:0},Qe=8,$e=4,et=2,tt=1,nt=(e,t)=>e!=null&&t<e.width,rt=(e,t)=>Math.max(1,e?.width??0,t?.width??0);function it(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 at(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 Ge(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}=ct(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=st(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 ot(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=it(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=at(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&&Ze[a.style]>Ze[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}=ct(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=nt(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,$e|(e+1<v?Qe:0),n,r,null,i);let b=nt(l,o)?h:Math.min(h,rt(p[e-1],p[e])),x=_(t+1)+a.y;for(let e=0;e<b;e++)S(d,x+e,Qe|(e+1<b?$e: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=nt(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,tt|(e+1<v?et:0),n,i,null,r);let b=nt(u,o)?h:Math.min(h,rt(p[e-1],p[e])),x=g(t+1)+a.x;for(let e=0;e<b;e++)S(x+e,d,et|(e+1<b?tt:0),n,i,null,r)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?Ke(e.dominant.style,e.dominant.weight,e.only.axis,f):qe(e.allDouble?`double`:`solid`,e.dominant.weight,(e.mask&Qe)!==0,(e.mask&$e)!==0,(e.mask&et)!==0,(e.mask&tt)!==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 st(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 ct(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 lt={width:1,height:2},ut={r:0,g:0,b:0,a:0},dt=new WeakMap;function ft(e,t,n,r,i){let a=`${t}|${n}|${r}|${i.width}|${i.height}`,o=dt.get(e);if(o?.key===a)return o.rows;let s=t===void 0?null:je(t),c={width:n*i.width,height:r*i.height,cell:i},l=e.map(e=>pt(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??ut;for(let e=l.length-1;e>=0;e--)c=Re(yt(l[e],n,o),c);r.push(c.a===0&&s===null?t??null:ze(c))}u.push(r)}return dt.set(e,{key:a,rows:u}),u}function pt(e,t){let n=t.cell.width;if(e.kind===`linear`){let r=vt(e,t);return{gradient:e,stops:gt(e,n/r.length),kind:`linear`,...r,cx:t.width/2,cy:t.height/2}}if(e.kind===`radial`){let r=B(e,t);return{gradient:e,stops:gt(e,n/r.rx),kind:`radial`,...r}}let{x:r,y:i}=ht(e.at,t);return{gradient:e,stops:gt(e,0),kind:`conic`,cx:r,cy:i,from:e.from}}var mt=(e,t,n)=>`fraction`in e?e.fraction*t:e.cells*n.cell.width,ht=({x:e,y:t},n)=>({x:mt(e,n.width,n),y:mt(t,n.height,n)});function gt(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=>Fe(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)},Ie(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 _t(e,t,n){let{space:r}=e,i=e=>Le(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 Le(c.pair.from,c.pair.to,u,r)}function vt(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 B(e,t){let{x:n,y:r}=ht(e.at,t),{size:i}=e;if(typeof i==`object`)return{cx:n,cy:r,rx:mt(i.rx,t.width,t),ry:mt(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 yt(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 _t(e.gradient,e.stops,r)}function bt(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function xt(e,t){return t<=0?0:bt(e/(.25*t))}function St(e,t){return bt(t*e/100)}function Ct(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;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s}}function wt(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}var Tt=[[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 Et(e){let t=0,n=Tt.length;for(;t<n;){let r=t+n>>1,[i,a]=Tt[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Dt=/^\p{Extended_Pictographic}/u,Ot=/^\p{Emoji_Presentation}/u,kt=/^\p{Regional_Indicator}/u,At=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,jt=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,Mt=`︎`,Nt=`️`,Pt=``,Ft=`⃣`;function It(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Dt.test(e)?e.includes(Mt)?1:e.includes(Nt)||e.includes(Pt)||Ot.test(e)?2:1:e.includes(Ft)?2:kt.test(e)?At.test(e)?2:1:Et(t)||Ot.test(e)?2:+!jt.test(e)}var Lt=/^[\x00-\x7f]*$/,Rt;function zt(e){return Lt.test(e)?e.split(``):(Rt===void 0&&(Rt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Rt?Array.from(Rt.segment(e),e=>e.segment):Array.from(e))}function Bt(e,t){let n=It(e);return n===0?0:n+t}function Vt(e,t=0){let n=[];for(let r of zt(e)){n.push(Bt(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function Ht(e){let t=0;for(let n of zt(e))t+=It(n);return t}function Ut(e,t,n={}){return Gt(e,t,n).length}function Wt(e,t){return t.endsWith(`
|
|
953
|
+
`)&&e.pop(),e}function V(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 Wt(t,e)}function Gt(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
|
+
`)&&(en(e,i,o,t,n,a,r),a=0,i=o+1);return Wt(r,e)}function Kt(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 qt(e,t,n,r,i=0){return n<=t?0:Kt(t,n,r)-Math.min(i,Jt(e,n-1,r))}function Jt(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,It(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function Yt(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of $t(e,0,e.length))for(let a of Zt(e,t.start,t.end))i=Math.max(i,qt(e,a.start,a.end,n,r));return i}function Xt(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Zt(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 Qt=/[ \t\r\n\f]/;function $t(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&Qt.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!Qt.test(e[i]);)i++;r.push({start:t,end:i})}return r}function en(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=$t(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 Zt(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+Kt(s,o,i),u=Math.min(a,Jt(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&&qt(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=Kt(t,o,i)}n=!0}}p!==null&&c.push(p)}function tn(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 H(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>tn(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)),Je(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function U(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 nn(e,t,n,r,a,o,s){let c=li(e.style,`x`,t),l=li(e.style,`y`,n),u=fn(e).map(e=>{let n=X(e.style.margin,t);return{node:e,base:dn(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:hn(e,t,s),max:di(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,J(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,J(e.base,e.min,e.max))):cn(e,a);for(let n=0;n<e.length;n++)q(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=pn(e.style);if(i===`stretch`&&r>0){let e=G(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=sn(`start`,h,0)}else _=sn(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=ln(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=J(Math.max(0,d-e-a),di(c.style.minHeight,l)??0,di(c.style.maxHeight,l));if(f===c.localRect.height)continue;q(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=G(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=sn(`start`,o,0)}else C=sn(mn(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+an(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 tn(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 H(e,m,i,f,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=Ye({glyphs:i(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:U(n,e.style.ruleInset),horizontal:U(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 W(e,a,o,t,y),y}function W(e,t,n,r,i){for(let a of e.children)K(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 rn(e,t,n,r,a,o,s){let c=li(e.style,`y`,n),l=fn(e).map(i=>{let a=X(i.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=ln(i,e)===`stretch`;q(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?St(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:f??di(i.style.minHeight,l)??0,max:di(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)?cn(l,h):l.map(e=>Math.max(0,J(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=ln(r.node,e)===`stretch`;q(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=G(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=sn(`start`,_,0)}else C=sn(mn(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+on(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=Ye({glyphs:i(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:U(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 W(e,a,o,t,O),O}function an(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+un(i,n,e.localRect.height)}function on(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+un(i,n,e.localRect.width)}function sn(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=G(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 cn(e,t){let n=e.length,r=(t,n)=>Math.max(0,J(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=G(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 G(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 ln(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function un(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function dn(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Ci(r,t,e,n):i!==void 0&&i.kind!==`auto`?Ci(i,t,e,n):wi(e,n)}function fn(e){let t=e.children.filter(e=>!K(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function pn(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function mn(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function hn(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?Di(e,n):0:di(e.style.minWidth,t)??0}function gn(e){return e===`auto`||e===`scroll`}function _n(e){return e.children.filter(e=>e.inlineBox)}function vn(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function yn(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=vn(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function bn(){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:[Sn()],gridAutoRows:[Sn()],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:xn(),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:xn(),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,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 xn(){return{top:0,right:0,bottom:0,left:0}}function Sn(){return{min:{kind:`auto`},max:{kind:`auto`}}}function Cn(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:li(s,`x`,t),f=u?u.gap:li(s,`y`,c),p=Nn(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=>X(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(wn),T=l?En(l):Jn(v,b,Dn(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:Yn(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=Zn(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-Ln(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?Tn(E,T,d,n.col.start,n.col.span,kn(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?q(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?q(t,r,void 0,0,0,`fill`,o,{width:J(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?Di(t,o):0:di(t.style.minWidth,r)??0,fi(t.style.maxWidth,r,t,o))}):q(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?En(u):Jn(y,x,On(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),ee=Xn(O),k=u?u.positions:Yn(O,c??ee,s.alignContent),te=r.left+a.left,ne=r.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=Zn(E,T.sizes,r.col.start,r.col.span),s=Zn(k,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Rn(i)),l=ln(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=Tn(k,O,f,r.row.start,r.row.span,kn(n,`rows`,i,a)),q(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=J(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:di(n.style.minHeight,s)??0,di(n.style.maxHeight,s));e!==n.localRect.height&&q(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&q(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:te+E[r.col.start]+Qn(C[t],i.left,i.right,a,n.localRect.width),y:ne+k[r.row.start]+Qn(l,i.top,i.bottom,s,n.localRect.height)}}let re=Number.isFinite(n)?Math.max(n,ee):ee;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 Je(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,k,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(k,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=Ye({glyphs:i(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:re,border:r,borderStyle:s.borderStyle,borderWeight:s.borderWeight,borderColor:s.borderColor,padding:a})}let A=e.children.filter(e=>K(e.style));if(A.length>0){let e=K(s)?{x:r.left,y:r.top,width:a.left+t+a.right,height:a.top+re+a.bottom}:{x:te,y:ne,width:t,height:re};for(let n of A){let r=jn(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=jn(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,k,O.sizes,-a.top,re+a.bottom);n.staticSlot={kind:`grid`,area:{x:te+r.start,y:ne+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return re}function wn(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function Tn(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 En(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function Dn(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=kn(a,`cols`,c,0);for(let t of An(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:Ei(a,`min`,r)+Ln(c),max:Ei(a,`max`,r)+Ln(c)})}),i}function On(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=kn(i,`rows`,s,0);for(let t of An(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Rn(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Rn(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function kn(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+Y(a.left,r),end:(n.right??0)+i.right+Y(a.right,r)}:{start:(n.top??0)+i.top+Y(a.top,r),end:(n.bottom??0)+i.bottom+Y(a.bottom,r)}}function An(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=Nn(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=X(e.style.margin,0);if(wn(e)[t]){let n=kn(e,t,p,0),a=An(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:Ei(e,`min`,i)+Ln(p)+f,max:Ei(e,`max`,i)+Ln(p)+f});else{let t=e.localRect.height+Rn(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 jn(e,t,n,r,i,a,o,s){let c=Wn(e,`start`,n),l=Wn(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Gn(c,t,1,n):l!==null&&e.kind===`span`&&(c=Gn(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 Mn(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=Nn(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(wn),s=a.children.map(e=>X(e.style.margin,0)),c=Jn(a.colTracks,a.colCollapsed,Dn(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 Nn(e,t,n,r,i,a){let o=e.style,s=In(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Pn(a.col):zn(o.gridTemplateColumns,t,r),d=l?Pn(a.row):zn(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Vn(p,u.lineNames,f.columns,o.gridAutoColumns),l||Vn(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},_=qn(s.map(e=>({col:Kn(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Kn(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&Fn(_,`col`,p.length),l&&Fn(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Hn(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Hn(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:Un(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:Un(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Pn(e){return{tracks:Array.from({length:e},()=>Sn()),lineNames:Array.from({length:e+1},()=>[])}}function Fn(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 In(e){return e.children.filter(e=>!K(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function Ln(e){return(e.left??0)+(e.right??0)}function Rn(e){return(e.top??0)+(e.bottom??0)}function zn(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=Bn(n.min,t)??Bn(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 Bn(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return St(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=Bn(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Vn(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Hn(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 Un(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 Wn(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 Gn(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 Kn(e,t,n){let r=Wn(e,`start`,n),i=Wn(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`?Gn(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Gn(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 qn(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 Jn(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=Bn(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=Bn(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=G(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=G(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=G(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,bt(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=G(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=G(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=G(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 Yn(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Xn(e)),o=sn(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 Xn(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function Zn(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 Qn(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+un(e,r,i+a+o)}function $n(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 er(e,t,n){let r=$n(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 tr(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 nr(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function rr(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function ir(e,t,n){let r=$n(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 ar(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function or(e,t,n,r){let i=si(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=ci(e,i),s=e.style.lineGap,c=cr(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=rr(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>sr(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=sr(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 sr(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 cr(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var lr=null;function ur(){if(lr!==null)return lr;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(),lr=!(n.width>0&&n.top-t>=10),lr}function dr(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++)ar(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=Ye({glyphs:i(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:U(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderWeight:a.borderWeight,borderColor:a.borderColor,padding:r})}function fr(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 pr(e,t,n,r,i,a,o){let s=e.style,c=li(s,`x`,n),l=ir(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:si(e,Math.max(1,l.width-e.style.tracking)),margin:X(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:_i(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=rr(1,Math.max(1,sr(a,u,1/0,_).maxUsed),e=>sr(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=sr(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=X(i.style.margin,p),t=(e.left??0)+(e.right??0);q(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=gi(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(!K(t.style))continue;let e=X(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 mr(e,t,n,r,a,o,s){let c=e.style,l=nr(n,r),u=e.children.filter(e=>!K(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=>fr(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(ur()||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 pr(e,u,t,l,a,o,s);let p=li(c,`x`,t),m=er(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:_i(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:_i(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);q(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+gi(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=rr(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);ar(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(K(r.style)){T.push({child:r,margin:X(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=X(r.style.margin,t),i=(e.left??0)+(e.right??0);q(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+gi(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=X(r.style.margin,y),i=(e.left??0)+(e.right??0);q(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=Ye({glyphs:i(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:U(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderWeight:c.borderWeight,borderColor:c.borderColor,padding:o})),C}function hr(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&ne(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 gr(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 _r(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Ci(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,vr(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,vr(t.source));else for(let e of i)r(e,vr(e.source));for(let n of t.children)n.style.tableRole!==`column`&&hr(e,n)}function vr(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function yr(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(K(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)K(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):hr(n,e))}else e===`caption`?n.caption===null?n.caption=o:hr(n,o):e===`column`||e===`column-group`?(_r(n,o,t),n.hidden.push(o)):hr(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 br(n),n}function br(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(K(a.style))continue;if(a.style.tableRole!==`cell`){hr(e,a);continue}for(;(t[i]??0)>n;)i++;let o=gr(a.source,`colspan`),s=gr(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 xr(e,t,n){let r=e.style,i=Di(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Ci(r.width,0,e,n):void 0;a=t===void 0?wi(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,J(a,o,s))}function Sr(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function Cr(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],xr(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],xr(t.node,`max`,n));let e=Sr(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=kr(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=xr(e.node,t,n)-u;if(d<=0)continue;let f=G(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 wr(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=G(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=G(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=G(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function Tr(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=Ci(e.width,0,r.node,n)),a===void 0)continue;let o=G(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=G(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 Er(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&&Ze[i]>Ze[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 Dr(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(Er(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(Er(u,o))}s.hSegments.push(i),s.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return s}function Or(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function kr(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 Ar(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 jr(e,t){let n=t.tableData.get(e);if(n)return n;let r=yr(e,t),i=Dr(e,r),a={structure:r,chrome:i,bounds:Cr(r,i,t),chromeX:Or(i,r.columnCount)};return t.tableData.set(e,a),a}function Mr(e,t){let{structure:n,bounds:r,chromeX:i}=jr(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,Di(n.caption,t)),o=Math.max(o,wi(n.caption,t))),{min:a,max:o}}function Nr(e,t,n){let r=e.style,{bounds:i,chromeX:a}=jr(e,n),{min:o,max:s}=Mr(e,n),c=r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+yn(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 Pr(e,t,n,r,a,o){let{structure:s,chrome:c,bounds:l}=jr(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-Or(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?Tr(s,m,o):wr(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&&(q(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)+kr(c,e.col,t);S.set(e,n),q(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?St(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)+Ar(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=G(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=G(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let ee=s.caption&&e.style.captionSide===`top`?b:0,k=[],te=ee;for(let e=0;e<d;e++)te+=c.collapsed?c.hLines[e]:c.spacingY,k.push(te),te+=E[e];let ne=d>0?te+(c.collapsed?c.hLines[d]??0:c.spacingY):ee,re=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!re.has(t)&&re.set(t,k[e])}for(let[e,t]of re){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=k[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?re.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+k[e]:k[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)+Ar(c,e.row,t);e.node.children.some(e=>!K(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&q(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),Fr(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)K(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+ne),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:k,contentLeft:f,contentTop:p,cells:t,set:i(e.style.glyphSet)}}return e.style.captionSide===`bottom`?ne+b:ne}function Fr(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=>!K(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||(K(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Ir(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function Lr(e,t,n,r,i){for(let a of e.children){let o=Ir(a.style);if(o===`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;a.localRect.x+=Rr(a.style.insets.left,a.style.insets.right,t),a.localRect.y+=Rr(a.style.insets.top,a.style.insets.bottom,n)}else o===`absolute`&&Br(a,e,t,n,r,i);Lr(a,t+a.localRect.x,n+a.localRect.y,[...r,{node:a,absX:t+a.localRect.x,absY:n+a.localRect.y}],i)}}function Rr(e,t,n){return e===null?t===null?0:-Y(t,n):Y(e,n)}function zr(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!ei(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 Br(e,t,n,r,i,a){let o=e.style,s=o.position===`fixed`,c=e.staticSlot,l=c?.kind===`grid`&&!s&&ei(t.style)?{x:n+c.area.x,y:r+c.area.y,width:c.area.width,height:c.area.height}:zr(i,s),u=o.insets.left===null?null:Y(o.insets.left,l.width),d=o.insets.right===null?null:Y(o.insets.right,l.width),f=o.insets.top===null?null:Y(o.insets.top,l.height),p=o.insets.bottom===null?null:Y(o.insets.bottom,l.height),m=X(o.margin,l.width),h=m.left??0,g=m.right??0,_=m.top??0,v=m.bottom??0,y=o.width===void 0||o.width.kind===`auto`,b=o.height===void 0||o.height.kind===`auto`,x=fi(o.minWidth,l.width,e,a)??0,S=fi(o.maxWidth,l.width,e,a),C={};if(!y)C.width=J(Ci(o.width,l.width,e,a),x,S);else if(u!==null&&d!==null)C.width=J(Math.max(0,l.width-u-d-h-g),x,S);else{let t=Math.max(0,l.width-(u??0)-(d??0)-h-g);C.width=J(Math.min(wi(e,a),Math.max(Di(e,a),t)),x,S)}f!==null&&p!==null&&b&&(C.height=J(Math.max(0,l.height-f-p-_-v),di(o.minHeight,l.height)??0,di(o.maxHeight,l.height))),q(e,l.width,l.height,0,0,`shrink`,a,C);let w=e.localRect.width,T=e.localRect.height,E;if(u!==null&&d!==null){let e=Math.max(0,l.width-u-d-w-h-g),t=m.left===null&&m.right===null;E=l.x+u+h+(t?Math.floor(e/2):m.left===null?e:0)}else E=u===null?d===null?Gr(e,t,n,w):l.x+l.width-d-w-g:l.x+u+h;let D;if(f!==null&&p!==null){let e=Math.max(0,l.height-f-p-T-_-v),t=m.top===null&&m.bottom===null;D=l.y+f+_+(t?Math.floor(e/2):m.top===null?e:0)}else D=f===null?p===null?Kr(e,t,r,T):l.y+l.height-p-T-v:l.y+f+_;e.localRect={...e.localRect,x:E-n,y:D-r}}function Vr(e,t,n){return sn(e,[n],Math.max(0,t-n))[0]}function Hr(e,t,n,r){return un(ln(e,t),n,r)}function Ur(e,t,n,r,i){let a=X(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?Vr(mn(t.style),c,u):Hr(e,t,c,u))+o}function Wr(e,t,n,r,i){let a=X(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,ln(e,t)];return un(u,l,i+s+c)+s}function Gr(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+Wr(e,t,i.staticArea,`x`,r):n+i.originX+Ur(e,t,i,`x`,r)}function Kr(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+Wr(e,t,i.staticArea,`y`,r):n+i.originY+Ur(e,t,i,`y`,r)}function qr(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 Jr(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return Yr(e,t,n,o,i,a)}function Yr(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=>qr(e,t,n,a).width>=i)??o[o.length-1],c=qr(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function Xr(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 Zr(e){return Xr(e,`both`,0)}function Qr(e,t){let n=ti();q(e,t,void 0,0,0,`fill`,n),Lr(e,0,0,[{node:e,absX:0,absY:0}],n);let r=e.localRect.height,i=yi(e),{overflow:a}=e.style;return a.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,i.x)),a.y===`visible`&&(e.localRect.height=Math.max(r,i.y)),{height:r}}function K(e){return e.position===`absolute`||e.position===`fixed`}function $r(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!K(e.style))}function ei(e){return e.position!==`static`}function ti(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function q(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=fi(l.minWidth,t,e,o)??0,f=fi(l.maxWidth,t,e,o),p=di(l.minHeight,n)??0,m=di(l.maxHeight,n),h=yn(l),g=vn(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:Y(l.padding.top,t),right:Y(l.padding.right,t)+h.right,bottom:Y(l.padding.bottom,t)+h.bottom,left:Y(l.padding.left,t)};e.resolvedPadding=_;let v=s?.width??J(vi(l,t,a,e,o),d,f),y=Si(l,n),b=ki(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=ri(e),w=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(C)return ni(e,b.width,t,r,S,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return nn(e,b.width,t,r,l.border,_,o);if(l.display===`flex`)return rn(e,b.width,t,n,l.border,_,o);if(l.display===`grid`)return Cn(e,b.width,t,l.border,_,o);if(l.display===`table`)return Pr(e,b.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&ne(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 mr(e,b.width,r,S,l.border,_,o)}return pi(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=J(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=J(D,p,m),ee=e.multicolGeometry;if(ee){let t=O-l.border.top-l.border.bottom-_.top-_.bottom;t>ee.totalRows&&(_.bottom+=t-ee.totalRows),dr(e,ee,l.border,_)}if(e.localRect={x:r,y:i,width:v,height:O},gn(l.overflow.x)||gn(l.overflow.y)){let c=yi(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:gn(l.overflow.x)?Math.max(0,u-f):0,maxY:gn(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){q(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 ni(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=_n(e);Xt(e.text,(n,r)=>{let i=u[r];q(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d,f;if(c.display===`multicol`){let n=li(c,`x`,t),o=ir(c,t,n);a.right+=o.leftover;let s=or(e,o,n,nr(r,i));e.multicolGeometry=s,d=s,f=s.lineX}else d=ai(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let p=e.lineBands;if(e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+qt(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows},ii(e,d,t,n,a),u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);Xt(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+(f?.[i]??0)+(p?.[i]?.x??0)+Kt(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=X(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 ri(e){return e.children.some(e=>!K(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function J(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function ii(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return;let o=a.display===`flex`&&a.flexDirection===`column`,s=t.spans.reduce((t,n)=>Math.max(t,qt(e.text,n.start,n.end,e.advances,a.tracking)),0),c=Math.max(0,n-s);if(c>0){let e=a.display===`grid`?un(a.justifyItems,n,s):o?un(a.alignItems,n,s):sn(mn(a),[s],c)[0];e>0&&(i.left+=e,i.right+=c-e)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?un(a.alignItems,r,t.totalRows):sn(mn(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}}function ai(e,t,n){let r,i;if(n)r=[],i=oi(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=si(e,t,i),{heights:o,textOffsets:s}=ci(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 oi(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=Zr(n.boxes),u=_n(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?ci(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=qr(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 si(e,t,n){if(e.style.whiteSpace!==`normal`){let t=V(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return Gt(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function ci(e,t){let n=_n(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0;for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a];t=Math.max(t,i.localRect.height),i.style.verticalAlign===`end`?s=Math.max(s,i.localRect.height-1):i.style.verticalAlign===`center`&&ne(i.source,`vertical-align: middle on an inline box can't land on whole rows and behaves as top. Use align-top or align-bottom.`),a++}r.push(t),i.push(Math.min(s,t-1))}return{heights:r,textOffsets:i}}function li(e,t,n){let r=Y(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function Y(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:St(e.percent,t)+(e.cells??0)}function X(e,t){let n=e=>e===null?null:Y(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function ui(e){return typeof e==`number`?e:0}function di(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return St(e.percent,t)+(e.cells??0)}}function fi(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Ci({kind:e},t,n,r):di(e,t)}function pi(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=X(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:_i(u,i));if(K(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=Xr(c,r.style.clear,l+(u??0)-s);q(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=Jr(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+Xr(c,r.style.clear,m-s);if(c.length>0&&$r(r)){let i=mi(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>q(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=gi(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=gi(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))&&hi(e,o,s,t,c),Math.max(l-s,Zr(c))}function mi(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Ei(e,`min`,o)+s,l=t=>q(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=qr(t,n,a);for(;r.width>=c;){l(r.width);let o=qr(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+gi(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:gi(i,n,e.localRect.width),y:d}}function hi(e,t,n,r,i){let a=e.style.lineGap,o=e=>X(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(K(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&&$r(u)?qr(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=X(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 gi(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 _i(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function vi(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!K(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?Ci(a,t,r,i):Math.min(t,wi(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Ci(a,t,r,i);return Math.max(e,xi(r,t,i))}return Nr(r,t,i)}return a!==void 0&&a.kind!==`auto`?Ci(a,t,r,i):n===`shrink`?Math.min(t,wi(r,i)):t}function yi(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=bi(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 bi(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=yi(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function xi(e,t,n){let r=e.style;return Mr(e,n).min+r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+yn(r).right}function Si(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return St(e.height.value,t)}function Ci(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return St(e.value,t);case`min-content`:return Di(n,r);case`max-content`:return wi(n,r);case`fit-content`:return Math.min(wi(n,r),Math.max(Di(n,r),t));case`auto`:return wi(n,r)}}function wi(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Ti(e,t)+r.border.left+r.border.right+ui(r.padding.left)+ui(r.padding.right)+yn(r).right;return t.maxContent.set(e,i),i}function Ti(e,t){let n=e.children.filter(e=>!K(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?tr(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Mn(e,t).max;if(e.style.display===`table`)return Mr(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(ui(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ei(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Ei(n,`max`,t)),0);if(e.style.display===`multicol`)return tr(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=Ei(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 Ei(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Ci(r.width,0,e,n)),i===void 0&&(i=t===`min`?Di(e,n):wi(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,J(i,a,o))}function Di(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Oi(e,t)+r.border.left+r.border.right+ui(r.padding.left)+ui(r.padding.right)+yn(r).right;return t.minContent.set(e,i),i}function Oi(e,t){let n=e.children.filter(e=>!K(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:Yt(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Mn(e,t).min;if(e.style.display===`table`)return Mr(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(ui(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ei(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Ei(n,`min`,t)),0)}function ki(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 Ai(e){return Bi(e,{}).grid.map(e=>e.join(``).trimEnd()).join(`
|
|
956
|
+
`)}function ji(e,t={}){let{grid:n,paints:r}=Bi(e,t);return{segments:n.map((e,n)=>Mi(e,r[n],t.boxed)),cells:n}}function Mi(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&&Pi(l,s))l.text+=o,i+=c;else if(l&&!l.box&&s&&(l.backgrounds||l.backgroundColor!==void 0)&&Ni(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)&&Ni(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 Ni(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 Pi(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 Fi(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, ${Ri(e.backgrounds)})`),e.colors&&(t.backgroundImage=`linear-gradient(to right, ${Ri(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 Ii(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=je(i.color)),c===null||c.a>=1)return i;let l=je(s);return l?{...i,color:ze(Re(c,l)),gradient:`text`}:i}}function Li(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 Ri(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 zi(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 Bi(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=Array.from({length:r},()=>Array.from({length:n},()=>` `)),a=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),o=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),s=(e,t)=>e>=0&&e<n&&t>=0&&t<r,c=(e,t)=>{let n=o[t][e];if(n)for(let e=0;e<n.cells;e++)i[t][n.x+e]=` `,o[t][n.x+e]=void 0},l=(e,t,n)=>{let r=a[t][e];a[t][e]=r?{...r,...n}:n};return Hi(e,0,0,t,(e,t,n,a,u=1)=>{if(t<0||t>=r)return;if(u===1){if(!s(e,t))return;c(e,t),i[t][e]=n,l(e,t,a);return}let d=s(e,t)&&s(e+u-1,t);for(let r=0;r<u;r++)s(e+r,t)&&(c(e+r,t),i[t][e+r]=d?r===0?n:``:` `,d&&(o[t][e+r]={x:e,cells:u}),l(e+r,t,a))}),{grid:i,paints:a}}function Vi(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 Hi(e,t,n,r,a,o=1,s=()=>!0){if(e.tableHidden)return;let c=t+e.localRect.x+(e.stickyShift?.x??0),l=n+e.localRect.y+(e.stickyShift?.y??0),u=e.style,d=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},f={x:c,y:l,width:e.localRect.width,height:e.localRect.height},p=e=>{let t=[];He(u,f,e,t);for(let e of t)a(e.x,e.y,e.glyph,d(e.color===void 0?void 0:{color:e.color}))};p(!1);let m=u.backgroundImage,h=u.backgroundClip===`text`,g=r.cell??lt,_=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++)a(c+r,l+t,` `,n)};u.backgroundClear&&_({backgroundColor:void 0});let v=null;if(h&&(m.length>0||u.backgroundColor!==void 0)){let{width:t,height:n}=e.localRect;v=Ii(ft(m,u.backgroundColor,t,n,g),c,l)}else if(m.length>0){let{width:t,height:n}=e.localRect,r=ft(m,u.backgroundColor,t,n,g),i=u.backgroundClip,o=i===`padding-box`||i===`content-box`?Li(e,i):xn();for(let e=o.top;e<n-o.bottom;e++)for(let n=o.left;n<t-o.right;n++){let t=r[e][n];t&&a(c+n,l+e,` `,d({backgroundColor:t,gradient:`fill`}))}}else u.backgroundColor!==void 0&&_(d({backgroundColor:u.backgroundColor}));p(!0);let y=[];Ve(u,{x:c,y:l,width:e.localRect.width,height:e.localRect.height},y);for(let e of y){let t=d(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)a(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=d(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)a(c+t.x+n,l+t.y,t.glyph,e)}let b=e.lattice?ot(e,e.lattice,(e,t)=>s(c+e,l+t)):null;if(e.lattice&&b){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...b.parts.keys()];for(let[e,t]of b.parts)e.latticeRuns=t.map(e=>({...e,x:c+e.x,y:l+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)a(t.x,t.y,t.glyph,d(t.color===void 0?void 0:{color:t.color}));let x=c-(e.scroll?.x??0),S=l-(e.scroll?.y??0),C=a,w=s,T=Wi(e,c,l);if(T){let{x0:e,y0:t,x1:n,y1:r}=T,i=(i,a)=>i<e||i>=n||a<t||a>=r;w=(e,t)=>!i(e,t)&&s(e,t),C=(e,t,n,r,o=1)=>{if(o===1){i(e,t)||a(e,t,n,r);return}let s=!0;for(let n=0;n<o;n++)i(e+n,t)&&(s=!1);if(s)a(e,t,n,r,o);else for(let n=0;n<o;n++)i(e+n,t)||a(e+n,t,` `,r)}}if(!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=d(Vi(u,m.length===0&&!v)),n=e.inlineElements?.map(e=>d(Vi(e))),i=r.selection?.get(e),a=(t,n,r,i,a,o)=>{if(e.text[t]===``){a?.backgroundColor&&C(r,i,` `,d({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=It(s);c>0&&C(r,i,s,v?v(o,r,i):o,c)},o=[];Ui(e,x,S,(r,s,c,l)=>{let u=e.charInline?.[r]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;i&&r>=i.start&&r<i.end&&(f={...f,selected:!0}),d?.stickyShift?o.push([r,s,c,l,d,f]):a(r,s,c,l,d,f)},(e,n)=>C(e,n,`…`,t));for(let e of o)a(...e)}for(let t of Ge(e))Hi(t,x,S,r,C,o*t.style.opacity,w);if(b)for(let e of b.runs){let t=d(e.color===void 0?void 0:{color:e.color});a(c+e.x,l+e.y,e.glyph,t)}let E=e.scrollRange,D=e.scrollGutterCells;if(E&&D&&(D.right>0||D.bottom>0)){let{track:t,thumb:n}=k(i(u.glyphSet)),r=e=>d(e?{color:e}:void 0),o=r(u.scrollbarColor?.track??u.color),s=r(u.scrollbarColor?.thumb??u.color),f=Ji(e,c,l);if(f.y){let{col:r,row:i,thick:c,len:l}=f.y,{at:u,len:d}=Yi(l,E.sizeY,E.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+e,i+c,l?n:t,l?s:o)}}if(f.x){let{col:r,row:i,thick:c,len:l}=f.x,{at:u,len:d}=Yi(l,E.sizeX,E.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+c,i+e,l?n:t,l?s:o)}}}}function Ui(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,u=e.multicolGeometry,{spans:d,textY:f}=u??ai(e,l),p=u?Math.max(1,u.columnWidth-a.tracking):l;for(let t=0;t<d.length;t++){let n=d[t],o=c+f[t],l=e.lineBands?.[t],m=l?l.width:p,h=t===0?a.textIndent:0,g=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?Xi(e.text,n,m-h,e.advances,a):{end:n.end,ellipsis:!1},_=qt(e.text,n.start,n.end,e.advances,a.tracking),v=Math.max(0,m-h-_),y=a.textAlign===`end`?v:a.textAlign===`center`?Math.floor(v/2):0,b=s+(u?.lineX[t]??0)+(l?.x??0)+y+h,x=e.advances;for(let t=n.start;t<g.end;){let n=Kt(t,t+1,x),i=1;if(x)for(;t+i<g.end&&x[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,b+c,o+l,n)}b+=n,t+=i}g.ellipsis&&i?.(b,o)}}function Wi(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 Gi(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 Ki(e,t,n,r,i){let a=null;return Ui(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 qi(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 Ui(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 Ji(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 Yi(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 Xi(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(qt(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&&qt(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function Zi(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 Qi(e,t,n){let r=[],i=e,a=e.localRect.x,o=e.localRect.y;for(;;){let e=null;for(let r of Ge(i)){if(r.tableHidden)continue;let i=a+r.localRect.x+(r.stickyShift?.x??0),s=o+r.localRect.y+(r.stickyShift?.y??0);(r.multicolFlow?Gi(r,i,s,t,n):$i(Zi(r,i,s),t,n))&&(e=r)}if(!e)return r;let s=a+e.localRect.x+(e.stickyShift?.x??0),c=o+e.localRect.y+(e.stickyShift?.y??0);r.push({node:e,x:s,y:c});let l=Wi(e,s,c);if(l&&(t<l.x0||t>=l.x1||n<l.y0||n>=l.y1))return r;a=s-(e.scroll?.x??0),o=c-(e.scroll?.y??0),i=e}}function $i(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function ea(e){return e.closest?.(`[inert]`)!=null}function ta(e,t,n){let r=[];for(let i of Qi(e,t,n)){if(ea(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function na(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*ra(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 ia={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function aa(e){return ia[e]??null}function oa(e,t,n){let r=null,i=null;for(let a of n){let n=ca(e,t,a.rect);n&&(!i||sa(n,i))&&(r=a,i=n)}return r?.element??null}function sa(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function ca(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 la(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&&da(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of qi(e,o,s))da(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 ua(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 da(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!ea(e)}var fa=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),pa=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function ma(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:fa.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!pa.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 ha(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 ga(e){let t=se(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function _a(e,t){let n=t,r=null;for(let t of ya(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function va(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*ya(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function ba(e,t,n){if(!e.charSource){let r=ga(e);return(r&&va(r,t,n))??0}let r=_n(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];ha(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 xa(e,t){if(!e.charSource){let n=ga(e),r=n&&_a(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 Sa(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 Ca(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:wa(e,r)&&wa(e,i)?`light`:`outside`}function wa(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 Ta(e){let t=[],n=e=>{let r=ga(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function Ea(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=ba(a,t.startContainer,t.startOffset),s=ba(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function Da(e,t){let n=Ea(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&&Ia(e,r)){if(Ra(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(La(e,r.startContainer)&&(n=ba(e,r.startContainer,r.startOffset)),La(e,r.endContainer)&&(a=ba(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 Oa(e,t){let n=Ea(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 ka(e,r,i),Ba(i)}function ka(e,t,n){if(e.tableHidden||!Ia(e,t))return;let r=Na(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Aa(e,t,n);else if(e.style.display===`table`){let r=Ma(e);for(let r of e.children)r.style.tableRole===`row`||ja(r)||ka(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
|
|
957
|
+
`}),ka(e,t,n),i=!0)}else{Ra(e)&&n.push({text:za(e,t)});for(let r of e.children)r.inlineBox||ka(r,t,n)}r&&n.push({breaks:r})}function Aa(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:` `}),ka(i,t,n),r=!0)}function ja(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function Ma(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if(ja(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function Na(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||ja(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`&&!e.anonymous?2:1}function Pa(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 _n(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)=>ha(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 Fa(e){return[...(e.charSource??[]).map(e=>e.node),...(e.inlineElements??[]).map(e=>e.element),...e.children.map(e=>e.source)]}function Ia(e,t){return e.anonymous?Fa(e).some(e=>t.intersectsNode(e)):t.intersectsNode(e.source)}function La(e,t){return e.anonymous?e.source===t||Fa(e).some(e=>e===t||e.contains(t)):e.source.contains(t)}function Ra(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function za(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(La(e,t.startContainer)&&(r=ba(e,t.startContainer,t.startOffset)),La(e,t.endContainer)&&(i=ba(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
|
|
958
|
+
`)&&(a=a.slice(0,-1));let o=_n(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 ka(e,t,n),Ba(n)}),a.replaceAll(``,``)}function Ba(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 Va=new Map;function Ha(e,t){let{text:n}=e;if(t<0||t>=n.length||Ua(n[t]))return null;let r=t;for(;r>0&&!Ua(n[r-1]);)r--;let i=t;for(;i<n.length&&!Ua(n[i]);)i++;let a=Wa(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 Ua(e){return e===`
|
|
960
|
+
`||e===``||e===``}function Wa(e){let t=Va.get(e);return t===void 0&&(t=Ga(e)??Ga(``),Va.set(e,t)),t}function Ga(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var Ka=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`}],qa=/^[\u2591-\u2593]$/,Ja=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=Ka.find(t=>t.range.test(e));if(s)return this.#c(s.reference,r,n);if(qa.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}},Ya=new WeakMap,Xa=new WeakMap;function Za(e){return oo(e,!0)!==null}function Qa(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n)=>r.box(e,t,n)!==null||n?.opacity!==void 0&&$a(e)),n.selection&&(i.selection=n.selection),n.cell&&(i.cell=n.cell);let{segments:a,cells:o}=ji(e,i),s=co(a);if(Ya.get(t)===s)return!0;let c=Xa.get(t),l=new Set;if(c&&c.rows.length===a.length)for(let e=0;e<a.length;e++)io(t,c.rows[e].nodes,a[e])||l.add(e);if((l.size>0||!c||c.rows.length!==a.length)&&n.holdStructural&&Za(t))return!1;if(Ya.set(t,s),!c||c.rows.length!==a.length){let e=document.createDocumentFragment(),n=[];for(let t=0;t<a.length;t++){let{nodes:i,units:o}=eo(a[t],r,t);for(let t of i)e.appendChild(t);let s=t<a.length-1?document.createTextNode(`
|
|
961
|
+
`):null;s&&e.appendChild(s),n.push({nodes:i,segments:a[t],newline:s,units:o})}Xa.set(t,{rows:n,cells:o});let i=oo(t,!1);return t.replaceChildren(e),i&&so(t,i),!0}let u=l.size>0?oo(t,!1):null;for(let e=0;e<a.length;e++){let n=a[e],i=c.rows[e];if(l.has(e)){let a=eo(n,r,e);for(let e of a.nodes)t.insertBefore(e,i.newline);for(let e of i.nodes)e.remove();i.nodes=a.nodes,i.segments=n,i.units=a.units;continue}for(let t=0;t<n.length;t++){let a=n[t];zi(a)||ro(a,i.segments[t])||no(i.nodes[t],a,r,e)}i.segments=n}return c.cells=o,u&&so(t,u),!0}function $a(e){let t=e.codePointAt(0)??0;return t>=9472&&t<=9631}function eo(e,t,n){let r=[],i=0;for(let a of e){if(i+=a.text.length,zi(a)&&!a.box){r.push(document.createTextNode(a.text));continue}let e=document.createElement(`span`);no(e,a,t,n),e.textContent=a.text,r.push(e)}return{nodes:r,units:i}}function to(e,t,n){return Xa.get(e)?.cells[n]?.[t]}function no(e,t,n,r){if(e.style.cssText=``,delete e.dataset.shade,Fi(t,e.style),!t.box)return;let i=t.cells??1,a=n?.box(t.text,i,t),o=e.style;if(o.display=`inline-block`,o.padding=`0`,o.width=`calc(${i} * var(--mw-cw, 1ch))`,o.height=`var(--mw-ch, 1lh)`,o.overflow=`hidden`,o.verticalAlign=`top`,o.textAlign=`center`,a&&a.scale!==1&&(o.fontSize=`${Math.round(a.scale*1e3)/10}%`),a?.lineHeight!==void 0){let i=a.lineHeight;a.period&&n&&(e.dataset.shade=t.text,o.setProperty(`--mw-period`,`${a.period}px`),i+=2*n.shift(a,r)),o.lineHeight=`${i}px`}}function ro(e,t){return Pi(e,t)&&e.box===t.box&&e.cells===t.cells&&e.backgrounds?.join(`,`)===t.backgrounds?.join(`,`)&&e.colors?.join(`,`)===t.colors?.join(`,`)}function io(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((zi(a)&&!a.box)!==(i.nodeType===Node.TEXT_NODE)||i.textContent!==a.text||i.parentNode!==e)return!1}return!0}function ao(e,t,n){let r=Xa.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 oo(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=Sa(r);if(!i)return null;let a=va(e,i.startContainer,i.startOffset),o=va(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 so(e,t){try{let n=_a(e,t.start),r=_a(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 co(e){let t=[];for(let n of e){for(let e of n)t.push(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}`:``);t.push(`
|
|
962
|
+
`)}return t.join(``)}function lo(e){let t=new Set;fo(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 uo(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 fo(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),go(e,o??{top:0,right:null,bottom:null,left:0}))}t?ho(e):e.anonymous||vo(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&mo(e.source,e,i),!e.tableHidden)for(let t of Ge(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&We(t,e)&&!t.inlineBox?Z(n,`--mw-z`,String(t.style.zIndex)):Q(n,`--mw-z`)}fo(t,!1,n,i)}}var po=`input, textarea, select, [contenteditable], [contenteditable] *`;function mo(e,t,n){e.matches(po)&&(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 ho(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 go(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 _o(e){for(let{node:t}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`))}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))}}}function vo(e){let t=e.source,n=e.localRect;e.style.position!==`sticky`&&(Q(t,`--mw-sx`),Q(t,`--mw-sy`));let r=e.resolvedPadding,{border:i,textAlignBlocked:a,overflow:o,whiteSpace:s,tracking:c,lineGap:l}=e.style,u=e.multicolFlow,d=e.multicolFlowSpan;$(t,`data-mw-laid-out`,!e.inlineBox&&!u&&!d&&!e.flow),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!u),$(t,`data-mw-multicol-flow-span`,!!d);let f=e.flow&&e.style.float!==`none`?e.style.float:null;uo(t,`data-mw-float`,f),uo(t,`data-mw-flow`,e.flow&&!f?$r(e)?`box`:`text`:null);let p=u??d??e.flow;p?(Z(t,`--mw-mt`,String(p.top??0)),Z(t,`--mw-mr`,String(p.right??0)),Z(t,`--mw-mb`,String(p.bottom??0)),Z(t,`--mw-ml`,String(p.left??0))):(Q(t,`--mw-mt`),Q(t,`--mw-mr`),Q(t,`--mw-mb`),Q(t,`--mw-ml`)),$(t,`data-mw-vbottom`,!!e.inlineBox&&e.style.verticalAlign===`end`),Z(t,`--mw-ls`,String(c)),Z(t,`--mw-lh`,String(l+1)),Z(t,`--mw-lhs`,String(-l/2)),$(t,`data-mw-nowrap`,s!==`normal`);let m=u||d?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!m),$(t,`data-mw-multicol-balance`,!!m?.nativeBalance),m?(Z(t,`--mw-colc`,String(m.columnCount)),Z(t,`--mw-colg`,String(m.gap))):(Q(t,`--mw-colc`),Q(t,`--mw-colg`)),$(t,`data-mw-pre`,s===`pre`),Z(t,`--mw-x`,String(n.x)),Z(t,`--mw-y`,String(n.y)),Z(t,`--mw-w`,String(n.width)),Z(t,`--mw-h`,String(n.height)),$(t,`data-mw-clip`,o.x===`clip`||o.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(r.top)),Z(t,`--mw-pr`,String(r.right)),Z(t,`--mw-pb`,String(r.bottom)),Z(t,`--mw-pl`,String(r.left)),Z(t,`--mw-bt`,String(i.top)),Z(t,`--mw-br`,String(i.right)),Z(t,`--mw-bb`,String(i.bottom)),Z(t,`--mw-bl`,String(i.left)),Z(t,`--mw-ti`,String(e.style.textIndent)),$(t,`data-mw-text-align-blocked`,a),$(t,`data-mw-table-hidden`,!!e.tableHidden),$(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function yo(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 bo(e){let t=[],n=[],r=e=>{n.length>0&&xo(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 xo(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)}function So(e){for(let t of e)Co(t)}function Co({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&&Wi(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=Do(t.node,t.origin,r.node),l=t===i&&i.node.lattice?To(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:yo({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},Eo(u.left,o.x1-o.x0),Eo(u.right,o.x1-o.x0)),y:yo({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},Eo(u.top,o.y1-o.y0),Eo(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&wo(e,s,o)}function wo(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=Do(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=qi(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:yo(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:yo(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 To(e,t){let n=st(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 Eo(e,t){return e===null?null:Y(e,t)}function Do(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 Oo(e,t,n){let r=getComputedStyle(e),a=parseFloat(r.fontSize)||t,o=Zo(e)?e.computedStyleMap():null,s=e.getAttribute(`class`)??``,c=e.style;Ko(e,s,c);let l=r.getPropertyValue(`--mw-border-glyphs`).trim()||null,u=i(l),d=(e,r,i)=>Ps(o,e,r,s,i,c,n,t)??Is(o,e,r,s,i,c,n,t)??Es(r,t),f=r.display||Ho[e.tagName]||``,p=Uo[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,xt(h,t)):null,_=f===`flex`||f===`inline-flex`?`flex`:f===`grid`||f===`inline-grid`?`grid`:f===`table`||f===`inline-table`?`table`:f===`none`||Vo(e,r)?`none`:m!==null||g!==null?`multicol`:`block`,v={kind:`none`},y={kind:`none`},b=[Sn()],x=[Sn()],S={direction:`row`,dense:!1},C=null;if(_===`grid`){if(o)v=zs(o.get(`grid-template-columns`)?.toString()??``,t),y=zs(o.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{v=zs(r.getPropertyValue(`grid-template-columns`),t),y=zs(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}b=Us(r.getPropertyValue(`grid-auto-columns`),t),x=Us(r.getPropertyValue(`grid-auto-rows`),t),S=Ys(r.getPropertyValue(`grid-auto-flow`)),C=Hs(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=xt(parseFloat(e[0]??``)||0,t),D=xt(parseFloat(e[1]??e[0]??``)||0,t)}let O={display:_,tableRole:p,tableLayout:w,borderCollapse:T,borderSpacingX:E,borderSpacingY:D,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:p===`cell`||f.startsWith(`inline-`)?Wo(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:Ls(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Qo(r.justifyContent),alignContent:Qo(r.alignContent),alignItems:$o(r.alignItems),alignSelf:es(r.alignSelf),justifyItems:$o(r.justifyItems),justifySelf:es(r.justifySelf),gridTemplateColumns:v,gridTemplateRows:y,gridAutoColumns:b,gridAutoRows:x,gridAutoFlow:S,gridTemplateAreas:C,gridColumnStart:Js(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Js(r.getPropertyValue(`grid-column-end`)),gridRowStart:Js(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Js(r.getPropertyValue(`grid-row-end`)),width:As(o,r.width,`width`,t,s,c,n),height:As(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:Xs(r,t),margin:ts(r,o,s,c,t),position:is(r.position),float:as(r.position)?`none`:os(r.float),clear:ss(r.clear),insets:cs(r,o,s,c,t),gapX:Ds(r.columnGap===`normal`||r.columnGap===``?_===`multicol`?`${a}px`:`0px`:r.columnGap,t),gapY:Ds(r.rowGap===`normal`?`0px`:r.rowGap,t),...Zs(r,u),borderRadius:{tl:ws(r.borderTopLeftRadius,t),tr:ws(r.borderTopRightRadius,t),bl:ws(r.borderBottomLeftRadius,t),br:ws(r.borderBottomRightRadius,t)},overflow:Bo(r),scrollbarWidth:Io(e,r),scrollbarColor:Lo(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Ro(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Ro(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Ro(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Ro(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Go(e,r,t),lineGap:rs(r.lineHeight,a),tracking:ns(r.letterSpacing,a,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:jo(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,backgroundImage:ds(r.backgroundImage,r.color,t),backgroundClip:gs(r.backgroundClip),borderColor:{top:r.borderTopColor,right:r.borderRightColor,bottom:r.borderBottomColor,left:r.borderLeftColor},opacity:Os(r.opacity),glyphSet:l,boxShadow:us(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:_===`flex`||_===`grid`||_===`multicol`?Jo(r,`x`,u):null,ruleY:_===`flex`||_===`grid`?Jo(r,`y`,u):null,ruleBreak:qo(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,bt(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:qo(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 ko(O,r),O}function ko(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=xn(),e.display===`table`&&(e.padding=xn()))}function Ao(e){if(!e)return!0;let t=e.trim().toLowerCase();return t===``||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`currentcolor`}function jo(e,t,n){let r=he(e,Ao(t)?``:t,n);return r===``?void 0:r}function Mo(e){return e===`hidden`||e===`clip`}var No=new WeakMap,Po=null;function Fo(e){if(Po!==null)return Po;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),Po=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),Po}function Io(e,t){if(!Fo(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=No.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return No.set(e,n),n}function Lo(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 Ro(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function zo(e){return Mo(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function Bo(e){let t=zo(e.overflowX||e.overflow),n=zo(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function Vo(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)`||!se(e.tagName)&&(Mo(t.overflow)||Mo(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Ho={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`},Uo={"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 Wo(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 Go(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:Yo(e,t),textAlign:Xo(e,t),textIndent:ks(t,n)}}function Ko(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&ne(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function qo(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Jo(e,t,n){let r=parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0;if(r<=0)return null;let i=Ts(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 Yo(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Xo(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Zo(e){return typeof e.computedStyleMap==`function`}function Qo(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 $o(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function es(e){return e===`auto`||e===``||e===`normal`?`auto`:$o(e)}function ts(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=Ds(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=Ds(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:Ds(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 ns(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function rs(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 is(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function as(e){return e===`absolute`||e===`fixed`}function os(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function ss(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 cs(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:Ds(e,i)}let s=r[a];if(s)return s===`auto`?null:Ds(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=ls(n,o,i);return l===void 0?c?Ds(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 ls(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],Ds(s[2].replaceAll(`_`,` `),n))}function us(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(xt(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of Cs(e)){let e=qs(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:xt(d,t),color:e.find(e=>!r(e)&&e!==`inset`)??`currentcolor`,inset:e.includes(`inset`)})}return a}function ds(e,t,n){let r=[];if(!e||e===`none`)return r;for(let i of Cs(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=Ks(o).map(e=>e.trim()),c=s.length>0&&!fs(s[0]),l=c?qs(s[0]):[],u=c?s.slice(1):s,d=Ss(u,n);if(d.length<2)continue;let f={repeating:t!==void 0,...hs(l,u),stops:d};if(a===`linear`)r.push({kind:a,...f,direction:vs(l)});else if(a===`radial`)r.push({kind:a,...f,...xs(l,n)});else{let e=l.indexOf(`from`);r.push({kind:`conic`,...f,from:e>=0?_s(l[e+1]??``):0,at:bs(l,n)})}}return r}var fs=e=>/^(?:rgba?|hsla?|oklab|oklch|color)\(|^transparent\b/i.test(e),ps=[`oklab`,`oklch`,`srgb`,`srgb-linear`,`hsl`],ms=[`shorter`,`longer`,`increasing`,`decreasing`];function hs(e,t){let n=e.indexOf(`in`);if(n>=0){let t=e[n+1],r=e[n+2];return{space:ps.includes(t)?t:`oklab`,hue:ms.includes(r)?r:`shorter`}}return{space:t.filter(fs).every(e=>Me(qs(e)[0]??``))?`srgb`:`oklab`,hue:`shorter`}}function gs(e){let t=e.split(`,`)[0].trim();return t===`text`||t===`padding-box`||t===`content-box`?t:`border-box`}function _s(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 vs(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:_s(t)}}function ys(e,t){let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?{fraction:n/100}:/(?:deg|grad|rad|turn)$/.test(e)?{fraction:_s(e)/360}:{cells:xt(n,t)}:null}function bs(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]??ys(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 xs(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)?ys(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:bs(e,t)}}function Ss(e,t){let n=[];for(let r of e){let e=qs(r),i=je(e[0]??``);if(!i){let r=ys(e[0]??``,t),i=n[n.length-1];r&&i&&(i.hint=r);continue}let a=e.slice(1,3).map(e=>ys(e,t));a.length===0&&a.push(null);for(let e of a)n.push({color:i,position:e})}return n}function Cs(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 ws(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 Ts(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function Es(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)?xt(n,t):void 0}function Ds(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=Fs(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=bt(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)?xt(n,t):0}function Os(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}function ks(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,xt(r,t)):0}function As(e,t,n,r,i,a,o){let s=js(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Ns(s,n,o,r)};let c=Ps(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=Ms(i,l)??Ms(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:Ns(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=Rs(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:xt(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:bt(parseFloat(i)/.25)};let s=js(i);if(s!==null)return{kind:`cells`,value:Ns(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=Rs(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:xt(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:bt(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:xt(g,r)}}function js(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 Ms(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?js(r[1]):null}function Ns(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):xt(e,r)}function Ps(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=Fs(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,bt(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 Fs(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=js(e);return l===null?null:c(Ns(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 Is(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=js(a.getPropertyValue(t))??js(e?.get(t)?.toString().trim()??``);if(l!==null)return Ns(l,c,o,s);let u=Ms(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 Ns(p?f:u,c,o,s)}function Ls(e,t){if(!e||e===`auto`||e===`content`)return;let n=Rs(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:xt(r,t)}:void 0}function Rs(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 zs(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 qs(n)){let n=Vs(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=Bs(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(Ws(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 Bs(e,t){let n=[],r=[],i=[];for(let a of qs(e)){let e=Vs(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(Ws(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Vs(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Hs(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 Us(e,t){let n=qs(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>Ws(e,t));return n.length>0?n:[Sn()]}function Ws(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Ks(n[1]).map(e=>e.trim());return e.length===2?{min:Gs(e[0],t),max:Gs(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Gs(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Gs(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=Ks(n[2]).map(e=>Gs(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`)?bt(r/.25):xt(r,t)}:{kind:`auto`}}function Ks(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 qs(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 Js(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 Ys(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Xs(e,t){return{top:Ds(e.getPropertyValue(`padding-top`),t),right:Ds(e.getPropertyValue(`padding-right`),t),bottom:Ds(e.getPropertyValue(`padding-bottom`),t),left:Ds(e.getPropertyValue(`padding-left`),t)}}function Zs(e,t){let n=xn(),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]=Ts(o),!(s<=0)&&(r[a]=s,n[a]=w(i[a],s,t).cells)}return{border:n,borderWeight:r,borderStyle:i}}function Qs(e,t,n,r){let i=Oo(e,t,n);if(i.display===`none`)return null;let a=se(e.tagName);if(a)return ac(e,i,a);let o=Array.from(e.children),s=o.map(uc),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||Tc(e.tagName)?ic(e,i,o,s,c):{source:e,style:i,children:$s(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:xn()}}function $s(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=Qs(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??=rc(e,n,r),s.push(ec(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=uc(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 ec(e,t,n,r,i,a){let o=ic(e,a,n,r,i,t);return o.anonymous=!0,o}function tc(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(uc);return o.includes(`block`)||!Cc(e)&&!o.includes(`inline`)?null:ic(e,nc(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function nc(e,t,n){return{...rc(e,t,n),tracking:0,lineGap:0}}function rc(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...bn(),...Go(e,r,t),lineGap:rs(r.lineHeight,i),tracking:ns(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return Bo(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function ic(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Tc(l),d=dc(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}=vc(d);if(d.boxes.length>0){let e=ti();Xt(f,(t,n)=>{p[t]=Math.max(1,wi(d.boxes[n],e))})}let h=bc(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=>Ht(e.trim())))}}let g=f.length>0?xc(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?Ut(r,i,{advances:Vt(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=Qs(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:xn()};(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=yc(d);return S.length>0&&(x.charSource=S),x}function ac(e,t,n){let r=ue(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=Vt(a,t.tracking),s=bc(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:xn()};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,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 oc=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 sc(e,t){return t||(oc.has(e.tagName)?`inline`:`block`)}function cc(e,t){let n=sc(e,t);return n===`inline`||n===`contents`}function lc(e,t){let n=sc(e,t);return n.startsWith(`inline`)&&n!==`inline`}function uc(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:wc(t.float)||se(e.tagName)?`block`:cc(e,t.display)||lc(e,t.display)?`inline`:`block`}function dc(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?pc(r,t,n,i):fc(e,t,n,i),n.preserve?i:gc(i)}function fc(e,t,n,r){Tc(e.tagName)||pc(Array.from(e.childNodes),t,n,r)}function pc(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 zt(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
|
+
`)_c(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++)_c(r,` `,1,a,e)}else _c(r,s,Bt(s,t),a,e)}}else{let e=0,n=!1;for(let i of zt(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||_c(r,` `,1+t,a,e):_c(r,i,Bt(i,t),a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){_c(r,`
|
|
971
|
+
`,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(lc(e,t.display)){let t=Qs(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,_c(r,``,1,null,-1),r.boxes.push(t));continue}if(!cc(e,t.display)){Sc(e);continue}let i=ns(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=mc(t.paddingLeft,n.rootFontSizePx),s=mc(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`relative`?hc(t,n.rootFontSizePx):null,...t.position===`sticky`?{sticky:hc(t,n.rootFontSizePx)}:{},color:t.color,backgroundColor:Ao(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,_c(r,``,1,null,-1);let l=r.chars.length;fc(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,_c(r,``,1,null,-1)}}function mc(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,xt(n,t)):0}function hc(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?xt(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function gc(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 _c(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function vc(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 yc(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 bc(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,qt(e,i,a,t,n)),i=a+1);return r}function xc(e){return V(e).length}function Sc(e){ne(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 Cc(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}function wc(e){return e!==`none`&&e!==``}function Tc(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}var Ec=`
|
|
976
976
|
<style>
|
|
977
977
|
:host { display: block; position: relative; contain: layout style; }
|
|
978
978
|
#viewport { position: relative; width: 100%; height: 100%; background: inherit; }
|
|
@@ -1028,8 +1028,8 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1028
1028
|
<pre id="grid" aria-hidden="true"></pre>
|
|
1029
1029
|
<slot></slot>
|
|
1030
1030
|
</div>
|
|
1031
|
-
`,Ss=`grid`,Cs=`tab`,ws=`data-mw-semantic-selection`,Ts=`a, button, input, select, textarea, label, [tabindex], [role='button']`,Es=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Ds=/^(color|opacity|border-(top|right|bottom|left)-color|border-color)$/,Os=3e4,ks=200,As=3,js=4,Ms=8,Ns=100,Ps=160,Fs=500,Is=50;function Ls(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 Rs(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&Ls(a,0,n)||t!==0&&r>0&&Ls(a,t,0)}function zs(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var Bs=typeof HTMLElement>`u`?class{}:HTMLElement,Vs=class e extends Bs{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#tt()};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;#c;#l=null;#u=null;#d=!1;#f=null;#p=null;#m=null;#h=null;#g=!1;#_=[];#v=[];#y=new Map;#b=new WeakMap;#x=null;#S=null;#C=``;#w=-1;#T=null;#E=null;#D=!1;#O=!1;#k=!1;#A=0;#j=new ea((e,t,n)=>this.#I(e,t,n));#M=null;#N=!1;#P=[];#F(){this.#u?.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`class`,`style`,`colspan`,`rowspan`,`span`,...T()]})}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=xs,this.#s=this.#o.getElementById(`grid`),this.#c=document.createElement(`span`),this.#c.setAttribute(`aria-hidden`,`true`),this.#c.setAttribute(`data-mw-probe`,``),this.#c.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.#c.textContent=`M`.repeat(100)}#I(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:hidden;padding:0;height:${this.#f?.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.#s.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){this.hasAttribute(`select`)||this.setAttribute(`select`,Ss),this.hasAttribute(`focus`)||this.setAttribute(`focus`,Cs),this.#c.parentNode!==this&&this.appendChild(this.#c),this.#l=new ResizeObserver(()=>this.#tt()),this.#l.observe(this),this.#oe(),this.#l.observe(this.#c),window.addEventListener(`resize`,this.#Ze),this.#u=new MutationObserver(()=>this.#tt()),this.#F(),this.#m=E(()=>{this.#F(),this.#tt()}),this.#h=i(()=>this.#tt()),document.fonts?.ready.then(this.#Qe).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Qe);for(let e of Es)this.addEventListener(e,this.#Xe);this.addEventListener(`transitionrun`,this.#qe),this.addEventListener(`transitionend`,this.#Je),this.addEventListener(`transitioncancel`,this.#Je),this.addEventListener(`pointermove`,this.#le),this.addEventListener(`pointerleave`,this.#Le),this.addEventListener(`pointerdown`,this.#Re),this.addEventListener(`scroll`,this.#ee,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#te,{capture:!0}),this.addEventListener(`wheel`,this.#re,{passive:!1}),this.addEventListener(`copy`,this.#ue),this.addEventListener(`mousedown`,this.#de),this.addEventListener(`keydown`,this.#ge),document.addEventListener(`selectionchange`,this.#Fe),window.addEventListener(`pointerup`,this.#ze),window.addEventListener(`pointercancel`,this.#ze),window.addEventListener(`mouseup`,this.#Be,{capture:!0}),document.addEventListener(`scroll`,this.#Ve,{capture:!0,passive:!0}),e.#i(this),this.#tt()}disconnectedCallback(){window.removeEventListener(`resize`,this.#Ze),this.#l?.disconnect(),this.#u?.disconnect(),this.#l=null,this.#u=null,this.#m?.(),this.#m=null,this.#h?.(),this.#h=null,document.fonts?.removeEventListener(`loadingdone`,this.#Qe);for(let e of Es)this.removeEventListener(e,this.#Xe);this.removeEventListener(`transitionrun`,this.#qe),this.removeEventListener(`transitionend`,this.#Je),this.removeEventListener(`transitioncancel`,this.#Je),this.#We=0,this.removeEventListener(`pointermove`,this.#le),this.removeEventListener(`pointerleave`,this.#Le),this.removeEventListener(`pointerdown`,this.#Re),this.removeEventListener(`scroll`,this.#ee,{capture:!0}),this.removeEventListener(`scrollend`,this.#te,{capture:!0}),this.removeEventListener(`wheel`,this.#re),this.removeEventListener(`copy`,this.#ue),this.removeEventListener(`keydown`,this.#ge),this.removeEventListener(`mousedown`,this.#de),document.removeEventListener(`selectionchange`,this.#Fe);for(let e of this.#y.values())clearTimeout(e);this.#y.clear(),this.#S=null,this.#x=null,this.#me(),window.removeEventListener(`pointerup`,this.#ze),window.removeEventListener(`pointercancel`,this.#ze),window.removeEventListener(`mouseup`,this.#Be,{capture:!0}),document.removeEventListener(`scroll`,this.#Ve,{capture:!0}),this.#H=null,this.#z=null,this.#B=!1,this.#V=!1,this.#O=!1,this.#He(),e.#a(this)}#L=new Set;#R=new Set;#z=null;#B=!1;#V=!1;#H=null;#U=NaN;#W=NaN;#G=null;static#K=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#q(){if(this.#g||this.#d)return;this.#g=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#g=!1;let t=this.#f;this.isConnected&&this.#p&&t&&(this.#J(t),Oa(this.#v),Ca(this.#v),this.#u?.takeRecords(),this.#V=!this.#Ie(this.#p),this.#Y(),this.#He())};requestAnimationFrame(t),setTimeout(t,50)}#J(e,t){for(let n of this.#_){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.#X(n,e)}}#Y(){this.#D&&(this.#D=!1,this.#he())}#X(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:Us(n,`x`,t.width,r,a.x),y:Us(n,`y`,t.height,i,a.y)}}#Z(){let e=new Map,t=this.#f;if(!t)return e;for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#X(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}#Q(e){for(let t of this.#_){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)}}#$(e,t){clearTimeout(this.#y.get(e)),this.#y.set(e,setTimeout(()=>this.#ne(e),t))}#ee=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#D=!0,this.#q(),!(Date.now()-(this.#b.get(t)??0)<ks)&&(!(`onscrollend`in window)||Date.now()-this.#A<Fs?this.#$(t,Ps):clearTimeout(this.#y.get(t))))};#te=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#b.get(t)??0)<ks||this.#$(t,Ns))};#ne(e){if(this.#S?.el===e)return;this.#q();let t=this.#f,n=this.#_.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#X(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`})}#re=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#p,n=this.#f;if(!t||!n||this.#_.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.#ae(a,o))return;let{col:s,row:c}=this.#se(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#x=null,r.preventDefault();return}let d=e=>Rs(e,a,o),f=this.#x,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)>As||Math.abs(r.clientY-f.y)>As),g=f!==null&&f.decayed>=Ms,_=f!==null&&l-f.at<ks&&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.#_.find(e=>e.source===f.el)??null}if(!v){let e=ai(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||si(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<js){r.preventDefault();return}this.#x={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.#ie(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#ie(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.#b.set(e,Date.now()),this.#$(e,ks))}#ae(e,t){return this.#P.some(n=>Ls(n,e,t))}#oe(){let e=this.parentElement;if(e&&this.#l){this.#l.observe(e);for(let t of e.children)t!==this&&this.#l.observe(t)}}#se(e,t,n){if(!this.#G){let e=this.#s.getBoundingClientRect();this.#G={left:e.left,top:e.top}}return{col:Math.floor((e-this.#G.left)/n.width),row:Math.floor((t-this.#G.top)/n.height)}}#ce(e,t){let n=this.#p,r=this.#f;if(!n||!r||this.#_.length===0)return null;let{col:i,row:a}=this.#se(e,t,r),o=ai(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||si(s.source))continue;let d=s.source,{y:f,x:p}=ti(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=ni(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=ni(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}#le=e=>{if(Gs(e))return;let{clientX:t,clientY:n}=e,r=this.#S;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.#T&&this.#we(this.#T,t,n),i&&this.#M&&this.#Ce(this.#M,t,n),i&&this.#N&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#H={x:t,y:n};let a=this.#f;if(a){let{col:e,row:r}=this.#se(t,n,a);if(e===this.#U&&r===this.#W)return}this.#He()};#ue=e=>{let{clipboardData:t}=e,n=this.#p,r=this.#Pe();t&&n&&r&&(t.setData(`text/plain`,Pi(n,r)),e.preventDefault())};#de=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=t.composedPath().includes(this.#s);if(n===`grid`){if(!r&&!this.#be(t.target))return}else if(n!==`text`||!this.#De(t.target))return;let i=this.#C===`mouse`||this.#C===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(ws),!i))return;if(n===`text`){this.#Ee(t),this.#fe(t);return}let e=this.#ve();(!r||e)&&this.#Se(t,e);return}if(!i)return;let a=t.detail===2?`word`:`paragraph`,o=document.getSelection(),s=this.#p,c=this.#f;if(!o||!s||!c)return;let{col:l,row:u}=this.#se(t.clientX,t.clientY,c),d=this.#ke(s,l,u,a);if(!d){this.removeAttribute(ws),this.#T=null;return}t.preventDefault(),this.#ve()?.blur(),this.#Ne(d);let f=t.shiftKey&&o.anchorNode&&this.#Pe()?qs({node:o.anchorNode,offset:o.anchorOffset}):d;this.#Te(o,f,d),this.#T={unit:a,anchor:f},this.#fe(t)};#fe(e){let t=this.#p,n=this.#f;if(!this.#T||!t||!n)return;this.#me(),e.isTrusted&&this.setPointerCapture(this.#w);let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=ai(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!si(t.source)&&(o=t.source)}let s=this.#P[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#pe(),Is);this.#E={el:c,page:!o&&!s,timer:l}}#pe(){let e=this.#E,t=this.#f,n=this.#H;if(!e||!t||!n||!this.#B)return;let{el:r,page:i}=e,a=li(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):zs(r),n,t),o=this.#_.find(e=>e.source===r),s=(e,t)=>o?Rs(o,e,t):Ls(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.#ie(r,u,d)}#me(){this.#E&&=(clearInterval(this.#E.timer),null)}#he(){let e=this.#T,t=this.#H;e&&t&&this.#B&&this.#we(e,t.x,t.y)}#ge=e=>{let t=e;if(this.#A=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=fi(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=this.#p,i=t.target;if(!r||!(i instanceof Element)||i===this||xi(i,t.key,this.#$e()))return;let a=gi(r),o=_i(a,i);if(!o)return;let s=pi(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#_e(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#c),i=Zo(this,e,t);return{source:this,style:i,children:Jo(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:Ft()}}#ve(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ye(){return this.#B&&this.#N&&!this.#M}#be(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Ts)}#xe(e,t){let n=this.#f;if(!n)return null;let{col:r,row:i}=this.#se(e,t,n);return da(this.#s,r,i)}#Se(e,t){let n=this.#xe(e.clientX,e.clientY);n!==null&&(e.preventDefault(),this.#M={anchor:n}),t?.blur();let r=n===null?null:Ci(this.#s,n);r&&document.getSelection()?.setBaseAndExtent(...r,...r)}#Ce(e,t,n){let r=Ci(this.#s,e.anchor),i=this.#xe(t,n),a=i===null?null:Ci(this.#s,i);r&&a&&document.getSelection()?.setBaseAndExtent(...r,...a)}#we(e,t,n){let r=this.#f,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#se(t,n,r),s=this.#Oe(a,o,e.unit);!s||e.extent&&Ys(e.extent,s)||(e.extent=s,this.#Te(i,e.anchor,s))}#Te(e,t,n){if(Ys(t,n)){Js(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#Me(t),a=r?n:this.#Me(n);Z(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?Js(e,i.start,a.end):Js(e,i.end,a.start)}#Ee(e){let t=document.getSelection(),n=this.#f;if(!t||!n)return;let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=this.#Oe(r,i,`character`);if(!a)return;e.preventDefault(),this.#ve()?.blur();let o=e.shiftKey&&t.anchorNode&&this.#Pe()?qs({node:t.anchorNode,offset:t.anchorOffset}):qs(a.start);this.#Te(t,o,e.shiftKey?a:o),this.#T={unit:`character`,anchor:o}}#De(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Ts);return!t||t===this||!this.contains(t)}#Oe(e,t,n){let r=this.#p;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=ai(r,a,o).at(-1);if(s&&si(s.node.source))return null;let c=s?[ii(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of ui(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=sa(this.#s,a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#ke(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:qs(c===`start`?u.start:u.end)}return null}#ke(e,t,n,r,i=null){let a=ai(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(Wi(i))return si(i.source)?null:this.#Ae(i,o,s,t,n,r)}return Wi(e)?this.#Ae(e,0,0,t,n,r):null}#Ae(e,t,n,r,i,a){let o=$r(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]!==`
|
|
1032
|
-
`;)t++;let n=
|
|
1031
|
+
`,Dc=`grid`,Oc=`tab`,kc=`data-mw-semantic-selection`,Ac=`a, button, input, select, textarea, label, [tabindex], [role='button']`,jc=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Mc=/^(color|opacity|border-(top|right|bottom|left)-color|border-color)$/,Nc=3e4,Pc=200,Fc=3,Ic=4,Lc=8,Rc=100,zc=160,Bc=500,Vc=50;function Hc(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 Uc(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&Hc(a,0,n)||t!==0&&r>0&&Hc(a,t,0)}function Wc(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var Gc=typeof HTMLElement>`u`?class{}:HTMLElement,Kc=class e extends Gc{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#tt()};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;#c;#l=null;#u=null;#d=!1;#f=null;#p=null;#m=null;#h=null;#g=!1;#_=[];#v=[];#y=new Map;#b=new WeakMap;#x=null;#S=null;#C=``;#w=-1;#T=null;#E=null;#D=!1;#O=!1;#k=!1;#A=0;#j=new Ja((e,t,n)=>this.#I(e,t,n));#M=null;#N=!1;#P=[];#F(){this.#u?.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`class`,`style`,`colspan`,`rowspan`,`span`,...ce()]})}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=Ec,this.#s=this.#o.getElementById(`grid`),this.#c=document.createElement(`span`),this.#c.setAttribute(`aria-hidden`,`true`),this.#c.setAttribute(`data-mw-probe`,``),this.#c.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.#c.textContent=`M`.repeat(100)}#I(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:hidden;padding:0;height:${this.#f?.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.#s.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){this.hasAttribute(`select`)||this.setAttribute(`select`,Dc),this.hasAttribute(`focus`)||this.setAttribute(`focus`,Oc),this.#c.parentNode!==this&&this.appendChild(this.#c),this.#l=new ResizeObserver(()=>this.#tt()),this.#l.observe(this),this.#oe(),this.#l.observe(this.#c),window.addEventListener(`resize`,this.#Ze),this.#u=new MutationObserver(()=>this.#tt()),this.#F(),this.#m=le(()=>{this.#F(),this.#tt()}),this.#h=a(()=>this.#tt()),document.fonts?.ready.then(this.#Qe).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Qe);for(let e of jc)this.addEventListener(e,this.#Xe);this.addEventListener(`transitionrun`,this.#qe),this.addEventListener(`transitionend`,this.#Je),this.addEventListener(`transitioncancel`,this.#Je),this.addEventListener(`pointermove`,this.#le),this.addEventListener(`pointerleave`,this.#Le),this.addEventListener(`pointerdown`,this.#Re),this.addEventListener(`scroll`,this.#ee,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#te,{capture:!0}),this.addEventListener(`wheel`,this.#re,{passive:!1}),this.addEventListener(`copy`,this.#ue),this.addEventListener(`mousedown`,this.#de),this.addEventListener(`keydown`,this.#ge),document.addEventListener(`selectionchange`,this.#Fe),window.addEventListener(`pointerup`,this.#ze),window.addEventListener(`pointercancel`,this.#ze),window.addEventListener(`mouseup`,this.#Be,{capture:!0}),document.addEventListener(`scroll`,this.#Ve,{capture:!0,passive:!0}),e.#i(this),this.#tt()}disconnectedCallback(){window.removeEventListener(`resize`,this.#Ze),this.#l?.disconnect(),this.#u?.disconnect(),this.#l=null,this.#u=null,this.#m?.(),this.#m=null,this.#h?.(),this.#h=null,document.fonts?.removeEventListener(`loadingdone`,this.#Qe);for(let e of jc)this.removeEventListener(e,this.#Xe);this.removeEventListener(`transitionrun`,this.#qe),this.removeEventListener(`transitionend`,this.#Je),this.removeEventListener(`transitioncancel`,this.#Je),this.#We=0,this.removeEventListener(`pointermove`,this.#le),this.removeEventListener(`pointerleave`,this.#Le),this.removeEventListener(`pointerdown`,this.#Re),this.removeEventListener(`scroll`,this.#ee,{capture:!0}),this.removeEventListener(`scrollend`,this.#te,{capture:!0}),this.removeEventListener(`wheel`,this.#re),this.removeEventListener(`copy`,this.#ue),this.removeEventListener(`keydown`,this.#ge),this.removeEventListener(`mousedown`,this.#de),document.removeEventListener(`selectionchange`,this.#Fe);for(let e of this.#y.values())clearTimeout(e);this.#y.clear(),this.#S=null,this.#x=null,this.#me(),window.removeEventListener(`pointerup`,this.#ze),window.removeEventListener(`pointercancel`,this.#ze),window.removeEventListener(`mouseup`,this.#Be,{capture:!0}),document.removeEventListener(`scroll`,this.#Ve,{capture:!0}),this.#H=null,this.#z=null,this.#B=!1,this.#V=!1,this.#O=!1,this.#He(),e.#a(this)}#L=new Set;#R=new Set;#z=null;#B=!1;#V=!1;#H=null;#U=NaN;#W=NaN;#G=null;static#K=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#q(){if(this.#g||this.#d)return;this.#g=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#g=!1;let t=this.#f;this.isConnected&&this.#p&&t&&(this.#J(t),So(this.#v),_o(this.#v),this.#u?.takeRecords(),this.#V=!this.#Ie(this.#p),this.#Y(),this.#He())};requestAnimationFrame(t),setTimeout(t,50)}#J(e,t){for(let n of this.#_){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.#X(n,e)}}#Y(){this.#D&&(this.#D=!1,this.#he())}#X(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:Jc(n,`x`,t.width,r,a.x),y:Jc(n,`y`,t.height,i,a.y)}}#Z(){let e=new Map,t=this.#f;if(!t)return e;for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#X(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}#Q(e){for(let t of this.#_){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)}}#$(e,t){clearTimeout(this.#y.get(e)),this.#y.set(e,setTimeout(()=>this.#ne(e),t))}#ee=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#D=!0,this.#q(),!(Date.now()-(this.#b.get(t)??0)<Pc)&&(!(`onscrollend`in window)||Date.now()-this.#A<Bc?this.#$(t,zc):clearTimeout(this.#y.get(t))))};#te=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#b.get(t)??0)<Pc||this.#$(t,Rc))};#ne(e){if(this.#S?.el===e)return;this.#q();let t=this.#f,n=this.#_.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#X(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`})}#re=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#p,n=this.#f;if(!t||!n||this.#_.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.#ae(a,o))return;let{col:s,row:c}=this.#se(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#x=null,r.preventDefault();return}let d=e=>Uc(e,a,o),f=this.#x,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)>Fc||Math.abs(r.clientY-f.y)>Fc),g=f!==null&&f.decayed>=Lc,_=f!==null&&l-f.at<Pc&&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.#_.find(e=>e.source===f.el)??null}if(!v){let e=Qi(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||ea(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<Ic){r.preventDefault();return}this.#x={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.#ie(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#ie(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.#b.set(e,Date.now()),this.#$(e,Pc))}#ae(e,t){return this.#P.some(n=>Hc(n,e,t))}#oe(){let e=this.parentElement;if(e&&this.#l){this.#l.observe(e);for(let t of e.children)t!==this&&this.#l.observe(t)}}#se(e,t,n){if(!this.#G){let e=this.#s.getBoundingClientRect();this.#G={left:e.left,top:e.top}}return{col:Math.floor((e-this.#G.left)/n.width),row:Math.floor((t-this.#G.top)/n.height)}}#ce(e,t){let n=this.#p,r=this.#f;if(!n||!r||this.#_.length===0)return null;let{col:i,row:a}=this.#se(e,t,r),o=Qi(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||ea(s.source))continue;let d=s.source,{y:f,x:p}=Ji(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=Yi(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=Yi(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}#le=e=>{if(Xc(e))return;let{clientX:t,clientY:n}=e,r=this.#S;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.#T&&this.#we(this.#T,t,n),i&&this.#M&&this.#Ce(this.#M,t,n),i&&this.#N&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#H={x:t,y:n};let a=this.#f;if(a){let{col:e,row:r}=this.#se(t,n,a);if(e===this.#U&&r===this.#W)return}this.#He()};#ue=e=>{let{clipboardData:t}=e,n=this.#p,r=this.#Pe();t&&n&&r&&(t.setData(`text/plain`,Oa(n,r)),e.preventDefault())};#de=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=t.composedPath().includes(this.#s);if(n===`grid`){if(!r&&!this.#be(t.target))return}else if(n!==`text`||!this.#De(t.target))return;let i=this.#C===`mouse`||this.#C===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(kc),!i))return;if(n===`text`){this.#Ee(t),this.#fe(t);return}let e=this.#ve();(!r||e)&&this.#Se(t,e);return}if(!i)return;let a=t.detail===2?`word`:`paragraph`,o=document.getSelection(),s=this.#p,c=this.#f;if(!o||!s||!c)return;let{col:l,row:u}=this.#se(t.clientX,t.clientY,c),d=this.#ke(s,l,u,a);if(!d){this.removeAttribute(kc),this.#T=null;return}t.preventDefault(),this.#ve()?.blur(),this.#Ne(d);let f=t.shiftKey&&o.anchorNode&&this.#Pe()?Qc({node:o.anchorNode,offset:o.anchorOffset}):d;this.#Te(o,f,d),this.#T={unit:a,anchor:f},this.#fe(t)};#fe(e){let t=this.#p,n=this.#f;if(!this.#T||!t||!n)return;this.#me(),e.isTrusted&&this.setPointerCapture(this.#w);let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=Qi(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!ea(t.source)&&(o=t.source)}let s=this.#P[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#pe(),Vc);this.#E={el:c,page:!o&&!s,timer:l}}#pe(){let e=this.#E,t=this.#f,n=this.#H;if(!e||!t||!n||!this.#B)return;let{el:r,page:i}=e,a=na(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):Wc(r),n,t),o=this.#_.find(e=>e.source===r),s=(e,t)=>o?Uc(o,e,t):Hc(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.#ie(r,u,d)}#me(){this.#E&&=(clearInterval(this.#E.timer),null)}#he(){let e=this.#T,t=this.#H;e&&t&&this.#B&&this.#we(e,t.x,t.y)}#ge=e=>{let t=e;if(this.#A=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=aa(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=this.#p,i=t.target;if(!r||!(i instanceof Element)||i===this||ma(i,t.key,this.#$e()))return;let a=la(r),o=ua(a,i);if(!o)return;let s=oa(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#_e(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#c),i=nc(this,e,t);return{source:this,style:i,children:$s(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:xn()}}#ve(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ye(){return this.#B&&this.#N&&!this.#M}#be(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Ac)}#xe(e,t){let n=this.#f;if(!n)return null;let{col:r,row:i}=this.#se(e,t,n);return ao(this.#s,r,i)}#Se(e,t){let n=this.#xe(e.clientX,e.clientY);n!==null&&(e.preventDefault(),this.#M={anchor:n}),t?.blur();let r=n===null?null:_a(this.#s,n);r&&document.getSelection()?.setBaseAndExtent(...r,...r)}#Ce(e,t,n){let r=_a(this.#s,e.anchor),i=this.#xe(t,n),a=i===null?null:_a(this.#s,i);r&&a&&document.getSelection()?.setBaseAndExtent(...r,...a)}#we(e,t,n){let r=this.#f,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#se(t,n,r),s=this.#Oe(a,o,e.unit);!s||e.extent&&el(e.extent,s)||(e.extent=s,this.#Te(i,e.anchor,s))}#Te(e,t,n){if(el(t,n)){$c(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#Me(t),a=r?n:this.#Me(n);ha(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?$c(e,i.start,a.end):$c(e,i.end,a.start)}#Ee(e){let t=document.getSelection(),n=this.#f;if(!t||!n)return;let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=this.#Oe(r,i,`character`);if(!a)return;e.preventDefault(),this.#ve()?.blur();let o=e.shiftKey&&t.anchorNode&&this.#Pe()?Qc({node:t.anchorNode,offset:t.anchorOffset}):Qc(a.start);this.#Te(t,o,e.shiftKey?a:o),this.#T={unit:`character`,anchor:o}}#De(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Ac);return!t||t===this||!this.contains(t)}#Oe(e,t,n){let r=this.#p;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=Qi(r,a,o).at(-1);if(s&&ea(s.node.source))return null;let c=s?[Zi(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of ra(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=to(this.#s,a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#ke(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:Qc(c===`start`?u.start:u.end)}return null}#ke(e,t,n,r,i=null){let a=Qi(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(Ra(i))return ea(i.source)?null:this.#Ae(i,o,s,t,n,r)}return Ra(e)?this.#Ae(e,0,0,t,n,r):null}#Ae(e,t,n,r,i,a){let o=Ki(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]!==`
|
|
1032
|
+
`;)t++;let n=xa(e,o),r=xa(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=se(e.source.tagName)?V(e.text).find(e=>o>=e.start&&o<e.end):Ha(e,o),n=t&&xa(e,t.start),r=t&&xa(e,t.end);if(n&&r)return{start:n,end:r}}return this.#je(e)}#je(e){if(e===this.#p||e.anonymous)return Pa(e);let t=se(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.childNodes.length}}}#Me(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#s.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:Zc(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:Zc(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Ne(e){this.setAttribute(kc,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#Pe(){let e=this.#p,t=Sa(this.#s.getRootNode(),e?Ta(e):[]);return!t||Ca(this,this.#s,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#Fe=()=>{let e=this.#Pe()!==null;this.hasAttribute(kc)&&!e&&this.removeAttribute(kc),(e||this.#k)&&this.#p&&this.#q(),this.#k=e};#Ie(e){let t=this.#Pe(),n=this.#f;return Qa(e,this.#s,{holdStructural:this.#ye(),glyphs:this.#j,selection:t?Da(e,t):void 0,cell:n?{width:n.width,height:n.height}:void 0})}#Le=()=>{this.#H=null,this.#He()};#Re=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#C=t.pointerType,this.#w=t.pointerId,this.#O=!1,Xc(t)))return;let n=this.#ce(t.clientX,t.clientY);if(n){this.#S=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#H={x:t.clientX,y:t.clientY},this.#B=!0,this.#N=t.composedPath().includes(this.#s),this.#He(!0)};#ze=e=>{if(e.isPrimary){if(this.#O=e.type===`pointerup`&&this.#T!==null,this.#T=null,this.#me(),this.#M=null,this.#N=!1,this.removeAttribute(`data-mw-dragging`),this.#S){this.#ne(this.#S.el),this.#S=null;return}(this.#B||this.#z)&&(this.#B=!1,this.#z=null,this.#He(),this.#V&&this.#tt())}};#Be=e=>{this.#O&&(this.#O=!1,e.preventDefault())};#Ve=e=>{if(!this.#H)return;let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#G=null,this.#he(),this.#He())};#He(t=!1){let n=this.#p,r=this.#f,i=[];if(this.#H&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#B||e.#K?.matches)){let{col:e,row:t}=this.#se(this.#H.x,this.#H.y,r);this.#U=e,this.#W=t,i=ta(n,e,t)}else this.#U=NaN,this.#W=NaN;let a=i.at(-1)??null;t&&(this.#z=a);let o=e.#K?.matches?i:[],s=this.#z?i.indexOf(this.#z):-1,c=s>=0?i.slice(0,s+1):[],l=this.#Ue(`data-mw-hover`,this.#L,o);l=this.#Ue(`data-mw-active`,this.#R,c)||l;let u=a?getComputedStyle(a).cursor:``;this.#s.style.cursor=u===`auto`?``:u,l&&this.isConnected&&this.#tt()}#Ue(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}#We=0;#Ge=!1;#Ke=0;#qe=e=>{Mc.test(e.propertyName)&&(this.#We++,this.#Ke=performance.now(),this.#Ye())};#Je=e=>{Mc.test(e.propertyName)&&(this.#We=Math.max(0,this.#We-1))};#Ye(){if(this.#Ge)return;this.#Ge=!0;let e=()=>{if(!this.isConnected||this.#We===0&&!_e()||performance.now()-this.#Ke>Nc){this.#Ge=!1,this.#We=0,this.#tt();return}this.#et(),requestAnimationFrame(e)};requestAnimationFrame(e)}#Xe=e=>{if(!Xc(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.#et();return}this.#tt()}};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".`,re(this)),this.setAttribute(`focus`,Oc));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,re(this)),this.setAttribute(`select`,Dc);return}e===`select`&&this.#He(),this.#tt()}toPlainText(){return this.#d&&this.#nt(),this.#p?Ai(this.#p):``}#Ze=()=>{this.#tt()};#Qe=()=>{requestAnimationFrame(()=>{this.#j.invalidate(),this.#tt()})};#$e(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#et(){try{this.#nt()}catch(e){console.error(`[monowind] layout failed:`,e)}}#tt(){this.#d||(this.#d=!0,requestAnimationFrame(()=>{if(this.#d=!1,this.#$e()){this.#tt();return}this.#et()}))}#nt(){if(!this.isConnected)return;let e=this.#Z(),t=new Map,n=getComputedStyle(this).getPropertyValue(`--mw-cw`).trim(),r=parseFloat(n);if(Number.isFinite(r)&&r>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),i=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(i/r)))}this.setAttribute(`measuring`,``);try{this.#c.parentNode!==this&&this.appendChild(this.#c);let n=Ct(this,this.#c),r=this.#f;(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.#s.style.lineHeight=`${n.height}px`,this.#s.style.letterSpacing=`${n.gridLetterSpacing??n.letterSpacing}px`),this.#f=n;let i=getComputedStyle(this.#s);this.#j.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=wt(),l=tc(this,c,n,t)??this.#_e(c,n,t),{height:u}=Qr(l,s);lo(l),this.#_=tl(l),this.#J(n,e),this.#v=bo(l),So(this.#v),_o(this.#v),this.#V=!this.#Ie(l),this.#p=l;let d=`${l.localRect.width*n.width}px`,f=`${l.localRect.height*n.height}px`;this.#s.style.width!==d&&(this.#s.style.width=d),this.#s.style.height!==f&&(this.#s.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`),this.#Q(e),this.#u?.takeRecords(),ge(this)&&(_e()?(this.#Ke=performance.now(),this.#Ye()):this.#tt()),this.#oe(),this.#P=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#P.push(e);this.#G=null,this.#Y(),this.#H&&this.#He()}}};function qc(){typeof customElements>`u`||customElements.get(`mono-wind`)||customElements.define(`mono-wind`,Kc)}function Jc(e,t,n,r,i){return Yc(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function Yc(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 Xc(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function Zc(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function Qc(e){return{start:e,end:e}}function $c(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function el(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 tl(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var nl=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
|
|
1033
1033
|
* and grid gaps, engine-painted as glyph runs. The utilities set the
|
|
1034
1034
|
* real CSS properties (forward-compat; unknown ones drop harmlessly)
|
|
1035
1035
|
* AND the --mw-* mirrors the engine reads — compiled by the consumer's
|
|
@@ -1257,7 +1257,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1257
1257
|
inherits: false;
|
|
1258
1258
|
initial-value: 0;
|
|
1259
1259
|
}
|
|
1260
|
-
`,
|
|
1260
|
+
`,rl=`/* monowind companion stylesheet — loaded into the light DOM by the app.
|
|
1261
1261
|
* The shadow root has its own baked-in styles; this file targets the light-DOM
|
|
1262
1262
|
* subtree the host owns.
|
|
1263
1263
|
*
|
|
@@ -1873,6 +1873,9 @@ mono-wind:not([measuring]) * {
|
|
|
1873
1873
|
* background-color during [measuring] (this rule is off then), so
|
|
1874
1874
|
* bg-* and focus-invert both make it into the grid paint. */
|
|
1875
1875
|
background-color: transparent !important;
|
|
1876
|
+
/* Gradients paint in the grid as a color per cell (specs/gradients.md),
|
|
1877
|
+
* read during [measuring] like the color. */
|
|
1878
|
+
background-image: none !important;
|
|
1876
1879
|
text-shadow: none !important;
|
|
1877
1880
|
/* Shadows paint in the grid as shades (specs/box-shadow.md), read
|
|
1878
1881
|
* during [measuring] like backgrounds. */
|
|
@@ -2285,7 +2288,7 @@ mono-wind:not([measuring])[data-mw-text-align-blocked],
|
|
|
2285
2288
|
mono-wind:not([measuring]) [data-mw-text-align-blocked] {
|
|
2286
2289
|
text-align: start !important;
|
|
2287
2290
|
}
|
|
2288
|
-
|
|
2291
|
+
`,il=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
|
|
2289
2292
|
* under select="grid" the light DOM is pointer-events: none, so
|
|
2290
2293
|
* :hover/:active never match — the engine hit-tests the pointer's
|
|
2291
2294
|
* cell and marks the chain with data-mw-hover / data-mw-active. These
|
|
@@ -2302,5 +2305,5 @@ mono-wind:not([measuring]) [data-mw-text-align-blocked] {
|
|
|
2302
2305
|
}
|
|
2303
2306
|
}
|
|
2304
2307
|
@custom-variant active (&:is(:active, [data-mw-active]));
|
|
2305
|
-
`,
|
|
2308
|
+
`,al=document.createElement(`style`);al.setAttribute(`data-monowind`,``),al.textContent=rl,document.head.appendChild(al);var ol=document.createElement(`style`);ol.setAttribute(`type`,`text/tailwindcss`),ol.setAttribute(`data-monowind-rules`,``),ol.textContent=`${nl}\n${il}`,document.head.appendChild(ol),qc(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.2.13`,registerLeafRenderer:ae,invalidateLeaves:oe,glyphSetFor:i}})})();
|
|
2306
2309
|
//# sourceMappingURL=cdn.js.map
|