nuclo 0.1.86 → 0.1.88

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/dist/nuclo.js CHANGED
@@ -1,2 +1,2 @@
1
- function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function n(e){return r(e)&&"tagName"in e}function o(e){return"boolean"==typeof e}function i(e){return"function"==typeof e}function s(e){return i(e)&&0===e.length}function a(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const c="undefined"!=typeof window&&"undefined"!=typeof document;function l(e){return globalThis.document?document.createElement(e):null}function d(e,t){return globalThis.document?document.createElementNS(e,t):null}function u(e){return globalThis.document?document.createTextNode(e):null}function m(){return globalThis.document?document.createDocumentFragment():null}function p(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return a("Failed to remove child node",e),!1}}function f(e){if(!c)return null;try{return document.createComment(e)}catch(e){return a("Failed to create comment node",e),null}}function y(e){return f(e)}function g(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return a("Failed to create conditional comment",e),null}}function h(e){if(!c)throw Error("Cannot create comment in non-browser environment");const t=f(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function b(e){const t=f(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:h(e+"-start"),end:t}}function P(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!c)return null;try{return u(e+"")}catch(e){return a("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return a("Failed to append child node",e),!1}}(e,r)}}),e):e}function S(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!c||"undefined"==typeof document)&&document.contains(e))}function k(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return a("Error replacing conditional node",e),!1}}const w=new Map,v=new Map,x={};let C=!1;function R(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){let e=null,t=null;for(const[n,o]of v){const i=n.deref();if(void 0!==i){if(i===r){e=n,t=o;break}}else v.delete(n)}t&&e&&(S(r)?T(t):v.delete(e))}r=r.parentNode}}function B(e,t){let r;try{r=t.resolver()}catch(t){return void a("Failed to resolve reactive attribute: "+e,t)}const n=null===(o=r)||"object"!=typeof o;var o;if(!n||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=n?r:x}catch(t){a("Failed to apply reactive attribute: "+e,t)}}function T(e){for(const[t,r]of e.attributeResolvers)B(t,r)}function E(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return void a("Invalid parameters for registerAttributeResolver");C||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",R,!0),C=!0);const o=function(e){for(const[t,r]of v){const n=t.deref();if(void 0!==n){if(n===e)return r}else v.delete(t)}const t={attributeResolvers:new Map};return v.set(new WeakRef(e),t),t}(e),i={resolver:r,applyValue:n,lastValue:x};o.attributeResolvers.set(t,i),B(t,i)}function I(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function N(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))I(e,r,n)||a(`Failed to set style property '${r}'`)}const W="__nuclo_reactive_className__",M="__nuclo_static_className__";function A(e,t,r,n=!1){if(null==r)return;if("style"===t)return s=r,void((o=e)&&(i(s)?E(o,"style",s,function(e){N(o,e)}):N(o,s)));var o,s;const a=(r,n=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&n)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const n=new Set(r.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){n.add(e)}),e.className=Array.from(n).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(i(r)&&0===r.length){const n=r;"className"===t&&e instanceof HTMLElement?(function(e){e[M]||(e[M]=new Set(e.className.split(" ").filter(function(e){return e}))),e[W]=!0}(e),E(e,t+"",n,function(t){!function(e,t){const r=function(e){return e[M]}(e);if(r&&r.size>0&&t){const n=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){n.add(e)}),e.className=Array.from(n).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):E(e,t+"",n,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[W]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[M]||(e[M]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[M].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){r.add(e)}),e.className=Array.from(r).join(" ")}return}a(r,n)}}function j(e,t,r=!0){if(t)for(const n of Object.keys(t))A(e,n,t[n],r&&"className"===n)}const F=new WeakMap;function L(n,o,c){if(null==o)return null;if(i(o)){if(s(o))try{let i=F.get(o);if(i||(i={value:o(),error:!1},F.set(o,i)),i.error)return z(c,function(){return""});const s=i.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=o;return j(n,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?z(c,o,s):null}catch(e){return F.set(o,{value:void 0,error:!0}),a("Error evaluating reactive text function:",e),z(c,function(){return""})}const i=o(n,c);return null==i?null:e(i)?O(c,i):t(i)?i:(r(i)&&j(n,i),null)}const l=o;return e(l)?O(c,l):t(l)?l:(j(n,l),null)}function z(e,t,r){const n=m();if(!n)throw Error("Failed to create document fragment: document not available");const o=y(` text-${e} `);o&&n.appendChild(o);const i=function(e,t){if("function"!=typeof e){a("Invalid resolver provided to createReactiveTextNode");const e=u("");if(!e)throw Error("Failed to create text node: document not available");return e}let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){a("Failed to evaluate reactive text resolver",e),r=""}const n=void 0===r?"":r+"",o=u(n);if(!o)throw Error("Failed to create text node: document not available");return w.set(new WeakRef(o),{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(i),n}function O(e,t){const r=m();if(!r)throw Error("Failed to create document fragment: document not available");const n=y(` text-${e} `);n&&r.appendChild(n);const o=u(t+"");return o&&r.appendChild(o),r}function D(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let n=r,o=0;const i=e;for(let r=0;t.length>r;r+=1){const s=t[r];if(null==s)continue;const a=L(e,s,n);a&&(a.parentNode!==i&&i.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function $(e,t){const r=l(e);return D(r,t,0),r}function V(e,t){const r=d("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return D(r,t,0),r}function _(e){return(...t)=>function(e,...t){return function(r,n){const o=l(e);return D(o,t,n),o}}(e,...t)}function q(e){return(...t)=>function(e,...t){return function(r,n){const o=d("http://www.w3.org/2000/svg",e);if(!o)throw Error("Failed to create SVG element: "+e);return D(o,t,n),o}}(e,...t)}const G=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],H=["a","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tspan","use","view"],U=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function X(e=globalThis){const t="__nuclo_tags_registered";e[t]||(H.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=q(t))}(e,t)),G.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=_(t))}(e,t)),e[t]=!0)}const Y=new Set;function J(e,t,r){return function(e,t,r){if(i(e)){const o=e(t,r);return o&&n(o)?o:null}return e&&n(e)?e:null}(e.renderItem(t,r),e.host,r)}function K(e){p(e.element)}function Q(e){const{host:t,startMarker:r,endMarker:n}=e,o=r.parentNode??t,i=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,i))return;const s=new Map,a=new Map;e.records.forEach(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){s.set(r,n);const e=a.get(t);e.splice(e.indexOf(n),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let d=n;for(let t=i.length-1;t>=0;t--){const r=i[t];let n=s.get(t);if(!n){const e=a.get(r);e&&e.length>0&&(n=e.shift(),0===e.length&&a.delete(r))}if(n)l.delete(n);else{const o=J(e,r,t);if(!o)continue;n={item:r,element:o}}c.unshift(n);const u=n.element;u.nextSibling!==d&&o.insertBefore(u,d),d=u}l.forEach(K),e.records=c,e.lastSyncedItems=[...i]}function Z(e,t){return function(r){const n=function(e,t,r){const{start:n,end:o}=b("list"),i={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},s=r;return s.appendChild(n),s.appendChild(o),Y.add(i),Q(i),i}(e,t,r);return n.startMarker}}function ee(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function te(e,t){return"function"==typeof e?ee(e,t):!!e}function re(e,t,r,n){return i(e)?s(e)?(F.delete(e),L(t,e,r)):function(e,t,r){const n=e,o=n.appendChild.bind(n),i=n.insertBefore.bind(n);n.appendChild=function(e){return i(e,t)};try{return r()}finally{n.appendChild=o}}(t,n,()=>{const n=L(t,e,r);return n&&!n.parentNode?n:null}):L(t,e,r)}const ne=new Set;function oe(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;e.length>t;t++)if(te(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(s===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;p(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const c=function(e,t,r,n){const o=[];for(const i of e){const e=re(i,t,r,n);e&&o.push(e)}return o}(0>s?r:t[s].content,n,o,i);!function(e,t){const r=t.parentNode;r&&e.forEach(function(e){!function(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return a("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,i)}class ie{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!c)return y("when-ssr")||null;const{start:r,end:n}=b("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){oe(o)}};!function(e){ne.add(e)}(o);const i=e;return i.appendChild(r),i.appendChild(n),oe(o),r}}function se(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),se(e)},else:function(...t){return e.else(...t),se(e)}})}function ae(e,...t){return se(new ie(e,...t))}const ce=new Set;function le(e,t){e._conditionalInfo=t,ce.add(new WeakRef(e))}function de(e){for(const t of ce)if(t.deref()===e){ce.delete(t);break}}function ue(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=ee(t.condition,e=>{a("Error evaluating conditional condition",e)}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return e.isSvg?V(e.tagName,e.modifiers):$(e.tagName,e.modifiers)}catch(t){if(a(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=d("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=l(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);le(r,t),k(e,r)}else if(!r&&n){const r=g(t.tagName);r&&(le(r,t),k(e,r))}}const me=new Map;function pe(e){const t=[],r=new Set;for(const n of e){if("string"!=typeof n)continue;const e=n.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function fe(e,t){let r=me.get(e);r||(r=new Set,me.set(e,r)),r.add(new WeakRef(t))}function ye(...e){const t=pe(e);return function(e){if(e instanceof Element)for(const r of t)fe(r,e)}}const ge=[function(e){Y.forEach(function(t){t.startMarker.isConnected&&t.endMarker.isConnected?e&&!e.contains(t.startMarker)||Q(t):Y.delete(t)})},function(e){ne.forEach(function(t){if(!e||e.contains(t.startMarker))try{t.update()}catch(e){ne.delete(t)}})},function(e){if(c)try{const t=function(){const e=[],t=[];for(const r of ce){const n=r.deref();void 0===n?t.push(r):e.push(n)}for(const e of t)ce.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||ue(r):de(r)}catch(e){a("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,n]of v){const o=r.deref();void 0!==o&&S(o)?e&&!e.contains(o)||T(n):t.push(r)}for(const e of t)v.delete(e)},function(e){const t=[];for(const[r,n]of w){const o=r.deref();if(void 0===o){t.push(r);continue}if(!S(o)){t.push(r);continue}if(e&&!e.contains(o))continue;let i;try{i=n.resolver()}catch(e){a("Failed to update reactive text node",e),i=void 0}const s=void 0===i?"":i+"";s!==n.lastValue&&(o.textContent=s,n.lastValue=s)}for(const e of t)w.delete(e)},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){a("Error dispatching global update event",e)}}];function he(...e){let t;if(e.length>0){const r=function(e){const t=pe(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=me.get(e);if(!t)continue;const n=[];for(const e of t){const t=e.deref();void 0!==t&&S(t)?r.add(t):n.push(e)}for(const e of n)t.delete(e);0===t.size&&me.delete(e)}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:function(t){return e.contains(t)}}}else t={roots:r,contains:function(e){for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of ge)e(t)}const be=new WeakMap;function Pe(e,t,r){return function(n){if(!n||"function"!=typeof n.addEventListener)return;const o=n,i=function(r){try{t.call(o,r)}catch(t){a(`Error in '${e}' listener`,t)}};o.addEventListener(e,i,r),function(e,t,r,n,o){let i=be.get(e);i||(i=new Map,be.set(e,i));let s=i.get(t);s||(s=new Set,i.set(t,s)),s.add({original:r,wrapped:n,options:o})}(o,e,t,i,r)}}function Se(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const ke=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],we=["bold","center","flex"],ve=new Map;function xe(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function Ce(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function Re(e,t,r,n="media",o){let i=document.querySelector("#nuclo-styles");i||(i=l("style"),i.id="nuclo-styles",document.head.appendChild(i));const s=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(o){const r=`.${e}${o}`,n=i.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null,d=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,d=e;break}t.selectorText.includes(":")||(d=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else n.insertRule(`${r} { ${s} }`,d);return}if(r){const o=i.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null;const d=e=>"media"===n&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===n&&e instanceof CSSContainerRule||"supports"===n&&e instanceof CSSSupportsRule)&&e.conditionText===r,u=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(d(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(u(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}o.insertRule(`${"media"===n?"@media":"container"===n?"@container":"supports"===n?"@supports":"@media"} ${r} {}`,e),l=o.cssRules[e]}let m=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){m=t;break}if(m){const e=m.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else l.insertRule(`.${e} { ${s} }`,l.cssRules.length)}else{const r=i.sheet;if(!r)return;let n=null,o=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){n=r,o=t;break}a(r)||(o=t+1)}if(n){const e=n.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else r.insertRule(`.${e} { ${s} }`,o)}}function Be(e,t){Re(e,t)}class Te{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=Ce(e),o=t?`${t}:${n}`:n,i=function(e){return ve.get(e)}(o);if(i){const t=i;return function(e,t,r="media"){const n=document.querySelector("#nuclo-styles");if(!n||!n.sheet)return!1;if(t){const o=Array.from(n.sheet.cssRules||[]).find(function(e){return"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t});return!!o&&Array.from(o.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(n.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||Re(t,e,r),t}const s=xe(n),a=t?`n${t}-${s}`:"n"+s;return function(e,t){ve.set(e,t)}(o,a),Re(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function Ee(e){return e.isShorthand?()=>(new Te).add(e.cssProperty,e.defaultValue||""):t=>(new Te).add(e.cssProperty,t||"")}!function(){const e=Te.prototype;for(const t of ke)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const Ie={};for(const e of ke)Ie[e.name]=Ee(e);for(const e of we)"bold"===e||"center"===e?Ie[e]=()=>(new Te)[e]():"flex"===e&&(Ie[e]=e=>(new Te).flex(e));const{display:Ne,flex:We,grid:Me,bg:Ae,color:je,accentColor:Fe,fontSize:Le,fontWeight:ze,fontFamily:Oe,lineHeight:De,letterSpacing:$e,textAlign:Ve,textDecoration:_e,bold:qe,fontStyle:Ge,fontVariant:He,fontStretch:Ue,textTransform:Xe,textIndent:Ye,textOverflow:Je,textShadow:Ke,whiteSpace:Qe,wordSpacing:Ze,wordWrap:et,overflowWrap:tt,textAlignLast:rt,textJustify:nt,textDecorationLine:ot,textDecorationColor:it,textDecorationStyle:st,textDecorationThickness:at,textUnderlineOffset:ct,verticalAlign:lt,position:dt,padding:ut,paddingTop:mt,paddingRight:pt,paddingBottom:ft,paddingLeft:yt,margin:gt,marginTop:ht,marginRight:bt,marginBottom:Pt,marginLeft:St,width:kt,height:wt,minWidth:vt,maxWidth:xt,minHeight:Ct,maxHeight:Rt,boxSizing:Bt,top:Tt,right:Et,bottom:It,left:Nt,zIndex:Wt,flexDirection:Mt,alignItems:At,justifyContent:jt,center:Ft,gap:Lt,flexWrap:zt,flexGrow:Ot,flexShrink:Dt,flexBasis:$t,alignSelf:Vt,alignContent:_t,justifySelf:qt,justifyItems:Gt,gridTemplateColumns:Ht,gridTemplateRows:Ut,gridTemplateAreas:Xt,gridColumn:Yt,gridRow:Jt,gridColumnStart:Kt,gridColumnEnd:Qt,gridRowStart:Zt,gridRowEnd:er,gridArea:tr,gridAutoColumns:rr,gridAutoRows:nr,gridAutoFlow:or,border:ir,borderTop:sr,borderRight:ar,borderBottom:cr,borderLeft:lr,borderWidth:dr,borderStyle:ur,borderColor:mr,borderTopWidth:pr,borderRightWidth:fr,borderBottomWidth:yr,borderLeftWidth:gr,borderTopStyle:hr,borderRightStyle:br,borderBottomStyle:Pr,borderLeftStyle:Sr,borderTopColor:kr,borderRightColor:wr,borderBottomColor:vr,borderLeftColor:xr,borderRadius:Cr,borderTopLeftRadius:Rr,borderTopRightRadius:Br,borderBottomLeftRadius:Tr,borderBottomRightRadius:Er,outline:Ir,outlineWidth:Nr,outlineStyle:Wr,outlineColor:Mr,outlineOffset:Ar,backgroundColor:jr,backgroundImage:Fr,backgroundRepeat:Lr,backgroundPosition:zr,backgroundSize:Or,backgroundAttachment:Dr,backgroundClip:$r,backgroundOrigin:Vr,boxShadow:_r,opacity:qr,transition:Gr,transitionProperty:Hr,transitionDuration:Ur,transitionTimingFunction:Xr,transitionDelay:Yr,transform:Jr,transformOrigin:Kr,transformStyle:Qr,perspective:Zr,perspectiveOrigin:en,backfaceVisibility:tn,animation:rn,animationName:nn,animationDuration:on,animationTimingFunction:sn,animationDelay:an,animationIterationCount:cn,animationDirection:ln,animationFillMode:dn,animationPlayState:un,filter:mn,backdropFilter:pn,overflow:fn,overflowX:yn,overflowY:gn,visibility:hn,objectFit:bn,objectPosition:Pn,listStyle:Sn,listStyleType:kn,listStylePosition:wn,listStyleImage:vn,borderCollapse:xn,borderSpacing:Cn,captionSide:Rn,emptyCells:Bn,tableLayout:Tn,content:En,quotes:In,counterReset:Nn,counterIncrement:Wn,appearance:Mn,userSelect:An,pointerEvents:jn,resize:Fn,scrollBehavior:Ln,clip:zn,clipPath:On,isolation:Dn,mixBlendMode:$n,willChange:Vn,contain:_n,pageBreakBefore:qn,pageBreakAfter:Gn,pageBreakInside:Hn,breakBefore:Un,breakAfter:Xn,breakInside:Yn,orphans:Jn,widows:Kn,columnCount:Qn,columnFill:Zn,columnGap:eo,columnRule:to,columnRuleColor:ro,columnRuleStyle:no,columnRuleWidth:oo,columnSpan:io,columnWidth:so,columns:ao,cursor:co}=Ie,lo={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function uo(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function mo(e){return e in lo}function po(e){return lo[e]}const fo=new Map;function yo(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=fo.get(n);t||(t=uo(n),fo.set(n,t)),r.set(e,t)}return function(e,n){let o,i;void 0!==n?(o=e,i=n):e instanceof Te?(o=e,i=void 0):(o=void 0,i=e);const s=null!=i&&Object.keys(i).length>0;if(!o&&!s)return{className:""};if(s){const e=[],n=new Set;for(const[o]of t){const t=i?.[o];t&&(n.add(o),e.push({queryName:o,query:r.get(o),styles:t.getStyles()}))}for(const[t,r]of Object.entries(i??{}))!n.has(t)&&mo(t)&&r instanceof Te&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:po(t)},styles:r.getStyles()});if(0===e.length&&!o)return{className:""};const s=[];s.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();s[a++]="default:"+Ce(e)}for(const{queryName:t,styles:r}of e){const e=Ce(r);s[a++]=`${t}:${e}`}const c="n"+xe(s.sort().join("||"));let l={};o&&(l={...o.getStyles()},Re(c,l));const d=[],u=[];for(const t of e)"pseudo"===t.query.type?u.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},Re(c,l,e.condition,e.type);for(const{query:e,styles:t}of u)Re(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:o.getClassName()}}}const go=yo;var ho=Object.freeze({__proto__:null,StyleBuilder:Te,accentColor:Fe,alignContent:_t,alignItems:At,alignSelf:Vt,animation:rn,animationDelay:an,animationDirection:ln,animationDuration:on,animationFillMode:dn,animationIterationCount:cn,animationName:nn,animationPlayState:un,animationTimingFunction:sn,appearance:Mn,backdropFilter:pn,backfaceVisibility:tn,backgroundAttachment:Dr,backgroundClip:$r,backgroundColor:jr,backgroundImage:Fr,backgroundOrigin:Vr,backgroundPosition:zr,backgroundRepeat:Lr,backgroundSize:Or,bg:Ae,bold:qe,border:ir,borderBottom:cr,borderBottomColor:vr,borderBottomLeftRadius:Tr,borderBottomRightRadius:Er,borderBottomStyle:Pr,borderBottomWidth:yr,borderCollapse:xn,borderColor:mr,borderLeft:lr,borderLeftColor:xr,borderLeftStyle:Sr,borderLeftWidth:gr,borderRadius:Cr,borderRight:ar,borderRightColor:wr,borderRightStyle:br,borderRightWidth:fr,borderSpacing:Cn,borderStyle:ur,borderTop:sr,borderTopColor:kr,borderTopLeftRadius:Rr,borderTopRightRadius:Br,borderTopStyle:hr,borderTopWidth:pr,borderWidth:dr,bottom:It,boxShadow:_r,boxSizing:Bt,breakAfter:Xn,breakBefore:Un,breakInside:Yn,captionSide:Rn,center:Ft,clip:zn,clipPath:On,color:je,columnCount:Qn,columnFill:Zn,columnGap:eo,columnRule:to,columnRuleColor:ro,columnRuleStyle:no,columnRuleWidth:oo,columnSpan:io,columnWidth:so,columns:ao,contain:_n,content:En,counterIncrement:Wn,counterReset:Nn,createBreakpoints:go,createCSSClass:Be,createStyleQueries:yo,cursor:co,display:Ne,emptyCells:Bn,filter:mn,flex:We,flexBasis:$t,flexDirection:Mt,flexGrow:Ot,flexShrink:Dt,flexWrap:zt,fontFamily:Oe,fontSize:Le,fontStretch:Ue,fontStyle:Ge,fontVariant:He,fontWeight:ze,gap:Lt,grid:Me,gridArea:tr,gridAutoColumns:rr,gridAutoFlow:or,gridAutoRows:nr,gridColumn:Yt,gridColumnEnd:Qt,gridColumnStart:Kt,gridRow:Jt,gridRowEnd:er,gridRowStart:Zt,gridTemplateAreas:Xt,gridTemplateColumns:Ht,gridTemplateRows:Ut,height:wt,isolation:Dn,justifyContent:jt,justifyItems:Gt,justifySelf:qt,left:Nt,letterSpacing:$e,lineHeight:De,listStyle:Sn,listStyleImage:vn,listStylePosition:wn,listStyleType:kn,margin:gt,marginBottom:Pt,marginLeft:St,marginRight:bt,marginTop:ht,maxHeight:Rt,maxWidth:xt,minHeight:Ct,minWidth:vt,mixBlendMode:$n,objectFit:bn,objectPosition:Pn,opacity:qr,orphans:Jn,outline:Ir,outlineColor:Mr,outlineOffset:Ar,outlineStyle:Wr,outlineWidth:Nr,overflow:fn,overflowWrap:tt,overflowX:yn,overflowY:gn,padding:ut,paddingBottom:ft,paddingLeft:yt,paddingRight:pt,paddingTop:mt,pageBreakAfter:Gn,pageBreakBefore:qn,pageBreakInside:Hn,perspective:Zr,perspectiveOrigin:en,pointerEvents:jn,position:dt,quotes:In,resize:Fn,right:Et,scrollBehavior:Ln,tableLayout:Tn,textAlign:Ve,textAlignLast:rt,textDecoration:_e,textDecorationColor:it,textDecorationLine:ot,textDecorationStyle:st,textDecorationThickness:at,textIndent:Ye,textJustify:nt,textOverflow:Je,textShadow:Ke,textTransform:Xe,textUnderlineOffset:ct,top:Tt,transform:Jr,transformOrigin:Kr,transformStyle:Qr,transition:Gr,transitionDelay:Yr,transitionDuration:Ur,transitionProperty:Hr,transitionTimingFunction:Xr,userSelect:An,verticalAlign:lt,visibility:hn,whiteSpace:Qe,widows:Kn,width:kt,willChange:Vn,wordSpacing:Ze,wordWrap:et,zIndex:Wt});function bo(){X();const e=globalThis;e.list=Z,e.update=he,e.when=ae,e.on=Pe,e.scope=ye,e.render=Se;for(const[t,r]of Object.entries(ho))try{e[t]=r}catch{}}bo();export{G as HTML_TAGS,U as SELF_CLOSING_TAGS,H as SVG_TAGS,Te as StyleBuilder,Fe as accentColor,_t as alignContent,At as alignItems,Vt as alignSelf,rn as animation,an as animationDelay,ln as animationDirection,on as animationDuration,dn as animationFillMode,cn as animationIterationCount,nn as animationName,un as animationPlayState,sn as animationTimingFunction,Mn as appearance,P as appendChildren,j as applyAttributes,L as applyNodeModifier,pn as backdropFilter,tn as backfaceVisibility,Dr as backgroundAttachment,$r as backgroundClip,jr as backgroundColor,Fr as backgroundImage,Vr as backgroundOrigin,zr as backgroundPosition,Lr as backgroundRepeat,Or as backgroundSize,Ae as bg,qe as bold,ir as border,cr as borderBottom,vr as borderBottomColor,Tr as borderBottomLeftRadius,Er as borderBottomRightRadius,Pr as borderBottomStyle,yr as borderBottomWidth,xn as borderCollapse,mr as borderColor,lr as borderLeft,xr as borderLeftColor,Sr as borderLeftStyle,gr as borderLeftWidth,Cr as borderRadius,ar as borderRight,wr as borderRightColor,br as borderRightStyle,fr as borderRightWidth,Cn as borderSpacing,ur as borderStyle,sr as borderTop,kr as borderTopColor,Rr as borderTopLeftRadius,Br as borderTopRightRadius,hr as borderTopStyle,pr as borderTopWidth,dr as borderWidth,It as bottom,_r as boxShadow,Bt as boxSizing,Xn as breakAfter,Un as breakBefore,Yn as breakInside,Rn as captionSide,Ft as center,zn as clip,On as clipPath,je as color,Qn as columnCount,Zn as columnFill,eo as columnGap,to as columnRule,ro as columnRuleColor,no as columnRuleStyle,oo as columnRuleWidth,io as columnSpan,so as columnWidth,ao as columns,_n as contain,En as content,Wn as counterIncrement,Nn as counterReset,go as createBreakpoints,Be as createCSSClass,y as createComment,g as createConditionalComment,$ as createHtmlElementWithModifiers,_ as createHtmlTagBuilder,yo as createStyleQueries,V as createSvgElementWithModifiers,q as createSvgTagBuilder,co as cursor,Ne as display,Bn as emptyCells,mn as filter,We as flex,$t as flexBasis,Mt as flexDirection,Ot as flexGrow,Dt as flexShrink,zt as flexWrap,Oe as fontFamily,Le as fontSize,Ue as fontStretch,Ge as fontStyle,He as fontVariant,ze as fontWeight,Lt as gap,Me as grid,tr as gridArea,rr as gridAutoColumns,or as gridAutoFlow,nr as gridAutoRows,Yt as gridColumn,Qt as gridColumnEnd,Kt as gridColumnStart,Jt as gridRow,er as gridRowEnd,Zt as gridRowStart,Xt as gridTemplateAreas,Ht as gridTemplateColumns,Ut as gridTemplateRows,wt as height,bo as initializeRuntime,o as isBoolean,c as isBrowser,i as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,s as isZeroArityFunction,Dn as isolation,jt as justifyContent,Gt as justifyItems,qt as justifySelf,Nt as left,$e as letterSpacing,De as lineHeight,Z as list,Sn as listStyle,vn as listStyleImage,wn as listStylePosition,kn as listStyleType,gt as margin,Pt as marginBottom,St as marginLeft,bt as marginRight,ht as marginTop,Rt as maxHeight,xt as maxWidth,Ct as minHeight,vt as minWidth,$n as mixBlendMode,bn as objectFit,Pn as objectPosition,Pe as on,qr as opacity,Jn as orphans,Ir as outline,Mr as outlineColor,Ar as outlineOffset,Wr as outlineStyle,Nr as outlineWidth,fn as overflow,tt as overflowWrap,yn as overflowX,gn as overflowY,ut as padding,ft as paddingBottom,yt as paddingLeft,pt as paddingRight,mt as paddingTop,Gn as pageBreakAfter,qn as pageBreakBefore,Hn as pageBreakInside,Zr as perspective,en as perspectiveOrigin,jn as pointerEvents,dt as position,In as quotes,X as registerGlobalTagBuilders,Se as render,k as replaceNodeSafely,Fn as resize,Et as right,ye as scope,Ln as scrollBehavior,Tn as tableLayout,Ve as textAlign,rt as textAlignLast,_e as textDecoration,it as textDecorationColor,ot as textDecorationLine,st as textDecorationStyle,at as textDecorationThickness,Ye as textIndent,nt as textJustify,Je as textOverflow,Ke as textShadow,Xe as textTransform,ct as textUnderlineOffset,Tt as top,Jr as transform,Kr as transformOrigin,Qr as transformStyle,Gr as transition,Yr as transitionDelay,Ur as transitionDuration,Hr as transitionProperty,Xr as transitionTimingFunction,he as update,An as userSelect,lt as verticalAlign,hn as visibility,ae as when,Qe as whiteSpace,Kn as widows,kt as width,Vn as willChange,Ze as wordSpacing,et as wordWrap,Wt as zIndex};
1
+ function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function n(e){return r(e)&&"tagName"in e}function o(e){return"boolean"==typeof e}function i(e){return"function"==typeof e}function s(e){return i(e)&&0===e.length}function a(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const c="undefined"!=typeof window&&"undefined"!=typeof document,l=new WeakMap;function d(e,t,r){return function(n){if(!n||"function"!=typeof n.addEventListener)return;const o=n,i=new AbortController,s=function(r){try{t.call(o,r)}catch(t){a(`Error in '${e}' listener`,t)}},c="boolean"==typeof r?{capture:r,signal:i.signal}:{...r||{},signal:i.signal};o.addEventListener(e,s,c),function(e,t,r,n,o,i){let s=l.get(e);s||(s=new Map,l.set(e,s));let a=s.get(t);a||(a=new Set,s.set(t,a)),a.add({original:r,wrapped:n,options:o,controller:i})}(o,e,t,s,r,i)}}const u=new Set;function m(e,t){e._conditionalInfo=t,u.add(new WeakRef(e))}function p(e){for(const t of u)if(t.deref()===e){u.delete(t);break}}function f(e){return globalThis.document?document.createElement(e):null}function y(e,t){return globalThis.document?document.createElementNS(e,t):null}function g(e){return globalThis.document?document.createTextNode(e):null}function h(){return globalThis.document?document.createDocumentFragment():null}function b(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;!function(e){const t=l.get(e);if(t){for(const[r,n]of t)for(const t of n)t.controller?t.controller.abort():e.removeEventListener(r,t.wrapped,t.options);l.delete(e)}}(t),function(e){for(const[t,r]of T)if(t.deref()===e){T.delete(t);break}}(t),p(t)}else e.nodeType===Node.TEXT_NODE?function(e){for(const[t]of E)if(t.deref()===e){E.delete(t);break}}(e):e.nodeType===Node.COMMENT_NODE&&p(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;e.childNodes.length>t;t++)b(e.childNodes[t])}function P(e){if(!e?.parentNode)return!1;try{return b(e),e.parentNode.removeChild(e),!0}catch(e){return a("Failed to remove child node",e),!1}}function S(e){if(!c)return null;try{return document.createComment(e)}catch(e){return a("Failed to create comment node",e),null}}function k(e){return S(e)}function w(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return a("Failed to create conditional comment",e),null}}function v(e){if(!c)throw Error("Cannot create comment in non-browser environment");const t=S(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function x(e){const t=S(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:v(e+"-start"),end:t}}function C(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!c)return null;try{return g(e+"")}catch(e){return a("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return a("Failed to append child node",e),!1}}(e,r)}}),e):e}function R(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!c||"undefined"==typeof document)&&document.contains(e))}function B(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return a("Error replacing conditional node",e),!1}}const E=new Map,T=new Map,I={};let N=!1;function W(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){let e=null,t=null;for(const[n,o]of T){const i=n.deref();if(void 0!==i){if(i===r){e=n,t=o;break}}else T.delete(n)}t&&e&&(R(r)?A(t):T.delete(e))}r=r.parentNode}}function M(e,t){let r;try{r=t.resolver()}catch(t){return void a("Failed to resolve reactive attribute: "+e,t)}const n=null===(o=r)||"object"!=typeof o;var o;if(!n||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=n?r:I}catch(t){a("Failed to apply reactive attribute: "+e,t)}}function A(e){for(const[t,r]of e.attributeResolvers)M(t,r)}function j(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return void a("Invalid parameters for registerAttributeResolver");N||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",W,!0),N=!0);const o=function(e){for(const[t,r]of T){const n=t.deref();if(void 0!==n){if(n===e)return r}else T.delete(t)}const t={attributeResolvers:new Map};return T.set(new WeakRef(e),t),t}(e),i={resolver:r,applyValue:n,lastValue:I};o.attributeResolvers.set(t,i),M(t,i)}function F(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function L(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))F(e,r,n)||a(`Failed to set style property '${r}'`)}const O="__nuclo_reactive_className__",D="__nuclo_static_className__";function z(e,t,r,n=!1){if(null==r)return;if("style"===t)return s=r,void((o=e)&&(i(s)?j(o,"style",s,function(e){L(o,e)}):L(o,s)));var o,s;const a=(r,n=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&n)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const n=new Set(r.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){n.add(e)}),e.className=Array.from(n).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(i(r)&&0===r.length){const n=r;"className"===t&&e instanceof HTMLElement?(function(e){e[D]||(e[D]=new Set(e.className.split(" ").filter(function(e){return e}))),e[O]=!0}(e),j(e,t+"",n,function(t){!function(e,t){const r=function(e){return e[D]}(e);if(r&&r.size>0&&t){const n=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){n.add(e)}),e.className=Array.from(n).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):j(e,t+"",n,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[O]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[D]||(e[D]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[D].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){r.add(e)}),e.className=Array.from(r).join(" ")}return}a(r,n)}}function $(e,t,r=!0){if(t)for(const n of Object.keys(t))z(e,n,t[n],r&&"className"===n)}const V=new WeakMap;function _(n,o,c){if(null==o)return null;if(i(o)){if(s(o))try{let i=V.get(o);if(i||(i={value:o(),error:!1},V.set(o,i)),i.error)return q(c,function(){return""});const s=i.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=o;return $(n,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?q(c,o,s):null}catch(e){return V.set(o,{value:void 0,error:!0}),a("Error evaluating reactive text function:",e),q(c,function(){return""})}const i=o(n,c);return null==i?null:e(i)?G(c,i):t(i)?i:(r(i)&&$(n,i),null)}const l=o;return e(l)?G(c,l):t(l)?l:($(n,l),null)}function q(e,t,r){const n=h();if(!n)throw Error("Failed to create document fragment: document not available");const o=k(` text-${e} `);o&&n.appendChild(o);const i=function(e,t){if("function"!=typeof e){a("Invalid resolver provided to createReactiveTextNode");const e=g("");if(!e)throw Error("Failed to create text node: document not available");return e}let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){a("Failed to evaluate reactive text resolver",e),r=""}const n=void 0===r?"":r+"",o=g(n);if(!o)throw Error("Failed to create text node: document not available");return E.set(new WeakRef(o),{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(i),n}function G(e,t){const r=h();if(!r)throw Error("Failed to create document fragment: document not available");const n=k(` text-${e} `);n&&r.appendChild(n);const o=g(t+"");return o&&r.appendChild(o),r}function H(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let n=r,o=0;const i=e;for(let r=0;t.length>r;r+=1){const s=t[r];if(null==s)continue;const a=_(e,s,n);a&&(a.parentNode!==i&&i.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function X(e,t){const r=f(e);return H(r,t,0),r}function U(e,t){const r=y("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return H(r,t,0),r}function Y(e){return(...t)=>function(e,...t){return function(r,n){const o=f(e);return H(o,t,n),o}}(e,...t)}function J(e){return(...t)=>function(e,...t){return function(r,n){const o=y("http://www.w3.org/2000/svg",e);if(!o)throw Error("Failed to create SVG element: "+e);return H(o,t,n),o}}(e,...t)}const K=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],Q=["a","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tspan","use","view"],Z=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function ee(e=globalThis){const t="__nuclo_tags_registered";e[t]||(Q.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=J(t))}(e,t)),K.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=Y(t))}(e,t)),e[t]=!0)}const te=new Map;function re(e,t,r){return function(e,t,r){if(i(e)){const o=e(t,r);return o&&n(o)?o:null}return e&&n(e)?e:null}(e.renderItem(t,r),e.host,r)}function ne(e){P(e.element),e.element=null,e.item=null}function oe(e){const{host:t,startMarker:r,endMarker:n}=e,o=r.parentNode??t,i=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,i))return;const s=new Map,a=new Map;e.records.forEach(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){s.set(r,n);const e=a.get(t);e.splice(e.indexOf(n),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let d=n;for(let t=i.length-1;t>=0;t--){const r=i[t];let n=s.get(t);if(!n){const e=a.get(r);e&&e.length>0&&(n=e.shift(),0===e.length&&a.delete(r))}if(n)l.delete(n);else{const o=re(e,r,t);if(!o)continue;n={item:r,element:o}}c.unshift(n);const u=n.element;u.nextSibling!==d&&o.insertBefore(u,d),d=u}l.forEach(ne),e.records=c,e.lastSyncedItems=[...i],0===c.length&&(e.records=[],e.lastSyncedItems=[])}function ie(e,t){return function(r){const n=function(e,t,r){const{start:n,end:o}=x("list"),i={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},s=r;s.appendChild(n),s.appendChild(o);const a={runtime:i};return te.set(new WeakRef(n),a),oe(i),i}(e,t,r);return n.startMarker}}function se(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function ae(e,t){return"function"==typeof e?se(e,t):!!e}function ce(e,t,r,n){return i(e)?s(e)?(V.delete(e),_(t,e,r)):function(e,t,r){const n=e,o=n.appendChild.bind(n),i=n.insertBefore.bind(n);n.appendChild=function(e){return i(e,t)};try{return r()}finally{n.appendChild=o}}(t,n,()=>{const n=_(t,e,r);return n&&!n.parentNode?n:null}):_(t,e,r)}const le=new Map;function de(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;e.length>t;t++)if(ae(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(s===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;P(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const c=function(e,t,r,n){const o=[];for(const i of e){const e=ce(i,t,r,n);e&&o.push(e)}return o}(0>s?r:t[s].content,n,o,i);!function(e,t){const r=t.parentNode;r&&e.forEach(function(e){!function(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return a("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,i)}class ue{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!c)return k("when-ssr")||null;const{start:r,end:n}=x("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){de(o)}};!function(e){const t={runtime:e};le.set(new WeakRef(e.startMarker),t)}(o);const i=e;return i.appendChild(r),i.appendChild(n),de(o),r}}function me(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),me(e)},else:function(...t){return e.else(...t),me(e)}})}function pe(e,...t){return me(new ue(e,...t))}function fe(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=se(t.condition,e=>{a("Error evaluating conditional condition",e)}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return e.isSvg?U(e.tagName,e.modifiers):X(e.tagName,e.modifiers)}catch(t){if(a(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=y("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=f(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);m(r,t),B(e,r)}else if(!r&&n){const r=w(t.tagName);r&&(m(r,t),B(e,r))}}const ye=new Map;function ge(e){const t=[],r=new Set;for(const n of e){if("string"!=typeof n)continue;const e=n.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function he(e,t){let r=ye.get(e);r||(r=new Set,ye.set(e,r)),r.add(new WeakRef(t))}function be(...e){const t=ge(e);return function(e){if(e instanceof Element)for(const r of t)he(r,e)}}const Pe=[function(e){const t=[];for(const[r,n]of te){const o=r.deref();void 0!==o&&R(o)&&R(n.runtime.endMarker)?e&&!e.contains(o)||oe(n.runtime):(n.runtime.records&&(n.runtime.records.forEach(e=>{e.element=null,e.item=null}),n.runtime.records=[]),t.push(r))}for(const e of t)te.delete(e)},function(e){const t=[];for(const[r,n]of le){const o=r.deref();if(void 0!==o)if(R(o)&&R(n.runtime.endMarker)){if(!e||e.contains(o))try{n.runtime.update()}catch{t.push(r)}}else t.push(r);else t.push(r)}for(const e of t)le.delete(e)},function(e){if(c)try{const t=function(){const e=[],t=[];for(const r of u){const n=r.deref();void 0===n?t.push(r):e.push(n)}for(const e of t)u.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||fe(r):p(r)}catch(e){a("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,n]of T){const o=r.deref();void 0!==o&&R(o)?e&&!e.contains(o)||A(n):t.push(r)}for(const e of t)T.delete(e);t.length>0&&function(){const e=[];for(const[t]of T)void 0===t.deref()&&e.push(t);for(const t of e)T.delete(t)}()},function(e){const t=[];for(const[r,n]of E){const o=r.deref();if(void 0===o){t.push(r);continue}if(!R(o)){t.push(r);continue}if(e&&!e.contains(o))continue;let i;try{i=n.resolver()}catch(e){a("Failed to update reactive text node",e),i=void 0}const s=void 0===i?"":i+"";s!==n.lastValue&&(o.textContent=s,n.lastValue=s)}for(const e of t)E.delete(e);t.length>0&&function(){const e=[];for(const[t]of E)void 0===t.deref()&&e.push(t);for(const t of e)E.delete(t)}()},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){a("Error dispatching global update event",e)}}];function Se(...e){let t;if(e.length>0){const r=function(e){const t=ge(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=ye.get(e);if(!t)continue;const n=[];for(const e of t){const t=e.deref();void 0!==t&&R(t)?r.add(t):n.push(e)}for(const e of n)t.delete(e);0===t.size&&ye.delete(e)}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:function(t){return e.contains(t)}}}else t={roots:r,contains:function(e){for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of Pe)e(t)}function ke(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const we=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],ve=["bold","center","flex"],xe=new Map;function Ce(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function Re(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function Be(e,t,r,n="media",o){let i=document.querySelector("#nuclo-styles");i||(i=f("style"),i.id="nuclo-styles",document.head.appendChild(i));const s=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(o){const r=`.${e}${o}`,n=i.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null,d=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,d=e;break}t.selectorText.includes(":")||(d=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else n.insertRule(`${r} { ${s} }`,d);return}if(r){const o=i.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null;const d=e=>"media"===n&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===n&&e instanceof CSSContainerRule||"supports"===n&&e instanceof CSSSupportsRule)&&e.conditionText===r,u=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(d(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(u(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}o.insertRule(`${"media"===n?"@media":"container"===n?"@container":"supports"===n?"@supports":"@media"} ${r} {}`,e),l=o.cssRules[e]}let m=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){m=t;break}if(m){const e=m.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else l.insertRule(`.${e} { ${s} }`,l.cssRules.length)}else{const r=i.sheet;if(!r)return;let n=null,o=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){n=r,o=t;break}a(r)||(o=t+1)}if(n){const e=n.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else r.insertRule(`.${e} { ${s} }`,o)}}function Ee(e,t){Be(e,t)}class Te{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=Re(e),o=t?`${t}:${n}`:n,i=function(e){return xe.get(e)}(o);if(i){const t=i;return function(e,t,r="media"){const n=document.querySelector("#nuclo-styles");if(!n||!n.sheet)return!1;if(t){const o=Array.from(n.sheet.cssRules||[]).find(function(e){return"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t});return!!o&&Array.from(o.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(n.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||Be(t,e,r),t}const s=Ce(n),a=t?`n${t}-${s}`:"n"+s;return function(e,t){xe.set(e,t)}(o,a),Be(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function Ie(e){return e.isShorthand?()=>(new Te).add(e.cssProperty,e.defaultValue||""):t=>(new Te).add(e.cssProperty,t||"")}!function(){const e=Te.prototype;for(const t of we)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const Ne={};for(const e of we)Ne[e.name]=Ie(e);for(const e of ve)"bold"===e||"center"===e?Ne[e]=()=>(new Te)[e]():"flex"===e&&(Ne[e]=e=>(new Te).flex(e));const{display:We,flex:Me,grid:Ae,bg:je,color:Fe,accentColor:Le,fontSize:Oe,fontWeight:De,fontFamily:ze,lineHeight:$e,letterSpacing:Ve,textAlign:_e,textDecoration:qe,bold:Ge,fontStyle:He,fontVariant:Xe,fontStretch:Ue,textTransform:Ye,textIndent:Je,textOverflow:Ke,textShadow:Qe,whiteSpace:Ze,wordSpacing:et,wordWrap:tt,overflowWrap:rt,textAlignLast:nt,textJustify:ot,textDecorationLine:it,textDecorationColor:st,textDecorationStyle:at,textDecorationThickness:ct,textUnderlineOffset:lt,verticalAlign:dt,position:ut,padding:mt,paddingTop:pt,paddingRight:ft,paddingBottom:yt,paddingLeft:gt,margin:ht,marginTop:bt,marginRight:Pt,marginBottom:St,marginLeft:kt,width:wt,height:vt,minWidth:xt,maxWidth:Ct,minHeight:Rt,maxHeight:Bt,boxSizing:Et,top:Tt,right:It,bottom:Nt,left:Wt,zIndex:Mt,flexDirection:At,alignItems:jt,justifyContent:Ft,center:Lt,gap:Ot,flexWrap:Dt,flexGrow:zt,flexShrink:$t,flexBasis:Vt,alignSelf:_t,alignContent:qt,justifySelf:Gt,justifyItems:Ht,gridTemplateColumns:Xt,gridTemplateRows:Ut,gridTemplateAreas:Yt,gridColumn:Jt,gridRow:Kt,gridColumnStart:Qt,gridColumnEnd:Zt,gridRowStart:er,gridRowEnd:tr,gridArea:rr,gridAutoColumns:nr,gridAutoRows:or,gridAutoFlow:ir,border:sr,borderTop:ar,borderRight:cr,borderBottom:lr,borderLeft:dr,borderWidth:ur,borderStyle:mr,borderColor:pr,borderTopWidth:fr,borderRightWidth:yr,borderBottomWidth:gr,borderLeftWidth:hr,borderTopStyle:br,borderRightStyle:Pr,borderBottomStyle:Sr,borderLeftStyle:kr,borderTopColor:wr,borderRightColor:vr,borderBottomColor:xr,borderLeftColor:Cr,borderRadius:Rr,borderTopLeftRadius:Br,borderTopRightRadius:Er,borderBottomLeftRadius:Tr,borderBottomRightRadius:Ir,outline:Nr,outlineWidth:Wr,outlineStyle:Mr,outlineColor:Ar,outlineOffset:jr,backgroundColor:Fr,backgroundImage:Lr,backgroundRepeat:Or,backgroundPosition:Dr,backgroundSize:zr,backgroundAttachment:$r,backgroundClip:Vr,backgroundOrigin:_r,boxShadow:qr,opacity:Gr,transition:Hr,transitionProperty:Xr,transitionDuration:Ur,transitionTimingFunction:Yr,transitionDelay:Jr,transform:Kr,transformOrigin:Qr,transformStyle:Zr,perspective:en,perspectiveOrigin:tn,backfaceVisibility:rn,animation:nn,animationName:on,animationDuration:sn,animationTimingFunction:an,animationDelay:cn,animationIterationCount:ln,animationDirection:dn,animationFillMode:un,animationPlayState:mn,filter:pn,backdropFilter:fn,overflow:yn,overflowX:gn,overflowY:hn,visibility:bn,objectFit:Pn,objectPosition:Sn,listStyle:kn,listStyleType:wn,listStylePosition:vn,listStyleImage:xn,borderCollapse:Cn,borderSpacing:Rn,captionSide:Bn,emptyCells:En,tableLayout:Tn,content:In,quotes:Nn,counterReset:Wn,counterIncrement:Mn,appearance:An,userSelect:jn,pointerEvents:Fn,resize:Ln,scrollBehavior:On,clip:Dn,clipPath:zn,isolation:$n,mixBlendMode:Vn,willChange:_n,contain:qn,pageBreakBefore:Gn,pageBreakAfter:Hn,pageBreakInside:Xn,breakBefore:Un,breakAfter:Yn,breakInside:Jn,orphans:Kn,widows:Qn,columnCount:Zn,columnFill:eo,columnGap:to,columnRule:ro,columnRuleColor:no,columnRuleStyle:oo,columnRuleWidth:io,columnSpan:so,columnWidth:ao,columns:co,cursor:lo}=Ne,uo={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function mo(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function po(e){return e in uo}function fo(e){return uo[e]}const yo=new Map;function go(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=yo.get(n);t||(t=mo(n),yo.set(n,t)),r.set(e,t)}return function(e,n){let o,i;void 0!==n?(o=e,i=n):e instanceof Te?(o=e,i=void 0):(o=void 0,i=e);const s=null!=i&&Object.keys(i).length>0;if(!o&&!s)return{className:""};if(s){const e=[],n=new Set;for(const[o]of t){const t=i?.[o];t&&(n.add(o),e.push({queryName:o,query:r.get(o),styles:t.getStyles()}))}for(const[t,r]of Object.entries(i??{}))!n.has(t)&&po(t)&&r instanceof Te&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:fo(t)},styles:r.getStyles()});if(0===e.length&&!o)return{className:""};const s=[];s.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();s[a++]="default:"+Re(e)}for(const{queryName:t,styles:r}of e){const e=Re(r);s[a++]=`${t}:${e}`}const c="n"+Ce(s.sort().join("||"));let l={};o&&(l={...o.getStyles()},Be(c,l));const d=[],u=[];for(const t of e)"pseudo"===t.query.type?u.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},Be(c,l,e.condition,e.type);for(const{query:e,styles:t}of u)Be(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:o.getClassName()}}}const ho=go;var bo=Object.freeze({__proto__:null,StyleBuilder:Te,accentColor:Le,alignContent:qt,alignItems:jt,alignSelf:_t,animation:nn,animationDelay:cn,animationDirection:dn,animationDuration:sn,animationFillMode:un,animationIterationCount:ln,animationName:on,animationPlayState:mn,animationTimingFunction:an,appearance:An,backdropFilter:fn,backfaceVisibility:rn,backgroundAttachment:$r,backgroundClip:Vr,backgroundColor:Fr,backgroundImage:Lr,backgroundOrigin:_r,backgroundPosition:Dr,backgroundRepeat:Or,backgroundSize:zr,bg:je,bold:Ge,border:sr,borderBottom:lr,borderBottomColor:xr,borderBottomLeftRadius:Tr,borderBottomRightRadius:Ir,borderBottomStyle:Sr,borderBottomWidth:gr,borderCollapse:Cn,borderColor:pr,borderLeft:dr,borderLeftColor:Cr,borderLeftStyle:kr,borderLeftWidth:hr,borderRadius:Rr,borderRight:cr,borderRightColor:vr,borderRightStyle:Pr,borderRightWidth:yr,borderSpacing:Rn,borderStyle:mr,borderTop:ar,borderTopColor:wr,borderTopLeftRadius:Br,borderTopRightRadius:Er,borderTopStyle:br,borderTopWidth:fr,borderWidth:ur,bottom:Nt,boxShadow:qr,boxSizing:Et,breakAfter:Yn,breakBefore:Un,breakInside:Jn,captionSide:Bn,center:Lt,clip:Dn,clipPath:zn,color:Fe,columnCount:Zn,columnFill:eo,columnGap:to,columnRule:ro,columnRuleColor:no,columnRuleStyle:oo,columnRuleWidth:io,columnSpan:so,columnWidth:ao,columns:co,contain:qn,content:In,counterIncrement:Mn,counterReset:Wn,createBreakpoints:ho,createCSSClass:Ee,createStyleQueries:go,cursor:lo,display:We,emptyCells:En,filter:pn,flex:Me,flexBasis:Vt,flexDirection:At,flexGrow:zt,flexShrink:$t,flexWrap:Dt,fontFamily:ze,fontSize:Oe,fontStretch:Ue,fontStyle:He,fontVariant:Xe,fontWeight:De,gap:Ot,grid:Ae,gridArea:rr,gridAutoColumns:nr,gridAutoFlow:ir,gridAutoRows:or,gridColumn:Jt,gridColumnEnd:Zt,gridColumnStart:Qt,gridRow:Kt,gridRowEnd:tr,gridRowStart:er,gridTemplateAreas:Yt,gridTemplateColumns:Xt,gridTemplateRows:Ut,height:vt,isolation:$n,justifyContent:Ft,justifyItems:Ht,justifySelf:Gt,left:Wt,letterSpacing:Ve,lineHeight:$e,listStyle:kn,listStyleImage:xn,listStylePosition:vn,listStyleType:wn,margin:ht,marginBottom:St,marginLeft:kt,marginRight:Pt,marginTop:bt,maxHeight:Bt,maxWidth:Ct,minHeight:Rt,minWidth:xt,mixBlendMode:Vn,objectFit:Pn,objectPosition:Sn,opacity:Gr,orphans:Kn,outline:Nr,outlineColor:Ar,outlineOffset:jr,outlineStyle:Mr,outlineWidth:Wr,overflow:yn,overflowWrap:rt,overflowX:gn,overflowY:hn,padding:mt,paddingBottom:yt,paddingLeft:gt,paddingRight:ft,paddingTop:pt,pageBreakAfter:Hn,pageBreakBefore:Gn,pageBreakInside:Xn,perspective:en,perspectiveOrigin:tn,pointerEvents:Fn,position:ut,quotes:Nn,resize:Ln,right:It,scrollBehavior:On,tableLayout:Tn,textAlign:_e,textAlignLast:nt,textDecoration:qe,textDecorationColor:st,textDecorationLine:it,textDecorationStyle:at,textDecorationThickness:ct,textIndent:Je,textJustify:ot,textOverflow:Ke,textShadow:Qe,textTransform:Ye,textUnderlineOffset:lt,top:Tt,transform:Kr,transformOrigin:Qr,transformStyle:Zr,transition:Hr,transitionDelay:Jr,transitionDuration:Ur,transitionProperty:Xr,transitionTimingFunction:Yr,userSelect:jn,verticalAlign:dt,visibility:bn,whiteSpace:Ze,widows:Qn,width:wt,willChange:_n,wordSpacing:et,wordWrap:tt,zIndex:Mt});function Po(){ee();const e=globalThis;e.list=ie,e.update=Se,e.when=pe,e.on=d,e.scope=be,e.render=ke;for(const[t,r]of Object.entries(bo))try{e[t]=r}catch{}}Po();export{K as HTML_TAGS,Z as SELF_CLOSING_TAGS,Q as SVG_TAGS,Te as StyleBuilder,Le as accentColor,qt as alignContent,jt as alignItems,_t as alignSelf,nn as animation,cn as animationDelay,dn as animationDirection,sn as animationDuration,un as animationFillMode,ln as animationIterationCount,on as animationName,mn as animationPlayState,an as animationTimingFunction,An as appearance,C as appendChildren,$ as applyAttributes,_ as applyNodeModifier,fn as backdropFilter,rn as backfaceVisibility,$r as backgroundAttachment,Vr as backgroundClip,Fr as backgroundColor,Lr as backgroundImage,_r as backgroundOrigin,Dr as backgroundPosition,Or as backgroundRepeat,zr as backgroundSize,je as bg,Ge as bold,sr as border,lr as borderBottom,xr as borderBottomColor,Tr as borderBottomLeftRadius,Ir as borderBottomRightRadius,Sr as borderBottomStyle,gr as borderBottomWidth,Cn as borderCollapse,pr as borderColor,dr as borderLeft,Cr as borderLeftColor,kr as borderLeftStyle,hr as borderLeftWidth,Rr as borderRadius,cr as borderRight,vr as borderRightColor,Pr as borderRightStyle,yr as borderRightWidth,Rn as borderSpacing,mr as borderStyle,ar as borderTop,wr as borderTopColor,Br as borderTopLeftRadius,Er as borderTopRightRadius,br as borderTopStyle,fr as borderTopWidth,ur as borderWidth,Nt as bottom,qr as boxShadow,Et as boxSizing,Yn as breakAfter,Un as breakBefore,Jn as breakInside,Bn as captionSide,Lt as center,Dn as clip,zn as clipPath,Fe as color,Zn as columnCount,eo as columnFill,to as columnGap,ro as columnRule,no as columnRuleColor,oo as columnRuleStyle,io as columnRuleWidth,so as columnSpan,ao as columnWidth,co as columns,qn as contain,In as content,Mn as counterIncrement,Wn as counterReset,ho as createBreakpoints,Ee as createCSSClass,k as createComment,w as createConditionalComment,X as createHtmlElementWithModifiers,Y as createHtmlTagBuilder,go as createStyleQueries,U as createSvgElementWithModifiers,J as createSvgTagBuilder,lo as cursor,We as display,En as emptyCells,pn as filter,Me as flex,Vt as flexBasis,At as flexDirection,zt as flexGrow,$t as flexShrink,Dt as flexWrap,ze as fontFamily,Oe as fontSize,Ue as fontStretch,He as fontStyle,Xe as fontVariant,De as fontWeight,Ot as gap,Ae as grid,rr as gridArea,nr as gridAutoColumns,ir as gridAutoFlow,or as gridAutoRows,Jt as gridColumn,Zt as gridColumnEnd,Qt as gridColumnStart,Kt as gridRow,tr as gridRowEnd,er as gridRowStart,Yt as gridTemplateAreas,Xt as gridTemplateColumns,Ut as gridTemplateRows,vt as height,Po as initializeRuntime,o as isBoolean,c as isBrowser,i as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,s as isZeroArityFunction,$n as isolation,Ft as justifyContent,Ht as justifyItems,Gt as justifySelf,Wt as left,Ve as letterSpacing,$e as lineHeight,ie as list,kn as listStyle,xn as listStyleImage,vn as listStylePosition,wn as listStyleType,ht as margin,St as marginBottom,kt as marginLeft,Pt as marginRight,bt as marginTop,Bt as maxHeight,Ct as maxWidth,Rt as minHeight,xt as minWidth,Vn as mixBlendMode,Pn as objectFit,Sn as objectPosition,d as on,Gr as opacity,Kn as orphans,Nr as outline,Ar as outlineColor,jr as outlineOffset,Mr as outlineStyle,Wr as outlineWidth,yn as overflow,rt as overflowWrap,gn as overflowX,hn as overflowY,mt as padding,yt as paddingBottom,gt as paddingLeft,ft as paddingRight,pt as paddingTop,Hn as pageBreakAfter,Gn as pageBreakBefore,Xn as pageBreakInside,en as perspective,tn as perspectiveOrigin,Fn as pointerEvents,ut as position,Nn as quotes,ee as registerGlobalTagBuilders,ke as render,B as replaceNodeSafely,Ln as resize,It as right,be as scope,On as scrollBehavior,Tn as tableLayout,_e as textAlign,nt as textAlignLast,qe as textDecoration,st as textDecorationColor,it as textDecorationLine,at as textDecorationStyle,ct as textDecorationThickness,Je as textIndent,ot as textJustify,Ke as textOverflow,Qe as textShadow,Ye as textTransform,lt as textUnderlineOffset,Tt as top,Kr as transform,Qr as transformOrigin,Zr as transformStyle,Hr as transition,Jr as transitionDelay,Ur as transitionDuration,Xr as transitionProperty,Yr as transitionTimingFunction,Se as update,jn as userSelect,dt as verticalAlign,bn as visibility,pe as when,Ze as whiteSpace,Qn as widows,wt as width,_n as willChange,et as wordSpacing,tt as wordWrap,Mt as zIndex};
2
2
  //# sourceMappingURL=nuclo.js.map