nuclo 0.1.84 → 0.1.86

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