lyco 1.2.5 → 1.2.7

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.
Files changed (49) hide show
  1. package/dist/index.cjs.js +311 -170
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +421 -280
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/types/components/AbsoluteBox.d.ts +4 -3
  6. package/dist/types/components/AcrylicBar.d.ts +2 -1
  7. package/dist/types/components/AspectRatio.d.ts +2 -1
  8. package/dist/types/components/AutoFitGrid.d.ts +3 -1
  9. package/dist/types/components/AvatarStack.d.ts +3 -1
  10. package/dist/types/components/Badge.d.ts +2 -1
  11. package/dist/types/components/Canvas.d.ts +13 -0
  12. package/dist/types/components/Card.d.ts +2 -1
  13. package/dist/types/components/Center.d.ts +3 -1
  14. package/dist/types/components/Column.d.ts +7 -1
  15. package/dist/types/components/ColumnSplit.d.ts +3 -1
  16. package/dist/types/components/Container.d.ts +2 -1
  17. package/dist/types/components/Divider.d.ts +2 -0
  18. package/dist/types/components/Flex.d.ts +2 -1
  19. package/dist/types/components/FlowItem.d.ts +8 -2
  20. package/dist/types/components/FooterLayout.d.ts +2 -1
  21. package/dist/types/components/ForEach.d.ts +3 -0
  22. package/dist/types/components/Grid.d.ts +3 -1
  23. package/dist/types/components/GridBreakpoint.d.ts +2 -1
  24. package/dist/types/components/GridCol.d.ts +3 -1
  25. package/dist/types/components/GridItem.d.ts +3 -1
  26. package/dist/types/components/GridRow.d.ts +3 -1
  27. package/dist/types/components/HeroSection.d.ts +3 -1
  28. package/dist/types/components/Hidden.d.ts +2 -1
  29. package/dist/types/components/LightboxContainer.d.ts +3 -1
  30. package/dist/types/components/List.d.ts +15 -0
  31. package/dist/types/components/ListGroup.d.ts +3 -1
  32. package/dist/types/components/Overlay.d.ts +3 -1
  33. package/dist/types/components/PositionContainer.d.ts +3 -1
  34. package/dist/types/components/Row.d.ts +3 -1
  35. package/dist/types/components/RowSplit.d.ts +3 -1
  36. package/dist/types/components/ScrollBar.d.ts +3 -1
  37. package/dist/types/components/SideBarContainer.d.ts +3 -1
  38. package/dist/types/components/SizedBox.d.ts +2 -0
  39. package/dist/types/components/SkeletonLoader.d.ts +2 -0
  40. package/dist/types/components/Spacer.d.ts +4 -1
  41. package/dist/types/components/Sticky.d.ts +2 -1
  42. package/dist/types/components/Swiper.d.ts +2 -0
  43. package/dist/types/components/Table.d.ts +2 -1
  44. package/dist/types/components/WaterFlow.d.ts +2 -1
  45. package/dist/types/components/Wrap.d.ts +2 -1
  46. package/dist/types/components/ZStack.d.ts +2 -1
  47. package/dist/types/components/core.d.ts +30 -11
  48. package/dist/types/components/index.d.ts +3 -0
  49. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,224 +1,283 @@
