nuclo 0.1.51 → 0.1.53

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){"undefined"!=typeof console&&console.error(`nuclo: ${e}`,t)}function c(e,t){try{return e()}catch(e){return a("Operation failed",e),t}}const l="undefined"!=typeof window&&"undefined"!=typeof document;function d(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 u(e){if(!l)return null;try{return document.createComment(e)}catch(e){return a("Failed to create comment node",e),null}}function m(e){return u(e)}function p(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return a("Failed to create conditional comment",e),null}}function f(e){if(!l)throw new Error("Cannot create comment in non-browser environment");const t=u(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw new Error("Failed to create comment");return t}function y(e){const t=u(`${e}-end`);if(!t)throw new Error("Failed to create end comment");return{start:f(`${e}-start`),end:t}}function g(e,t){const r=t.parentNode;r&&e.forEach(e=>function(e,t,r){if(!e||!t)return!1;try{return e.insertBefore(t,r),!0}catch(e){return a("Failed to insert node before reference",e),!1}}(r,e,t))}function h(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!l)return null;try{return document.createTextNode(String(e))}catch(e){return a("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return a("Failed to append child node",e),!1}}(e,r)}}),e):e}function b(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!l||"undefined"==typeof document)&&document.contains(e))}function P(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 S=new Map,w=new Map;function x(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},r)=>{try{t(c(e))}catch(e){a(`Failed to update reactive attribute: ${r}`,e)}})}function C(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return void a("Invalid parameters for registerAttributeResolver");const o=function(e){let t=w.get(e);return t||(t={attributeResolvers:new Map},w.set(e,t)),t}(e);o.attributeResolvers.set(t,{resolver:r,applyValue:n});try{n(c(r))}catch(e){a("Failed to apply initial attribute value",e)}if(!o.updateListener){const t=()=>x(0,o);e.addEventListener("update",t),o.updateListener=t}}function v(e,t,r){try{if(null==r||""===r)return e.style[t]="",!0;const n=String(r);return e.style[t]=n,!0}catch{return!1}}function k(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t)){v(e,r,n)||a(`Failed to set style property '${r}'`)}}function R(e,t,r,n=!1){if(null==r)return;if("style"===t)return s=r,void((o=e)&&(i(s)?C(o,"style",()=>{try{return s()}catch(e){return a("Error in style resolver function",e),null}},e=>{k(o,e)}):k(o,s)));var o,s;const c=(r,n=!1)=>{if(null==r)return;if("className"===t&&e instanceof HTMLElement&&n){const t=String(r),n=e.className;if(n&&n!==t){const r=new Set(n.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>r.add(e)),e.className=Array.from(r).join(" ")}else t&&(e.className=t);return}if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(String(t),String(r));else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(String(t),String(r))}else e instanceof Element&&e.setAttribute(String(t),String(r))};if(i(r)&&0===r.length){const n=r;C(e,String(t),n,e=>c(e,!1))}else c(r,n)}function T(e,t,r=!0){if(t)for(const n of Object.keys(t)){R(e,n,t[n],r&&"className"===n)}}const B=new WeakMap;function E(e){const{value:t,error:r}=function(e){const t=B.get(e);if(t)return t;try{const t={value:e(),error:!1};return B.set(e,t),t}catch{const t={value:void 0,error:!0};return B.set(e,t),t}}(e);return!r&&"boolean"==typeof t}function A(e,n,o){if(!i(e)||0!==e.length)return!1;if(!E(e))return!1;const s=n.filter((e,t)=>t!==o);if(0===s.length)return!1;return s.some(e=>!(!r(e)&&!t(e))||!!(i(e)&&e.length>0))}function I(n,o,c){if(null==o)return null;if(i(o)){if(s(o))try{let t=B.get(o);if(!t){t={value:o(),error:!1},B.set(o,t)}if(t.error)return L(c,()=>"");const r=t.value;return e(r)&&null!=r?L(c,o,r):null}catch(e){return B.set(o,{value:void 0,error:!0}),a("Error evaluating reactive text function:",e),L(c,()=>"")}const i=o(n,c);return null==i?null:e(i)?N(c,i):t(i)?i:(r(i)&&T(n,i),null)}const l=o;return null==l?null:e(l)?N(c,l):t(l)?l:(r(l)&&T(n,l),null)}function L(e,t,r){const n=document.createDocumentFragment(),o=m(` text-${e} `);o&&n.appendChild(o);const i=function(e,t){if("function"!=typeof e)return a("Invalid resolver provided to createReactiveTextNode"),document.createTextNode("");const r=arguments.length>1?t:c(e,""),n=void 0===r?"":String(r),o=document.createTextNode(n);return S.set(o,{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(i),n}function N(e,t){const r=document.createDocumentFragment(),n=m(` text-${e} `);n&&r.appendChild(n);const o=document.createTextNode(String(t));return r.appendChild(o),r}const F=new Set;function j(e,t){e._conditionalInfo=t,F.add(e)}function M(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;r<t.length;r+=1){const s=t[r];if(null==s)continue;const a=I(e,s,n);a&&(a.parentNode!==i&&i.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function W(e,t){const r=document.createElement(e);return M(r,t,0),r}function D(e){const t=function(e){for(let t=0;t<e.length;t+=1)if(A(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,r)=>r!==t)}}function $(e){return function(e){return _.includes(e)}(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function O(e,...t){return(r,n)=>{const{condition:o,otherModifiers:i}=D(t);if(o)return function(e,t,r){const n=t();if(!l)return n?W(e,r):p(e,"ssr");const o={condition:t,tagName:e,modifiers:r};if(n){const t=W(e,r);return j(t,o),t}const i=p(e);if(!i)throw new Error(`Failed to create conditional comment for ${e}`);return j(i,o),i}(e,o,i);const s=$(e);return M(s,i,n),s}}function z(e){return(...t)=>O(e,...t)}const V=["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"],_=["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"],G=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function H(e=globalThis){const t="__nuclo_tags_registered";e[t]||(_.forEach(t=>function(e,t){let r=t;["a","script","style","title","text"].includes(t)?r=`${t}_svg`:["stop"].includes(t)&&(r=`${t}_`),r in e||(e[r]=z(t))}(e,t)),V.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=z(t))}(e,t)),e[t]=!0)}const q=new Set;function U(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 J(e){d(e.element)}function X(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;r<e.length;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(e=>{const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach((t,r)=>{if(r<e.lastSyncedItems.length&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){s.set(r,n);const e=a.get(t);if(e){const r=e.indexOf(n);r>=0&&(e.splice(r,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=U(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(J),e.records=c,e.lastSyncedItems=[...i]}function Y(e,t){return(r,n)=>{const o=function(e,t,r){const{start:n,end:o}=y("list"),i={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},s=r;return s.appendChild(n),s.appendChild(o),q.add(i),X(i),i}(e,t,r);return o.startMarker}}function Q(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function K(e,t){return"function"==typeof e?Q(e,t):Boolean(e)}const Z=new Set;function ee(e,t,r,n){return i(e)?s(e)?(B.delete(e),I(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=I(t,e,r);return n&&!n.parentNode?n:null}):I(t,e,r)}function te(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;t<e.length;t++)if(K(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;d(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const a=function(e,t,r,n){const o=[];for(const i of e){const e=ee(i,t,r,n);e&&o.push(e)}return o}(s>=0?t[s].content:r,n,o,i);g(a,i)}class re{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(!l){return m("when-ssr")||null}const{start:r,end:n}=y("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>te(o)};Z.add(o);const i=e;return i.appendChild(r),i.appendChild(n),te(o),r}}function ne(e){return Object.assign((t,r)=>e.render(t,r),{when:(t,...r)=>(e.when(t,...r),ne(e)),else:(...t)=>(e.else(...t),ne(e))})}function oe(e,...t){return ne(new re(e,...t))}function ie(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=Q(t.condition,e=>{a("Error evaluating conditional condition",e)}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return W(e.tagName,e.modifiers)}catch(t){return a(`Error applying modifiers in conditional element "${e.tagName}"`,t),document.createElement(e.tagName)}}(t);j(r,t),P(e,r)}else if(!r&&n){const r=p(t.tagName);r&&(j(r,t),P(e,r))}}const se=[function(){q.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?X(e):q.delete(e)})},function(){Z.forEach(e=>{try{e.update()}catch(t){Z.delete(e)}})},function(){if(l)try{F.forEach(e=>{e.isConnected?ie(e):function(e){F.delete(e)}(e)})}catch(e){a("Error during conditional elements update",e)}},function(){w.forEach((e,t)=>{if(!b(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void w.delete(t);x(0,e)})},function(){S.forEach((e,t)=>{if(b(t))try{const r=c(e.resolver),n=void 0===r?"":String(r);n!==e.lastValue&&(t.textContent=n,e.lastValue=n)}catch(e){a("Failed to update reactive text node",e)}else S.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 ae(){for(const e of se)e()}function ce(e,t,r){return n=>{if(!n||"function"!=typeof n.addEventListener)return;const o=n;o.addEventListener(e,r=>{try{t.call(o,r)}catch(t){a(`Error in '${e}' listener`,t)}},r)}}function le(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const de=[{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"}],ue=["bold","center","flex"],me=new Map;function pe(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function fe(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ye(e,t="",r){const n=fe(e),o=t?`${t}:${n}`:n;if(me.has(o)){const t=me.get(o);return function(e,t){const r=document.querySelector("#nuclo-styles");if(!r||!r.sheet)return!1;if(t){const n=Array.from(r.sheet.cssRules||[]).find(e=>e instanceof CSSMediaRule&&e.media.mediaText===t);return!!n&&Array.from(n.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}return Array.from(r.sheet.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}(t,r)||ge(t,e,r),t}const i=pe(n),s=t?`n${t}-${i}`:`n${i}`;return me.set(o,s),ge(s,e,r),s}function ge(e,t,r){let n=document.querySelector("#nuclo-styles");n||(n=document.createElement("style"),n.id="nuclo-styles",document.head.appendChild(n));const o=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");if(r){const i=Array.from(n.sheet?.cssRules||[]);let s=null;for(const e of i)if(e instanceof CSSMediaRule&&e.media.mediaText===r){s=e;break}if(!s){let e=i.length;for(let t=i.length-1;t>=0;t--){if(i[t]instanceof CSSMediaRule){e=t+1;break}if(i[t]instanceof CSSStyleRule){e=t+1;break}}n.sheet?.insertRule(`@media ${r} {}`,e),s=n.sheet?.cssRules[e]}let a=null;for(const t of Array.from(s.cssRules))if(t instanceof CSSStyleRule&&t.selectorText===`.${e}`){a=t;break}if(a){for(;a.style.length>0;)a.style.removeProperty(a.style[0]);Object.entries(t).forEach(([e,t])=>{a.style.setProperty(e,t)})}else s.insertRule(`.${e} { ${o} }`,s.cssRules.length)}else{let r=null,i=0;const s=Array.from(n.sheet?.cssRules||[]);for(let t=0;t<s.length;t++){const n=s[t];if(n instanceof CSSStyleRule&&n.selectorText===`.${e}`){r=n,i=t;break}n instanceof CSSMediaRule||(i=t+1)}if(r){for(;r.style.length>0;)r.style.removeProperty(r.style[0]);Object.entries(t).forEach(([e,t])=>{r.style.setProperty(e,t)})}else n.sheet?.insertRule(`.${e} { ${o} }`,i)}}class he{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return ye(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 be(e){const t=Array.isArray(e)?e:Object.entries(e);return function(e,r){let n,o;if(void 0!==r?(n=e,o=r):e instanceof he?(n=e,o=void 0):(n=void 0,o=e),!(n||o&&0!==Object.keys(o).length))return"";if(o&&Object.keys(o).length>0){const e=[];for(const[r,n]of t){const t=o[r];t&&e.push({breakpointName:r,mediaQuery:n,styles:t.getStyles()})}const r=[];if(n){const e=n.getStyles();r.push(`default:${fe(e)}`)}r.push(...e.map(({breakpointName:e,styles:t})=>`${e}:${fe(t)}`));const i=`n${pe(r.sort().join("||"))}`;let s={};n&&(s={...n.getStyles()},ge(i,s));for(const{breakpointName:t,mediaQuery:r,styles:n}of e)s={...s,...n},ge(i,s,r);return{className:i}}if(n){return{className:n.getClassName()}}return""}}function Pe(e,t){ge(e,t)}function Se(e){return e.isShorthand?()=>(new he).add(e.cssProperty,e.defaultValue||""):t=>(new he).add(e.cssProperty,t||"")}!function(){const e=he.prototype;for(const t of de)t.name in e||(t.isShorthand?e[t.name]=function(){return this.add(t.cssProperty,t.defaultValue||""),this}:e[t.name]=function(e){return this.add(t.cssProperty,e),this})}();const we={};for(const e of de)we[e.name]=Se(e);for(const e of ue)"bold"===e||"center"===e?we[e]=()=>(new he)[e]():"flex"===e&&(we[e]=e=>(new he).flex(e));const{display:xe,flex:Ce,grid:ve,bg:ke,color:Re,accentColor:Te,fontSize:Be,fontWeight:Ee,fontFamily:Ae,lineHeight:Ie,letterSpacing:Le,textAlign:Ne,textDecoration:Fe,bold:je,fontStyle:Me,fontVariant:We,fontStretch:De,textTransform:$e,textIndent:Oe,textOverflow:ze,textShadow:Ve,whiteSpace:_e,wordSpacing:Ge,wordWrap:He,overflowWrap:qe,textAlignLast:Ue,textJustify:Je,textDecorationLine:Xe,textDecorationColor:Ye,textDecorationStyle:Qe,textDecorationThickness:Ke,textUnderlineOffset:Ze,verticalAlign:et,position:tt,padding:rt,paddingTop:nt,paddingRight:ot,paddingBottom:it,paddingLeft:st,margin:at,marginTop:ct,marginRight:lt,marginBottom:dt,marginLeft:ut,width:mt,height:pt,minWidth:ft,maxWidth:yt,minHeight:gt,maxHeight:ht,boxSizing:bt,top:Pt,right:St,bottom:wt,left:xt,zIndex:Ct,flexDirection:vt,alignItems:kt,justifyContent:Rt,center:Tt,gap:Bt,flexWrap:Et,flexGrow:At,flexShrink:It,flexBasis:Lt,alignSelf:Nt,alignContent:Ft,justifySelf:jt,justifyItems:Mt,gridTemplateColumns:Wt,gridTemplateRows:Dt,gridTemplateAreas:$t,gridColumn:Ot,gridRow:zt,gridColumnStart:Vt,gridColumnEnd:_t,gridRowStart:Gt,gridRowEnd:Ht,gridArea:qt,gridAutoColumns:Ut,gridAutoRows:Jt,gridAutoFlow:Xt,border:Yt,borderTop:Qt,borderRight:Kt,borderBottom:Zt,borderLeft:er,borderWidth:tr,borderStyle:rr,borderColor:nr,borderTopWidth:or,borderRightWidth:ir,borderBottomWidth:sr,borderLeftWidth:ar,borderTopStyle:cr,borderRightStyle:lr,borderBottomStyle:dr,borderLeftStyle:ur,borderTopColor:mr,borderRightColor:pr,borderBottomColor:fr,borderLeftColor:yr,borderRadius:gr,borderTopLeftRadius:hr,borderTopRightRadius:br,borderBottomLeftRadius:Pr,borderBottomRightRadius:Sr,outline:wr,outlineWidth:xr,outlineStyle:Cr,outlineColor:vr,outlineOffset:kr,backgroundColor:Rr,backgroundImage:Tr,backgroundRepeat:Br,backgroundPosition:Er,backgroundSize:Ar,backgroundAttachment:Ir,backgroundClip:Lr,backgroundOrigin:Nr,boxShadow:Fr,opacity:jr,transition:Mr,transitionProperty:Wr,transitionDuration:Dr,transitionTimingFunction:$r,transitionDelay:Or,transform:zr,transformOrigin:Vr,transformStyle:_r,perspective:Gr,perspectiveOrigin:Hr,backfaceVisibility:qr,animation:Ur,animationName:Jr,animationDuration:Xr,animationTimingFunction:Yr,animationDelay:Qr,animationIterationCount:Kr,animationDirection:Zr,animationFillMode:en,animationPlayState:tn,filter:rn,backdropFilter:nn,overflow:on,overflowX:sn,overflowY:an,visibility:cn,objectFit:ln,objectPosition:dn,listStyle:un,listStyleType:mn,listStylePosition:pn,listStyleImage:fn,borderCollapse:yn,borderSpacing:gn,captionSide:hn,emptyCells:bn,tableLayout:Pn,content:Sn,quotes:wn,counterReset:xn,counterIncrement:Cn,appearance:vn,userSelect:kn,pointerEvents:Rn,resize:Tn,scrollBehavior:Bn,clip:En,clipPath:An,isolation:In,mixBlendMode:Ln,willChange:Nn,contain:Fn,pageBreakBefore:jn,pageBreakAfter:Mn,pageBreakInside:Wn,breakBefore:Dn,breakAfter:$n,breakInside:On,orphans:zn,widows:Vn,columnCount:_n,columnFill:Gn,columnGap:Hn,columnRule:qn,columnRuleColor:Un,columnRuleStyle:Jn,columnRuleWidth:Xn,columnSpan:Yn,columnWidth:Qn,columns:Kn,cursor:Zn}=we;var eo=Object.freeze({__proto__:null,StyleBuilder:he,accentColor:Te,alignContent:Ft,alignItems:kt,alignSelf:Nt,animation:Ur,animationDelay:Qr,animationDirection:Zr,animationDuration:Xr,animationFillMode:en,animationIterationCount:Kr,animationName:Jr,animationPlayState:tn,animationTimingFunction:Yr,appearance:vn,backdropFilter:nn,backfaceVisibility:qr,backgroundAttachment:Ir,backgroundClip:Lr,backgroundColor:Rr,backgroundImage:Tr,backgroundOrigin:Nr,backgroundPosition:Er,backgroundRepeat:Br,backgroundSize:Ar,bg:ke,bold:je,border:Yt,borderBottom:Zt,borderBottomColor:fr,borderBottomLeftRadius:Pr,borderBottomRightRadius:Sr,borderBottomStyle:dr,borderBottomWidth:sr,borderCollapse:yn,borderColor:nr,borderLeft:er,borderLeftColor:yr,borderLeftStyle:ur,borderLeftWidth:ar,borderRadius:gr,borderRight:Kt,borderRightColor:pr,borderRightStyle:lr,borderRightWidth:ir,borderSpacing:gn,borderStyle:rr,borderTop:Qt,borderTopColor:mr,borderTopLeftRadius:hr,borderTopRightRadius:br,borderTopStyle:cr,borderTopWidth:or,borderWidth:tr,bottom:wt,boxShadow:Fr,boxSizing:bt,breakAfter:$n,breakBefore:Dn,breakInside:On,captionSide:hn,center:Tt,clip:En,clipPath:An,color:Re,columnCount:_n,columnFill:Gn,columnGap:Hn,columnRule:qn,columnRuleColor:Un,columnRuleStyle:Jn,columnRuleWidth:Xn,columnSpan:Yn,columnWidth:Qn,columns:Kn,contain:Fn,content:Sn,counterIncrement:Cn,counterReset:xn,createBreakpoints:be,createCSSClass:Pe,cursor:Zn,display:xe,emptyCells:bn,filter:rn,flex:Ce,flexBasis:Lt,flexDirection:vt,flexGrow:At,flexShrink:It,flexWrap:Et,fontFamily:Ae,fontSize:Be,fontStretch:De,fontStyle:Me,fontVariant:We,fontWeight:Ee,gap:Bt,grid:ve,gridArea:qt,gridAutoColumns:Ut,gridAutoFlow:Xt,gridAutoRows:Jt,gridColumn:Ot,gridColumnEnd:_t,gridColumnStart:Vt,gridRow:zt,gridRowEnd:Ht,gridRowStart:Gt,gridTemplateAreas:$t,gridTemplateColumns:Wt,gridTemplateRows:Dt,height:pt,isolation:In,justifyContent:Rt,justifyItems:Mt,justifySelf:jt,left:xt,letterSpacing:Le,lineHeight:Ie,listStyle:un,listStyleImage:fn,listStylePosition:pn,listStyleType:mn,margin:at,marginBottom:dt,marginLeft:ut,marginRight:lt,marginTop:ct,maxHeight:ht,maxWidth:yt,minHeight:gt,minWidth:ft,mixBlendMode:Ln,objectFit:ln,objectPosition:dn,opacity:jr,orphans:zn,outline:wr,outlineColor:vr,outlineOffset:kr,outlineStyle:Cr,outlineWidth:xr,overflow:on,overflowWrap:qe,overflowX:sn,overflowY:an,padding:rt,paddingBottom:it,paddingLeft:st,paddingRight:ot,paddingTop:nt,pageBreakAfter:Mn,pageBreakBefore:jn,pageBreakInside:Wn,perspective:Gr,perspectiveOrigin:Hr,pointerEvents:Rn,position:tt,quotes:wn,resize:Tn,right:St,scrollBehavior:Bn,tableLayout:Pn,textAlign:Ne,textAlignLast:Ue,textDecoration:Fe,textDecorationColor:Ye,textDecorationLine:Xe,textDecorationStyle:Qe,textDecorationThickness:Ke,textIndent:Oe,textJustify:Je,textOverflow:ze,textShadow:Ve,textTransform:$e,textUnderlineOffset:Ze,top:Pt,transform:zr,transformOrigin:Vr,transformStyle:_r,transition:Mr,transitionDelay:Or,transitionDuration:Dr,transitionProperty:Wr,transitionTimingFunction:$r,userSelect:kn,verticalAlign:et,visibility:cn,whiteSpace:_e,widows:Vn,width:mt,willChange:Nn,wordSpacing:Ge,wordWrap:He,zIndex:Ct});function to(){if(H(),"undefined"!=typeof globalThis){const e=globalThis;e.list=Y,e.update=ae,e.when=oe,e.on=ce,e.render=le;for(const[t,r]of Object.entries(eo))try{e[t]=r}catch(e){}}}"undefined"!=typeof globalThis&&to();export{V as HTML_TAGS,G as SELF_CLOSING_TAGS,_ as SVG_TAGS,he as StyleBuilder,Te as accentColor,Ft as alignContent,kt as alignItems,Nt as alignSelf,Ur as animation,Qr as animationDelay,Zr as animationDirection,Xr as animationDuration,en as animationFillMode,Kr as animationIterationCount,Jr as animationName,tn as animationPlayState,Yr as animationTimingFunction,vn as appearance,h as appendChildren,T as applyAttributes,I as applyNodeModifier,nn as backdropFilter,qr as backfaceVisibility,Ir as backgroundAttachment,Lr as backgroundClip,Rr as backgroundColor,Tr as backgroundImage,Nr as backgroundOrigin,Er as backgroundPosition,Br as backgroundRepeat,Ar as backgroundSize,ke as bg,je as bold,Yt as border,Zt as borderBottom,fr as borderBottomColor,Pr as borderBottomLeftRadius,Sr as borderBottomRightRadius,dr as borderBottomStyle,sr as borderBottomWidth,yn as borderCollapse,nr as borderColor,er as borderLeft,yr as borderLeftColor,ur as borderLeftStyle,ar as borderLeftWidth,gr as borderRadius,Kt as borderRight,pr as borderRightColor,lr as borderRightStyle,ir as borderRightWidth,gn as borderSpacing,rr as borderStyle,Qt as borderTop,mr as borderTopColor,hr as borderTopLeftRadius,br as borderTopRightRadius,cr as borderTopStyle,or as borderTopWidth,tr as borderWidth,wt as bottom,Fr as boxShadow,bt as boxSizing,$n as breakAfter,Dn as breakBefore,On as breakInside,hn as captionSide,Tt as center,En as clip,An as clipPath,Re as color,_n as columnCount,Gn as columnFill,Hn as columnGap,qn as columnRule,Un as columnRuleColor,Jn as columnRuleStyle,Xn as columnRuleWidth,Yn as columnSpan,Qn as columnWidth,Kn as columns,Fn as contain,Sn as content,Cn as counterIncrement,xn as counterReset,be as createBreakpoints,Pe as createCSSClass,m as createComment,p as createConditionalComment,O as createElementFactory,W as createElementWithModifiers,z as createTagBuilder,Zn as cursor,xe as display,bn as emptyCells,rn as filter,Ce as flex,Lt as flexBasis,vt as flexDirection,At as flexGrow,It as flexShrink,Et as flexWrap,Ae as fontFamily,Be as fontSize,De as fontStretch,Me as fontStyle,We as fontVariant,Ee as fontWeight,Bt as gap,ve as grid,qt as gridArea,Ut as gridAutoColumns,Xt as gridAutoFlow,Jt as gridAutoRows,Ot as gridColumn,_t as gridColumnEnd,Vt as gridColumnStart,zt as gridRow,Ht as gridRowEnd,Gt as gridRowStart,$t as gridTemplateAreas,Wt as gridTemplateColumns,Dt as gridTemplateRows,pt as height,to as initializeRuntime,o as isBoolean,l as isBrowser,i as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,s as isZeroArityFunction,In as isolation,Rt as justifyContent,Mt as justifyItems,jt as justifySelf,xt as left,Le as letterSpacing,Ie as lineHeight,Y as list,un as listStyle,fn as listStyleImage,pn as listStylePosition,mn as listStyleType,at as margin,dt as marginBottom,ut as marginLeft,lt as marginRight,ct as marginTop,ht as maxHeight,yt as maxWidth,gt as minHeight,ft as minWidth,Ln as mixBlendMode,ln as objectFit,dn as objectPosition,ce as on,jr as opacity,zn as orphans,wr as outline,vr as outlineColor,kr as outlineOffset,Cr as outlineStyle,xr as outlineWidth,on as overflow,qe as overflowWrap,sn as overflowX,an as overflowY,rt as padding,it as paddingBottom,st as paddingLeft,ot as paddingRight,nt as paddingTop,Mn as pageBreakAfter,jn as pageBreakBefore,Wn as pageBreakInside,Gr as perspective,Hr as perspectiveOrigin,Rn as pointerEvents,tt as position,wn as quotes,H as registerGlobalTagBuilders,le as render,P as replaceNodeSafely,Tn as resize,St as right,Bn as scrollBehavior,Pn as tableLayout,Ne as textAlign,Ue as textAlignLast,Fe as textDecoration,Ye as textDecorationColor,Xe as textDecorationLine,Qe as textDecorationStyle,Ke as textDecorationThickness,Oe as textIndent,Je as textJustify,ze as textOverflow,Ve as textShadow,$e as textTransform,Ze as textUnderlineOffset,Pt as top,zr as transform,Vr as transformOrigin,_r as transformStyle,Mr as transition,Or as transitionDelay,Dr as transitionDuration,Wr as transitionProperty,$r as transitionTimingFunction,ae as update,kn as userSelect,et as verticalAlign,cn as visibility,oe as when,_e as whiteSpace,Vn as widows,mt as width,Nn as willChange,Ge as wordSpacing,He as wordWrap,Ct 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){"undefined"!=typeof console&&console.error(`nuclo: ${e}`,t)}function c(e,t){try{return e()}catch(e){return a("Operation failed",e),t}}const l="undefined"!=typeof window&&"undefined"!=typeof document;function d(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 u(e){if(!l)return null;try{return document.createComment(e)}catch(e){return a("Failed to create comment node",e),null}}function m(e){return u(e)}function p(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return a("Failed to create conditional comment",e),null}}function f(e){if(!l)throw new Error("Cannot create comment in non-browser environment");const t=u(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw new Error("Failed to create comment");return t}function y(e){const t=u(`${e}-end`);if(!t)throw new Error("Failed to create end comment");return{start:f(`${e}-start`),end:t}}function g(e,t){const r=t.parentNode;r&&e.forEach(e=>function(e,t,r){if(!e||!t)return!1;try{return e.insertBefore(t,r),!0}catch(e){return a("Failed to insert node before reference",e),!1}}(r,e,t))}function h(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!l)return null;try{return document.createTextNode(String(e))}catch(e){return a("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return a("Failed to append child node",e),!1}}(e,r)}}),e):e}function b(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!l||"undefined"==typeof document)&&document.contains(e))}function P(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 S=new Map,w=new Map;function x(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},r)=>{try{t(c(e))}catch(e){a(`Failed to update reactive attribute: ${r}`,e)}})}function C(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return void a("Invalid parameters for registerAttributeResolver");const o=function(e){let t=w.get(e);return t||(t={attributeResolvers:new Map},w.set(e,t)),t}(e);o.attributeResolvers.set(t,{resolver:r,applyValue:n});try{n(c(r))}catch(e){a("Failed to apply initial attribute value",e)}if(!o.updateListener){const t=()=>x(0,o);e.addEventListener("update",t),o.updateListener=t}}function v(e,t,r){try{if(null==r||""===r)return e.style[t]="",!0;const n=String(r);return e.style[t]=n,!0}catch{return!1}}function k(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t)){v(e,r,n)||a(`Failed to set style property '${r}'`)}}function R(e,t,r,n=!1){if(null==r)return;if("style"===t)return s=r,void((o=e)&&(i(s)?C(o,"style",()=>{try{return s()}catch(e){return a("Error in style resolver function",e),null}},e=>{k(o,e)}):k(o,s)));var o,s;const c=(r,n=!1)=>{if(null==r)return;if("className"===t&&e instanceof HTMLElement&&n){const t=String(r),n=e.className;if(n&&n!==t){const r=new Set(n.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>r.add(e)),e.className=Array.from(r).join(" ")}else t&&(e.className=t);return}if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(String(t),String(r));else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(String(t),String(r))}else e instanceof Element&&e.setAttribute(String(t),String(r))};if(i(r)&&0===r.length){const n=r;C(e,String(t),n,r=>{"className"===t&&e instanceof HTMLElement?e.className=String(r||""):c(r,!1)})}else c(r,n)}function T(e,t,r=!0){if(t)for(const n of Object.keys(t)){R(e,n,t[n],r&&"className"===n)}}const E=new WeakMap;function B(e){const{value:t,error:r}=function(e){const t=E.get(e);if(t)return t;try{const t={value:e(),error:!1};return E.set(e,t),t}catch{const t={value:void 0,error:!0};return E.set(e,t),t}}(e);return!r&&"boolean"==typeof t}function N(e,n,o){if(!i(e)||0!==e.length)return!1;if(!B(e))return!1;const s=n.filter((e,t)=>t!==o);if(0===s.length)return!1;return s.some(e=>!(!r(e)&&!t(e))||!!(i(e)&&e.length>0))}function L(n,o,c){if(null==o)return null;if(i(o)){if(s(o))try{let i=E.get(o);if(!i){i={value:o(),error:!1},E.set(o,i)}if(i.error)return A(c,()=>"");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 T(n,{className:()=>e().className}),null}return e(s)&&null!=s?A(c,o,s):null}catch(e){return E.set(o,{value:void 0,error:!0}),a("Error evaluating reactive text function:",e),A(c,()=>"")}const i=o(n,c);return null==i?null:e(i)?I(c,i):t(i)?i:(r(i)&&T(n,i),null)}const l=o;return null==l?null:e(l)?I(c,l):t(l)?l:(r(l)&&T(n,l),null)}function A(e,t,r){const n=document.createDocumentFragment(),o=m(` text-${e} `);o&&n.appendChild(o);const i=function(e,t){if("function"!=typeof e)return a("Invalid resolver provided to createReactiveTextNode"),document.createTextNode("");const r=arguments.length>1?t:c(e,""),n=void 0===r?"":String(r),o=document.createTextNode(n);return S.set(o,{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(i),n}function I(e,t){const r=document.createDocumentFragment(),n=m(` text-${e} `);n&&r.appendChild(n);const o=document.createTextNode(String(t));return r.appendChild(o),r}const j=new Set;function F(e,t){e._conditionalInfo=t,j.add(e)}function M(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;r<t.length;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 W(e,t){const r=document.createElement(e);return M(r,t,0),r}function D(e){const t=function(e){for(let t=0;t<e.length;t+=1)if(N(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,r)=>r!==t)}}function $(e){return function(e){return _.includes(e)}(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function O(e,...t){return(r,n)=>{const{condition:o,otherModifiers:i}=D(t);if(o)return function(e,t,r){const n=t();if(!l)return n?W(e,r):p(e,"ssr");const o={condition:t,tagName:e,modifiers:r};if(n){const t=W(e,r);return F(t,o),t}const i=p(e);if(!i)throw new Error(`Failed to create conditional comment for ${e}`);return F(i,o),i}(e,o,i);const s=$(e);return M(s,i,n),s}}function z(e){return(...t)=>O(e,...t)}const V=["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"],_=["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"],H=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function G(e=globalThis){const t="__nuclo_tags_registered";e[t]||(_.forEach(t=>function(e,t){let r=t;["a","script","style","title","text"].includes(t)?r=`${t}_svg`:["stop"].includes(t)&&(r=`${t}_`),r in e||(e[r]=z(t))}(e,t)),V.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=z(t))}(e,t)),e[t]=!0)}const q=new Set;function U(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 J(e){d(e.element)}function X(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;r<e.length;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(e=>{const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach((t,r)=>{if(r<e.lastSyncedItems.length&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){s.set(r,n);const e=a.get(t);if(e){const r=e.indexOf(n);r>=0&&(e.splice(r,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=U(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(J),e.records=c,e.lastSyncedItems=[...i]}function Y(e,t){return(r,n)=>{const o=function(e,t,r){const{start:n,end:o}=y("list"),i={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},s=r;return s.appendChild(n),s.appendChild(o),q.add(i),X(i),i}(e,t,r);return o.startMarker}}function Q(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function K(e,t){return"function"==typeof e?Q(e,t):Boolean(e)}const Z=new Set;function ee(e,t,r,n){return i(e)?s(e)?(E.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)}function te(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;t<e.length;t++)if(K(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;d(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const a=function(e,t,r,n){const o=[];for(const i of e){const e=ee(i,t,r,n);e&&o.push(e)}return o}(s>=0?t[s].content:r,n,o,i);g(a,i)}class re{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(!l){return m("when-ssr")||null}const{start:r,end:n}=y("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>te(o)};Z.add(o);const i=e;return i.appendChild(r),i.appendChild(n),te(o),r}}function ne(e){return Object.assign((t,r)=>e.render(t,r),{when:(t,...r)=>(e.when(t,...r),ne(e)),else:(...t)=>(e.else(...t),ne(e))})}function oe(e,...t){return ne(new re(e,...t))}function ie(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=Q(t.condition,e=>{a("Error evaluating conditional condition",e)}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return W(e.tagName,e.modifiers)}catch(t){return a(`Error applying modifiers in conditional element "${e.tagName}"`,t),document.createElement(e.tagName)}}(t);F(r,t),P(e,r)}else if(!r&&n){const r=p(t.tagName);r&&(F(r,t),P(e,r))}}const se=[function(){q.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?X(e):q.delete(e)})},function(){Z.forEach(e=>{try{e.update()}catch(t){Z.delete(e)}})},function(){if(l)try{j.forEach(e=>{e.isConnected?ie(e):function(e){j.delete(e)}(e)})}catch(e){a("Error during conditional elements update",e)}},function(){w.forEach((e,t)=>{if(!b(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void w.delete(t);x(0,e)})},function(){S.forEach((e,t)=>{if(b(t))try{const r=c(e.resolver),n=void 0===r?"":String(r);n!==e.lastValue&&(t.textContent=n,e.lastValue=n)}catch(e){a("Failed to update reactive text node",e)}else S.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 ae(){for(const e of se)e()}function ce(e,t,r){return n=>{if(!n||"function"!=typeof n.addEventListener)return;const o=n;o.addEventListener(e,r=>{try{t.call(o,r)}catch(t){a(`Error in '${e}' listener`,t)}},r)}}function le(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const de=[{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"}],ue=["bold","center","flex"],me=new Map;function pe(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function fe(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ye(e,t="",r){const n=fe(e),o=t?`${t}:${n}`:n;if(me.has(o)){const t=me.get(o);return function(e,t){const r=document.querySelector("#nuclo-styles");if(!r||!r.sheet)return!1;if(t){const n=Array.from(r.sheet.cssRules||[]).find(e=>e instanceof CSSMediaRule&&e.media.mediaText===t);return!!n&&Array.from(n.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}return Array.from(r.sheet.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}(t,r)||ge(t,e,r),t}const i=pe(n),s=t?`n${t}-${i}`:`n${i}`;return me.set(o,s),ge(s,e,r),s}function ge(e,t,r){let n=document.querySelector("#nuclo-styles");n||(n=document.createElement("style"),n.id="nuclo-styles",document.head.appendChild(n));const o=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");if(r){const i=Array.from(n.sheet?.cssRules||[]);let s=null;for(const e of i)if(e instanceof CSSMediaRule&&e.media.mediaText===r){s=e;break}if(!s){let e=i.length;for(let t=i.length-1;t>=0;t--){if(i[t]instanceof CSSMediaRule){e=t+1;break}if(i[t]instanceof CSSStyleRule){e=t+1;break}}n.sheet?.insertRule(`@media ${r} {}`,e),s=n.sheet?.cssRules[e]}let a=null;for(const t of Array.from(s.cssRules))if(t instanceof CSSStyleRule&&t.selectorText===`.${e}`){a=t;break}if(a){for(;a.style.length>0;)a.style.removeProperty(a.style[0]);Object.entries(t).forEach(([e,t])=>{a.style.setProperty(e,t)})}else s.insertRule(`.${e} { ${o} }`,s.cssRules.length)}else{let r=null,i=0;const s=Array.from(n.sheet?.cssRules||[]);for(let t=0;t<s.length;t++){const n=s[t];if(n instanceof CSSStyleRule&&n.selectorText===`.${e}`){r=n,i=t;break}n instanceof CSSMediaRule||(i=t+1)}if(r){for(;r.style.length>0;)r.style.removeProperty(r.style[0]);Object.entries(t).forEach(([e,t])=>{r.style.setProperty(e,t)})}else n.sheet?.insertRule(`.${e} { ${o} }`,i)}}class he{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return ye(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 be(e){const t=Array.isArray(e)?e:Object.entries(e);return function(e,r){let n,o;if(void 0!==r?(n=e,o=r):e instanceof he?(n=e,o=void 0):(n=void 0,o=e),!(n||o&&0!==Object.keys(o).length))return"";if(o&&Object.keys(o).length>0){const e=[];for(const[r,n]of t){const t=o[r];t&&e.push({breakpointName:r,mediaQuery:n,styles:t.getStyles()})}const r=[];if(n){const e=n.getStyles();r.push(`default:${fe(e)}`)}r.push(...e.map(({breakpointName:e,styles:t})=>`${e}:${fe(t)}`));const i=`n${pe(r.sort().join("||"))}`;let s={};n&&(s={...n.getStyles()},ge(i,s));for(const{breakpointName:t,mediaQuery:r,styles:n}of e)s={...s,...n},ge(i,s,r);return{className:i}}if(n){return{className:n.getClassName()}}return""}}function Pe(e,t){ge(e,t)}function Se(e){return e.isShorthand?()=>(new he).add(e.cssProperty,e.defaultValue||""):t=>(new he).add(e.cssProperty,t||"")}!function(){const e=he.prototype;for(const t of de)t.name in e||(t.isShorthand?e[t.name]=function(){return this.add(t.cssProperty,t.defaultValue||""),this}:e[t.name]=function(e){return this.add(t.cssProperty,e),this})}();const we={};for(const e of de)we[e.name]=Se(e);for(const e of ue)"bold"===e||"center"===e?we[e]=()=>(new he)[e]():"flex"===e&&(we[e]=e=>(new he).flex(e));const{display:xe,flex:Ce,grid:ve,bg:ke,color:Re,accentColor:Te,fontSize:Ee,fontWeight:Be,fontFamily:Ne,lineHeight:Le,letterSpacing:Ae,textAlign:Ie,textDecoration:je,bold:Fe,fontStyle:Me,fontVariant:We,fontStretch:De,textTransform:$e,textIndent:Oe,textOverflow:ze,textShadow:Ve,whiteSpace:_e,wordSpacing:He,wordWrap:Ge,overflowWrap:qe,textAlignLast:Ue,textJustify:Je,textDecorationLine:Xe,textDecorationColor:Ye,textDecorationStyle:Qe,textDecorationThickness:Ke,textUnderlineOffset:Ze,verticalAlign:et,position:tt,padding:rt,paddingTop:nt,paddingRight:ot,paddingBottom:it,paddingLeft:st,margin:at,marginTop:ct,marginRight:lt,marginBottom:dt,marginLeft:ut,width:mt,height:pt,minWidth:ft,maxWidth:yt,minHeight:gt,maxHeight:ht,boxSizing:bt,top:Pt,right:St,bottom:wt,left:xt,zIndex:Ct,flexDirection:vt,alignItems:kt,justifyContent:Rt,center:Tt,gap:Et,flexWrap:Bt,flexGrow:Nt,flexShrink:Lt,flexBasis:At,alignSelf:It,alignContent:jt,justifySelf:Ft,justifyItems:Mt,gridTemplateColumns:Wt,gridTemplateRows:Dt,gridTemplateAreas:$t,gridColumn:Ot,gridRow:zt,gridColumnStart:Vt,gridColumnEnd:_t,gridRowStart:Ht,gridRowEnd:Gt,gridArea:qt,gridAutoColumns:Ut,gridAutoRows:Jt,gridAutoFlow:Xt,border:Yt,borderTop:Qt,borderRight:Kt,borderBottom:Zt,borderLeft:er,borderWidth:tr,borderStyle:rr,borderColor:nr,borderTopWidth:or,borderRightWidth:ir,borderBottomWidth:sr,borderLeftWidth:ar,borderTopStyle:cr,borderRightStyle:lr,borderBottomStyle:dr,borderLeftStyle:ur,borderTopColor:mr,borderRightColor:pr,borderBottomColor:fr,borderLeftColor:yr,borderRadius:gr,borderTopLeftRadius:hr,borderTopRightRadius:br,borderBottomLeftRadius:Pr,borderBottomRightRadius:Sr,outline:wr,outlineWidth:xr,outlineStyle:Cr,outlineColor:vr,outlineOffset:kr,backgroundColor:Rr,backgroundImage:Tr,backgroundRepeat:Er,backgroundPosition:Br,backgroundSize:Nr,backgroundAttachment:Lr,backgroundClip:Ar,backgroundOrigin:Ir,boxShadow:jr,opacity:Fr,transition:Mr,transitionProperty:Wr,transitionDuration:Dr,transitionTimingFunction:$r,transitionDelay:Or,transform:zr,transformOrigin:Vr,transformStyle:_r,perspective:Hr,perspectiveOrigin:Gr,backfaceVisibility:qr,animation:Ur,animationName:Jr,animationDuration:Xr,animationTimingFunction:Yr,animationDelay:Qr,animationIterationCount:Kr,animationDirection:Zr,animationFillMode:en,animationPlayState:tn,filter:rn,backdropFilter:nn,overflow:on,overflowX:sn,overflowY:an,visibility:cn,objectFit:ln,objectPosition:dn,listStyle:un,listStyleType:mn,listStylePosition:pn,listStyleImage:fn,borderCollapse:yn,borderSpacing:gn,captionSide:hn,emptyCells:bn,tableLayout:Pn,content:Sn,quotes:wn,counterReset:xn,counterIncrement:Cn,appearance:vn,userSelect:kn,pointerEvents:Rn,resize:Tn,scrollBehavior:En,clip:Bn,clipPath:Nn,isolation:Ln,mixBlendMode:An,willChange:In,contain:jn,pageBreakBefore:Fn,pageBreakAfter:Mn,pageBreakInside:Wn,breakBefore:Dn,breakAfter:$n,breakInside:On,orphans:zn,widows:Vn,columnCount:_n,columnFill:Hn,columnGap:Gn,columnRule:qn,columnRuleColor:Un,columnRuleStyle:Jn,columnRuleWidth:Xn,columnSpan:Yn,columnWidth:Qn,columns:Kn,cursor:Zn}=we;var eo=Object.freeze({__proto__:null,StyleBuilder:he,accentColor:Te,alignContent:jt,alignItems:kt,alignSelf:It,animation:Ur,animationDelay:Qr,animationDirection:Zr,animationDuration:Xr,animationFillMode:en,animationIterationCount:Kr,animationName:Jr,animationPlayState:tn,animationTimingFunction:Yr,appearance:vn,backdropFilter:nn,backfaceVisibility:qr,backgroundAttachment:Lr,backgroundClip:Ar,backgroundColor:Rr,backgroundImage:Tr,backgroundOrigin:Ir,backgroundPosition:Br,backgroundRepeat:Er,backgroundSize:Nr,bg:ke,bold:Fe,border:Yt,borderBottom:Zt,borderBottomColor:fr,borderBottomLeftRadius:Pr,borderBottomRightRadius:Sr,borderBottomStyle:dr,borderBottomWidth:sr,borderCollapse:yn,borderColor:nr,borderLeft:er,borderLeftColor:yr,borderLeftStyle:ur,borderLeftWidth:ar,borderRadius:gr,borderRight:Kt,borderRightColor:pr,borderRightStyle:lr,borderRightWidth:ir,borderSpacing:gn,borderStyle:rr,borderTop:Qt,borderTopColor:mr,borderTopLeftRadius:hr,borderTopRightRadius:br,borderTopStyle:cr,borderTopWidth:or,borderWidth:tr,bottom:wt,boxShadow:jr,boxSizing:bt,breakAfter:$n,breakBefore:Dn,breakInside:On,captionSide:hn,center:Tt,clip:Bn,clipPath:Nn,color:Re,columnCount:_n,columnFill:Hn,columnGap:Gn,columnRule:qn,columnRuleColor:Un,columnRuleStyle:Jn,columnRuleWidth:Xn,columnSpan:Yn,columnWidth:Qn,columns:Kn,contain:jn,content:Sn,counterIncrement:Cn,counterReset:xn,createBreakpoints:be,createCSSClass:Pe,cursor:Zn,display:xe,emptyCells:bn,filter:rn,flex:Ce,flexBasis:At,flexDirection:vt,flexGrow:Nt,flexShrink:Lt,flexWrap:Bt,fontFamily:Ne,fontSize:Ee,fontStretch:De,fontStyle:Me,fontVariant:We,fontWeight:Be,gap:Et,grid:ve,gridArea:qt,gridAutoColumns:Ut,gridAutoFlow:Xt,gridAutoRows:Jt,gridColumn:Ot,gridColumnEnd:_t,gridColumnStart:Vt,gridRow:zt,gridRowEnd:Gt,gridRowStart:Ht,gridTemplateAreas:$t,gridTemplateColumns:Wt,gridTemplateRows:Dt,height:pt,isolation:Ln,justifyContent:Rt,justifyItems:Mt,justifySelf:Ft,left:xt,letterSpacing:Ae,lineHeight:Le,listStyle:un,listStyleImage:fn,listStylePosition:pn,listStyleType:mn,margin:at,marginBottom:dt,marginLeft:ut,marginRight:lt,marginTop:ct,maxHeight:ht,maxWidth:yt,minHeight:gt,minWidth:ft,mixBlendMode:An,objectFit:ln,objectPosition:dn,opacity:Fr,orphans:zn,outline:wr,outlineColor:vr,outlineOffset:kr,outlineStyle:Cr,outlineWidth:xr,overflow:on,overflowWrap:qe,overflowX:sn,overflowY:an,padding:rt,paddingBottom:it,paddingLeft:st,paddingRight:ot,paddingTop:nt,pageBreakAfter:Mn,pageBreakBefore:Fn,pageBreakInside:Wn,perspective:Hr,perspectiveOrigin:Gr,pointerEvents:Rn,position:tt,quotes:wn,resize:Tn,right:St,scrollBehavior:En,tableLayout:Pn,textAlign:Ie,textAlignLast:Ue,textDecoration:je,textDecorationColor:Ye,textDecorationLine:Xe,textDecorationStyle:Qe,textDecorationThickness:Ke,textIndent:Oe,textJustify:Je,textOverflow:ze,textShadow:Ve,textTransform:$e,textUnderlineOffset:Ze,top:Pt,transform:zr,transformOrigin:Vr,transformStyle:_r,transition:Mr,transitionDelay:Or,transitionDuration:Dr,transitionProperty:Wr,transitionTimingFunction:$r,userSelect:kn,verticalAlign:et,visibility:cn,whiteSpace:_e,widows:Vn,width:mt,willChange:In,wordSpacing:He,wordWrap:Ge,zIndex:Ct});function to(){if(G(),"undefined"!=typeof globalThis){const e=globalThis;e.list=Y,e.update=ae,e.when=oe,e.on=ce,e.render=le;for(const[t,r]of Object.entries(eo))try{e[t]=r}catch(e){}}}"undefined"!=typeof globalThis&&to();export{V as HTML_TAGS,H as SELF_CLOSING_TAGS,_ as SVG_TAGS,he as StyleBuilder,Te as accentColor,jt as alignContent,kt as alignItems,It as alignSelf,Ur as animation,Qr as animationDelay,Zr as animationDirection,Xr as animationDuration,en as animationFillMode,Kr as animationIterationCount,Jr as animationName,tn as animationPlayState,Yr as animationTimingFunction,vn as appearance,h as appendChildren,T as applyAttributes,L as applyNodeModifier,nn as backdropFilter,qr as backfaceVisibility,Lr as backgroundAttachment,Ar as backgroundClip,Rr as backgroundColor,Tr as backgroundImage,Ir as backgroundOrigin,Br as backgroundPosition,Er as backgroundRepeat,Nr as backgroundSize,ke as bg,Fe as bold,Yt as border,Zt as borderBottom,fr as borderBottomColor,Pr as borderBottomLeftRadius,Sr as borderBottomRightRadius,dr as borderBottomStyle,sr as borderBottomWidth,yn as borderCollapse,nr as borderColor,er as borderLeft,yr as borderLeftColor,ur as borderLeftStyle,ar as borderLeftWidth,gr as borderRadius,Kt as borderRight,pr as borderRightColor,lr as borderRightStyle,ir as borderRightWidth,gn as borderSpacing,rr as borderStyle,Qt as borderTop,mr as borderTopColor,hr as borderTopLeftRadius,br as borderTopRightRadius,cr as borderTopStyle,or as borderTopWidth,tr as borderWidth,wt as bottom,jr as boxShadow,bt as boxSizing,$n as breakAfter,Dn as breakBefore,On as breakInside,hn as captionSide,Tt as center,Bn as clip,Nn as clipPath,Re as color,_n as columnCount,Hn as columnFill,Gn as columnGap,qn as columnRule,Un as columnRuleColor,Jn as columnRuleStyle,Xn as columnRuleWidth,Yn as columnSpan,Qn as columnWidth,Kn as columns,jn as contain,Sn as content,Cn as counterIncrement,xn as counterReset,be as createBreakpoints,Pe as createCSSClass,m as createComment,p as createConditionalComment,O as createElementFactory,W as createElementWithModifiers,z as createTagBuilder,Zn as cursor,xe as display,bn as emptyCells,rn as filter,Ce as flex,At as flexBasis,vt as flexDirection,Nt as flexGrow,Lt as flexShrink,Bt as flexWrap,Ne as fontFamily,Ee as fontSize,De as fontStretch,Me as fontStyle,We as fontVariant,Be as fontWeight,Et as gap,ve as grid,qt as gridArea,Ut as gridAutoColumns,Xt as gridAutoFlow,Jt as gridAutoRows,Ot as gridColumn,_t as gridColumnEnd,Vt as gridColumnStart,zt as gridRow,Gt as gridRowEnd,Ht as gridRowStart,$t as gridTemplateAreas,Wt as gridTemplateColumns,Dt as gridTemplateRows,pt as height,to as initializeRuntime,o as isBoolean,l as isBrowser,i as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,s as isZeroArityFunction,Ln as isolation,Rt as justifyContent,Mt as justifyItems,Ft as justifySelf,xt as left,Ae as letterSpacing,Le as lineHeight,Y as list,un as listStyle,fn as listStyleImage,pn as listStylePosition,mn as listStyleType,at as margin,dt as marginBottom,ut as marginLeft,lt as marginRight,ct as marginTop,ht as maxHeight,yt as maxWidth,gt as minHeight,ft as minWidth,An as mixBlendMode,ln as objectFit,dn as objectPosition,ce as on,Fr as opacity,zn as orphans,wr as outline,vr as outlineColor,kr as outlineOffset,Cr as outlineStyle,xr as outlineWidth,on as overflow,qe as overflowWrap,sn as overflowX,an as overflowY,rt as padding,it as paddingBottom,st as paddingLeft,ot as paddingRight,nt as paddingTop,Mn as pageBreakAfter,Fn as pageBreakBefore,Wn as pageBreakInside,Hr as perspective,Gr as perspectiveOrigin,Rn as pointerEvents,tt as position,wn as quotes,G as registerGlobalTagBuilders,le as render,P as replaceNodeSafely,Tn as resize,St as right,En as scrollBehavior,Pn as tableLayout,Ie as textAlign,Ue as textAlignLast,je as textDecoration,Ye as textDecorationColor,Xe as textDecorationLine,Qe as textDecorationStyle,Ke as textDecorationThickness,Oe as textIndent,Je as textJustify,ze as textOverflow,Ve as textShadow,$e as textTransform,Ze as textUnderlineOffset,Pt as top,zr as transform,Vr as transformOrigin,_r as transformStyle,Mr as transition,Or as transitionDelay,Dr as transitionDuration,Wr as transitionProperty,$r as transitionTimingFunction,ae as update,kn as userSelect,et as verticalAlign,cn as visibility,oe as when,_e as whiteSpace,Vn as widows,mt as width,In as willChange,He as wordSpacing,Ge as wordWrap,Ct as zIndex};
2
2
  //# sourceMappingURL=nuclo.js.map