nuclo 0.1.50 → 0.1.52
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/core/runtimeBootstrap.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/nuclo.cjs +1 -1
- package/dist/nuclo.cjs.map +1 -1
- package/dist/nuclo.js +1 -1
- package/dist/nuclo.js.map +1 -1
- package/dist/nuclo.umd.js +1 -1
- package/dist/nuclo.umd.js.map +1 -1
- package/dist/style/index.d.ts +191 -63
- package/dist/style/index.d.ts.map +1 -1
- package/dist/style/styleProperties.d.ts +13 -0
- package/dist/style/styleProperties.d.ts.map +1 -0
- package/package.json +3 -3
- package/types/features/style.d.ts +927 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeBootstrap.d.ts","sourceRoot":"","sources":["../../src/core/runtimeBootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimeBootstrap.d.ts","sourceRoot":"","sources":["../../src/core/runtimeBootstrap.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAqBxC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export { render } from "./utility/render";
|
|
|
12
12
|
export { isBoolean, isFunction, isNode, isObject, isPrimitive, isTagLike, isZeroArityFunction } from "./utility/typeGuards";
|
|
13
13
|
export { isBrowser } from "./utility/environment";
|
|
14
14
|
export { createElementWithModifiers } from "./internal/applyModifiers";
|
|
15
|
-
export { createCSSClass, createBreakpoints, bg, color, fontSize,
|
|
15
|
+
export { StyleBuilder, createCSSClass, createBreakpoints, display, flex, grid, bg, color, accentColor, fontSize, fontWeight, fontFamily, lineHeight, letterSpacing, textAlign, textDecoration, bold, fontStyle, fontVariant, fontStretch, textTransform, textIndent, textOverflow, textShadow, whiteSpace, wordSpacing, wordWrap, overflowWrap, textAlignLast, textJustify, textDecorationLine, textDecorationColor, textDecorationStyle, textDecorationThickness, textUnderlineOffset, verticalAlign, position, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginTop, marginRight, marginBottom, marginLeft, width, height, minWidth, maxWidth, minHeight, maxHeight, boxSizing, top, right, bottom, left, zIndex, flexDirection, alignItems, justifyContent, center, gap, flexWrap, flexGrow, flexShrink, flexBasis, alignSelf, alignContent, justifySelf, justifyItems, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridColumn, gridRow, gridColumnStart, gridColumnEnd, gridRowStart, gridRowEnd, gridArea, gridAutoColumns, gridAutoRows, gridAutoFlow, border, borderTop, borderRight, borderBottom, borderLeft, borderWidth, borderStyle, borderColor, borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, borderTopStyle, borderRightStyle, borderBottomStyle, borderLeftStyle, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadius, outline, outlineWidth, outlineStyle, outlineColor, outlineOffset, backgroundColor, backgroundImage, backgroundRepeat, backgroundPosition, backgroundSize, backgroundAttachment, backgroundClip, backgroundOrigin, boxShadow, opacity, transition, transitionProperty, transitionDuration, transitionTimingFunction, transitionDelay, transform, transformOrigin, transformStyle, perspective, perspectiveOrigin, backfaceVisibility, animation, animationName, animationDuration, animationTimingFunction, animationDelay, animationIterationCount, animationDirection, animationFillMode, animationPlayState, filter, backdropFilter, overflow, overflowX, overflowY, visibility, objectFit, objectPosition, listStyle, listStyleType, listStylePosition, listStyleImage, borderCollapse, borderSpacing, captionSide, emptyCells, tableLayout, content, quotes, counterReset, counterIncrement, appearance, userSelect, pointerEvents, resize, scrollBehavior, clip, clipPath, isolation, mixBlendMode, willChange, contain, pageBreakBefore, pageBreakAfter, pageBreakInside, breakBefore, breakAfter, breakInside, orphans, widows, columnCount, columnFill, columnGap, columnRule, columnRuleColor, columnRuleStyle, columnRuleWidth, columnSpan, columnWidth, columns, cursor, } from "./style";
|
|
16
16
|
import "./core/runtimeBootstrap";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EACN,cAAc,EACd,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/nuclo.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function n(e){return"object"==typeof e&&null!==e}function r(e){return n(e)&&"tagName"in e}function o(e){return"function"==typeof e}function i(e){return o(e)&&0===e.length}function s(e,t){"undefined"!=typeof console&&console.error(`nuclo: ${e}`,t)}function c(e,t){try{return e()}catch(e){return s("Operation failed",e),t}}const a="undefined"!=typeof window&&"undefined"!=typeof document;function l(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return s("Failed to remove child node",e),!1}}function u(e){if(!a)return null;try{return document.createComment(e)}catch(e){return s("Failed to create comment node",e),null}}function d(e){return u(e)}function f(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return s("Failed to create conditional comment",e),null}}function p(e){if(!a)throw new Error("Cannot create comment in non-browser environment");const t=u(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw new Error("Failed to create comment");return t}function h(e){const t=u(`${e}-end`);if(!t)throw new Error("Failed to create end comment");return{start:p(`${e}-start`),end:t}}function m(e,t){const n=t.parentNode;n&&e.forEach(e=>function(e,t,n){if(!e||!t)return!1;try{return e.insertBefore(t,n),!0}catch(e){return s("Failed to insert node before reference",e),!1}}(n,e,t))}function g(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!a||"undefined"==typeof document)&&document.contains(e))}function y(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return s("Error replacing conditional node",e),!1}}const x=new Map,b=new Map;function C(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},n)=>{try{t(c(e))}catch(e){s(`Failed to update reactive attribute: ${n}`,e)}})}function w(e,t,n,r){if(!(e instanceof Element&&t&&"function"==typeof n))return void s("Invalid parameters for registerAttributeResolver");const o=function(e){let t=b.get(e);return t||(t={attributeResolvers:new Map},b.set(e,t)),t}(e);o.attributeResolvers.set(t,{resolver:n,applyValue:r});try{r(c(n))}catch(e){s("Failed to apply initial attribute value",e)}if(!o.updateListener){const t=()=>C(0,o);e.addEventListener("update",t),o.updateListener=t}}function v(e,t,n){try{if(null==n||""===n)return e.style[t]="",!0;const r=String(n);return e.style[t]=r,!0}catch{return!1}}function S(e,t){if(e?.style&&t)for(const[n,r]of Object.entries(t)){v(e,n,r)||s(`Failed to set style property '${n}'`)}}function E(e,t,n,r=!1){if(null==n)return;if("style"===t)return c=n,void((i=e)&&(o(c)?w(i,"style",()=>{try{return c()}catch(e){return s("Error in style resolver function",e),null}},e=>{S(i,e)}):S(i,c)));var i,c;const a=(n,r=!1)=>{if(null==n)return;if("className"===t&&e instanceof HTMLElement&&r){const t=String(n),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 t&&(e.className=t);return}if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(String(t),String(n));else if(t in e)try{e[t]=n}catch{e instanceof Element&&e.setAttribute(String(t),String(n))}else e instanceof Element&&e.setAttribute(String(t),String(n))};if(o(n)&&0===n.length){const r=n;w(e,String(t),r,e=>a(e,!1))}else a(n,r)}function N(e,t,n=!0){if(t)for(const r of Object.keys(t)){E(e,r,t[r],n&&"className"===r)}}const M=new WeakMap;function $(e){const{value:t,error:n}=function(e){const t=M.get(e);if(t)return t;try{const t={value:e(),error:!1};return M.set(e,t),t}catch{const t={value:void 0,error:!0};return M.set(e,t),t}}(e);return!n&&"boolean"==typeof t}function k(e,r,i){if(!o(e)||0!==e.length)return!1;if(!$(e))return!1;const s=r.filter((e,t)=>t!==i);if(0===s.length)return!1;return s.some(e=>!(!n(e)&&!t(e))||!!(o(e)&&e.length>0))}function R(r,c,a){if(null==c)return null;if(o(c)){if(i(c))try{let t=M.get(c);if(!t){t={value:c(),error:!1},M.set(c,t)}if(t.error)return T(a,()=>"");const n=t.value;return e(n)&&null!=n?T(a,c,n):null}catch(e){return M.set(c,{value:void 0,error:!0}),s("Error evaluating reactive text function:",e),T(a,()=>"")}const o=c(r,a);return null==o?null:e(o)?F(a,o):t(o)?o:(n(o)&&N(r,o),null)}const l=c;return null==l?null:e(l)?F(a,l):t(l)?l:(n(l)&&N(r,l),null)}function T(e,t,n){const r=document.createDocumentFragment(),o=d(` text-${e} `);o&&r.appendChild(o);const i=function(e,t){if("function"!=typeof e)return s("Invalid resolver provided to createReactiveTextNode"),document.createTextNode("");const n=arguments.length>1?t:c(e,""),r=void 0===n?"":String(n),o=document.createTextNode(r);return x.set(o,{resolver:e,lastValue:r}),o}(t,n);return r.appendChild(i),r}function F(e,t){const n=document.createDocumentFragment(),r=d(` text-${e} `);r&&n.appendChild(r);const o=document.createTextNode(String(t));return n.appendChild(o),n}const j=new Set;function I(e,t){e._conditionalInfo=t,j.add(e)}function L(e,t,n=0){if(!t||0===t.length)return{element:e,nextIndex:n,appended:0};let r=n,o=0;const i=e;for(let n=0;n<t.length;n+=1){const s=t[n];if(null==s)continue;const c=R(e,s,r);c&&(c.parentNode!==i&&i.appendChild(c),r+=1,o+=1)}return{element:e,nextIndex:r,appended:o}}function A(e,t){const n=document.createElement(e);return L(n,t,0),n}function D(e){const t=function(e){for(let t=0;t<e.length;t+=1)if(k(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,n)=>n!==t)}}function O(e){return function(e){return z.includes(e)}(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function B(e,...t){return(n,r)=>{const{condition:o,otherModifiers:i}=D(t);if(o)return function(e,t,n){const r=t();if(!a)return r?A(e,n):f(e,"ssr");const o={condition:t,tagName:e,modifiers:n};if(r){const t=A(e,n);return I(t,o),t}const i=f(e);if(!i)throw new Error(`Failed to create conditional comment for ${e}`);return I(i,o),i}(e,o,i);const s=O(e);return L(s,i,r),s}}function _(e){return(...t)=>B(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"],z=["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 P(e=globalThis){const t="__nuclo_tags_registered";e[t]||(z.forEach(t=>function(e,t){let n=t;["a","script","style","title","text"].includes(t)?n=`${t}_svg`:["stop"].includes(t)&&(n=`${t}_`),n in e||(e[n]=_(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 V=new Set;function q(e,t,n){return function(e,t,n){if(o(e)){const o=e(t,n);return o&&r(o)?o:null}return e&&r(e)?e:null}(e.renderItem(t,n),e.host,n)}function W(e){l(e.element)}function H(e){const{host:t,startMarker:n,endMarker:r}=e,o=n.parentNode??t,i=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if((n in e?e[n]:void 0)!==(n in t?t[n]:void 0))return!1;return!0}(e.lastSyncedItems,i))return;const s=new Map,c=new Map;e.records.forEach(e=>{const t=c.get(e.item);t?t.push(e):c.set(e.item,[e])}),i.forEach((t,n)=>{if(n<e.lastSyncedItems.length&&e.lastSyncedItems[n]===t){const r=e.records[n];if(r&&r.item===t){s.set(n,r);const e=c.get(t);if(e){const n=e.indexOf(r);n>=0&&(e.splice(n,1),0===e.length&&c.delete(t))}}}});const a=[],l=new Set(e.records);let u=r;for(let t=i.length-1;t>=0;t--){const n=i[t];let r=s.get(t);if(!r){const e=c.get(n);e&&e.length>0&&(r=e.shift(),0===e.length&&c.delete(n))}if(r)l.delete(r);else{const o=q(e,n,t);if(!o)continue;r={item:n,element:o}}a.unshift(r);const d=r.element;d.nextSibling!==u&&o.insertBefore(d,u),u=d}l.forEach(W),e.records=a,e.lastSyncedItems=[...i]}function Z(e,t){return(n,r)=>{const o=function(e,t,n){const{start:r,end:o}=h("list"),i={itemsProvider:e,renderItem:t,startMarker:r,endMarker:o,records:[],host:n,lastSyncedItems:[]},s=n;return s.appendChild(r),s.appendChild(o),V.add(i),H(i),i}(e,t,n);return o.startMarker}}function U(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function J(e,t){return"function"==typeof e?U(e,t):Boolean(e)}const K=new Set;function Q(e,t,n,r){return o(e)?i(e)?(M.delete(e),R(t,e,n)):function(e,t,n){const r=e,o=r.appendChild.bind(r),i=r.insertBefore.bind(r);r.appendChild=function(e){return i(e,t)};try{return n()}finally{r.appendChild=o}}(t,r,()=>{const r=R(t,e,n);return r&&!r.parentNode?r:null}):R(t,e,n)}function X(e){const{groups:t,elseContent:n,host:r,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;t<e.length;t++)if(J(e[t].condition))return t;return t.length>0?-1:null}(t,n);if(s===e.activeIndex)return;if(function(e,t){let n=e.nextSibling;for(;n&&n!==t;){const e=n.nextSibling;l(n),n=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const c=function(e,t,n,r){const o=[];for(const i of e){const e=Q(i,t,n,r);e&&o.push(e)}return o}(s>=0?t[s].content:n,r,o,i);m(c,i)}class Y{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(!a){return d("when-ssr")||null}const{start:n,end:r}=h("when"),o={startMarker:n,endMarker:r,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>X(o)};K.add(o);const i=e;return i.appendChild(n),i.appendChild(r),X(o),n}}function ee(e){return Object.assign((t,n)=>e.render(t,n),{when:(t,...n)=>(e.when(t,...n),ee(e)),else:(...t)=>(e.else(...t),ee(e))})}function te(e,...t){return ee(new Y(e,...t))}function ne(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const n=U(t.condition,e=>{s("Error evaluating conditional condition",e)}),r=e.nodeType===Node.ELEMENT_NODE;if(n&&!r){const n=function(e){try{return A(e.tagName,e.modifiers)}catch(t){return s(`Error applying modifiers in conditional element "${e.tagName}"`,t),document.createElement(e.tagName)}}(t);I(n,t),y(e,n)}else if(!n&&r){const n=f(t.tagName);n&&(I(n,t),y(e,n))}}const re=[function(){V.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?H(e):V.delete(e)})},function(){K.forEach(e=>{try{e.update()}catch(t){K.delete(e)}})},function(){if(a)try{j.forEach(e=>{e.isConnected?ne(e):function(e){j.delete(e)}(e)})}catch(e){s("Error during conditional elements update",e)}},function(){b.forEach((e,t)=>{if(!g(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void b.delete(t);C(0,e)})},function(){x.forEach((e,t)=>{if(g(t))try{const n=c(e.resolver),r=void 0===n?"":String(n);r!==e.lastValue&&(t.textContent=r,e.lastValue=r)}catch(e){s("Failed to update reactive text node",e)}else x.delete(t)})},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){s("Error dispatching global update event",e)}}];function oe(){for(const e of re)e()}function ie(e,t,n){return r=>{if(!r||"function"!=typeof r.addEventListener)return;const o=r;o.addEventListener(e,n=>{try{t.call(o,n)}catch(t){s(`Error in '${e}' listener`,t)}},n)}}function se(e,t,n=0){const r=e(t||document.body,n);return(t||document.body).appendChild(r),r}const ce=new Map;function ae(e,t,n){let r=document.querySelector("#nuclo-styles");r||(r=document.createElement("style"),r.id="nuclo-styles",document.head.appendChild(r));Array.from(r.sheet?.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)||r.sheet?.insertRule(`.${e} { ${t}: ${n}; }`,r.sheet.cssRules.length)}function le(e,t,n,r){let o=document.querySelector("#nuclo-styles");o||(o=document.createElement("style"),o.id="nuclo-styles",document.head.appendChild(o));const i=Array.from(o.sheet?.cssRules||[]);let s=null;for(const e of i)if(e instanceof CSSMediaRule&&e.media.mediaText===r){s=e;break}if(!s){const e=o.sheet?.cssRules.length||0;o.sheet?.insertRule(`@media ${r} {}`,e),s=o.sheet?.cssRules[e]}Array.from(s.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)||s.insertRule(`.${e} { ${t}: ${n}; }`,s.cssRules.length)}class ue{classNames=[];classDefinitions=[];getClassNames(){return[...this.classNames]}getClassDefinitions(){return[...this.classDefinitions]}toString(){return this.classNames.join(" ")}addClass(e,t){const n=function(e,t){const n=`${e}:${t}`;if(ce.has(n))return ce.get(n);let r;const o={"background-color":"bg",color:"text","font-size":"text",display:"display",flex:"flex","justify-content":"justify","align-items":"items","font-weight":"font",padding:"p",margin:"m",width:"w",height:"h",border:"border","border-radius":"rounded","text-align":"text",gap:"gap","flex-direction":"flex",position:"position",opacity:"opacity",cursor:"cursor","box-shadow":"shadow",transition:"transition","text-decoration":"underline","letter-spacing":"tracking","min-width":"min-w","max-width":"max-w","min-height":"min-h","accent-color":"accent","line-height":"leading","font-family":"font",outline:"outline"}[e]||e.replace(/-/g,"-"),i=function(e){return(e=(e=(e=e.replace(/^#/,"")).replace(/[^a-zA-Z0-9]/g,"-")).replace(/^-+|-+$/g,"").replace(/-+/g,"-")).toLowerCase()}(t);return r="display"===e&&"flex"===t?"flex":"display"===e&&"grid"===t?"grid":"display"===e&&"block"===t?"display-block":"display"===e&&"none"===t?"display-none":"justify-content"===e&&"center"===t&&"justify"===o?"justify-center":"align-items"===e&&"center"===t&&"items"===o?"items-center":"font-weight"===e&&"bold"===t?"font-bold":"text-align"===e&&"center"===t?"text-center":"flex-direction"===e&&"column"===t?"flex-col":"flex-direction"===e&&"row"===t?"flex-row":"cursor"===e&&"pointer"===t?"cursor-pointer":"text-decoration"===e&&"line-through"===t?"line-through":`${o}-${i}`,ce.set(n,r),r}(e,t);return de.set(n,{property:e,value:t}),this.classDefinitions.push({className:n,property:e,value:t}),ae(n,e,t),this.classNames.includes(n)||this.classNames.push(n),this}add(e,t){return this.addClass(e,t)}bg(e){return this.addClass("background-color",e)}color(e){return this.addClass("color",e)}fontSize(e){return this.addClass("font-size",e)}display(e){return this.addClass("display",e)}flex(e){return void 0!==e?this.addClass("flex",e):this.addClass("display","flex")}center(){return this.addClass("justify-content","center"),this.addClass("align-items","center")}bold(){return this.addClass("font-weight","bold")}padding(e){return this.addClass("padding",e)}margin(e){return this.addClass("margin",e)}width(e){return this.addClass("width",e)}height(e){return this.addClass("height",e)}border(e){return this.addClass("border",e)}borderRadius(e){return this.addClass("border-radius",e)}textAlign(e){return this.addClass("text-align",e)}gap(e){return this.addClass("gap",e)}flexDirection(e){return this.addClass("flex-direction",e)}grid(){return this.addClass("display","grid")}position(e){return this.addClass("position",e)}opacity(e){return this.addClass("opacity",e)}cursor(e){return this.addClass("cursor",e)}boxShadow(e){return this.addClass("box-shadow",e)}transition(e){return this.addClass("transition",e)}textDecoration(e){return this.addClass("text-decoration",e)}letterSpacing(e){return this.addClass("letter-spacing",e)}fontWeight(e){return this.addClass("font-weight",e)}alignItems(e){return this.addClass("align-items",e)}justifyContent(e){return this.addClass("justify-content",e)}minWidth(e){return this.addClass("min-width",e)}maxWidth(e){return this.addClass("max-width",e)}minHeight(e){return this.addClass("min-height",e)}accentColor(e){return this.addClass("accent-color",e)}lineHeight(e){return this.addClass("line-height",e)}fontFamily(e){return this.addClass("font-family",e)}outline(e){return this.addClass("outline",e)}}const de=new Map;function fe(e){return function(t,n){let r,o;if(void 0!==n?(r=t,o=n):t instanceof ue?(r=t,o=void 0):(r=void 0,o=t),!(r||o&&0!==Object.keys(o).length))return"";const i=[];if(r){const e=r.getClassDefinitions();for(const{className:t,property:n,value:r}of e)ae(t,n,r),i.push(t)}if(o&&Object.keys(o).length>0){const t=Object.entries(e);for(const[e,n]of t){const t=o[e];if(t){const r=t.getClassDefinitions();for(const{className:t,property:o,value:s}of r){const r=`${e}-${t}`;le(r,o,s,n),i.push(r)}}}}return{className:i.join(" ")}}}function pe(e,t){let n=document.querySelector("#nuclo-styles");n||(n=document.createElement("style"),n.id="nuclo-styles",document.head.appendChild(n));const r=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");n.sheet?.insertRule(`.${e} { ${r} }`,n.sheet.cssRules.length)}function he(e){return(new ue).bg(e)}function me(e){return(new ue).color(e)}function ge(e){return(new ue).fontSize(e)}function ye(e){return(new ue).flex(e)}function xe(){return(new ue).center()}function be(){return(new ue).bold()}function Ce(e){return(new ue).padding(e)}function we(e){return(new ue).margin(e)}function ve(e){return(new ue).width(e)}function Se(e){return(new ue).height(e)}function Ee(e){return(new ue).border(e)}function Ne(e){return(new ue).borderRadius(e)}function Me(e){return(new ue).textAlign(e)}function $e(e){return(new ue).gap(e)}function ke(e){return(new ue).flexDirection(e)}function Re(){return(new ue).grid()}function Te(e){return(new ue).position(e)}function Fe(e){return(new ue).opacity(e)}function je(e){return(new ue).cursor(e)}function Ie(){if(P(),"undefined"!=typeof globalThis){const e=globalThis;e.list=Z,e.update=oe,e.when=te,e.on=ie,e.render=se,e.createCSSClass=pe,e.createBreakpoints=fe,e.bg=he,e.color=me,e.fontSize=ge,e.flex=ye,e.center=xe,e.bold=be,e.padding=Ce,e.margin=we,e.width=ve,e.height=Se,e.border=Ee,e.borderRadius=Ne,e.textAlign=Me,e.gap=$e,e.flexDirection=ke,e.grid=Re,e.position=Te,e.opacity=Fe,e.cursor=je}}"undefined"!=typeof globalThis&&Ie(),exports.HTML_TAGS=G,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=z,exports.appendChildren=function(e,...t){return e?(t.forEach(t=>{if(null!=t){let n;if("string"==typeof t){const e=function(e){if(!a)return null;try{return document.createTextNode(String(e))}catch(e){return s("Failed to create text node",e),null}}(t);if(!e)return;n=e}else n=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return s("Failed to append child node",e),!1}}(e,n)}}),e):e},exports.applyAttributes=N,exports.applyNodeModifier=R,exports.bg=he,exports.bold=be,exports.border=Ee,exports.borderRadius=Ne,exports.center=xe,exports.color=me,exports.createBreakpoints=fe,exports.createCSSClass=pe,exports.createComment=d,exports.createConditionalComment=f,exports.createElementFactory=B,exports.createElementWithModifiers=A,exports.createTagBuilder=_,exports.cursor=je,exports.flex=ye,exports.flexDirection=ke,exports.fontSize=ge,exports.gap=$e,exports.grid=Re,exports.height=Se,exports.initializeRuntime=Ie,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=a,exports.isFunction=o,exports.isNode=t,exports.isObject=n,exports.isPrimitive=e,exports.isTagLike=r,exports.isZeroArityFunction=i,exports.list=Z,exports.margin=we,exports.on=ie,exports.opacity=Fe,exports.padding=Ce,exports.position=Te,exports.registerGlobalTagBuilders=P,exports.render=se,exports.replaceNodeSafely=y,exports.textAlign=Me,exports.update=oe,exports.when=te,exports.width=ve;
|
|
1
|
+
"use strict";function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function o(e){return r(e)&&"tagName"in e}function n(e){return"function"==typeof e}function i(e){return n(e)&&0===e.length}function s(e,t){"undefined"!=typeof console&&console.error(`nuclo: ${e}`,t)}function a(e,t){try{return e()}catch(e){return s("Operation failed",e),t}}const l="undefined"!=typeof window&&"undefined"!=typeof document;function c(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return s("Failed to remove child node",e),!1}}function p(e){if(!l)return null;try{return document.createComment(e)}catch(e){return s("Failed to create comment node",e),null}}function d(e){return p(e)}function u(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return s("Failed to create conditional comment",e),null}}function m(e){if(!l)throw new Error("Cannot create comment in non-browser environment");const t=p(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw new Error("Failed to create comment");return t}function f(e){const t=p(`${e}-end`);if(!t)throw new Error("Failed to create end comment");return{start:m(`${e}-start`),end:t}}function y(e,t){const r=t.parentNode;r&&e.forEach(e=>function(e,t,r){if(!e||!t)return!1;try{return e.insertBefore(t,r),!0}catch(e){return s("Failed to insert node before reference",e),!1}}(r,e,t))}function g(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!l||"undefined"==typeof document)&&document.contains(e))}function x(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return s("Error replacing conditional node",e),!1}}const h=new Map,b=new Map;function P(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},r)=>{try{t(a(e))}catch(e){s(`Failed to update reactive attribute: ${r}`,e)}})}function S(e,t,r,o){if(!(e instanceof Element&&t&&"function"==typeof r))return void s("Invalid parameters for registerAttributeResolver");const n=function(e){let t=b.get(e);return t||(t={attributeResolvers:new Map},b.set(e,t)),t}(e);n.attributeResolvers.set(t,{resolver:r,applyValue:o});try{o(a(r))}catch(e){s("Failed to apply initial attribute value",e)}if(!n.updateListener){const t=()=>P(0,n);e.addEventListener("update",t),n.updateListener=t}}function w(e,t,r){try{if(null==r||""===r)return e.style[t]="",!0;const o=String(r);return e.style[t]=o,!0}catch{return!1}}function C(e,t){if(e?.style&&t)for(const[r,o]of Object.entries(t)){w(e,r,o)||s(`Failed to set style property '${r}'`)}}function v(e,t,r,o=!1){if(null==r)return;if("style"===t)return a=r,void((i=e)&&(n(a)?S(i,"style",()=>{try{return a()}catch(e){return s("Error in style resolver function",e),null}},e=>{C(i,e)}):C(i,a)));var i,a;const l=(r,o=!1)=>{if(null==r)return;if("className"===t&&e instanceof HTMLElement&&o){const t=String(r),o=e.className;if(o&&o!==t){const r=new Set(o.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>r.add(e)),e.className=Array.from(r).join(" ")}else t&&(e.className=t);return}if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(String(t),String(r));else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(String(t),String(r))}else e instanceof Element&&e.setAttribute(String(t),String(r))};if(n(r)&&0===r.length){const o=r;S(e,String(t),o,e=>l(e,!1))}else l(r,o)}function k(e,t,r=!0){if(t)for(const o of Object.keys(t)){v(e,o,t[o],r&&"className"===o)}}const R=new WeakMap;function T(e){const{value:t,error:r}=function(e){const t=R.get(e);if(t)return t;try{const t={value:e(),error:!1};return R.set(e,t),t}catch{const t={value:void 0,error:!0};return R.set(e,t),t}}(e);return!r&&"boolean"==typeof t}function B(e,o,i){if(!n(e)||0!==e.length)return!1;if(!T(e))return!1;const s=o.filter((e,t)=>t!==i);if(0===s.length)return!1;return s.some(e=>!(!r(e)&&!t(e))||!!(n(e)&&e.length>0))}function A(o,a,l){if(null==a)return null;if(n(a)){if(i(a))try{let t=R.get(a);if(!t){t={value:a(),error:!1},R.set(a,t)}if(t.error)return E(l,()=>"");const r=t.value;return e(r)&&null!=r?E(l,a,r):null}catch(e){return R.set(a,{value:void 0,error:!0}),s("Error evaluating reactive text function:",e),E(l,()=>"")}const n=a(o,l);return null==n?null:e(n)?L(l,n):t(n)?n:(r(n)&&k(o,n),null)}const c=a;return null==c?null:e(c)?L(l,c):t(c)?c:(r(c)&&k(o,c),null)}function E(e,t,r){const o=document.createDocumentFragment(),n=d(` text-${e} `);n&&o.appendChild(n);const i=function(e,t){if("function"!=typeof e)return s("Invalid resolver provided to createReactiveTextNode"),document.createTextNode("");const r=arguments.length>1?t:a(e,""),o=void 0===r?"":String(r),n=document.createTextNode(o);return h.set(n,{resolver:e,lastValue:o}),n}(t,r);return o.appendChild(i),o}function L(e,t){const r=document.createDocumentFragment(),o=d(` text-${e} `);o&&r.appendChild(o);const n=document.createTextNode(String(t));return r.appendChild(n),r}const I=new Set;function W(e,t){e._conditionalInfo=t,I.add(e)}function F(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let o=r,n=0;const i=e;for(let r=0;r<t.length;r+=1){const s=t[r];if(null==s)continue;const a=A(e,s,o);a&&(a.parentNode!==i&&i.appendChild(a),o+=1,n+=1)}return{element:e,nextIndex:o,appended:n}}function D(e,t){const r=document.createElement(e);return F(r,t,0),r}function N(e){const t=function(e){for(let t=0;t<e.length;t+=1)if(B(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,r)=>r!==t)}}function j(e){return function(e){return z.includes(e)}(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function M(e,...t){return(r,o)=>{const{condition:n,otherModifiers:i}=N(t);if(n)return function(e,t,r){const o=t();if(!l)return o?D(e,r):u(e,"ssr");const n={condition:t,tagName:e,modifiers:r};if(o){const t=D(e,r);return W(t,n),t}const i=u(e);if(!i)throw new Error(`Failed to create conditional comment for ${e}`);return W(i,n),i}(e,n,i);const s=j(e);return F(s,i,o),s}}function O(e){return(...t)=>M(e,...t)}const $=["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"],z=["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 G(e=globalThis){const t="__nuclo_tags_registered";e[t]||(z.forEach(t=>function(e,t){let r=t;["a","script","style","title","text"].includes(t)?r=`${t}_svg`:["stop"].includes(t)&&(r=`${t}_`),r in e||(e[r]=O(t))}(e,t)),$.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=O(t))}(e,t)),e[t]=!0)}const V=new Set;function _(e,t,r){return function(e,t,r){if(n(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 H(e){c(e.element)}function q(e){const{host:t,startMarker:r,endMarker:o}=e,n=r.parentNode??t,i=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,i))return;const s=new Map,a=new Map;e.records.forEach(e=>{const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach((t,r)=>{if(r<e.lastSyncedItems.length&&e.lastSyncedItems[r]===t){const o=e.records[r];if(o&&o.item===t){s.set(r,o);const e=a.get(t);if(e){const r=e.indexOf(o);r>=0&&(e.splice(r,1),0===e.length&&a.delete(t))}}}});const l=[],c=new Set(e.records);let p=o;for(let t=i.length-1;t>=0;t--){const r=i[t];let o=s.get(t);if(!o){const e=a.get(r);e&&e.length>0&&(o=e.shift(),0===e.length&&a.delete(r))}if(o)c.delete(o);else{const n=_(e,r,t);if(!n)continue;o={item:r,element:n}}l.unshift(o);const d=o.element;d.nextSibling!==p&&n.insertBefore(d,p),p=d}c.forEach(H),e.records=l,e.lastSyncedItems=[...i]}function U(e,t){return(r,o)=>{const n=function(e,t,r){const{start:o,end:n}=f("list"),i={itemsProvider:e,renderItem:t,startMarker:o,endMarker:n,records:[],host:r,lastSyncedItems:[]},s=r;return s.appendChild(o),s.appendChild(n),V.add(i),q(i),i}(e,t,r);return n.startMarker}}function J(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function X(e,t){return"function"==typeof e?J(e,t):Boolean(e)}const Y=new Set;function Q(e,t,r,o){return n(e)?i(e)?(R.delete(e),A(t,e,r)):function(e,t,r){const o=e,n=o.appendChild.bind(o),i=o.insertBefore.bind(o);o.appendChild=function(e){return i(e,t)};try{return r()}finally{o.appendChild=n}}(t,o,()=>{const o=A(t,e,r);return o&&!o.parentNode?o:null}):A(t,e,r)}function Z(e){const{groups:t,elseContent:r,host:o,index:n,endMarker:i}=e,s=function(e,t){for(let t=0;t<e.length;t++)if(X(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;c(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const a=function(e,t,r,o){const n=[];for(const i of e){const e=Q(i,t,r,o);e&&n.push(e)}return n}(s>=0?t[s].content:r,o,n,i);y(a,i)}class K{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!l){return d("when-ssr")||null}const{start:r,end:o}=f("when"),n={startMarker:r,endMarker:o,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>Z(n)};Y.add(n);const i=e;return i.appendChild(r),i.appendChild(o),Z(n),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 K(e,...t))}function re(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=J(t.condition,e=>{s("Error evaluating conditional condition",e)}),o=e.nodeType===Node.ELEMENT_NODE;if(r&&!o){const r=function(e){try{return D(e.tagName,e.modifiers)}catch(t){return s(`Error applying modifiers in conditional element "${e.tagName}"`,t),document.createElement(e.tagName)}}(t);W(r,t),x(e,r)}else if(!r&&o){const r=u(t.tagName);r&&(W(r,t),x(e,r))}}const oe=[function(){V.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?q(e):V.delete(e)})},function(){Y.forEach(e=>{try{e.update()}catch(t){Y.delete(e)}})},function(){if(l)try{I.forEach(e=>{e.isConnected?re(e):function(e){I.delete(e)}(e)})}catch(e){s("Error during conditional elements update",e)}},function(){b.forEach((e,t)=>{if(!g(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void b.delete(t);P(0,e)})},function(){h.forEach((e,t)=>{if(g(t))try{const r=a(e.resolver),o=void 0===r?"":String(r);o!==e.lastValue&&(t.textContent=o,e.lastValue=o)}catch(e){s("Failed to update reactive text node",e)}else h.delete(t)})},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){s("Error dispatching global update event",e)}}];function ne(){for(const e of oe)e()}function ie(e,t,r){return o=>{if(!o||"function"!=typeof o.addEventListener)return;const n=o;n.addEventListener(e,r=>{try{t.call(n,r)}catch(t){s(`Error in '${e}' listener`,t)}},r)}}function se(e,t,r=0){const o=e(t||document.body,r);return(t||document.body).appendChild(o),o}const ae=[{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"}],le=["bold","center","flex"],ce=new Map;function pe(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function de(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ue(e,t="",r){const o=de(e),n=t?`${t}:${o}`:o;if(ce.has(n)){const t=ce.get(n);return function(e,t){const r=document.querySelector("#nuclo-styles");if(!r||!r.sheet)return!1;if(t){const o=Array.from(r.sheet.cssRules||[]).find(e=>e instanceof CSSMediaRule&&e.media.mediaText===t);return!!o&&Array.from(o.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}return Array.from(r.sheet.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText===`.${e}`)}(t,r)||me(t,e,r),t}const i=pe(o),s=t?`n${t}-${i}`:`n${i}`;return ce.set(n,s),me(s,e,r),s}function me(e,t,r){let o=document.querySelector("#nuclo-styles");o||(o=document.createElement("style"),o.id="nuclo-styles",document.head.appendChild(o));const n=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");if(r){const i=Array.from(o.sheet?.cssRules||[]);let s=null;for(const e of i)if(e instanceof CSSMediaRule&&e.media.mediaText===r){s=e;break}if(!s){let e=i.length;for(let t=i.length-1;t>=0;t--){if(i[t]instanceof CSSMediaRule){e=t+1;break}if(i[t]instanceof CSSStyleRule){e=t+1;break}}o.sheet?.insertRule(`@media ${r} {}`,e),s=o.sheet?.cssRules[e]}let a=null;for(const t of Array.from(s.cssRules))if(t instanceof CSSStyleRule&&t.selectorText===`.${e}`){a=t;break}if(a){for(;a.style.length>0;)a.style.removeProperty(a.style[0]);Object.entries(t).forEach(([e,t])=>{a.style.setProperty(e,t)})}else s.insertRule(`.${e} { ${n} }`,s.cssRules.length)}else{let r=null,i=0;const s=Array.from(o.sheet?.cssRules||[]);for(let t=0;t<s.length;t++){const o=s[t];if(o instanceof CSSStyleRule&&o.selectorText===`.${e}`){r=o,i=t;break}o instanceof CSSMediaRule||(i=t+1)}if(r){for(;r.style.length>0;)r.style.removeProperty(r.style[0]);Object.entries(t).forEach(([e,t])=>{r.style.setProperty(e,t)})}else o.sheet?.insertRule(`.${e} { ${n} }`,i)}}class fe{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return ue(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 ye(e){const t=Array.isArray(e)?e:Object.entries(e);return function(e,r){let o,n;if(void 0!==r?(o=e,n=r):e instanceof fe?(o=e,n=void 0):(o=void 0,n=e),!(o||n&&0!==Object.keys(n).length))return"";if(n&&Object.keys(n).length>0){const e=[];for(const[r,o]of t){const t=n[r];t&&e.push({breakpointName:r,mediaQuery:o,styles:t.getStyles()})}const r=[];if(o){const e=o.getStyles();r.push(`default:${de(e)}`)}r.push(...e.map(({breakpointName:e,styles:t})=>`${e}:${de(t)}`));const i=`n${pe(r.sort().join("||"))}`;let s={};o&&(s={...o.getStyles()},me(i,s));for(const{breakpointName:t,mediaQuery:r,styles:o}of e)s={...s,...o},me(i,s,r);return{className:i}}if(o){return{className:o.getClassName()}}return""}}function ge(e,t){me(e,t)}function xe(e){return e.isShorthand?()=>(new fe).add(e.cssProperty,e.defaultValue||""):t=>(new fe).add(e.cssProperty,t||"")}!function(){const e=fe.prototype;for(const t of ae)t.name in e||(t.isShorthand?e[t.name]=function(){return this.add(t.cssProperty,t.defaultValue||""),this}:e[t.name]=function(e){return this.add(t.cssProperty,e),this})}();const he={};for(const e of ae)he[e.name]=xe(e);for(const e of le)"bold"===e||"center"===e?he[e]=()=>(new fe)[e]():"flex"===e&&(he[e]=e=>(new fe).flex(e));const{display:be,flex:Pe,grid:Se,bg:we,color:Ce,accentColor:ve,fontSize:ke,fontWeight:Re,fontFamily:Te,lineHeight:Be,letterSpacing:Ae,textAlign:Ee,textDecoration:Le,bold:Ie,fontStyle:We,fontVariant:Fe,fontStretch:De,textTransform:Ne,textIndent:je,textOverflow:Me,textShadow:Oe,whiteSpace:$e,wordSpacing:ze,wordWrap:Ge,overflowWrap:Ve,textAlignLast:_e,textJustify:He,textDecorationLine:qe,textDecorationColor:Ue,textDecorationStyle:Je,textDecorationThickness:Xe,textUnderlineOffset:Ye,verticalAlign:Qe,position:Ze,padding:Ke,paddingTop:et,paddingRight:tt,paddingBottom:rt,paddingLeft:ot,margin:nt,marginTop:it,marginRight:st,marginBottom:at,marginLeft:lt,width:ct,height:pt,minWidth:dt,maxWidth:ut,minHeight:mt,maxHeight:ft,boxSizing:yt,top:gt,right:xt,bottom:ht,left:bt,zIndex:Pt,flexDirection:St,alignItems:wt,justifyContent:Ct,center:vt,gap:kt,flexWrap:Rt,flexGrow:Tt,flexShrink:Bt,flexBasis:At,alignSelf:Et,alignContent:Lt,justifySelf:It,justifyItems:Wt,gridTemplateColumns:Ft,gridTemplateRows:Dt,gridTemplateAreas:Nt,gridColumn:jt,gridRow:Mt,gridColumnStart:Ot,gridColumnEnd:$t,gridRowStart:zt,gridRowEnd:Gt,gridArea:Vt,gridAutoColumns:_t,gridAutoRows:Ht,gridAutoFlow:qt,border:Ut,borderTop:Jt,borderRight:Xt,borderBottom:Yt,borderLeft:Qt,borderWidth:Zt,borderStyle:Kt,borderColor:er,borderTopWidth:tr,borderRightWidth:rr,borderBottomWidth:or,borderLeftWidth:nr,borderTopStyle:ir,borderRightStyle:sr,borderBottomStyle:ar,borderLeftStyle:lr,borderTopColor:cr,borderRightColor:pr,borderBottomColor:dr,borderLeftColor:ur,borderRadius:mr,borderTopLeftRadius:fr,borderTopRightRadius:yr,borderBottomLeftRadius:gr,borderBottomRightRadius:xr,outline:hr,outlineWidth:br,outlineStyle:Pr,outlineColor:Sr,outlineOffset:wr,backgroundColor:Cr,backgroundImage:vr,backgroundRepeat:kr,backgroundPosition:Rr,backgroundSize:Tr,backgroundAttachment:Br,backgroundClip:Ar,backgroundOrigin:Er,boxShadow:Lr,opacity:Ir,transition:Wr,transitionProperty:Fr,transitionDuration:Dr,transitionTimingFunction:Nr,transitionDelay:jr,transform:Mr,transformOrigin:Or,transformStyle:$r,perspective:zr,perspectiveOrigin:Gr,backfaceVisibility:Vr,animation:_r,animationName:Hr,animationDuration:qr,animationTimingFunction:Ur,animationDelay:Jr,animationIterationCount:Xr,animationDirection:Yr,animationFillMode:Qr,animationPlayState:Zr,filter:Kr,backdropFilter:eo,overflow:to,overflowX:ro,overflowY:oo,visibility:no,objectFit:io,objectPosition:so,listStyle:ao,listStyleType:lo,listStylePosition:co,listStyleImage:po,borderCollapse:uo,borderSpacing:mo,captionSide:fo,emptyCells:yo,tableLayout:go,content:xo,quotes:ho,counterReset:bo,counterIncrement:Po,appearance:So,userSelect:wo,pointerEvents:Co,resize:vo,scrollBehavior:ko,clip:Ro,clipPath:To,isolation:Bo,mixBlendMode:Ao,willChange:Eo,contain:Lo,pageBreakBefore:Io,pageBreakAfter:Wo,pageBreakInside:Fo,breakBefore:Do,breakAfter:No,breakInside:jo,orphans:Mo,widows:Oo,columnCount:$o,columnFill:zo,columnGap:Go,columnRule:Vo,columnRuleColor:_o,columnRuleStyle:Ho,columnRuleWidth:qo,columnSpan:Uo,columnWidth:Jo,columns:Xo,cursor:Yo}=he;var Qo=Object.freeze({__proto__:null,StyleBuilder:fe,accentColor:ve,alignContent:Lt,alignItems:wt,alignSelf:Et,animation:_r,animationDelay:Jr,animationDirection:Yr,animationDuration:qr,animationFillMode:Qr,animationIterationCount:Xr,animationName:Hr,animationPlayState:Zr,animationTimingFunction:Ur,appearance:So,backdropFilter:eo,backfaceVisibility:Vr,backgroundAttachment:Br,backgroundClip:Ar,backgroundColor:Cr,backgroundImage:vr,backgroundOrigin:Er,backgroundPosition:Rr,backgroundRepeat:kr,backgroundSize:Tr,bg:we,bold:Ie,border:Ut,borderBottom:Yt,borderBottomColor:dr,borderBottomLeftRadius:gr,borderBottomRightRadius:xr,borderBottomStyle:ar,borderBottomWidth:or,borderCollapse:uo,borderColor:er,borderLeft:Qt,borderLeftColor:ur,borderLeftStyle:lr,borderLeftWidth:nr,borderRadius:mr,borderRight:Xt,borderRightColor:pr,borderRightStyle:sr,borderRightWidth:rr,borderSpacing:mo,borderStyle:Kt,borderTop:Jt,borderTopColor:cr,borderTopLeftRadius:fr,borderTopRightRadius:yr,borderTopStyle:ir,borderTopWidth:tr,borderWidth:Zt,bottom:ht,boxShadow:Lr,boxSizing:yt,breakAfter:No,breakBefore:Do,breakInside:jo,captionSide:fo,center:vt,clip:Ro,clipPath:To,color:Ce,columnCount:$o,columnFill:zo,columnGap:Go,columnRule:Vo,columnRuleColor:_o,columnRuleStyle:Ho,columnRuleWidth:qo,columnSpan:Uo,columnWidth:Jo,columns:Xo,contain:Lo,content:xo,counterIncrement:Po,counterReset:bo,createBreakpoints:ye,createCSSClass:ge,cursor:Yo,display:be,emptyCells:yo,filter:Kr,flex:Pe,flexBasis:At,flexDirection:St,flexGrow:Tt,flexShrink:Bt,flexWrap:Rt,fontFamily:Te,fontSize:ke,fontStretch:De,fontStyle:We,fontVariant:Fe,fontWeight:Re,gap:kt,grid:Se,gridArea:Vt,gridAutoColumns:_t,gridAutoFlow:qt,gridAutoRows:Ht,gridColumn:jt,gridColumnEnd:$t,gridColumnStart:Ot,gridRow:Mt,gridRowEnd:Gt,gridRowStart:zt,gridTemplateAreas:Nt,gridTemplateColumns:Ft,gridTemplateRows:Dt,height:pt,isolation:Bo,justifyContent:Ct,justifyItems:Wt,justifySelf:It,left:bt,letterSpacing:Ae,lineHeight:Be,listStyle:ao,listStyleImage:po,listStylePosition:co,listStyleType:lo,margin:nt,marginBottom:at,marginLeft:lt,marginRight:st,marginTop:it,maxHeight:ft,maxWidth:ut,minHeight:mt,minWidth:dt,mixBlendMode:Ao,objectFit:io,objectPosition:so,opacity:Ir,orphans:Mo,outline:hr,outlineColor:Sr,outlineOffset:wr,outlineStyle:Pr,outlineWidth:br,overflow:to,overflowWrap:Ve,overflowX:ro,overflowY:oo,padding:Ke,paddingBottom:rt,paddingLeft:ot,paddingRight:tt,paddingTop:et,pageBreakAfter:Wo,pageBreakBefore:Io,pageBreakInside:Fo,perspective:zr,perspectiveOrigin:Gr,pointerEvents:Co,position:Ze,quotes:ho,resize:vo,right:xt,scrollBehavior:ko,tableLayout:go,textAlign:Ee,textAlignLast:_e,textDecoration:Le,textDecorationColor:Ue,textDecorationLine:qe,textDecorationStyle:Je,textDecorationThickness:Xe,textIndent:je,textJustify:He,textOverflow:Me,textShadow:Oe,textTransform:Ne,textUnderlineOffset:Ye,top:gt,transform:Mr,transformOrigin:Or,transformStyle:$r,transition:Wr,transitionDelay:jr,transitionDuration:Dr,transitionProperty:Fr,transitionTimingFunction:Nr,userSelect:wo,verticalAlign:Qe,visibility:no,whiteSpace:$e,widows:Oo,width:ct,willChange:Eo,wordSpacing:ze,wordWrap:Ge,zIndex:Pt});function Zo(){if(G(),"undefined"!=typeof globalThis){const e=globalThis;e.list=U,e.update=ne,e.when=te,e.on=ie,e.render=se;for(const[t,r]of Object.entries(Qo))try{e[t]=r}catch(e){}}}"undefined"!=typeof globalThis&&Zo(),exports.HTML_TAGS=$,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=z,exports.StyleBuilder=fe,exports.accentColor=ve,exports.alignContent=Lt,exports.alignItems=wt,exports.alignSelf=Et,exports.animation=_r,exports.animationDelay=Jr,exports.animationDirection=Yr,exports.animationDuration=qr,exports.animationFillMode=Qr,exports.animationIterationCount=Xr,exports.animationName=Hr,exports.animationPlayState=Zr,exports.animationTimingFunction=Ur,exports.appearance=So,exports.appendChildren=function(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!l)return null;try{return document.createTextNode(String(e))}catch(e){return s("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return s("Failed to append child node",e),!1}}(e,r)}}),e):e},exports.applyAttributes=k,exports.applyNodeModifier=A,exports.backdropFilter=eo,exports.backfaceVisibility=Vr,exports.backgroundAttachment=Br,exports.backgroundClip=Ar,exports.backgroundColor=Cr,exports.backgroundImage=vr,exports.backgroundOrigin=Er,exports.backgroundPosition=Rr,exports.backgroundRepeat=kr,exports.backgroundSize=Tr,exports.bg=we,exports.bold=Ie,exports.border=Ut,exports.borderBottom=Yt,exports.borderBottomColor=dr,exports.borderBottomLeftRadius=gr,exports.borderBottomRightRadius=xr,exports.borderBottomStyle=ar,exports.borderBottomWidth=or,exports.borderCollapse=uo,exports.borderColor=er,exports.borderLeft=Qt,exports.borderLeftColor=ur,exports.borderLeftStyle=lr,exports.borderLeftWidth=nr,exports.borderRadius=mr,exports.borderRight=Xt,exports.borderRightColor=pr,exports.borderRightStyle=sr,exports.borderRightWidth=rr,exports.borderSpacing=mo,exports.borderStyle=Kt,exports.borderTop=Jt,exports.borderTopColor=cr,exports.borderTopLeftRadius=fr,exports.borderTopRightRadius=yr,exports.borderTopStyle=ir,exports.borderTopWidth=tr,exports.borderWidth=Zt,exports.bottom=ht,exports.boxShadow=Lr,exports.boxSizing=yt,exports.breakAfter=No,exports.breakBefore=Do,exports.breakInside=jo,exports.captionSide=fo,exports.center=vt,exports.clip=Ro,exports.clipPath=To,exports.color=Ce,exports.columnCount=$o,exports.columnFill=zo,exports.columnGap=Go,exports.columnRule=Vo,exports.columnRuleColor=_o,exports.columnRuleStyle=Ho,exports.columnRuleWidth=qo,exports.columnSpan=Uo,exports.columnWidth=Jo,exports.columns=Xo,exports.contain=Lo,exports.content=xo,exports.counterIncrement=Po,exports.counterReset=bo,exports.createBreakpoints=ye,exports.createCSSClass=ge,exports.createComment=d,exports.createConditionalComment=u,exports.createElementFactory=M,exports.createElementWithModifiers=D,exports.createTagBuilder=O,exports.cursor=Yo,exports.display=be,exports.emptyCells=yo,exports.filter=Kr,exports.flex=Pe,exports.flexBasis=At,exports.flexDirection=St,exports.flexGrow=Tt,exports.flexShrink=Bt,exports.flexWrap=Rt,exports.fontFamily=Te,exports.fontSize=ke,exports.fontStretch=De,exports.fontStyle=We,exports.fontVariant=Fe,exports.fontWeight=Re,exports.gap=kt,exports.grid=Se,exports.gridArea=Vt,exports.gridAutoColumns=_t,exports.gridAutoFlow=qt,exports.gridAutoRows=Ht,exports.gridColumn=jt,exports.gridColumnEnd=$t,exports.gridColumnStart=Ot,exports.gridRow=Mt,exports.gridRowEnd=Gt,exports.gridRowStart=zt,exports.gridTemplateAreas=Nt,exports.gridTemplateColumns=Ft,exports.gridTemplateRows=Dt,exports.height=pt,exports.initializeRuntime=Zo,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=l,exports.isFunction=n,exports.isNode=t,exports.isObject=r,exports.isPrimitive=e,exports.isTagLike=o,exports.isZeroArityFunction=i,exports.isolation=Bo,exports.justifyContent=Ct,exports.justifyItems=Wt,exports.justifySelf=It,exports.left=bt,exports.letterSpacing=Ae,exports.lineHeight=Be,exports.list=U,exports.listStyle=ao,exports.listStyleImage=po,exports.listStylePosition=co,exports.listStyleType=lo,exports.margin=nt,exports.marginBottom=at,exports.marginLeft=lt,exports.marginRight=st,exports.marginTop=it,exports.maxHeight=ft,exports.maxWidth=ut,exports.minHeight=mt,exports.minWidth=dt,exports.mixBlendMode=Ao,exports.objectFit=io,exports.objectPosition=so,exports.on=ie,exports.opacity=Ir,exports.orphans=Mo,exports.outline=hr,exports.outlineColor=Sr,exports.outlineOffset=wr,exports.outlineStyle=Pr,exports.outlineWidth=br,exports.overflow=to,exports.overflowWrap=Ve,exports.overflowX=ro,exports.overflowY=oo,exports.padding=Ke,exports.paddingBottom=rt,exports.paddingLeft=ot,exports.paddingRight=tt,exports.paddingTop=et,exports.pageBreakAfter=Wo,exports.pageBreakBefore=Io,exports.pageBreakInside=Fo,exports.perspective=zr,exports.perspectiveOrigin=Gr,exports.pointerEvents=Co,exports.position=Ze,exports.quotes=ho,exports.registerGlobalTagBuilders=G,exports.render=se,exports.replaceNodeSafely=x,exports.resize=vo,exports.right=xt,exports.scrollBehavior=ko,exports.tableLayout=go,exports.textAlign=Ee,exports.textAlignLast=_e,exports.textDecoration=Le,exports.textDecorationColor=Ue,exports.textDecorationLine=qe,exports.textDecorationStyle=Je,exports.textDecorationThickness=Xe,exports.textIndent=je,exports.textJustify=He,exports.textOverflow=Me,exports.textShadow=Oe,exports.textTransform=Ne,exports.textUnderlineOffset=Ye,exports.top=gt,exports.transform=Mr,exports.transformOrigin=Or,exports.transformStyle=$r,exports.transition=Wr,exports.transitionDelay=jr,exports.transitionDuration=Dr,exports.transitionProperty=Fr,exports.transitionTimingFunction=Nr,exports.update=ne,exports.userSelect=wo,exports.verticalAlign=Qe,exports.visibility=no,exports.when=te,exports.whiteSpace=$e,exports.widows=Oo,exports.width=ct,exports.willChange=Eo,exports.wordSpacing=ze,exports.wordWrap=Ge,exports.zIndex=Pt;
|
|
2
2
|
//# sourceMappingURL=nuclo.cjs.map
|