1
- import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``}function n(n,r){let i=r??(e=>e);if(n===void 0)return e``;if(Array.isArray(n))return n.map((e,n)=>i(t(e),n,!0,!1));if(typeof n!=`function`)return i(t(n),void 0,!1,!1);let a=n();return Array.isArray(a)?a.map((e,n)=>i(t(e),n,!0,!1)):i(t(a),void 0,!1,!0)}function r(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function i(e,n){let r=n??(e=>e),i=e=>r(t(e));return e?i(e):i}function a(e,t,r){let i=t??(e=>e),a=e=>i(n(e,r));return e?a(e):a}const o=e=>({init:!1,prefix:e,className:`___LYCO_NULL___`}),s={"GridBreakpoint::grid-breakpoint":o(`grid-breakpoint`),"Hidden::hidden-container":o(`hidden-container`),"ListGroup::list-group":o(`list-group`),"ScrollBar::scrollbar-container":o(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":o(`skeleton-shimmer`),"Swiper::swiper":o(`swiper`),"Table::table":o(`table`),"WaterFlow::waterflow":o(`waterflow`),"AutoFitGrid::auto-fit-grid":o(`auto-fit-grid`),"GridCol::grid-col":o(`grid-col`),"GridRow::grid-row":o(`grid-row`)};function c(e){let t=s[e];return t.init||(s[e].init=!0,s[e].className=r(t.prefix)),s[e].className===`___LYCO_NULL___`?r(t.prefix):s[e].className}const l={all:{value:0}};function u(e){var t;return(t=l[e])?.value||(l[e]={value:0}),l[e].value}function d(t,n){return l.all={value:l.all.value+1},l[t]===void 0?l[t]={value:0}:l[t].value=l[t].value+1,console.debug(`LycoComponent: ${t} - ${l[t].value} - ${l.all.value}`),e`
2
- <!-- ${t} - ${l[t].value} -->
1
+ import{html as e}from"lit";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const t=globalThis,n=t.trustedTypes,r=n?n.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,i=`$lit$`,a=`lit$${Math.random().toFixed(9).slice(2)}$`,o=`?`+a,s=`<${o}>`,c=document,l=()=>c.createComment(``),u=e=>e===null||typeof e!=`object`&&typeof e!=`function`,d=Array.isArray,f=e=>d(e)||typeof e?.[Symbol.iterator]==`function`,p=`[
8
+ \f\r]`,m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h=/-->/g,g=/>/g,_=RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),v=/'/g,y=/"/g,b=/^(?:script|style|textarea|title)$/i,x=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),ee=x(1),S=x(2),C=x(3),w=Symbol.for(`lit-noChange`),T=Symbol.for(`lit-nothing`),E=new WeakMap,D=c.createTreeWalker(c,129);function O(e,t){if(!d(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return r===void 0?t:r.createHTML(t)}const k=(e,t)=>{let n=e.length-1,r=[],o,c=t===2?`<svg>`:t===3?`<math>`:``,l=m;for(let t=0;t<n;t++){let n=e[t],u,d,f=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m?d[1]===`!--`?l=h:d[1]===void 0?d[2]===void 0?d[3]!==void 0&&(l=_):(b.test(d[2])&&(o=RegExp(`</`+d[2],`g`)),l=_):l=g:l===_?d[0]===`>`?(l=o??m,f=-1):d[1]===void 0?f=-2:(f=l.lastIndex-d[2].length,u=d[1],l=d[3]===void 0?_:d[3]===`"`?y:v):l===y||l===v?l=_:l===h||l===g?l=m:(l=_,o=void 0);let x=l===_&&e[t+1].startsWith(`/>`)?` `:``;c+=l===m?n+s:f>=0?(r.push(u),n.slice(0,f)+i+n.slice(f)+a+x):n+a+(f===-2?t:x)}return[O(e,c+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var A=class e{constructor({strings:t,_$litType$:r},s){let c;this.parts=[];let u=0,d=0,f=t.length-1,p=this.parts,[m,h]=k(t,r);if(this.el=e.createElement(m,s),D.currentNode=this.el.content,r===2||r===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(c=D.nextNode())!==null&&p.length<f;){if(c.nodeType===1){if(c.hasAttributes())for(let e of c.getAttributeNames())if(e.endsWith(i)){let t=h[d++],n=c.getAttribute(e).split(a),r=/([.?@])?(.*)/.exec(t);p.push({type:1,index:u,name:r[2],strings:n,ctor:r[1]===`.`?F:r[1]===`?`?I:r[1]===`@`?L:P}),c.removeAttribute(e)}else e.startsWith(a)&&(p.push({type:6,index:u}),c.removeAttribute(e));if(b.test(c.tagName)){let e=c.textContent.split(a),t=e.length-1;if(t>0){c.textContent=n?n.emptyScript:``;for(let n=0;n<t;n++)c.append(e[n],l()),D.nextNode(),p.push({type:2,index:++u});c.append(e[t],l())}}}else if(c.nodeType===8)if(c.data===o)p.push({type:2,index:u});else{let e=-1;for(;(e=c.data.indexOf(a,e+1))!==-1;)p.push({type:7,index:u}),e+=a.length-1}u++}}static createElement(e,t){let n=c.createElement(`template`);return n.innerHTML=e,n}};function j(e,t,n=e,r){var i,a;if(t===w)return t;let o=r===void 0?n._$Cl:(i=n._$Co)?.[r],s=u(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o==null||(a=o._$AO)==null||a.call(o,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:(n._$Co??=[])[r]=o),o!==void 0&&(t=j(e,o._$AS(e,t.values),o,r)),t}var M=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??c).importNode(t,!0);D.currentNode=r;let i=D.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new N(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new R(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=D.nextNode(),a++)}return D.currentNode=c,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},N=class e{get _$AU(){var e;return(e=this._$AM)?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=j(this,e,t),u(e)?e===T||e==null||e===``?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==w&&this._(e):e._$litType$===void 0?e.nodeType===void 0?f(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=A.createElement(O(r.h,r.h[0]),this.options)),r);if((t=this._$AH)?._$AD===i)this._$AH.p(n);else{let e=new M(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=E.get(e.strings);return t===void 0&&E.set(e.strings,t=new A(e)),t}k(t){d(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(l()),this.O(l()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)?.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)?.call(this,e))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=j(this,e,t,0),a=!u(e)||e!==this._$AH&&e!==w,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=j(this,r[n+o],t,o),s===w&&(s=this._$AH[o]),a||=!u(s)||s!==this._$AH[o],s===T?e=T:e!==T&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},F=class extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},I=class extends P{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},L=class extends P{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=j(this,e,t,0)??T)===w)return;let n=this._$AH,r=e===T&&n!==T||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==T&&(n===T||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH==`function`?this._$AH.call((t=this.options)?.host??this.element,e):this._$AH.handleEvent(e)}},R=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e)}};const te={M:i,P:a,A:o,C:1,L:k,R:M,D:f,V:j,I:N,H:P,N:I,U:L,B:F,F:R},ne=t.litHtmlPolyfillSupport;ne?.(A,N),(t.litHtmlVersions??=[]).push(`3.3.0`);
9
+ /**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */
14
+ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML:1,SVG:2,MATHML:3},oe=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,se=e=>{var t;return(e==null||(t=e._$litType$)==null?void 0:t.h)!=null},ce=e=>e?._$litDirective$!==void 0,le=e=>e?._$litDirective$,ue=e=>e.strings===void 0,de=()=>document.createComment(``),fe=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0){let t=r.insertBefore(de(),i),a=r.insertBefore(de(),i);n=new re(t,a,e,e.options)}else{let t=n._$AB.nextSibling,o=n._$AM,s=o!==e;if(s){var a;let t;(a=n._$AQ)?.call(n,e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==o._$AU&&n._$AP(t)}if(t!==i||s){let e=n._$AA;for(;e!==t;){let t=e.nextSibling;r.insertBefore(e,i),e=t}}}return n},pe=(e,t,n=e)=>(e._$AI(t,n),e),me={},he=(e,t=me)=>e._$AH=t,ge=e=>e._$AH,_e=e=>{var t;(t=e._$AP)?.call(e,!1,!0);let n=e._$AA,r=e._$AB.nextSibling;for(;n!==r;){let e=n.nextSibling;n.remove(),n=e}},ve=e=>{e._$AR()},ye={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},be=e=>(...t)=>({_$litDirective$:e,values:t});var xe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
15
+ /**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const z=(e,t)=>{var n;let r=e._$AN;if(r===void 0)return!1;for(let e of r)(n=e._$AO)?.call(e,t,!1),z(e,t);return!0},B=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Se=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Te(t)}};function Ce(e){this._$AN===void 0?this._$AM=e:(B(this),this._$AM=e,Se(this))}function we(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)z(r[e],!1),B(r[e]);else r!=null&&(z(r,!1),B(r));else z(this,e)}const Te=e=>{e.type==ye.CHILD&&(e._$AP??=we,e._$AQ??=Ce)};var Ee=class extends xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Se(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)?.call(this):(r=this.disconnected)?.call(this)),t&&(z(this,e),B(this))}setValue(e){if(ue(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};
20
+ /**
21
+ * @license
22
+ * Copyright 2020 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */const De=()=>new Oe;var Oe=class{};const V=new WeakMap,H=be(class extends Ee{render(e){return T}update(e,[t]){var n;let r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)?.host,this.rt(this.ct=e.element)),T}rt(e){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=V.get(t);n===void 0&&(n=new WeakMap,V.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G==`function`?(e=V.get(this.ht??globalThis))?.get(this.G):(t=this.G)?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),ke=Symbol(`___LYCO_NULL___`);function U(t){return t?typeof t==`function`?t():t:e``}function W(t,n){let r=n??(e=>e);if(t===void 0)return e``;if(Array.isArray(t))return t.map((e,t)=>r(U(e),t,!0,!1));if(typeof t!=`function`)return r(U(t),void 0,!1,!1);let i=t();return Array.isArray(i)?i.map((e,t)=>r(U(e),t,!0,!1)):r(U(i),void 0,!1,!0)}function Ae(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function je(e,t){let n=t??(e=>e),r=e=>n(U(e));return e?r(e):r}function Me(e,t,n){let r=t??(e=>e),i=e=>r(W(e,n));return e?i(e):i}const G=e=>({init:!1,prefix:e,className:ke}),K={"GridBreakpoint::grid-breakpoint":G(`grid-breakpoint`),"Hidden::hidden-container":G(`hidden-container`),"ListGroup::list-group":G(`list-group`),"ScrollBar::scrollbar-container":G(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":G(`skeleton-shimmer`),"Swiper::swiper":G(`swiper`),"Table::table":G(`table`),"WaterFlow::waterflow":G(`waterflow`),"AutoFitGrid::auto-fit-grid":G(`auto-fit-grid`),"GridCol::grid-col":G(`grid-col`),"GridRow::grid-row":G(`grid-row`),"List::list":G(`list`)};function q(e){let t=K[e];return t.init||(K[e].init=!0,K[e].className=Ae(t.prefix)),K[e].className===ke?Ae(t.prefix):K[e].className}const J={all:{value:0}};function Y(e){var t;return(t=J[e])?.value||(J[e]={value:0}),J[e].value}function X(t,n){return J.all={value:J.all.value+1},J[t]===void 0?J[t]={value:0}:J[t].value=J[t].value+1,e`
25
+ <!-- ${t} - ${J[t].value} -->
3
26
  ${n}
4
- `}function f(n,r){if(r===void 0){let t=t=>f(n,t??e``);return t.html=(t,...r)=>f(n,e(t,...r)),t}let i=n?.fadeBg??`rgba(0,0,0,0.7)`,a=n?.zIndex??2e3;return e`
27
+ `}function Ne(e,t,n){t.forEach(([t,r])=>{n.has(t)&&e.removeEventListener(t,n.get(t));let i,a;typeof r==`function`?(i=r,a=void 0):(i=r.handler,a=r.options);let o=e=>i(e);e.addEventListener(t,o,a),n.set(t,o)})}function Z(e){let t=new Map,n=Object.entries(e);return{bind(e){Ne(e,n,t)},unbindAll(){t.clear()},auto(e){e?this.bind(e):this.unbindAll()}}}function Q(t,n){if(n===void 0){let n=n=>Q(t,n??e``);return n.html=(n,...r)=>Q(t,e(n,...r)),n}let r=t?.fadeBg??`rgba(0,0,0,0.7)`,i=t?.zIndex??2e3,a=Z(t?.on??{});return e`
5
28
  <div
29
+ ${H(e=>{e?a.bind(e):a.unbindAll()})}
6
30
  style="
7
- position: fixed;
8
- top: 0; left: 0; right: 0; bottom: 0;
9
- background: ${i};
10
- z-index: ${a};
11
- display: flex;
12
- justify-content: center;
13
- align-items: center;
14
- "
31
+ position: fixed;
32
+ top: 0; left: 0; right: 0; bottom: 0;
33
+ background: ${r};
34
+ z-index: ${i};
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ "
15
39
  >
16
- ${t(r)}
40
+ ${U(n)}
17
41
  </div>
18
- `}function p(t,r){return r===void 0?n=>p(t,n??[e``]):e`
42
+ `}function Pe(t,n){let r=Z(t?.on??{});return n===void 0?n=>Pe(t,n??[e``]):e`
19
43
  <div
44
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
45
+ .class="${t?.className}"
20
46
  style="
21
47
  display: flex;
22
48
  flex-direction: column;
23
49
  ${t?.space?`gap: ${t.space};`:``}
50
+ ${t?.style??``}
24
51
  "
25
52
  >
26
- ${n(r)}
53
+ ${W(n)}
27
54
  </div>
28
- `}function m(n,r){if(r===void 0){let t=t=>m(n,t??e``);return t.html=(t,...r)=>m(n,e(t,...r)),t}let i=n?.direction??`row`;return e`
55
+ `}function $(t,n){if(n===void 0){let n=n=>$(t,n??e``);return n.html=(n,...r)=>$(t,e(n,...r)),n}let r=t?.direction??`row`,i=Z(t?.on??{});return e`
29
56
  <div
57
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
30
58
  style="
31
- display: flex;
32
- flex-direction: ${i};
33
- ${n?.justify?`justify-content: ${n.justify};`:``}
34
- ${n?.align?`align-items: ${n.align};`:``}
35
- ${n?.gap?`gap: ${n.gap};`:``}
36
- "
59
+ display: flex;
60
+ flex-direction: ${r};
61
+ ${t?.justify?`justify-content: ${t.justify};`:``}
62
+ ${t?.align?`align-items: ${t.align};`:``}
63
+ ${t?.gap?`gap: ${t.gap};`:``}
64
+ "
37
65
  >
38
- ${t(r)}
66
+ ${U(n)}
39
67
  </div>
40
- `}function h(n){return e`
41
- <div style="break-inside: avoid; margin-bottom: 16px;">
42
- ${t(n)}
68
+ `}function Fe(t,n){if(n===void 0){let n=n=>Fe(t,n??e``);return n.html=(n,...r)=>Fe(t,e(n,...r)),n}let r=Z(t?.on??{});return e`
69
+ <div
70
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
71
+ style="break-inside: avoid; margin-bottom: 16px;"
72
+ >
73
+ ${U(n)}
43
74
  </div>
44
- `}function g(t,r){if(r===void 0)return n=>g(t,n??[e``]);let i=t?.columns??1;return e`
75
+ `}function Ie(t,n){if(n===void 0)return n=>Ie(t,n??[e``]);let r=t?.columns??1,i=Z(t?.on??{});return e`
45
76
  <div
77
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
46
78
  style="
47
- display: grid;
48
- grid-template-columns: repeat(${i}, 1fr);
49
- ${t?.gap?`gap: ${t.gap};`:``}
50
- "
79
+ display: grid;
80
+ grid-template-columns: repeat(${r}, 1fr);
81
+ ${t?.gap?`gap: ${t.gap};`:``}
82
+ "
51
83
  >
52
- ${n(r)}
84
+ ${W(n)}
53
85
  </div>
54
- `}function _(n,r){if(r===void 0){let t=t=>_(n,t??e``);return t.html=(t,...r)=>_(n,e(t,...r)),t}let i=u(`GridCol`),a=c(`GridCol::grid-col`)+`-lyco-now-`+i,o=n?.gap?`column-gap: ${n.gap};`:``,s=`
55
- .${a} {
86
+ `}function Le(t,n){if(n===void 0){let n=n=>Le(t,n??e``);return n.html=(n,...r)=>Le(t,e(n,...r)),n}let r=Y(`GridCol`),i=q(`GridCol::grid-col`)+`-lyco-now-`+r,a=t?.gap?`column-gap: ${t.gap};`:``,o=`
87
+ .${i} {
56
88
  display: grid;
57
89
  grid-auto-flow: column;
58
- ${o}
90
+ ${a}
59
91
  }
60
- `;return d(`GridCol`,e`
92
+ `,s=Z(t?.on??{});return X(`GridCol`,e`
61
93
  <style>
62
- ${s}
94
+ ${o}
63
95
  </style>
64
- <div class="${a}">${t(r)}</div>
65
- `)}function v(n,r){if(r===void 0){let t=t=>v(n,t??e``);return t.html=(t,...r)=>v(n,e(t,...r)),t}return e`
66
- <div style="${n?.span?`grid-column: span ${n.span};`:``}">
67
- ${t(r)}
96
+ <div
97
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
98
+ class="${i}"
99
+ >
100
+ ${U(n)}
101
+ </div>
102
+ `)}function Re(t,n){if(n===void 0){let n=n=>Re(t,n??e``);return n.html=(n,...r)=>Re(t,e(n,...r)),n}let r=Z(t?.on??{});return e`
103
+ <div
104
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
105
+ style="${t?.span?`grid-column: span ${t.span};`:``}"
106
+ >
107
+ ${U(n)}
68
108
  </div>
69
- `}function y(n,r){if(r===void 0){let t=t=>y(n,t??e``);return t.html=(t,...r)=>y(n,e(t,...r)),t}let i=u(`GridRow`),a=c(`GridRow::grid-row`)+`-lyco-now-`+i,o=n?.gap?`row-gap: ${n.gap};`:``,s=`
70
- .${a} {
109
+ `}function ze(t,n){if(n===void 0){let n=n=>ze(t,n??e``);return n.html=(n,...r)=>ze(t,e(n,...r)),n}let r=Y(`GridRow`),i=q(`GridRow::grid-row`)+`-lyco-now-`+r,a=t?.gap?`row-gap: ${t.gap};`:``,o=`
110
+ .${i} {
71
111
  display: grid;
72
112
  grid-auto-flow: row;
73
- ${o}
113
+ ${a}
74
114
  }
75
- `;return d(`GridRow`,e`
115
+ `,s=Z(t?.on??{});return X(`GridRow`,e`
76
116
  <style>
77
- ${s}
117
+ ${o}
78
118
  </style>
79
- <div class="${a}">${t(r)}</div>
80
- `)}function b(t,r){return r===void 0?n=>b(t,n??[e``]):e`
119
+ <div
120
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
121
+ class="${i}"
122
+ >
123
+ ${U(n)}
124
+ </div>
125
+ `)}function Be(t,n){if(n===void 0)return n=>Be(t,n??[e``]);let r=Z(t?.on??{});return e`
81
126
  <div
127
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
82
128
  style="
83
- display: flex;
84
- flex-direction: row;
85
- ${t?.space?`gap: ${t.space};`:``}
86
- "
129
+ display: flex;
130
+ flex-direction: row;
131
+ ${t?.space?`gap: ${t.space};`:``}
132
+ "
87
133
  >
88
- ${n(r)}
134
+ ${W(n)}
89
135
  </div>
90
- `}function x(n,r){if(r===void 0){let t=t=>x(n,t??e``);return t.html=(t,...r)=>x(n,e(t,...r)),t}let i=n?.columnCount??3,a=n?.gap??`16px`,o=u(`WaterFlow`),s=c(`WaterFlow::waterflow`)+`-lyco-now-${o}`,l=`
136
+ `}function Ve(t,n){if(n===void 0){let n=n=>Ve(t,n??e``);return n.html=(n,...r)=>Ve(t,e(n,...r)),n}let r=t?.columnCount??3,i=t?.gap??`16px`,a=Y(`WaterFlow`),o=q(`WaterFlow::waterflow`)+`-lyco-now-${a}`,s=`
91
137
  /* 使用 CSS 类来控制多列布局 */
92
- .${s} {
93
- column-count: ${i};
94
- column-gap: ${typeof a==`number`?`${a}px`:a};
138
+ .${o} {
139
+ column-count: ${r};
140
+ column-gap: ${typeof i==`number`?`${i}px`:i};
95
141
  }
96
142
  /* 子元素如果是块级元素,需要让它们适应多列流式布局 */
97
- .${s} > * {
143
+ .${o} > * {
98
144
  display: inline-block;
99
145
  width: 100%;
100
146
  }
101
- `;return d(`WaterFlow`,e`
147
+ `,c=Z(t?.on??{});return X(`WaterFlow`,e`
102
148
  <style>
103
- ${l}
149
+ ${s}
104
150
  </style>
105
151
 
106
- <div class="${s}">${t(r)}</div>
107
- `)}function S(n,r){if(r===void 0){let t=t=>S(n,t??e``);return t.html=(t,...r)=>S(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstHeight??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
152
+ <div
153
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
154
+ class="${o}"
155
+ >
156
+ ${U(n)}
157
+ </div>
158
+ `)}function He(t,n){if(n===void 0){let n=n=>He(t,n??e``);return n.html=(n,...r)=>He(t,e(n,...r)),n}let r=t?.gap??`0px`,i=t?.firstHeight??`50%`,a=e``,o=e``;if(typeof n==`function`){var s;let t=(s=n.call)?.call(n,null)??[];a=t[0]??e``,o=t[1]??e``}else a=U(n);let c=Z(t?.on??{});return e`
108
159
  <div
160
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
109
161
  style="
110
- display: flex;
111
- flex-direction: column;
112
- width: 100%;
113
- height: 100%;
114
- gap: ${i};
115
- "
162
+ display: flex;
163
+ flex-direction: column;
164
+ width: 100%;
165
+ height: 100%;
166
+ gap: ${r};
167
+ "
116
168
  >
117
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
118
- <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
169
+ <div style="flex: 0 0 ${i}; overflow: auto;">${a}</div>
170
+ <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
119
171
  </div>
120
- `}function C(n,r){if(r===void 0){let t=t=>C(n,t??e``);return t.html=(t,...r)=>C(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstWidth??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
172
+ `}function Ue(t,n){if(n===void 0){let n=n=>Ue(t,n??e``);return n.html=(n,...r)=>Ue(t,e(n,...r)),n}let r=t?.gap??`0px`,i=t?.firstWidth??`50%`,a=e``,o=e``;if(typeof n==`function`){var s;let t=(s=n.call)?.call(n,null)??[];a=t[0]??e``,o=t[1]??e``}else a=U(n);let c=Z(t?.on??{});return e`
121
173
  <div
174
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
122
175
  style="
123
176
  display: flex;
124
177
  flex-direction: row;
125
178
  width: 100%;
126
179
  height: 100%;
127
- gap: ${i};
180
+ gap: ${r};
128
181
  "
129
182
  >
130
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
131
- <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
183
+ <div style="flex: 0 0 ${i}; overflow: auto;">${a}</div>
184
+ <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
132
185
  </div>
133
- `}function w(n,r){if(r===void 0){let t=t=>w(n,t??e``);return t.html=(t,...r)=>w(n,e(t,...r)),t}let i=n?.direction??`vertical`,a=n?.height??`100%`,o=n?.width??`100%`,s=n?.customCss??``,l=u(`ScrollBar`),f=n?.className??c(`ScrollBar::scrollbar-container`)+`-lyco-now-`+l,p=i===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,m=`
134
- .${f} {
135
- ${p};
136
- width: ${o};
137
- height: ${a};
186
+ `}function We(t,n){if(n===void 0){let n=n=>We(t,n??e``);return n.html=(n,...r)=>We(t,e(n,...r)),n}let r=t?.direction??`vertical`,i=t?.height??`100%`,a=t?.width??`100%`,o=t?.customCss??``,s=Y(`ScrollBar`),c=t?.className??q(`ScrollBar::scrollbar-container`)+`-lyco-now-`+s,l=r===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,u=`
187
+ .${c} {
188
+ ${l};
189
+ width: ${a};
190
+ height: ${i};
138
191
  }
139
- .${f}::-webkit-scrollbar {
192
+ .${c}::-webkit-scrollbar {
140
193
  width: 8px;
141
194
  height: 8px;
142
195
  }
143
- .${f}::-webkit-scrollbar-thumb {
196
+ .${c}::-webkit-scrollbar-thumb {
144
197
  background-color: rgba(0, 0, 0, 0.2);
145
198
  border-radius: 4px;
146
199
  }
147
- .${f}::-webkit-scrollbar-track {
200
+ .${c}::-webkit-scrollbar-track {
148
201
  background: rgba(0, 0, 0, 0.05);
149
202
  }
150
- ${s}
151
- `;return d(`ScrollBar`,e`
203
+ ${o}
204
+ `,d=Z(t?.on??{});return X(`ScrollBar`,e`
152
205
  <style>
153
- ${m}
206
+ ${u}
154
207
  </style>
155
- <div class="${f}">${t(r)}</div>
156
- `)}function T(t,r){if(r===void 0)return n=>T(t,n??[e``]);let i=t?.sidebarWidth??`240px`,a=t?.sidebarPosition??`left`,o=t?.gap??`0px`,s=e``,c=e``;if(typeof r==`function`){var l;let t=(l=r.call)?.call(r,null)??[];s=t[0]??e``,c=t[1]??e``}else c=n(r);return e`
208
+ <div
209
+ ${H(e=>{e?d.bind(e):d.unbindAll()})}
210
+ class="${c}"
211
+ >
212
+ ${U(n)}
213
+ </div>
214
+ `)}function Ge(t,n){if(n===void 0)return n=>Ge(t,n??[e``]);let r=t?.sidebarWidth??`240px`,i=t?.sidebarPosition??`left`,a=t?.gap??`0px`,o=e``,s=e``;if(typeof n==`function`){var c;let t=(c=n.call)?.call(n,null)??[];o=t[0]??e``,s=t[1]??e``}else s=W(n);let l=Z(t?.on??{});return e`
157
215
  <div
216
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
158
217
  style="
159
218
  display: flex;
160
- flex-direction: ${a===`left`?`row`:`row-reverse`};
219
+ flex-direction: ${i===`left`?`row`:`row-reverse`};
161
220
  width: 100%;
162
221
  height: 100%;
163
- gap: ${o};
222
+ gap: ${a};
164
223
  "
165
224
  >
166
- <div style="flex: 0 0 ${i}; overflow: auto;">${s}</div>
167
- <div style="flex: 1 1 auto; overflow: auto;">${c}</div>
225
+ <div style="flex: 0 0 ${r}; overflow: auto;">${o}</div>
226
+ <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
168
227
  </div>
169
- `}function E(t={},n){if(n===void 0)return n=>E(t,n??[e``]);let r=u(`Swiper`),{gap:i=`8px`,snapType:a=`mandatory`,height:o=`auto`,width:s=`100%`,className:l=c(`Swiper::swiper`)+`-lyco-now-${r}`,direction:f=`x`,scrollBehavior:p=`smooth`,align:m=`start`,showNavigation:h=!0,navigationPosition:g=`inside`,showPagination:_=!0,paginationType:v=`dots`,autoPlay:y=!1,interval:b=3e3,loop:x=!1,touchEnabled:S=!0,mouseWheel:C=!1,onSlideChange:w}=t,T=l,D=T+`-container`,O=T+`-slide`,k=T+`-navigation`,A=T+`-pagination`,j;j=n?typeof n==`function`?n():n:[];let M=j.length,[N,P]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,M-1));e.value!==n&&(e.value=n,w?.(n))}]})(),F=e=>{let t=typeof document<`u`?document.querySelector(`.${D}`):null;if(!t)return;let n=t.querySelectorAll(`.${O}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;f===`x`?(o=r.offsetLeft-t.offsetLeft,m===`center`?o-=(a.width-i.width)/2:m===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:p})):(o=r.offsetTop-t.offsetTop,m===`center`?o-=(a.height-i.height)/2:m===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:p})),P(e)},I=()=>{let e=N()+1>=M?x?0:N():N()+1;F(e)},L=()=>{let e=N()-1<0?x?M-1:N():N()-1;F(e)},R=()=>{let e=typeof document<`u`?document.querySelector(`.${D}`):null;if(!e)return;let t=e.querySelectorAll(`.${O}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(f===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),P(n)},z=e=>{if(!S)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},B=e=>{if(!S)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||f===`x`)&&e.preventDefault()},V=e=>{if(!S)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(f===`x`?a>0?L():I():o>0?L():I()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},H=e=>{C&&(e.preventDefault(),e.deltaY>0?I():L())},U=e=>{if(!y||!e)return;let t,n=()=>{t=setInterval(I,b)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},W=()=>{let e=typeof document<`u`?document.querySelector(`.${D}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,R),t.push(()=>e.removeEventListener(`scroll`,R)),S&&(e.addEventListener(`touchstart`,z),e.addEventListener(`touchmove`,B,{passive:!1}),e.addEventListener(`touchend`,V),t.push(()=>e.removeEventListener(`touchstart`,z)),t.push(()=>e.removeEventListener(`touchmove`,B)),t.push(()=>e.removeEventListener(`touchend`,V))),C&&(e.addEventListener(`wheel`,H,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,H)));let n=U(e);return n&&t.push(n),F(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(W,0);let G=e`
170
- <div class="${A}">
171
- ${Array.from({length:M},(t,n)=>e`
228
+ `}function Ke(t={},n){if(n===void 0)return n=>Ke(t,n??[e``]);let r=Y(`Swiper`),{gap:i=`8px`,snapType:a=`mandatory`,height:o=`auto`,width:s=`100%`,className:c=q(`Swiper::swiper`)+`-lyco-now-${r}`,direction:l=`x`,scrollBehavior:u=`smooth`,align:d=`start`,showNavigation:f=!0,navigationPosition:p=`inside`,showPagination:m=!0,paginationType:h=`dots`,autoPlay:g=!1,interval:_=3e3,loop:v=!1,touchEnabled:y=!0,mouseWheel:b=!1,onSlideChange:x,on:ee}=t,S=c,C=S+`-container`,w=S+`-slide`,T=S+`-navigation`,E=S+`-pagination`,D;D=n?typeof n==`function`?n():n:[];let O=D.length,[k,A]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,O-1));e.value!==n&&(e.value=n,x?.(n))}]})(),j=e=>{let t=typeof document<`u`?document.querySelector(`.${C}`):null;if(!t)return;let n=t.querySelectorAll(`.${w}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;l===`x`?(o=r.offsetLeft-t.offsetLeft,d===`center`?o-=(a.width-i.width)/2:d===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:u})):(o=r.offsetTop-t.offsetTop,d===`center`?o-=(a.height-i.height)/2:d===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:u})),A(e)},M=()=>{let e=k()+1>=O?v?0:k():k()+1;j(e)},N=()=>{let e=k()-1<0?v?O-1:k():k()-1;j(e)},P=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=e.querySelectorAll(`.${w}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(l===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),A(n)},F=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},I=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||l===`x`)&&e.preventDefault()},L=e=>{if(!y)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(l===`x`?a>0?N():M():o>0?N():M()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},R=e=>{b&&(e.preventDefault(),e.deltaY>0?M():N())},te=e=>{if(!g||!e)return;let t,n=()=>{t=setInterval(M,_)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},ne=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,P),t.push(()=>e.removeEventListener(`scroll`,P)),y&&(e.addEventListener(`touchstart`,F),e.addEventListener(`touchmove`,I,{passive:!1}),e.addEventListener(`touchend`,L),t.push(()=>e.removeEventListener(`touchstart`,F)),t.push(()=>e.removeEventListener(`touchmove`,I)),t.push(()=>e.removeEventListener(`touchend`,L))),b&&(e.addEventListener(`wheel`,R,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,R)));let n=te(e);return n&&t.push(n),j(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(ne,0);let re=e`
229
+ <div class="${E}">
230
+ ${Array.from({length:O},(t,n)=>e`
172
231
  <button
173
- class="${n===N()?`active`:``}"
174
- @click=${()=>F(n)}
232
+ class="${n===k()?`active`:``}"
233
+ @click=${()=>j(n)}
175
234
  ></button>
176
235
  `)}
177
236
  </div>
178
- `,K=e`
179
- <div class="${A} fraction">
180
- <span class="current">${N()+1}</span>
237
+ `,ie=e`
238
+ <div class="${E} fraction">
239
+ <span class="current">${k()+1}</span>
181
240
  <span class="separator">/</span>
182
- <span class="total">${M}</span>
241
+ <span class="total">${O}</span>
183
242
  </div>
184
- `,q=e`
185
- <div class="${A} progressbar">
243
+ `,ae=e`
244
+ <div class="${E} progressbar">
186
245
  <div
187
246
  class="progress"
188
- style="width: ${M>1?N()/(M-1)*100:0}%"
247
+ style="width: ${O>1?k()/(O-1)*100:0}%"
189
248
  ></div>
190
249
  </div>
191
- `,J=e`
192
- <div class="${k}">
193
- <button class="prev" @click=${L}>◀</button>
194
- <button class="next" @click=${I}>▶</button>
250
+ `,oe=e`
251
+ <div class="${T}">
252
+ <button class="prev" @click=${N}>◀</button>
253
+ <button class="next" @click=${M}>▶</button>
195
254
  </div>
196
- `,Y=`
197
- .${T} {
255
+ `,se=`
256
+ .${S} {
198
257
  position: relative;
199
258
  overflow: hidden;
200
259
  width: ${s};
201
260
  height: ${o};
202
261
  }
203
262
 
204
- .${D} {
263
+ .${C} {
205
264
  width: 100%;
206
265
  height: 100%;
207
266
  overflow: auto;
208
- scroll-snap-type: ${f+` `+a};
267
+ scroll-snap-type: ${l+` `+a};
209
268
  -webkit-overflow-scrolling: touch;
210
- scroll-behavior: ${p};
269
+ scroll-behavior: ${u};
211
270
  gap: ${i};
212
271
  display: flex;
213
- flex-direction: ${f===`x`?`row`:`column`};
272
+ flex-direction: ${l===`x`?`row`:`column`};
214
273
  }
215
274
 
216
- .${O} {
217
- scroll-snap-align: ${m};
275
+ .${w} {
276
+ scroll-snap-align: ${d};
218
277
  flex-shrink: 0;
219
278
  }
220
279
 
221
- .${k} {
280
+ .${T} {
222
281
  position: absolute;
223
282
  top: 50%;
224
283
  left: 0;
@@ -227,10 +286,10 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
227
286
  display: flex;
228
287
  justify-content: space-between;
229
288
  pointer-events: none;
230
- padding: ${g===`outside`?`0 1rem`:`0 0.5rem`};
289
+ padding: ${p===`outside`?`0 1rem`:`0 0.5rem`};
231
290
  }
232
291
 
233
- .${k} button {
292
+ .${T} button {
234
293
  width: 2.5rem;
235
294
  height: 2.5rem;
236
295
  border-radius: 50%;
@@ -245,11 +304,11 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
245
304
  transition: background-color 0.3s;
246
305
  }
247
306
 
248
- .${k} button:hover {
307
+ .${T} button:hover {
249
308
  background-color: rgba(0, 0, 0, 0.8);
250
309
  }
251
310
 
252
- .${A} {
311
+ .${E} {
253
312
  position: absolute;
254
313
  bottom: 1rem;
255
314
  left: 0;
@@ -259,7 +318,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
259
318
  gap: 0.5rem;
260
319
  align-items: center;
261
320
  }
262
- .${A} button {
321
+ .${E} button {
263
322
  width: 0.75rem;
264
323
  height: 0.75rem;
265
324
  border-radius: 50%;
@@ -268,12 +327,12 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
268
327
  cursor: pointer;
269
328
  transition: background-color 0.3s, transform 0.3s;
270
329
  }
271
- .${A} button.active {
330
+ .${E} button.active {
272
331
  background-color: white;
273
332
  transform: scale(1.2);
274
333
  }
275
334
 
276
- .${A}.fraction {
335
+ .${E}.fraction {
277
336
  position: absolute;
278
337
  bottom: 1rem;
279
338
  left: 50%;
@@ -285,7 +344,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
285
344
  gap: 0.25rem;
286
345
  }
287
346
 
288
- .${A}.progressbar {
347
+ .${E}.progressbar {
289
348
  position: absolute;
290
349
  bottom: 0.5rem;
291
350
  left: 0;
@@ -293,78 +352,84 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
293
352
  height: 0.25rem;
294
353
  background-color: rgba(255, 255, 255, 0.2);
295
354
  }
296
- .${A}.progressbar .progress {
355
+ .${E}.progressbar .progress {
297
356
  height: 100%;
298
357
  background-color: white;
299
358
  transition: width 0.3s;
300
359
  }
301
- `;return d(`Swiper`,e`
360
+ `,ce=Z(ee??{});return X(`Swiper`,e`
302
361
  <style>
303
- ${Y}
362
+ ${se}
304
363
  </style>
305
364
 
306
- <div class="${T}">
307
- <div class="${D}">
308
- ${j.map((t,n)=>e`
309
- <div class="${O} --slide-${n}" key=${n}>
365
+ <div
366
+ ${H(e=>{e?ce.bind(e):ce.unbindAll()})}
367
+ class="${S}"
368
+ >
369
+ <div class="${C}">
370
+ ${D.map((t,n)=>e`
371
+ <div class="${w} --slide-${n}" key=${n}>
310
372
  ${t}
311
373
  </div>
312
374
  `)}
313
375
  </div>
314
376
 
315
- ${h?J:null}
316
- ${_&&v===`dots`?G:null}
317
- ${_&&v===`fraction`?K:null}
318
- ${_&&v===`progressbar`?q:null}
377
+ ${f?oe:null}
378
+ ${m&&h===`dots`?re:null}
379
+ ${m&&h===`fraction`?ie:null}
380
+ ${m&&h===`progressbar`?ae:null}
319
381
  </div>
320
- `)}function D(n,r){let a=n?.top?`top: ${n.top};`:``,o=n?.right?`right: ${n.right};`:``,s=n?.bottom?`bottom: ${n.bottom};`:``,c=n?.left?`left: ${n.left};`:``,l=n?.width?`width: ${n.width};`:``,u=n?.height?`height: ${n.height};`:``,d=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``,f=n?.style?n.style:``,p=n?.className?n.className:``,m=n=>e`
382
+ `)}function qe(t,n){let r=t?.top?`top: ${t.top};`:``,i=t?.right?`right: ${t.right};`:``,a=t?.bottom?`bottom: ${t.bottom};`:``,o=t?.left?`left: ${t.left};`:``,s=t?.width?`width: ${t.width};`:``,c=t?.height?`height: ${t.height};`:``,l=typeof t?.zIndex==`number`?`z-index: ${t.zIndex};`:``,u=t?.style?t.style:``,d=t?.className?t.className:``,f=Z(t?.on??{}),p=t=>e`
321
383
  <div
322
- class="${p}"
384
+ ${H(e=>{e?f.bind(e):f.unbindAll()})}
385
+ class="${d}"
323
386
  style="
324
387
  position: absolute;
325
- ${a} ${o} ${s} ${c}
326
- ${l} ${u}
327
- ${d}
328
- ${f}
388
+ ${r} ${i} ${a} ${o}
389
+ ${s} ${c}
390
+ ${l}
391
+ ${u}
329
392
  "
330
393
  >
331
- ${t(n)}
394
+ ${U(t)}
332
395
  </div>
333
- `;return i(r,m)}function O(t,n){let r=t?.width??`300px`,i=t?.height??`auto`,o=t?.top??`20%`,s=t?.bottom??`auto`,c=t?.left??`50%`,l=t?.right??`auto`,u=c===`auto`?``:`transform: translateX(-50%);`,d=t?.background??`rgba(255, 255, 255, 0.3)`,f=t?.blur??`10px`,p=t?.borderRadius??`12px`,m=t?.padding??`16px`,h=t?.zIndex??1e3,g=t=>e`
396
+ `;return je(n,p)}function Je(t,n){let r=t?.width??`300px`,i=t?.height??`auto`,a=t?.top??`20%`,o=t?.bottom??`auto`,s=t?.left??`50%`,c=t?.right??`auto`,l=s===`auto`?``:`transform: translateX(-50%);`,u=t?.background??`rgba(255, 255, 255, 0.3)`,d=t?.blur??`10px`,f=t?.borderRadius??`12px`,p=t?.padding??`16px`,m=t?.zIndex??1e3,h=Z(t?.on??{}),g=t=>e`
334
397
  <div
398
+ ${H(e=>{e?h.bind(e):h.unbindAll()})}
335
399
  style="
336
400
  position: fixed;
337
- top: ${o};
338
- bottom: ${s};
339
- left: ${c};
340
- right: ${l};
341
- ${u}
401
+ top: ${a};
402
+ bottom: ${o};
403
+ left: ${s};
404
+ right: ${c};
405
+ ${l}
342
406
  width: ${r};
343
407
  height: ${i};
344
- background: ${d};
345
- backdrop-filter: blur(${f});
346
- -webkit-backdrop-filter: blur(${f});
347
- border-radius: ${p};
348
- padding: ${m};
408
+ background: ${u};
409
+ backdrop-filter: blur(${d});
410
+ -webkit-backdrop-filter: blur(${d});
411
+ border-radius: ${f};
412
+ padding: ${p};
349
413
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
350
- z-index: ${h};
414
+ z-index: ${m};
351
415
  display: flex;
352
416
  flex-direction: column;
353
417
  "
354
418
  >
355
419
  ${t}
356
420
  </div>
357
- `;return a(n,void 0,g)}function k(t,r){if(r===void 0)return n=>k(t,n??[e``]);let i=`${100/t.ratio}%`,a=t.maxWidth?`max-width: ${t.maxWidth};`:``,o=t.background?`background: ${t.background};`:``,s=t.overflow??`hidden`;return e`
421
+ `;return Me(n,void 0,g)}function Ye(t,n){if(n===void 0)return n=>Ye(t,n??[e``]);let r=`${100/t.ratio}%`,i=t.maxWidth?`max-width: ${t.maxWidth};`:``,a=t.background?`background: ${t.background};`:``,o=t.overflow??`hidden`,s=Z(t.on??{});return e`
358
422
  <div
423
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
359
424
  style="
360
425
  position: relative;
361
426
  width: 100%;
427
+ ${i}
362
428
  ${a}
363
- ${o}
364
- overflow: ${s};
429
+ overflow: ${o};
365
430
  "
366
431
  >
367
- <div style="width: 100%; padding-top: ${i};"></div>
432
+ <div style="width: 100%; padding-top: ${r};"></div>
368
433
  <div
369
434
  style="
370
435
  position: absolute;
@@ -374,144 +439,172 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
374
439
  height: 100%;
375
440
  "
376
441
  >
377
- ${n(r)}
442
+ ${W(n)}
378
443
  </div>
379
444
  </div>
380
- `}function A(n,r){if(r===void 0){let t=e=>A(n,e);return t.html=(t,...r)=>A(n,e(t,...r)),t}let i=u(`AutoFitGrid`),a=c(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+i,o=n?.gap??`16px`,s=`
381
- .${a} {
445
+ `}function Xe(t,n){if(n===void 0){let n=e=>Xe(t,e);return n.html=(n,...r)=>Xe(t,e(n,...r)),n}let r=Y(`AutoFitGrid`),i=q(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+r,a=t?.gap??`16px`,o=`
446
+ .${i} {
382
447
  display: grid;
383
- grid-template-columns: repeat(auto-fit, minmax(${n.minItemWidth}, 1fr));
384
- gap: ${o};
448
+ grid-template-columns: repeat(auto-fit, minmax(${t.minItemWidth}, 1fr));
449
+ gap: ${a};
385
450
  }
386
- `;return d(`AutoFitGrid`,e`
451
+ `,s=Z(t.on??{});return X(`AutoFitGrid`,e`
387
452
  <style>
388
- ${s}
453
+ ${o}
389
454
  </style>
390
- <div class="${a}">${t(r)}</div>
391
- `)}function j(t,r){if(r===void 0)return n=>j(t,n??[e``]);let i=t?.size??`32px`,a=t?.overlap??`-8px`,o=(t,n)=>e`
455
+ <div
456
+ class="${i}"
457
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
458
+ >
459
+ ${U(n)}
460
+ </div>
461
+ `)}function Ze(t,n){if(n===void 0)return n=>Ze(t,n??[e``]);let r=t?.size??`32px`,i=t?.overlap??`-8px`,a=Z(t?.on??{}),o=(t,n)=>e`
392
462
  <div
393
463
  style="
394
- width: ${i};
395
- height: ${i};
464
+ width: ${r};
465
+ height: ${r};
396
466
  border-radius: 50%;
397
467
  overflow: hidden;
398
468
  border: 2px solid #fff;
399
- margin-left: ${n===0?`0`:a};
469
+ margin-left: ${n===0?`0`:i};
400
470
  box-sizing: content-box;
401
471
  "
402
472
  >
403
473
  ${t}
404
474
  </div>
405
475
  `;return e`
406
- <div style="display: flex; align-items: center;">
407
- ${n(r,o)}
476
+ <div
477
+ ${H(e=>{e?a.bind(e):a.unbindAll()})}
478
+ style="display: flex; align-items: center;"
479
+ >
480
+ ${W(n,o)}
408
481
  </div>
409
- `}function M(n,r){if(r===void 0){let t=t=>M(n,t??e``);return t.html=(t,...r)=>M(n,e(t,...r)),t}let i=n?.position??`top-right`,a=n?.size??`16px`,o=n?.background??`red`,s=n?.color??`#fff`,[c,l,u,d]=[i.includes(`top`)?`0`:`auto`,i.includes(`right`)?`0`:`auto`,i.includes(`bottom`)?`0`:`auto`,i.includes(`left`)?`0`:`auto`];return e`
482
+ `}function Qe(t,n){if(n===void 0){let n=n=>Qe(t,n??e``);return n.html=(n,...r)=>Qe(t,e(n,...r)),n}let r=t?.position??`top-right`,i=t?.size??`16px`,a=t?.background??`red`,o=t?.color??`#fff`,[s,c,l,u]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],d=Z(t?.on??{});return e`
410
483
  <div style="position: relative; display: inline-block;">
411
- ${t(r)}
484
+ ${U(n)}
412
485
  <div
486
+ ${H(e=>{e?d.bind(e):d.unbindAll()})}
413
487
  style="
414
488
  position: absolute;
415
- top: ${c};
416
- right: ${l};
417
- bottom: ${u};
418
- left: ${d};
419
- width: ${a};
420
- height: ${a};
421
- background: ${o};
422
- color: ${s};
423
- font-size: calc(${a} * 0.6);
489
+ top: ${s};
490
+ right: ${c};
491
+ bottom: ${l};
492
+ left: ${u};
493
+ width: ${i};
494
+ height: ${i};
495
+ background: ${a};
496
+ color: ${o};
497
+ font-size: calc(${i} * 0.6);
424
498
  border-radius: 50%;
425
499
  display: flex;
426
500
  justify-content: center;
427
501
  align-items: center;
428
- transform: translate(${d===`0`?`-50%`:`0`}, ${c===`0`?`-50%`:`0`});
502
+ transform: translate(${u===`0`?`-50%`:`0`}, ${s===`0`?`-50%`:`0`});
429
503
  "
430
504
  >
431
- ${n?.content??``}
505
+ ${t?.content??``}
432
506
  </div>
433
507
  </div>
434
- `}function N(t,r){if(r===void 0)return n=>N(t,n??[e``]);let i=t?.padding??`16px`,a=t?.borderRadius??`8px`,o=t?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=t?.background??`#fff`;return e`
508
+ `}function $e(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function et(t,n){if(!n)return e=>et(t,e??De());let r=Z(t?.on??{}),i=$e(n,e=>{e?r.bind(e):r.unbindAll()});return e`
509
+ <canvas
510
+ ${H(i)}
511
+ .class=${t?.className}
512
+ style=${t?.style??``}
513
+ ></canvas>
514
+ `}function tt(t,n){if(n===void 0)return n=>tt(t,n??[e``]);let r=t?.padding??`16px`,i=t?.borderRadius??`8px`,a=t?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,o=t?.background??`#fff`,s=Z(t?.on??{});return e`
435
515
  <div
516
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
436
517
  style="
437
- background: ${s};
438
- border-radius: ${a};
439
- box-shadow: ${o};
440
- padding: ${i};
518
+ background: ${o};
519
+ border-radius: ${i};
520
+ box-shadow: ${a};
521
+ padding: ${r};
441
522
  box-sizing: border-box;
442
523
  "
443
524
  >
444
- ${n(r)}
525
+ ${W(n)}
445
526
  </div>
446
- `}function P(n,r){if(r===void 0){let t=t=>P(n,t??e``);return t.html=(t,...r)=>P(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
527
+ `}function nt(t,n){if(n===void 0){let n=n=>nt(t,n??e``);return n.html=(n,...r)=>nt(t,e(n,...r)),n}let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});return e`
447
528
  <div
529
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
448
530
  style="
449
531
  display: flex;
450
532
  justify-content: center;
451
533
  align-items: center;
452
- ${i} ${a} ${o}
534
+ ${r} ${i} ${a}
453
535
  "
454
536
  >
455
- ${t(r)}
537
+ ${U(n)}
456
538
  </div>
457
- `}function F(t,r){if(r===void 0)return n=>F(t,n??[e``]);let i=t?.maxWidth??`1024px`,a=t?.padding??`0 16px`,o=t?.background?`background: ${t.background};`:``,s=t?.fullHeight?`height: 100%;`:``;return e`
539
+ `}function rt(t,n){if(n===void 0)return n=>rt(t,n??[e``]);let r=t?.maxWidth??`1024px`,i=t?.padding??`0 16px`,a=t?.background?`background: ${t.background};`:``,o=t?.fullHeight?`height: 100%;`:``,s=Z(t?.on??{});return e`
458
540
  <div
541
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
459
542
  style="
460
543
  width: 100%;
461
- max-width: ${i};
544
+ max-width: ${r};
462
545
  margin-left: auto;
463
546
  margin-right: auto;
464
- padding: ${a};
547
+ padding: ${i};
548
+ ${a}
465
549
  ${o}
466
- ${s}
467
550
  box-sizing: border-box;
468
551
  "
469
552
  >
470
- ${n(r)}
553
+ ${W(n)}
471
554
  </div>
472
- `}function I(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div style="${o}"></div>`}function L(n,r){if(r===void 0){let t=t=>L(n,t??e``);return t.html=(t,...r)=>L(n,e(t,...r)),t}let i=n?.columns??4,a=n?.gap??`24px`,o=n?.background??`#f8f8f8`,s=n?.padding??`40px 16px`;return e`
555
+ `}function it(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=Z(t?.on??{}),s=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div
556
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
557
+ style="${s}"
558
+ ></div>`}function at(t,n){if(n===void 0){let n=n=>at(t,n??e``);return n.html=(n,...r)=>at(t,e(n,...r)),n}let r=t?.columns??4,i=t?.gap??`24px`,a=t?.background??`#f8f8f8`,o=t?.padding??`40px 16px`,s=Z(t?.on??{});return e`
473
559
  <div
560
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
474
561
  style="
475
562
  width: 100%;
476
- background: ${o};
477
- padding: ${s};
563
+ background: ${a};
564
+ padding: ${o};
478
565
  box-sizing: border-box;
479
566
  "
480
567
  >
481
568
  <div
482
569
  style="
483
570
  display: grid;
484
- grid-template-columns: repeat(${i}, 1fr);
485
- gap: ${a};
571
+ grid-template-columns: repeat(${r}, 1fr);
572
+ gap: ${i};
486
573
  "
487
574
  >
488
- ${t(r)}
575
+ ${U(n)}
489
576
  </div>
490
577
  <div style="text-align: center; margin-top: 24px; color: #666;">
491
578
  © ${new Date().getFullYear()} Your Company. All rights reserved.
492
579
  </div>
493
580
  </div>
494
- `}function R(n,r){if(r===void 0){let t=t=>R(n,t??e``);return t.html=(t,...r)=>R(n,e(t,...r)),t}let i=n.defaultColumns??1,a=n.gap??`16px`,o=u(`GridBreakpoint`),s=n.className??c(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+o,l=Object.entries(n.breakpoints).map(([e,t])=>`@media`+e+`{
495
- `+s+`{ grid-template-columns: repeat(`+t+`, 1fr); }
581
+ `}function ot(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function st(t,n){if(n===void 0){let n=n=>st(t,n??e``);return n.html=(n,...r)=>st(t,e(n,...r)),n}let r=t.defaultColumns??1,i=t.gap??`16px`,a=Y(`GridBreakpoint`),o=t.className??q(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+a,s=Object.entries(t.breakpoints).map(([e,t])=>`@media`+e+`{
582
+ `+o+`{ grid-template-columns: repeat(`+t+`, 1fr); }
496
583
  }`).join(`
497
- `),f=`
498
- .${s} {
584
+ `),c=`
585
+ .${o} {
499
586
  display: grid;
500
- grid-template-columns: repeat(${i}, 1fr);
501
- gap: ${a};
587
+ grid-template-columns: repeat(${r}, 1fr);
588
+ gap: ${i};
502
589
  }
503
- ${l}`;return d(`GridBreakpoint`,e`
590
+ ${s}`,l=Z(t?.on??{});return X(`GridBreakpoint`,e`
504
591
  <style>
505
- ${f}
592
+ ${c}
506
593
  </style>
507
- <div class="${s}">${t(r)}</div>
508
- `)}function z(t,r){if(r===void 0)return n=>z(t,n??[e``]);let i=t?.backgroundImage?`background-image: url('${t.backgroundImage}');`:``,a=t?.height??`400px`,o=t?.overlayColor??`rgba(0, 0, 0, 0.3)`;return e`
594
+ <div
595
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
596
+ class="${o}"
597
+ >
598
+ ${U(n)}
599
+ </div>
600
+ `)}function ct(t,n){if(n===void 0)return n=>ct(t,n??[e``]);let r=t?.backgroundImage?`background-image: url('${t.backgroundImage}');`:``,i=t?.height??`400px`,a=t?.overlayColor??`rgba(0, 0, 0, 0.3)`,o=Z(t?.on??{});return e`
509
601
  <div
602
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
510
603
  style="
511
604
  position: relative;
512
605
  width: 100%;
513
- height: ${a};
514
- ${i}
606
+ height: ${i};
607
+ ${r}
515
608
  background-size: cover;
516
609
  background-position: center;
517
610
  "
@@ -520,7 +613,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
520
613
  style="
521
614
  position: absolute;
522
615
  top: 0; left: 0; right: 0; bottom: 0;
523
- background: ${o};
616
+ background: ${a};
524
617
  "
525
618
  ></div>
526
619
  <div
@@ -539,146 +632,194 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
539
632
  box-sizing: border-box;
540
633
  "
541
634
  >
542
- ${n(r)}
635
+ ${W(n)}
543
636
  </div>
544
637
  </div>
545
- `}function B(n,r){if(r===void 0){let t=t=>B(n,t??e``);return t.html=(t,...r)=>B(n,e(t,...r)),t}let i=n?.breakpoint??`(max-width: 600px)`,a=n?.mode??`hide`,o=u(`Hidden`),s=n?.className??c(`Hidden::hidden-container`)+`-lyco-now-`+o,l=a===`hide`?`@media ${i} { .${s} { display: none !important; } }`:`@media ${i} { .${s} { display: block !important; } }
546
- @media not ${i} { .${s} { display: none !important; } }`,f=`
547
- .${s} {
638
+ `}function lt(t,n){if(n===void 0){let n=n=>lt(t,n??e``);return n.html=(n,...r)=>lt(t,e(n,...r)),n}let r=t?.breakpoint??`(max-width: 600px)`,i=t?.mode??`hide`,a=Y(`Hidden`),o=t?.className??q(`Hidden::hidden-container`)+`-lyco-now-`+a,s=i===`hide`?`@media ${r} { .${o} { display: none !important; } }`:`@media ${r} { .${o} { display: block !important; } }
639
+ @media not ${r} { .${o} { display: none !important; } }`,c=`
640
+ .${o} {
548
641
  display: block;
549
642
  }
550
- ${l}`;return d(`Hidden`,e`
643
+ ${s}`,l=Z(t?.on??{});return X(`Hidden`,e`
551
644
  <style>
552
- ${f}
645
+ ${c}
553
646
  </style>
554
- <div class="${s}">${t(r)}</div>
555
- `)}function V(t,r){let i=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,o=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,s=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=u(`ListGroup`),f=t?.className??c(`ListGroup::list-group`)+`-lyco-now-`+l,p=(t,n,r,i)=>r?e` <li>${t}</li> `:t,m=`
556
- ul.${f} {
647
+ <div
648
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
649
+ class="${o}"
650
+ >
651
+ ${U(n)}
652
+ </div>
653
+ `)}function ut(t){return e` <li>${W(t)}</li> `}function dt(t,n){let r=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,i=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,a=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,o=Y(`List`),s=t?.className??q(`List::list`)+`-lyco-now-${o}`,c=`
654
+ ul.${s} {
655
+ list-style: none;
656
+ margin: 0;
657
+ padding: 0;
658
+ ${r};
659
+ }
660
+ ul.${s} li {
661
+ padding: 12px 16px;
662
+ ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
663
+ }
664
+ ul.${s} li:last-child {
665
+ ${t?.bordered?`border-bottom: none`:``};
666
+ }
667
+ ${i}
668
+ ${a}
669
+ `.toString(),l=t=>X(`List`,e`
670
+ <style>
671
+ ${c}
672
+ </style>
673
+ <ul class="${s}">
674
+ ${W(t)}
675
+ </ul>
676
+ `);return n===void 0?l:l(n)}function ft(t,n){let r=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,i=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,a=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,o=Y(`ListGroup`),s=t?.className??q(`ListGroup::list-group`)+`-lyco-now-`+o,c=(t,n,r,i)=>r?e` <li>${t}</li> `:t,l=`
677
+ ul.${s} {
557
678
  list-style: none;
558
679
  margin: 0;
559
680
  padding: 0;
560
- ${i};
681
+ ${r};
561
682
  }
562
- ul.${f} li {
683
+ ul.${s} li {
563
684
  padding: 12px 16px;
564
685
  ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
565
686
  }
566
- ul.${f} li:last-child {
687
+ ul.${s} li:last-child {
567
688
  ${t?.bordered?`border-bottom: none`:``};
568
689
  }
569
- ${o}
570
- ${s}
571
- `,h=t=>d(`ListGroup`,e`
690
+ ${i}
691
+ ${a}
692
+ `,u=Z(t?.on??{}),d=t=>X(`ListGroup`,e`
572
693
  <style>
573
- ${m}
694
+ ${l}
574
695
  </style>
575
- <ul class="${f}">
576
- ${n(t,p)}
696
+ <ul
697
+ ${H(e=>{e?u.bind(e):u.unbindAll()})}
698
+ class="${s}"
699
+ >
700
+ ${W(t,c)}
577
701
  </ul>
578
- `);return a(r,h)}function H(t,r){if(r===void 0)return n=>H(t,n??[e``]);let i=t?.background??`rgba(0, 0, 0, 0.5)`,a=t?.zIndex??1e3,o=t?.fullScreen!==!1;return e`
702
+ `);return Me(n,d)}function pt(t,n){if(n===void 0)return n=>pt(t,n??[e``]);let r=t?.background??`rgba(0, 0, 0, 0.5)`,i=t?.zIndex??1e3,a=t?.fullScreen!==!1,o=Z(t?.on??{});return e`
579
703
  <div
704
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
580
705
  style="
581
- position: ${o?`fixed`:`absolute`};
582
- top: 0; left: 0; right: 0; bottom: 0;
583
- background: ${i};
584
- z-index: ${a};
585
- display: flex;
586
- justify-content: center;
587
- align-items: center;
588
- "
706
+ position: ${a?`fixed`:`absolute`};
707
+ top: 0; left: 0; right: 0; bottom: 0;
708
+ background: ${r};
709
+ z-index: ${i};
710
+ display: flex;
711
+ justify-content: center;
712
+ align-items: center;
713
+ "
589
714
  >
590
- ${n(r)}
715
+ ${W(n)}
591
716
  </div>
592
- `}function U(n,r){if(r===void 0){let t=t=>U(n,t??e``);return t.html=(t,...r)=>U(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
717
+ `}function mt(t,n){if(n===void 0){let n=n=>mt(t,n??e``);return n.html=(n,...r)=>mt(t,e(n,...r)),n}let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});return e`
593
718
  <div
719
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
594
720
  style="
595
721
  position: relative;
596
- ${i} ${a} ${o}
722
+ ${r} ${i} ${a}
597
723
  overflow: hidden;
598
724
  "
599
725
  >
600
- ${t(r)}
726
+ ${U(n)}
601
727
  </div>
602
- `}function W(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``;return e` <div style="${n} ${r}"></div> `}function G(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=u(`SkeletonLoader`),l=t?.className??c(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+s,f=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`;return d(`SkeletonLoader`,e`
728
+ `}function ht(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``,i=Z(t?.on??{});return e`<div
729
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
730
+ style="${n} ${r}"
731
+ ></div>`}function gt(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=Y(`SkeletonLoader`),c=t?.className??q(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+s,l=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`,u=Z(t?.on??{});return X(`SkeletonLoader`,e`
603
732
  <style>
604
733
  ${`
605
- @keyframes ${l+`-shimmer`} {
734
+ @keyframes ${c+`-shimmer`} {
606
735
  0% { background-color: #eee; }
607
736
  50% { background-color: #ddd; }
608
737
  100% { background-color: #eee; }
609
738
  }
610
739
  `}
611
- .${l} {
612
- ${f};
740
+ .${c} {
741
+ ${l};
613
742
  background-color: #eee;
614
- ${o?`animation: ${l+`-shimmer`} 1.2s infinite ease-in-out`:``};
743
+ ${o?`animation: ${c+`-shimmer`} 1.2s infinite ease-in-out`:``};
615
744
  }
616
745
  </style>
617
- <div class="${l}"></div>
618
- `)}function K(){return e`<div style="flex: 1 1 auto;"></div>`}function q(n,r){if(r===void 0){let t=t=>q(n,t??e``);return t.html=(t,...r)=>q(n,e(t,...r)),t}let i=n?.top?`top: ${n.top};`:``,a=n?.bottom?`bottom: ${n.bottom};`:``,o=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``;return e`
746
+ <div
747
+ ${H(e=>{e?u.bind(e):u.unbindAll()})}
748
+ class="${c}"
749
+ ></div>
750
+ `)}function _t(t){let n=Z(t?.on??{});return e`<div
751
+ ${H(e=>{e?n.bind(e):n.unbindAll()})}
752
+ style="flex: 1 1 auto;"
753
+ ></div>`}function vt(t,n){if(n===void 0){let n=n=>vt(t,n??e``);return n.html=(n,...r)=>vt(t,e(n,...r)),n}let r=t?.top?`top: ${t.top};`:``,i=t?.bottom?`bottom: ${t.bottom};`:``,a=typeof t?.zIndex==`number`?`z-index: ${t.zIndex};`:``,o=Z(t?.on??{});return e`
619
754
  <div
755
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
620
756
  style="
621
757
  position: sticky;
622
- ${i} ${a}
623
- ${o}
758
+ ${r} ${i}
759
+ ${a}
624
760
  "
625
761
  >
626
- ${t(r)}
762
+ ${U(n)}
627
763
  </div>
628
- `}function J(n,r){if(r===void 0){let t=t=>J(n,t??e``);return t.html=(t,...r)=>J(n,e(t,...r)),t}let i=u(`Table`),a=n?.className??c(`Table::table`)+`-lyco-now-${i}`,o=n?.striped?`
629
- .${a} tr:nth-child(even) { background: #f9f9f9; }
630
- `:``,s=n?.hover?`
631
- .${a} tr:hover { background: #f1f1f1; }
632
- `:``,l=n?.bordered?`
633
- .${a}, .${a} th, .${a} td { border: 1px solid #ddd; }
634
- `:``,f=`
764
+ `}function yt(t,n){if(n===void 0){let n=n=>yt(t,n??e``);return n.html=(n,...r)=>yt(t,e(n,...r)),n}let r=Y(`Table`),i=t?.className??q(`Table::table`)+`-lyco-now-${r}`,a=t?.striped?`
765
+ .${i} tr:nth-child(even) { background: #f9f9f9; }
766
+ `:``,o=t?.hover?`
767
+ .${i} tr:hover { background: #f1f1f1; }
768
+ `:``,s=t?.bordered?`
769
+ .${i}, .${i} th, .${i} td { border: 1px solid #ddd; }
770
+ `:``,c=`
635
771
  /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
636
- .${a} table {
772
+ .${i} table {
637
773
  width: 100%;
638
774
  border-collapse: collapse;
639
775
  }
640
- .${a} th,
641
- .${a} td {
776
+ .${i} th,
777
+ .${i} td {
642
778
  padding: 8px 12px;
643
779
  text-align: left;
644
780
  }
781
+ ${a}
645
782
  ${o}
646
783
  ${s}
647
- ${l}
648
- `;return d(`Table`,e`
784
+ `,l=Z(t?.on??{});return X(`Table`,e`
649
785
  <style>
650
- ${f}
786
+ ${c}
651
787
  </style>
652
788
 
653
- <div class="${a}">
789
+ <div
790
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
791
+ class="${i}"
792
+ >
654
793
  <table>
655
- ${t(r)}
794
+ ${U(n)}
656
795
  </table>
657
796
  </div>
658
- `)}function Y(t,r){let i=t?.direction??`row`;return r===void 0?n=>Y(t,n??e``):e`
797
+ `)}function bt(t,n){let r=t?.direction??`row`,i=Z(t?.on??{});return n===void 0?n=>bt(t,n??e``):e`
659
798
  <div
799
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
660
800
  style="
661
801
  display: flex;
662
- flex-direction: ${i};
802
+ flex-direction: ${r};
663
803
  flex-wrap: wrap;
664
804
  ${t?.gap?`gap: ${t.gap};`:``}
665
805
  ${t?.align?`align-items: ${t.align};`:``}
666
806
  ${t?.justify?`justify-content: ${t.justify};`:``}
667
807
  "
668
808
  >
669
- ${n(r)}
809
+ ${W(n)}
670
810
  </div>
671
- `}function X(t,r){let i=t?.width?`width: ${t.width};`:``,a=t?.height?`height: ${t.height};`:``,o=t?.background?`background: ${t.background};`:``;if(r===void 0)return n=>X(t,n??[e``]);let s=`flex-start`,c=`flex-start`;switch(t?.align){case`top-right`:s=`flex-end`,c=`flex-start`;break;case`center`:s=`center`,c=`center`;break;case`bottom-left`:s=`flex-start`,c=`flex-end`;break;case`bottom-right`:s=`flex-end`,c=`flex-end`;break;default:s=`flex-start`,c=`flex-start`}return e`
811
+ `}function xt(t,n){let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});if(n===void 0)return n=>xt(t,n??[e``]);let s=`flex-start`,c=`flex-start`;switch(t?.align){case`top-right`:s=`flex-end`,c=`flex-start`;break;case`center`:s=`center`,c=`center`;break;case`bottom-left`:s=`flex-start`,c=`flex-end`;break;case`bottom-right`:s=`flex-end`,c=`flex-end`;break;default:s=`flex-start`,c=`flex-start`}return e`
672
812
  <div
813
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
673
814
  style="
674
815
  position: relative;
675
816
  display: flex;
676
817
  justify-content: ${s};
677
818
  align-items: ${c};
678
- ${i} ${a} ${o}
819
+ ${r} ${i} ${a}
679
820
  "
680
821
  >
681
- ${n(r)}
822
+ ${W(n)}
682
823
  </div>
683
- `}export{D as AbsoluteBox,O as AcrylicBar,k as AspectRatio,A as AutoFitGrid,j as AvatarStack,M as Badge,N as Card,P as Center,p as Column,S as ColumnSplit,F as Container,I as Divider,m as Flex,h as FlowItem,L as FooterLayout,g as Grid,R as GridBreakpoint,_ as GridCol,v as GridItem,y as GridRow,z as HeroSection,B as Hidden,f as LightboxContainer,V as ListGroup,H as Overlay,U as PositionContainer,b as Row,C as RowSplit,w as ScrollBar,T as SideBarContainer,W as SizedBox,G as SkeletonLoader,K as Spacer,q as Sticky,E as Swiper,J as Table,x as WaterFlow,Y as Wrap,X as ZStack};
824
+ `}export{qe as AbsoluteBox,Je as AcrylicBar,Ye as AspectRatio,Xe as AutoFitGrid,Ze as AvatarStack,Qe as Badge,et as Canvas,tt as Card,nt as Center,Pe as Column,He as ColumnSplit,rt as Container,it as Divider,$ as Flex,Fe as FlowItem,at as FooterLayout,ot as ForEach,Ie as Grid,st as GridBreakpoint,Le as GridCol,Re as GridItem,ze as GridRow,ct as HeroSection,lt as Hidden,Q as LightboxContainer,dt as List,ft as ListGroup,ut as ListItem,pt as Overlay,mt as PositionContainer,Be as Row,Ue as RowSplit,We as ScrollBar,Ge as SideBarContainer,ht as SizedBox,gt as SkeletonLoader,_t as Spacer,vt as Sticky,Ke as Swiper,yt as Table,Ve as WaterFlow,bt as Wrap,xt as ZStack};
684
825
  //# sourceMappingURL=index.es.js.map