aptechka 0.9.0 → 0.10.0

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 (120) hide show
  1. package/lib/{Animation-BCA-DBje.cjs → Animation-BInSRYNr.cjs} +1 -1
  2. package/lib/{Animation-DrSYnbgb.js → Animation-uimN7sdT.js} +1 -1
  3. package/lib/{Composed-pnupzTOv.js → Composed-Fa7owymK.js} +1 -1
  4. package/lib/{Composed-7Fe7TW_T.cjs → Composed-Iihn8fT4.cjs} +1 -1
  5. package/lib/{Damped-CSEZ0qwp.cjs → Damped-Da3EnNN4.cjs} +1 -1
  6. package/lib/{Damped-C2FuK_3K.js → Damped-yrNXlkDE.js} +1 -1
  7. package/lib/{Derived-Dko3EP7m.cjs → Derived-D9VrDuf9.cjs} +1 -1
  8. package/lib/{Derived-CFnbeEgJ.js → Derived-DIWinC7Y.js} +1 -1
  9. package/lib/ElementConstructor-OK-6OPjh.cjs +1 -0
  10. package/lib/{ElementConstructor-CZKbNIQK.js → ElementConstructor-rValMo8f.js} +94 -88
  11. package/lib/{SourceManager-CmhlHGx7.js → SourceManager--L_rA28b.js} +1 -1
  12. package/lib/{SourceManager-DYnGpBi1.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
  13. package/lib/{Store-kzJycezD.cjs → Store-Cr3VaD9G.cjs} +1 -1
  14. package/lib/{Store-Dsft7GtM.js → Store-Qr3SNOSf.js} +1 -1
  15. package/lib/{Tweened-BrD2cPSC.js → Tweened-CjgvoOwL.js} +1 -1
  16. package/lib/{Tweened-D6dAu8Zi.cjs → Tweened-DksN-Rz6.cjs} +1 -1
  17. package/lib/{Viewport-DRNfjjDY.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
  18. package/lib/{Viewport-Ud7nellV.js → Viewport-Cgtq2I_K.js} +1 -1
  19. package/lib/{_createStore-Cf1MyeHa.cjs → _createStore-C75y9luu.cjs} +1 -1
  20. package/lib/_createStore-D3qHYaSz.js +12 -0
  21. package/lib/animation/index.cjs +1 -1
  22. package/lib/animation/index.js +3 -3
  23. package/lib/attribute/index.cjs +1 -1
  24. package/lib/attribute/index.js +1 -1
  25. package/lib/canvas/index.cjs +1 -1
  26. package/lib/canvas/index.d.ts +3 -3
  27. package/lib/canvas/index.js +4 -4
  28. package/lib/checkbox/index.cjs +1 -1
  29. package/lib/checkbox/index.js +14 -13
  30. package/lib/class-linked-status/index.cjs +1 -1
  31. package/lib/class-linked-status/index.js +1 -1
  32. package/lib/connector/index.cjs +1 -1
  33. package/lib/connector/index.d.ts +2 -2
  34. package/lib/connector/index.js +39 -34
  35. package/lib/controls/index.cjs +1 -1
  36. package/lib/controls/index.js +2 -2
  37. package/lib/{createStylesheet-Di9WRypw.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
  38. package/lib/{createStylesheet-C2gpLy4r.js → createStylesheet-BrFGJ8Q7.js} +1 -1
  39. package/lib/css-property/index.cjs +1 -1
  40. package/lib/css-property/index.js +1 -1
  41. package/lib/dev/index.cjs +1 -1
  42. package/lib/dev/index.js +1 -1
  43. package/lib/device/index.cjs +1 -1
  44. package/lib/device/index.js +1 -1
  45. package/lib/element-constructor/ElementConstructor.d.ts +6 -5
  46. package/lib/element-constructor/index.cjs +1 -1
  47. package/lib/element-constructor/index.js +3 -3
  48. package/lib/en3/helpers/index.cjs +1 -1
  49. package/lib/en3/helpers/index.js +2 -2
  50. package/lib/en3/misc/index.cjs +1 -1
  51. package/lib/en3/misc/index.js +2 -2
  52. package/lib/image/index.cjs +1 -1
  53. package/lib/image/index.js +1 -1
  54. package/lib/{index-BtB-3MG7.js → index-3R8YL-P3.js} +22 -21
  55. package/lib/index-CyQAdqFu.cjs +9 -0
  56. package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
  57. package/lib/{instantiate-BPZZn8jK.js → instantiate-TYteKsII.js} +7 -7
  58. package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
  59. package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
  60. package/lib/jsx/hooks/animation/index.cjs +1 -0
  61. package/lib/jsx/hooks/animation/index.d.ts +2 -0
  62. package/lib/jsx/hooks/animation/index.js +15 -0
  63. package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
  64. package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
  65. package/lib/jsx/hooks/store/createCached.d.ts +3 -0
  66. package/lib/jsx/hooks/store/createDerived.d.ts +1 -1
  67. package/lib/jsx/hooks/store/index.cjs +1 -1
  68. package/lib/jsx/hooks/store/index.d.ts +1 -0
  69. package/lib/jsx/hooks/store/index.js +20 -16
  70. package/lib/jsx/index.cjs +1 -1
  71. package/lib/jsx/index.d.ts +5 -3
  72. package/lib/jsx/index.js +73 -58
  73. package/lib/jsx/type.d.ts +10 -4
  74. package/lib/ladder/index.cjs +1 -1
  75. package/lib/ladder/index.js +1 -1
  76. package/lib/media/index.cjs +1 -1
  77. package/lib/media/index.js +1 -1
  78. package/lib/modal/index.cjs +1 -1
  79. package/lib/modal/index.js +4 -3
  80. package/lib/order/index.cjs +1 -1
  81. package/lib/order/index.d.ts +5 -4
  82. package/lib/order/index.js +1 -1
  83. package/lib/pointer/index.cjs +1 -1
  84. package/lib/pointer/index.js +2 -2
  85. package/lib/popover/index.cjs +1 -1
  86. package/lib/popover/index.js +3 -2
  87. package/lib/router/index.cjs +1 -1
  88. package/lib/router/index.js +1 -1
  89. package/lib/scroll/index.cjs +1 -1
  90. package/lib/scroll/index.js +7 -7
  91. package/lib/select/index.cjs +1 -1
  92. package/lib/select/index.js +1 -1
  93. package/lib/sequence/index.cjs +1 -1
  94. package/lib/sequence/index.js +1 -1
  95. package/lib/source/index.cjs +1 -1
  96. package/lib/source/index.js +2 -2
  97. package/lib/store/Cached.d.ts +13 -0
  98. package/lib/store/index.cjs +1 -1
  99. package/lib/store/index.d.ts +1 -1
  100. package/lib/store/index.js +66 -32
  101. package/lib/{tags-BBOGIzDK.cjs → tags-BosXYPYv.cjs} +1 -1
  102. package/lib/{tags-CefGDQtF.js → tags-D0kLlFdQ.js} +1 -1
  103. package/lib/theme/index.cjs +1 -1
  104. package/lib/theme/index.js +3 -2
  105. package/lib/tweaker/index.cjs +2 -2
  106. package/lib/tweaker/index.js +6 -5
  107. package/lib/utils/bytes.d.ts +1 -0
  108. package/lib/utils/index.cjs +1 -1
  109. package/lib/utils/index.d.ts +1 -0
  110. package/lib/utils/index.js +122 -105
  111. package/lib/video/index.cjs +1 -1
  112. package/lib/video/index.js +1 -1
  113. package/package.json +9 -1
  114. package/lib/ElementConstructor-9S0f1yAH.cjs +0 -1
  115. package/lib/Resource-BhF6Tj1p.js +0 -49
  116. package/lib/Resource-WCQEgLpB.cjs +0 -1
  117. package/lib/_createStore-Ck9bHolX.js +0 -12
  118. package/lib/index-DQo2-dnB.cjs +0 -9
  119. package/lib/instantiate-BWM-ipPW.cjs +0 -1
  120. package/lib/store/Keyed.d.ts +0 -13
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-kzJycezD.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-Cr3VaD9G.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
@@ -8,7 +8,7 @@ var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(
8
8
  e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
9
  }, a = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
10
10
  var v = (t, e, s) => (m(t, e, "access private method"), s);
11
- import { S as g } from "../Store-Dsft7GtM.js";
11
+ import { S as g } from "../Store-Qr3SNOSf.js";
12
12
  import { p as y } from "../attributes-69we3byR.js";
13
13
  import { i as S } from "../browser-0zX67oeU.js";
14
14
  import { a as w } from "../dom-P5QbAASX.js";
@@ -1 +1 @@
1
- "use strict";var S=(i,s,e)=>{if(!s.has(i))throw TypeError("Cannot "+e)};var t=(i,s,e)=>(S(i,s,"read from private field"),e?e.call(i):s.get(i)),h=(i,s,e)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,e)},r=(i,s,e,n)=>(S(i,s,"write to private field"),n?n.call(i,e):s.set(i,e),e);var o=(i,s,e)=>(S(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../css-property/index.cjs");require("../Store-kzJycezD.cjs");const L=require("../math-GDWEqu7y.cjs"),k=require("../tags-BBOGIzDK.cjs"),_=require("../createStylesheet-Di9WRypw.cjs"),q=require("../element-resizer/index.cjs"),y=require("../ticker/index.cjs"),M=_.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});var a,c,d,l,u,m,v,b,g,f,w,z,x,p,R,C,E,F;class P extends HTMLElement{constructor(){super();h(this,g);h(this,w);h(this,R);h(this,E);h(this,a,new B.CSSProperty(this,"--fps",0));h(this,c,null);h(this,d,null);h(this,l,0);h(this,u,0);h(this,m,1);h(this,v,0);h(this,b,1);h(this,x,e=>{r(this,m,L.clamp(devicePixelRatio,1,2)),r(this,l,e.contentRect.width),r(this,u,e.contentRect.height),t(this,c).width=t(this,l)*this.pixelRatio,t(this,c).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,E,F).call(this),o(this,R,C).call(this)});h(this,p,e=>{r(this,v,e.timestamp),r(this,b,e.timeBetweenFrames),o(this,R,C).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(M),k.element(this,{children:k.canvas({ref:n=>{r(this,c,n),r(this,d,n.getContext("2d"))}})}),t(this,a).subscribe(n=>{typeof n.previous!="undefined"&&n.current!==n.previous&&o(this,g,f).call(this)})}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,c)}get context(){return t(this,d)}get pixelRatio(){return t(this,m)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,c),pixelRatio:t(this,m),context:t(this,d),timestamp:t(this,v),timeBetweenFrames:t(this,b)}}connectedCallback(){t(this,a).observe(),q.elementResizer.subscribe(this,t(this,x)),o(this,g,f).call(this)}disconnectedCallback(){t(this,a).unobserve(),q.elementResizer.unsubscribe(t(this,x)),o(this,w,z).call(this)}}a=new WeakMap,c=new WeakMap,d=new WeakMap,l=new WeakMap,u=new WeakMap,m=new WeakMap,v=new WeakMap,b=new WeakMap,g=new WeakSet,f=function(){y.ticker.unsubscribe(t(this,p)),this.hasAttribute("static")||y.ticker.subscribe(t(this,p),{culling:this,maxFPS:t(this,a).current})},w=new WeakSet,z=function(){y.ticker.unsubscribe(t(this,p))},x=new WeakMap,p=new WeakMap,R=new WeakSet,C=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},E=new WeakSet,F=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};customElements.get("e-canvas")||customElements.define("e-canvas",P);exports.CanvasElement=P;
1
+ "use strict";var S=(i,s,e)=>{if(!s.has(i))throw TypeError("Cannot "+e)};var t=(i,s,e)=>(S(i,s,"read from private field"),e?e.call(i):s.get(i)),h=(i,s,e)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,e)},r=(i,s,e,n)=>(S(i,s,"write to private field"),n?n.call(i,e):s.set(i,e),e);var o=(i,s,e)=>(S(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../css-property/index.cjs");require("../Store-Cr3VaD9G.cjs");const L=require("../math-GDWEqu7y.cjs"),y=require("../ticker/index.cjs"),k=require("../tags-BosXYPYv.cjs"),_=require("../createStylesheet-9nksoWW0.cjs"),q=require("../element-resizer/index.cjs"),M=_.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});var a,c,d,l,u,m,v,b,g,f,w,z,x,p,R,C,E,F;class P extends HTMLElement{constructor(){super();h(this,g);h(this,w);h(this,R);h(this,E);h(this,a,new B.CSSProperty(this,"--fps",0));h(this,c,null);h(this,d,null);h(this,l,0);h(this,u,0);h(this,m,1);h(this,v,0);h(this,b,1);h(this,x,e=>{r(this,m,L.clamp(devicePixelRatio,1,2)),r(this,l,e.contentRect.width),r(this,u,e.contentRect.height),t(this,c).width=t(this,l)*this.pixelRatio,t(this,c).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,E,F).call(this),o(this,R,C).call(this)});h(this,p,e=>{r(this,v,e.timestamp),r(this,b,e.timeBetweenFrames),o(this,R,C).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(M),k.element(this,{children:k.canvas({ref:n=>{r(this,c,n),r(this,d,n.getContext("2d"))}})}),t(this,a).subscribe(n=>{typeof n.previous!="undefined"&&n.current!==n.previous&&o(this,g,f).call(this)})}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,c)}get context(){return t(this,d)}get pixelRatio(){return t(this,m)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,c),pixelRatio:t(this,m),context:t(this,d),timestamp:t(this,v),timeBetweenFrames:t(this,b)}}connectedCallback(){t(this,a).observe(),q.elementResizer.subscribe(this,t(this,x)),o(this,g,f).call(this)}disconnectedCallback(){t(this,a).unobserve(),q.elementResizer.unsubscribe(t(this,x)),o(this,w,z).call(this)}}a=new WeakMap,c=new WeakMap,d=new WeakMap,l=new WeakMap,u=new WeakMap,m=new WeakMap,v=new WeakMap,b=new WeakMap,g=new WeakSet,f=function(){y.ticker.unsubscribe(t(this,p)),this.hasAttribute("static")||y.ticker.subscribe(t(this,p),{culling:this,maxFPS:t(this,a).current})},w=new WeakSet,z=function(){y.ticker.unsubscribe(t(this,p))},x=new WeakMap,p=new WeakMap,R=new WeakSet,C=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},E=new WeakSet,F=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};customElements.get("e-canvas")||customElements.define("e-canvas",P);exports.CanvasElement=P;
@@ -10,7 +10,7 @@ export interface Canvas2DRenderDetail {
10
10
  timestamp: number;
11
11
  timeBetweenFrames: number;
12
12
  }
13
- export type Canvas2DRenderCallback = (entry: Canvas2DRenderDetail) => void;
13
+ export type CanvasRenderEvent = CustomEvent<Canvas2DRenderDetail>;
14
14
  export declare class CanvasElement extends HTMLElement {
15
15
  #private;
16
16
  constructor();
@@ -29,7 +29,7 @@ declare global {
29
29
  'e-canvas': CanvasElement;
30
30
  }
31
31
  interface HTMLElementEventMap {
32
- canvasRender: CustomEvent<Canvas2DRenderDetail>;
33
- canvasResize: CustomEvent<Canvas2DRenderDetail>;
32
+ canvasRender: CanvasRenderEvent;
33
+ canvasResize: CanvasRenderEvent;
34
34
  }
35
35
  }
@@ -9,12 +9,12 @@ var t = (i, s, e) => (E(i, s, "read from private field"), e ? e.call(i) : s.get(
9
9
  }, r = (i, s, e, n) => (E(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e);
10
10
  var c = (i, s, e) => (E(i, s, "access private method"), e);
11
11
  import { CSSProperty as F } from "../css-property/index.js";
12
- import "../Store-Dsft7GtM.js";
12
+ import "../Store-Qr3SNOSf.js";
13
13
  import { c as B } from "../math-BOBiC4TN.js";
14
- import { e as L, q } from "../tags-CefGDQtF.js";
15
- import { c as A } from "../createStylesheet-C2gpLy4r.js";
16
- import { elementResizer as k } from "../element-resizer/index.js";
17
14
  import { ticker as S } from "../ticker/index.js";
15
+ import { e as L, q } from "../tags-D0kLlFdQ.js";
16
+ import { c as A } from "../createStylesheet-BrFGJ8Q7.js";
17
+ import { elementResizer as k } from "../element-resizer/index.js";
18
18
  const H = A({
19
19
  ":host, canvas": {
20
20
  display: "block",
@@ -1 +1 @@
1
- "use strict";var p=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var a=(t,s,e)=>(p(t,s,"read from private field"),e?e.call(t):s.get(t)),d=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},g=(t,s,e,i)=>(p(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e);var o=(t,s,e)=>(p(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-kzJycezD.cjs");const c=require("../tags-BBOGIzDK.cjs"),k=require("../createStylesheet-Di9WRypw.cjs"),m=require("../theme/index.cjs"),f='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>',b=k.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:m.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:m.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});var h,r,l,n;const v=class v extends HTMLElement{constructor(){super();d(this,l);d(this,h,null);d(this,r,void 0);this.attachShadow({mode:"open"}).adoptedStyleSheets.push(b),g(this,r,this.attachInternals()),c.element(this,{children:c.label({children:[c.span({class:"fake",children:c.slot({children:[c.span({class:"default",children:[f]})]})}),c.input({ref:i=>{g(this,h,i),i.required=this.hasAttribute("required"),i.value=this.getAttribute("value")||"",i.checked=this.hasAttribute("checked"),i.name=this.getAttribute("name")||"",o(this,l,n).call(this)},class:"real",type:"checkbox",onChange:()=>{o(this,l,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return a(this,h).checked}set checked(e){a(this,h).checked=e,o(this,l,n).call(this)}get value(){return a(this,h).value}set value(e){a(this,h).value=e,o(this,l,n).call(this)}};h=new WeakMap,r=new WeakMap,l=new WeakSet,n=function(){this.checked?a(this,r).setFormValue(this.value):a(this,r).setFormValue(null),this.classList.toggle("checked",this.checked)},v.formAssociated=!0;let u=v;customElements.get("e-checkbox")||customElements.define("e-checkbox",u);exports.CheckboxElement=u;
1
+ "use strict";var p=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var a=(t,s,e)=>(p(t,s,"read from private field"),e?e.call(t):s.get(t)),d=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},g=(t,s,e,i)=>(p(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e);var o=(t,s,e)=>(p(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");require("../ticker/index.cjs");const c=require("../tags-BosXYPYv.cjs"),k=require("../createStylesheet-9nksoWW0.cjs"),m=require("../theme/index.cjs"),f='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>',b=k.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:m.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:m.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});var h,r,l,n;const v=class v extends HTMLElement{constructor(){super();d(this,l);d(this,h,null);d(this,r,void 0);this.attachShadow({mode:"open"}).adoptedStyleSheets.push(b),g(this,r,this.attachInternals()),c.element(this,{children:c.label({children:[c.span({class:"fake",children:c.slot({children:[c.span({class:"default",children:[f]})]})}),c.input({ref:i=>{g(this,h,i),i.required=this.hasAttribute("required"),i.value=this.getAttribute("value")||"",i.checked=this.hasAttribute("checked"),i.name=this.getAttribute("name")||"",o(this,l,n).call(this)},class:"real",type:"checkbox",onChange:()=>{o(this,l,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return a(this,h).checked}set checked(e){a(this,h).checked=e,o(this,l,n).call(this)}get value(){return a(this,h).value}set value(e){a(this,h).value=e,o(this,l,n).call(this)}};h=new WeakMap,r=new WeakMap,l=new WeakSet,n=function(){this.checked?a(this,r).setFormValue(this.value):a(this,r).setFormValue(null),this.classList.toggle("checked",this.checked)},v.formAssociated=!0;let u=v;customElements.get("e-checkbox")||customElements.define("e-checkbox",u);exports.CheckboxElement=u;
@@ -7,10 +7,11 @@ var h = (t, s, e) => (d(t, s, "read from private field"), e ? e.call(t) : s.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(t) : s.set(t, e);
9
9
  }, u = (t, s, e, i) => (d(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e);
10
- var o = (t, s, e) => (d(t, s, "access private method"), e);
11
- import "../Store-Dsft7GtM.js";
12
- import { e as f, a2 as k, aA as v, ax as b, $ as w } from "../tags-CefGDQtF.js";
13
- import { c as x } from "../createStylesheet-C2gpLy4r.js";
10
+ var c = (t, s, e) => (d(t, s, "access private method"), e);
11
+ import "../Store-Qr3SNOSf.js";
12
+ import "../ticker/index.js";
13
+ import { e as f, a2 as k, aA as v, ax as b, $ as w } from "../tags-D0kLlFdQ.js";
14
+ import { c as x } from "../createStylesheet-BrFGJ8Q7.js";
14
15
  import { aptechkaTheme as p } from "../theme/index.js";
15
16
  const y = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', A = x({
16
17
  ":host": {
@@ -54,14 +55,14 @@ const y = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBo
54
55
  opacity: 1
55
56
  }
56
57
  });
57
- var a, c, l, r;
58
+ var a, o, l, r;
58
59
  const g = class g extends HTMLElement {
59
60
  constructor() {
60
61
  super();
61
62
  n(this, l);
62
63
  n(this, a, null);
63
- n(this, c, void 0);
64
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(A), u(this, c, this.attachInternals()), f(this, {
64
+ n(this, o, void 0);
65
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(A), u(this, o, this.attachInternals()), f(this, {
65
66
  children: k({
66
67
  children: [
67
68
  v({
@@ -77,12 +78,12 @@ const g = class g extends HTMLElement {
77
78
  }),
78
79
  w({
79
80
  ref: (i) => {
80
- u(this, a, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", o(this, l, r).call(this);
81
+ u(this, a, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", c(this, l, r).call(this);
81
82
  },
82
83
  class: "real",
83
84
  type: "checkbox",
84
85
  onChange: () => {
85
- o(this, l, r).call(this), this.dispatchEvent(
86
+ c(this, l, r).call(this), this.dispatchEvent(
86
87
  new Event("change", {
87
88
  composed: !0
88
89
  })
@@ -97,17 +98,17 @@ const g = class g extends HTMLElement {
97
98
  return h(this, a).checked;
98
99
  }
99
100
  set checked(e) {
100
- h(this, a).checked = e, o(this, l, r).call(this);
101
+ h(this, a).checked = e, c(this, l, r).call(this);
101
102
  }
102
103
  get value() {
103
104
  return h(this, a).value;
104
105
  }
105
106
  set value(e) {
106
- h(this, a).value = e, o(this, l, r).call(this);
107
+ h(this, a).value = e, c(this, l, r).call(this);
107
108
  }
108
109
  };
109
- a = new WeakMap(), c = new WeakMap(), l = new WeakSet(), r = function() {
110
- this.checked ? h(this, c).setFormValue(this.value) : h(this, c).setFormValue(null), this.classList.toggle("checked", this.checked);
110
+ a = new WeakMap(), o = new WeakMap(), l = new WeakSet(), r = function() {
111
+ this.checked ? h(this, o).setFormValue(this.value) : h(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
111
112
  }, g.formAssociated = !0;
112
113
  let m = g;
113
114
  customElements.get("e-checkbox") || customElements.define("e-checkbox", m);
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-kzJycezD.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
1
+ "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-Cr3VaD9G.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
@@ -19,7 +19,7 @@ var n = (e, t, s) => (h(e, t, "read from private field"), s ? s.call(e) : t.get(
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
21
21
  }, m = (e, t, s, r) => (h(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
22
- import { S as x } from "../Store-Dsft7GtM.js";
22
+ import { S as x } from "../Store-Qr3SNOSf.js";
23
23
  import { c as f } from "../string-f0Dnk0L1.js";
24
24
  var i;
25
25
  class K extends x {
@@ -1 +1 @@
1
- "use strict";var f=(i,n,e)=>{if(!n.has(i))throw TypeError("Cannot "+e)};var c=(i,n,e)=>(f(i,n,"read from private field"),e?e.call(i):n.get(i)),d=(i,n,e)=>{if(n.has(i))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(i):n.set(i,e)},h=(i,n,e,l)=>(f(i,n,"write to private field"),l?l.call(i,e):n.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a,s,o,r;class b{constructor(){d(this,a,[]);d(this,s,void 0);d(this,o,100);d(this,r,()=>{var n,e,l;for(let C=c(this,a).length-1;C>=0;C--){const t=c(this,a)[C];t.node.isConnected&&!t.isConnected?((n=t.connectCallback)==null||n.call(t),t.isConnected=!0):!t.node.isConnected&&t.isConnected&&((e=t.disconnectCallback)==null||e.call(t),t.isConnected=!1,t.unsubscribeAfterDisconnect&&this.unsubscribe(t)),t.timer+=c(this,o),!t.isConnected&&t.timer>t.maxWaitSec*1e3&&((l=t.disconnectCallback)==null||l.call(t,!0),this.unsubscribe(t))}})}subscribe(n,e){const l=c(this,a).length;return c(this,a).push({node:n,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:typeof e.maxWaitSec=="number"?e.maxWaitSec===0?c(this,o)/1e3:e.maxWaitSec:1/0,timer:0,unsubscribeAfterDisconnect:e.unsubscribeAfterDisconnect||!1}),l||(h(this,s,setInterval(c(this,r),c(this,o))),setTimeout(()=>{c(this,r).call(this)})),()=>{this.unsubscribe(e)}}unsubscribe(n){c(this,a).forEach(e=>{e.connectCallback===n.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===n.disconnectCallback&&(e.disconnectCallback=void 0)}),h(this,a,c(this,a).filter(e=>e.connectCallback||e.disconnectCallback)),c(this,a).length||(clearInterval(c(this,s)),h(this,s,void 0))}destroy(){clearInterval(c(this,s)),h(this,a,[])}}a=new WeakMap,s=new WeakMap,o=new WeakMap,r=new WeakMap;const u=new b;exports.Connector=b;exports.connector=u;
1
+ "use strict";var f=(t,c,e)=>{if(!c.has(t))throw TypeError("Cannot "+e)};var a=(t,c,e)=>(f(t,c,"read from private field"),e?e.call(t):c.get(t)),r=(t,c,e)=>{if(c.has(t))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(t):c.set(t,e)},d=(t,c,e,s)=>(f(t,c,"write to private field"),s?s.call(t,e):c.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../order/index.cjs"),h=require("../ticker/index.cjs");var i,o,l;class u{constructor(){r(this,i,[]);r(this,o,void 0);r(this,l,c=>{var e,s,b;for(let C=a(this,i).length-1;C>=0;C--){const n=a(this,i)[C];n.node.isConnected&&!n.isConnected?((e=n.connectCallback)==null||e.call(n,n.node),n.isConnected=!0):!n.node.isConnected&&n.isConnected&&((s=n.disconnectCallback)==null||s.call(n,n.node),n.isConnected=!1,n.unsubscribeAfterDisconnect&&this.unsubscribe(n)),n.isConnected||(n.timer=Math.max(0,c.timeElapsedSinceSubscription-n.startTime),n.timer>n.maxWaitSec*1e3&&((b=n.disconnectCallback)==null||b.call(n,n.node,!0),this.unsubscribe(n)))}})}subscribe(c,e){const s=a(this,i).length;return a(this,i).push({node:c,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:typeof e.maxWaitSec=="number"?e.maxWaitSec:1/0,timer:0,startTime:performance.now(),unsubscribeAfterDisconnect:e.unsubscribeAfterDisconnect||!1}),s||h.ticker.subscribe(a(this,l),{order:k.TICK_ORDER.CONNECTOR}),()=>{this.unsubscribe(e)}}unsubscribe(c){a(this,i).forEach(e=>{e.connectCallback===c.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===c.disconnectCallback&&(e.disconnectCallback=void 0)}),d(this,i,a(this,i).filter(e=>e.connectCallback||e.disconnectCallback)),a(this,i).length||(h.ticker.unsubscribe(a(this,l)),d(this,o,void 0))}destroy(){clearInterval(a(this,o)),d(this,i,[])}}i=new WeakMap,o=new WeakMap,l=new WeakMap;const m=new u;exports.Connector=u;exports.connector=m;
@@ -1,5 +1,5 @@
1
- export type ConnectorConnectCallback = () => void;
2
- export type ConnectorDisconnectCallback = (expired?: boolean) => void;
1
+ export type ConnectorConnectCallback<T extends Node = Node> = (node: T) => void;
2
+ export type ConnectorDisconnectCallback<T extends Node = Node> = (node: T, expired?: boolean) => void;
3
3
  export interface ConnectorOptions {
4
4
  connectCallback?: ConnectorConnectCallback;
5
5
  disconnectCallback?: ConnectorDisconnectCallback;
@@ -1,56 +1,61 @@
1
- var f = (i, n, e) => {
2
- if (!n.has(i))
1
+ var b = (t, c, e) => {
2
+ if (!c.has(t))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var c = (i, n, e) => (f(i, n, "read from private field"), e ? e.call(i) : n.get(i)), h = (i, n, e) => {
6
- if (n.has(i))
5
+ var a = (t, c, e) => (b(t, c, "read from private field"), e ? e.call(t) : c.get(t)), r = (t, c, e) => {
6
+ if (c.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- n instanceof WeakSet ? n.add(i) : n.set(i, e);
9
- }, d = (i, n, e, l) => (f(i, n, "write to private field"), l ? l.call(i, e) : n.set(i, e), e);
10
- var a, s, o, C;
11
- class b {
8
+ c instanceof WeakSet ? c.add(t) : c.set(t, e);
9
+ }, d = (t, c, e, s) => (b(t, c, "write to private field"), s ? s.call(t, e) : c.set(t, e), e);
10
+ import { TICK_ORDER as m } from "../order/index.js";
11
+ import { ticker as h } from "../ticker/index.js";
12
+ var i, l, o;
13
+ class k {
12
14
  constructor() {
13
- h(this, a, []);
14
- h(this, s, void 0);
15
- h(this, o, 100);
16
- h(this, C, () => {
17
- var n, e, l;
18
- for (let r = c(this, a).length - 1; r >= 0; r--) {
19
- const t = c(this, a)[r];
20
- t.node.isConnected && !t.isConnected ? ((n = t.connectCallback) == null || n.call(t), t.isConnected = !0) : !t.node.isConnected && t.isConnected && ((e = t.disconnectCallback) == null || e.call(t), t.isConnected = !1, t.unsubscribeAfterDisconnect && this.unsubscribe(t)), t.timer += c(this, o), !t.isConnected && t.timer > t.maxWaitSec * 1e3 && ((l = t.disconnectCallback) == null || l.call(t, !0), this.unsubscribe(t));
15
+ r(this, i, []);
16
+ r(this, l, void 0);
17
+ r(this, o, (c) => {
18
+ var e, s, f;
19
+ for (let C = a(this, i).length - 1; C >= 0; C--) {
20
+ const n = a(this, i)[C];
21
+ n.node.isConnected && !n.isConnected ? ((e = n.connectCallback) == null || e.call(n, n.node), n.isConnected = !0) : !n.node.isConnected && n.isConnected && ((s = n.disconnectCallback) == null || s.call(n, n.node), n.isConnected = !1, n.unsubscribeAfterDisconnect && this.unsubscribe(n)), n.isConnected || (n.timer = Math.max(
22
+ 0,
23
+ c.timeElapsedSinceSubscription - n.startTime
24
+ ), n.timer > n.maxWaitSec * 1e3 && ((f = n.disconnectCallback) == null || f.call(n, n.node, !0), this.unsubscribe(n)));
21
25
  }
22
26
  });
23
27
  }
24
- subscribe(n, e) {
25
- const l = c(this, a).length;
26
- return c(this, a).push({
27
- node: n,
28
+ subscribe(c, e) {
29
+ const s = a(this, i).length;
30
+ return a(this, i).push({
31
+ node: c,
28
32
  connectCallback: e.connectCallback,
29
33
  disconnectCallback: e.disconnectCallback,
30
34
  isConnected: !1,
31
- maxWaitSec: typeof e.maxWaitSec == "number" ? e.maxWaitSec === 0 ? c(this, o) / 1e3 : e.maxWaitSec : 1 / 0,
35
+ maxWaitSec: typeof e.maxWaitSec == "number" ? e.maxWaitSec : 1 / 0,
32
36
  timer: 0,
37
+ startTime: performance.now(),
33
38
  unsubscribeAfterDisconnect: e.unsubscribeAfterDisconnect || !1
34
- }), l || (d(this, s, setInterval(c(this, C), c(this, o))), setTimeout(() => {
35
- c(this, C).call(this);
36
- })), () => {
39
+ }), s || h.subscribe(a(this, o), {
40
+ order: m.CONNECTOR
41
+ }), () => {
37
42
  this.unsubscribe(e);
38
43
  };
39
44
  }
40
- unsubscribe(n) {
41
- c(this, a).forEach((e) => {
42
- e.connectCallback === n.connectCallback && (e.connectCallback = void 0), e.disconnectCallback === n.disconnectCallback && (e.disconnectCallback = void 0);
43
- }), d(this, a, c(this, a).filter(
45
+ unsubscribe(c) {
46
+ a(this, i).forEach((e) => {
47
+ e.connectCallback === c.connectCallback && (e.connectCallback = void 0), e.disconnectCallback === c.disconnectCallback && (e.disconnectCallback = void 0);
48
+ }), d(this, i, a(this, i).filter(
44
49
  (e) => e.connectCallback || e.disconnectCallback
45
- )), c(this, a).length || (clearInterval(c(this, s)), d(this, s, void 0));
50
+ )), a(this, i).length || (h.unsubscribe(a(this, o)), d(this, l, void 0));
46
51
  }
47
52
  destroy() {
48
- clearInterval(c(this, s)), d(this, a, []);
53
+ clearInterval(a(this, l)), d(this, i, []);
49
54
  }
50
55
  }
51
- a = new WeakMap(), s = new WeakMap(), o = new WeakMap(), C = new WeakMap();
52
- const u = new b();
56
+ i = new WeakMap(), l = new WeakMap(), o = new WeakMap();
57
+ const v = new k();
53
58
  export {
54
- b as Connector,
55
- u as connector
59
+ k as Connector,
60
+ v as connector
56
61
  };
@@ -1 +1 @@
1
- "use strict";var N=(r,n,e)=>{if(!n.has(r))throw TypeError("Cannot "+e)};var t=(r,n,e)=>(N(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>{if(n.has(r))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(r):n.set(r,e)},i=(r,n,e,a)=>(N(r,n,"write to private field"),a?a.call(r,e):n.set(r,e),e);var L=(r,n,e)=>(N(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),M=require("../ticker/index.cjs");require("../Store-kzJycezD.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-D6dAu8Zi.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var z;class R{constructor(){s(this,z,new V.Notifier)}get changeEvent(){return t(this,z)}}z=new WeakMap;var o,d,u,D;class p extends R{constructor(e){super();s(this,o,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let h;e.code==="Space"?h=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?h=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?h=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?h=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?h=1*t(this,d)[t(this,u)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});m.isBrowser&&(i(this,o,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,d,t(this,o)instanceof HTMLElement?t(this,o):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,o).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,o).removeEventListener("keydown",t(this,D))}}o=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var w,y,H,P,l,k,f,C,S,W,U,q,X,B;class ee extends R{constructor(e){super();s(this,C);s(this,W);s(this,w,void 0);s(this,y,void 0);s(this,H,void 0);s(this,P,void 0);s(this,l,void 0);s(this,k,void 0);s(this,f,void 0);s(this,q,void 0);s(this,X,void 0);s(this,B,void 0);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,w)*this.direction*(1-t(this,l).current))}),i(this,X,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,w))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,y)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,w,(e==null?void 0:e.speed)||1),i(this,y,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,y,e),t(this,f)&&L(this,C,S).call(this)}set speed(e){i(this,w,e),t(this,f)&&L(this,C,S).call(this)}connect(){t(this,f)||(i(this,f,!0),L(this,C,S).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),L(this,W,U).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,k)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,k,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}w=new WeakMap,y=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,k=new WeakMap,f=new WeakMap,C=new WeakSet,S=function(){L(this,W,U).call(this),t(this,y)?i(this,P,setInterval(t(this,X),Math.abs(t(this,w)))):M.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},W=new WeakSet,U=function(){clearInterval(t(this,P)),M.ticker.unsubscribe(t(this,q)),clearInterval(t(this,k)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,X=new WeakMap,B=new WeakMap;var T,E,I,Y;class te extends R{constructor(e){super();s(this,T,null);s(this,E,void 0);s(this,I,void 0);s(this,Y,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const h=Date.now();if(h-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,h),Math.abs(a)<100||t(this,E))return;this.changeEvent.notify("wheel",a),i(this,E,setTimeout(()=>{i(this,E,void 0)},80))}else this.changeEvent.notify("wheel",a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,Y),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,Y)),clearTimeout(t(this,E)))}}T=new WeakMap,E=new WeakMap,I=new WeakMap,Y=new WeakMap;var x,b,A,c,K,v;const g=class g extends R{constructor(e){super();s(this,b,null);s(this,A,!1);s(this,c,0);s(this,K,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||M.ticker.unsubscribe(t(this,v));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(h=>{if(t(this,A)||t(g,x)&&t(g,x)!==t(this,b))return;this.swipe&&i(this,A,!0);const O=a.x-h.x,F=a.y-h.y;this.axis==="x"?i(this,c,O):i(this,c,F),a=h,(this.axis==="x"&&Math.abs(O)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(O))&&(i(g,x,t(this,b)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(g,x,null),this.swipe||(i(this,c,t(this,c)*3),M.ticker.subscribe(t(this,v),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,v,()=>{Math.floor(t(this,c))||M.ticker.unsubscribe(t(this,v)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,b,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,b).addEventListener("pointerdown",t(this,K))}disconnect(){m.isBrowser&&(t(this,b).removeEventListener("pointerdown",t(this,K)),M.ticker.unsubscribe(t(this,v)))}};x=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,K=new WeakMap,v=new WeakMap,s(g,x,null);let j=g;exports.AutoplayControls=ee;exports.Controls=R;exports.DragControls=j;exports.KeyboardControls=p;exports.WheelControls=te;
1
+ "use strict";var N=(r,n,e)=>{if(!n.has(r))throw TypeError("Cannot "+e)};var t=(r,n,e)=>(N(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>{if(n.has(r))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(r):n.set(r,e)},i=(r,n,e,a)=>(N(r,n,"write to private field"),a?a.call(r,e):n.set(r,e),e);var L=(r,n,e)=>(N(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),M=require("../ticker/index.cjs");require("../Store-Cr3VaD9G.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-DksN-Rz6.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var z;class R{constructor(){s(this,z,new V.Notifier)}get changeEvent(){return t(this,z)}}z=new WeakMap;var o,d,u,D;class p extends R{constructor(e){super();s(this,o,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let h;e.code==="Space"?h=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?h=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?h=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?h=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?h=1*t(this,d)[t(this,u)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});m.isBrowser&&(i(this,o,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,d,t(this,o)instanceof HTMLElement?t(this,o):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,o).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,o).removeEventListener("keydown",t(this,D))}}o=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var w,y,H,P,l,k,f,C,S,W,U,q,X,B;class ee extends R{constructor(e){super();s(this,C);s(this,W);s(this,w,void 0);s(this,y,void 0);s(this,H,void 0);s(this,P,void 0);s(this,l,void 0);s(this,k,void 0);s(this,f,void 0);s(this,q,void 0);s(this,X,void 0);s(this,B,void 0);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,w)*this.direction*(1-t(this,l).current))}),i(this,X,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,w))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,y)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,w,(e==null?void 0:e.speed)||1),i(this,y,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,y,e),t(this,f)&&L(this,C,S).call(this)}set speed(e){i(this,w,e),t(this,f)&&L(this,C,S).call(this)}connect(){t(this,f)||(i(this,f,!0),L(this,C,S).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),L(this,W,U).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,k)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,k,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}w=new WeakMap,y=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,k=new WeakMap,f=new WeakMap,C=new WeakSet,S=function(){L(this,W,U).call(this),t(this,y)?i(this,P,setInterval(t(this,X),Math.abs(t(this,w)))):M.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},W=new WeakSet,U=function(){clearInterval(t(this,P)),M.ticker.unsubscribe(t(this,q)),clearInterval(t(this,k)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,X=new WeakMap,B=new WeakMap;var T,E,I,Y;class te extends R{constructor(e){super();s(this,T,null);s(this,E,void 0);s(this,I,void 0);s(this,Y,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const h=Date.now();if(h-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,h),Math.abs(a)<100||t(this,E))return;this.changeEvent.notify("wheel",a),i(this,E,setTimeout(()=>{i(this,E,void 0)},80))}else this.changeEvent.notify("wheel",a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,Y),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,Y)),clearTimeout(t(this,E)))}}T=new WeakMap,E=new WeakMap,I=new WeakMap,Y=new WeakMap;var x,b,A,c,K,v;const g=class g extends R{constructor(e){super();s(this,b,null);s(this,A,!1);s(this,c,0);s(this,K,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||M.ticker.unsubscribe(t(this,v));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(h=>{if(t(this,A)||t(g,x)&&t(g,x)!==t(this,b))return;this.swipe&&i(this,A,!0);const O=a.x-h.x,F=a.y-h.y;this.axis==="x"?i(this,c,O):i(this,c,F),a=h,(this.axis==="x"&&Math.abs(O)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(O))&&(i(g,x,t(this,b)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(g,x,null),this.swipe||(i(this,c,t(this,c)*3),M.ticker.subscribe(t(this,v),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,v,()=>{Math.floor(t(this,c))||M.ticker.unsubscribe(t(this,v)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,b,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,b).addEventListener("pointerdown",t(this,K))}disconnect(){m.isBrowser&&(t(this,b).removeEventListener("pointerdown",t(this,K)),M.ticker.unsubscribe(t(this,v)))}};x=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,K=new WeakMap,v=new WeakMap,s(g,x,null);let j=g;exports.AutoplayControls=ee;exports.Controls=R;exports.DragControls=j;exports.KeyboardControls=p;exports.WheelControls=te;
@@ -12,9 +12,9 @@ import { Notifier as j } from "../notifier/index.js";
12
12
  import { i as m } from "../browser-0zX67oeU.js";
13
13
  import { a as Q } from "../dom-P5QbAASX.js";
14
14
  import { ticker as M } from "../ticker/index.js";
15
- import "../Store-Dsft7GtM.js";
15
+ import "../Store-Qr3SNOSf.js";
16
16
  import { e as G } from "../easings-BKi40vHz.js";
17
- import { T as J } from "../Tweened-BrD2cPSC.js";
17
+ import { T as J } from "../Tweened-CjgvoOwL.js";
18
18
  import { s as Z } from "../gestures-D2Fdra_G.js";
19
19
  import { p as $ } from "../polyfills-X6KXuHg-.js";
20
20
  import { TICK_ORDER as p } from "../order/index.js";
@@ -1 +1 @@
1
- "use strict";const n=require("./tags-BBOGIzDK.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
1
+ "use strict";const n=require("./tags-BosXYPYv.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
@@ -1,4 +1,4 @@
1
- import { aC as n } from "./tags-CefGDQtF.js";
1
+ import { aC as n } from "./tags-D0kLlFdQ.js";
2
2
  function c(t) {
3
3
  const e = new CSSStyleSheet();
4
4
  return e.replaceSync(n(t).node.innerHTML), e;
@@ -1 +1 @@
1
- "use strict";var w=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(w(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},i=(s,r,e,n)=>(w(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-kzJycezD.cjs"),p=require("../dom-JBOkFLTh.cjs"),f=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class v extends g.Store{constructor(e,n,d,S){super(d,S);c(this,a,void 0);c(this,b,void 0);c(this,u,void 0);c(this,o,void 0);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,p.getElement(e)),i(this,b,n),i(this,u,d.toString()),i(this,o,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,h)||(i(this,h,!0),f.windowResizer.subscribe(t(this,l),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),f.windowResizer.unsubscribe(t(this,l)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,b));if(!(t(this,o)&&t(this,u)===e))if(i(this,u,e),e){const n=R.cssValueParser.parse(t(this,u));this.current=n}else this.current=this.initial}}a=new WeakMap,b=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakMap,l=new WeakMap;exports.CSSProperty=v;
1
+ "use strict";var w=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(w(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},i=(s,r,e,n)=>(w(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-Cr3VaD9G.cjs"),p=require("../dom-JBOkFLTh.cjs"),f=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class v extends g.Store{constructor(e,n,d,S){super(d,S);c(this,a,void 0);c(this,b,void 0);c(this,u,void 0);c(this,o,void 0);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,p.getElement(e)),i(this,b,n),i(this,u,d.toString()),i(this,o,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,h)||(i(this,h,!0),f.windowResizer.subscribe(t(this,l),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),f.windowResizer.unsubscribe(t(this,l)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,b));if(!(t(this,o)&&t(this,u)===e))if(i(this,u,e),e){const n=R.cssValueParser.parse(t(this,u));this.current=n}else this.current=this.initial}}a=new WeakMap,b=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakMap,l=new WeakMap;exports.CSSProperty=v;
@@ -9,7 +9,7 @@ var t = (s, r, e) => (p(s, r, "read from private field"), e ? e.call(s) : r.get(
9
9
  }, i = (s, r, e, a) => (p(s, r, "write to private field"), a ? a.call(s, e) : r.set(s, e), e);
10
10
  import { cssValueParser as w } from "../css-value-parser/index.js";
11
11
  import { RESIZE_ORDER as R } from "../order/index.js";
12
- import { S as V } from "../Store-Dsft7GtM.js";
12
+ import { S as V } from "../Store-Qr3SNOSf.js";
13
13
  import { a as v } from "../dom-P5QbAASX.js";
14
14
  import { windowResizer as S } from "../window-resizer/index.js";
15
15
  var b, o, u, l, c, n;
package/lib/dev/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-kzJycezD.cjs"),c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-Cr3VaD9G.cjs"),c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
package/lib/dev/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CSSProperty as o } from "../css-property/index.js";
2
- import { a as t } from "../Store-Dsft7GtM.js";
2
+ import { a as t } from "../Store-Qr3SNOSf.js";
3
3
  import { ticker as c } from "../ticker/index.js";
4
4
  function s() {
5
5
  c.subscribe(() => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-DRNfjjDY.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-BBYt1Ivy.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
@@ -1,4 +1,4 @@
1
- import { V as i, a as o, d as r, v as s } from "../Viewport-Ud7nellV.js";
1
+ import { V as i, a as o, d as r, v as s } from "../Viewport-Cgtq2I_K.js";
2
2
  export {
3
3
  i as ViewportBreakpoints,
4
4
  o as ViewportMediaRules,
@@ -5,12 +5,12 @@ import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../connec
5
5
  export type StoreOr<T> = T | Store<T>;
6
6
  export type ElementConstructorTagNameMap = HTMLElementTagNameMap & SVGElementTagNameMap;
7
7
  export type ElementConstructorTagNames = keyof ElementConstructorTagNameMap;
8
- export type ElementConstructorStringStoreClass = Store<string | null | undefined> | Store<string>;
9
- export type ElementConstructorStringArrayStoreClass = Store<Array<string | null | undefined>> | Store<Array<string>>;
10
- export type ElementConstructorClass = string | Array<string | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass> | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | {
11
- [key: string]: boolean | Store<boolean>;
8
+ export type ElementConstructorStringStoreClass = Store<any, any> | Store<any, any>;
9
+ export type ElementConstructorStringArrayStoreClass = Store<Array<any>, any> | Store<Array<any>, any>;
10
+ export type ElementConstructorClass = string | Array<string | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | null | undefined> | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | {
11
+ [key: string]: boolean | Store<boolean, any>;
12
12
  };
13
- export type ElementConstructorStyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}`, 'length' | 'parentRule'>;
13
+ export type ElementConstructorStyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}` | `-${string}`, 'length' | 'parentRule'>;
14
14
  export type ElementConstructorStyleValue = string | number | Store<any>;
15
15
  export type ElementConstructorStyle = Partial<{
16
16
  [K in ElementConstructorStyleToken]: ElementConstructorStyleValue;
@@ -54,6 +54,7 @@ export type ElementConstructorTagObject<T extends ElementConstructorTagNames | N
54
54
  lightChildren?: any;
55
55
  onDisconnect?: ConnectorDisconnectCallback;
56
56
  onConnect?: ConnectorConnectCallback;
57
+ connectedClass?: boolean | string;
57
58
  } & ElementConstructorAttributes<T> & ElementConstructorEvents;
58
59
  export declare class ElementConstructor<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames, N = T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node> {
59
60
  #private;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../ElementConstructor-9S0f1yAH.cjs"),e=require("../tags-BBOGIzDK.cjs"),r=require("../createStylesheet-Di9WRypw.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=t.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=r.createStylesheet;exports.createTheme=a.createTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../ElementConstructor-OK-6OPjh.cjs"),e=require("../tags-BosXYPYv.cjs"),r=require("../createStylesheet-9nksoWW0.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=t.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=r.createStylesheet;exports.createTheme=a.createTheme;
@@ -1,6 +1,6 @@
1
- import { E as e } from "../ElementConstructor-CZKbNIQK.js";
2
- import { a as r, b as o, c as i, d as l, f as d, g as m, h as p, i as c, j as n, k as u, l as b, m as h, n as f, o as g, p as y, q as k, r as x, s as v, t as q, u as E, v as j, aZ as w, w as C, x as S, y as T, z as V, A as z, B as A, C as B, D, E as F, F as G, e as H, G as I, H as J, aY as K, I as L, J as M, K as N, L as O, M as P, aX as Q, N as R, O as U, P as W, Q as X, R as Y, S as Z, T as _, U as $, V as aa, W as sa, X as ea, aU as ta, Y as ra, Z as oa, _ as ia, $ as la, a0 as da, a1 as ma, a2 as pa, a3 as ca, a4 as na, a5 as ua, a6 as ba, a7 as ha, a8 as fa, a9 as ga, aa as ya, ab as ka, ac as xa, ad as va, ae as qa, af as Ea, ag as ja, ah as wa, ai as Ca, aj as Sa, ak as Ta, al as Va, am as za, an as Aa, ao as Ba, ap as Da, aq as Fa, ar as Ga, as as Ha, at as Ia, au as Ja, av as Ka, aw as La, ax as Ma, ay as Na, az as Oa, aA as Pa, aB as Qa, aC as Ra, aD as Ua, aE as Wa, aF as Xa, aG as Ya, aH as Za, aI as _a, aJ as $a, aK as as, aL as ss, aM as es, aN as ts, aO as rs, aP as os, aQ as is, aR as ls, aS as ds, aT as ms, aV as ps, aW as cs } from "../tags-CefGDQtF.js";
3
- import { c as us } from "../createStylesheet-C2gpLy4r.js";
1
+ import { E as e } from "../ElementConstructor-rValMo8f.js";
2
+ import { a as r, b as o, c as i, d as l, f as d, g as m, h as p, i as c, j as n, k as u, l as b, m as h, n as f, o as g, p as y, q as k, r as x, s as v, t as q, u as E, v as j, aZ as w, w as C, x as S, y as T, z as V, A as z, B as A, C as B, D, E as F, F as G, e as H, G as I, H as J, aY as K, I as L, J as M, K as N, L as O, M as P, aX as Q, N as R, O as U, P as W, Q as X, R as Y, S as Z, T as _, U as $, V as aa, W as sa, X as ea, aU as ta, Y as ra, Z as oa, _ as ia, $ as la, a0 as da, a1 as ma, a2 as pa, a3 as ca, a4 as na, a5 as ua, a6 as ba, a7 as ha, a8 as fa, a9 as ga, aa as ya, ab as ka, ac as xa, ad as va, ae as qa, af as Ea, ag as ja, ah as wa, ai as Ca, aj as Sa, ak as Ta, al as Va, am as za, an as Aa, ao as Ba, ap as Da, aq as Fa, ar as Ga, as as Ha, at as Ia, au as Ja, av as Ka, aw as La, ax as Ma, ay as Na, az as Oa, aA as Pa, aB as Qa, aC as Ra, aD as Ua, aE as Wa, aF as Xa, aG as Ya, aH as Za, aI as _a, aJ as $a, aK as as, aL as ss, aM as es, aN as ts, aO as rs, aP as os, aQ as is, aR as ls, aS as ds, aT as ms, aV as ps, aW as cs } from "../tags-D0kLlFdQ.js";
3
+ import { c as us } from "../createStylesheet-BrFGJ8Q7.js";
4
4
  import { c as hs } from "../createTheme-CHnsCgAr.js";
5
5
  export {
6
6
  e as ElementConstructor,