aptechka 0.41.7 → 0.42.1

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 (179) hide show
  1. package/lib/Animation-CMiBKrwE.cjs +1 -0
  2. package/lib/{Animation-CSexZn4M.js → Animation-DPRlQfW2.js} +1 -1
  3. package/lib/{Damped-BMr6Toib.cjs → Damped-CHZ314Rn.cjs} +1 -1
  4. package/lib/{Damped-Bcngr1kp.js → Damped-DxylD27S.js} +1 -1
  5. package/lib/{Tweened-D-vlLZdS.cjs → Tweened-Dn6CMA-p.cjs} +1 -1
  6. package/lib/{Tweened-sqOQu9Gf.js → Tweened-p5hYr6lL.js} +2 -2
  7. package/lib/animation/Animation.d.ts +2 -2
  8. package/lib/animation/Damped.d.ts +1 -1
  9. package/lib/animation/Tweened.d.ts +1 -1
  10. package/lib/animation/index.cjs +1 -1
  11. package/lib/animation/index.js +3 -3
  12. package/lib/attribute/index.d.ts +1 -1
  13. package/lib/attribute/index.js +1 -1
  14. package/lib/canvas/index.cjs +1 -1
  15. package/lib/canvas/index.js +2 -2
  16. package/lib/class-linked-status/index.d.ts +1 -1
  17. package/lib/connector/index.cjs +1 -1
  18. package/lib/connector/index.js +1 -1
  19. package/lib/controls/AutoplayControls.d.ts +1 -1
  20. package/lib/controls/index.cjs +1 -1
  21. package/lib/controls/index.js +4 -4
  22. package/lib/css-property/index.cjs +1 -1
  23. package/lib/css-property/index.d.ts +1 -1
  24. package/lib/css-property/index.js +2 -2
  25. package/lib/custom-scrollbar/index.cjs +1 -0
  26. package/lib/custom-scrollbar/index.d.ts +13 -0
  27. package/lib/custom-scrollbar/index.js +60 -0
  28. package/lib/dev/index.cjs +1 -1
  29. package/lib/dev/index.js +1 -1
  30. package/lib/device/Viewport.d.ts +1 -1
  31. package/lib/device/index.cjs +1 -1
  32. package/lib/device/index.js +1 -1
  33. package/lib/{dom-0S_WDL4g.js → dom-CVWzyXPH.js} +2 -2
  34. package/lib/{easings-BEmRlrDd.js → easings-Bni3YAAW.js} +15 -15
  35. package/lib/element-resizer/index.cjs +1 -0
  36. package/lib/element-resizer/{vanilla/index.d.ts → index.d.ts} +1 -1
  37. package/lib/element-resizer/{vanilla/index.js → index.js} +2 -2
  38. package/lib/en3/index.cjs +1 -1
  39. package/lib/en3/index.js +3 -3
  40. package/lib/iframe/index.cjs +1 -0
  41. package/lib/iframe/index.js +38 -0
  42. package/lib/image/index.cjs +1 -0
  43. package/lib/image/index.js +20 -0
  44. package/lib/intersector/index.cjs +1 -0
  45. package/lib/intersector/{vanilla/index.d.ts → index.d.ts} +1 -1
  46. package/lib/intersector/{vanilla/index.js → index.js} +2 -2
  47. package/lib/ladder/index.d.ts +1 -1
  48. package/lib/layout-Ctc2p3uz.cjs +1 -0
  49. package/lib/layout-DpZo-I0y.js +29 -0
  50. package/lib/layout-box/index.cjs +1 -1
  51. package/lib/layout-box/index.d.ts +1 -1
  52. package/lib/layout-box/index.js +5 -5
  53. package/lib/masonry-layout/index.cjs +1 -0
  54. package/lib/masonry-layout/index.d.ts +11 -0
  55. package/lib/masonry-layout/index.js +60 -0
  56. package/lib/media/index.cjs +1 -1
  57. package/lib/media/index.d.ts +1 -1
  58. package/lib/media/index.js +1 -1
  59. package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  60. package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +1 -1
  61. package/lib/need_redo_tweaker/TweakerElement.d.ts +1 -1
  62. package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +1 -1
  63. package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +1 -1
  64. package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +1 -1
  65. package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +1 -1
  66. package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +1 -1
  67. package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +1 -1
  68. package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +1 -1
  69. package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +1 -1
  70. package/lib/need_redo_tweaker/index.cjs +1 -1
  71. package/lib/need_redo_tweaker/index.js +2 -2
  72. package/lib/pointer/index.cjs +1 -1
  73. package/lib/pointer/index.js +5 -5
  74. package/lib/popover/PopoverElement.d.ts +1 -1
  75. package/lib/popover/index.cjs +1 -1
  76. package/lib/popover/index.js +1 -1
  77. package/lib/scroll/{vanilla/ScrollElement.d.ts → ScrollElement.d.ts} +4 -4
  78. package/lib/scroll/{vanilla/ScrollSegmentElement.d.ts → ScrollSegmentElement.d.ts} +1 -1
  79. package/lib/scroll/index.cjs +1 -0
  80. package/lib/scroll/{vanilla/index.js → index.js} +50 -50
  81. package/lib/scroll-entries/index.js +1 -1
  82. package/lib/scroll-segment/index.cjs +1 -1
  83. package/lib/scroll-segment/index.d.ts +1 -1
  84. package/lib/scroll-segment/index.js +4 -4
  85. package/lib/sequence/index.cjs +1 -0
  86. package/lib/{media-elements/sequence → sequence}/index.d.ts +2 -3
  87. package/lib/sequence/index.js +158 -0
  88. package/lib/size-element/index.cjs +1 -0
  89. package/lib/size-element/index.d.ts +10 -0
  90. package/lib/size-element/index.js +32 -0
  91. package/lib/{media-elements/source/index.d.ts → source/SourceElement.d.ts} +3 -3
  92. package/lib/source/SourceManager.d.ts +1 -1
  93. package/lib/source/index.cjs +5 -1
  94. package/lib/source/index.d.ts +1 -0
  95. package/lib/source/index.js +173 -67
  96. package/lib/store/index.cjs +1 -0
  97. package/lib/store/{vanilla/index.js → index.js} +3 -3
  98. package/lib/ticker/index.cjs +1 -0
  99. package/lib/ticker/{vanilla/index.d.ts → index.d.ts} +1 -1
  100. package/lib/ticker/{vanilla/index.js → index.js} +2 -2
  101. package/lib/utils/clipboard.d.ts +1 -0
  102. package/lib/utils/index.cjs +1 -1
  103. package/lib/utils/index.d.ts +3 -1
  104. package/lib/utils/index.js +190 -144
  105. package/lib/utils/layout.d.ts +4 -3
  106. package/lib/utils/scroll.d.ts +6 -0
  107. package/lib/utils/template.d.ts +1 -0
  108. package/lib/video/index.cjs +1 -0
  109. package/lib/video/index.js +54 -0
  110. package/lib/window-resizer/index.cjs +1 -0
  111. package/lib/window-resizer/{vanilla/index.d.ts → index.d.ts} +1 -1
  112. package/lib/window-resizer/{vanilla/index.js → index.js} +3 -3
  113. package/lib/youtube/index.cjs +1 -0
  114. package/lib/youtube/index.js +81 -0
  115. package/package.json +101 -99
  116. package/lib/Animation-esZH7swx.cjs +0 -1
  117. package/lib/element-resizer/react/index.cjs +0 -1
  118. package/lib/element-resizer/react/index.d.ts +0 -2
  119. package/lib/element-resizer/react/index.js +0 -8
  120. package/lib/element-resizer/vanilla/index.cjs +0 -1
  121. package/lib/intersector/react/index.cjs +0 -1
  122. package/lib/intersector/react/index.d.ts +0 -4
  123. package/lib/intersector/react/index.js +0 -12
  124. package/lib/intersector/vanilla/index.cjs +0 -1
  125. package/lib/layout-8ryRAMGJ.cjs +0 -1
  126. package/lib/layout-HoBT_Da2.js +0 -12
  127. package/lib/media-elements/index.cjs +0 -5
  128. package/lib/media-elements/index.d.ts +0 -6
  129. package/lib/media-elements/index.js +0 -416
  130. package/lib/scroll/react/Scroll.d.ts +0 -13
  131. package/lib/scroll/react/ScrollBulletButtons.d.ts +0 -11
  132. package/lib/scroll/react/ScrollSegment.d.ts +0 -18
  133. package/lib/scroll/react/ScrollSetButton.d.ts +0 -14
  134. package/lib/scroll/react/ScrollStepButton.d.ts +0 -14
  135. package/lib/scroll/react/Scrollbar.d.ts +0 -11
  136. package/lib/scroll/react/index.cjs +0 -30
  137. package/lib/scroll/react/index.d.ts +0 -6
  138. package/lib/scroll/react/index.js +0 -761
  139. package/lib/scroll/vanilla/index.cjs +0 -1
  140. package/lib/store/react/index.cjs +0 -1
  141. package/lib/store/react/index.d.ts +0 -1
  142. package/lib/store/react/index.js +0 -14
  143. package/lib/store/react/useStore.d.ts +0 -2
  144. package/lib/store/vanilla/index.cjs +0 -1
  145. package/lib/studio/Outliner/File/index.d.ts +0 -8
  146. package/lib/studio/Outliner/Folder/index.d.ts +0 -9
  147. package/lib/studio/Outliner/index.d.ts +0 -2
  148. package/lib/studio/Studio/index.d.ts +0 -2
  149. package/lib/studio/Tweaker/index.d.ts +0 -4
  150. package/lib/studio/index.d.ts +0 -1
  151. package/lib/studio/store.d.ts +0 -2
  152. package/lib/ticker/react/index.cjs +0 -1
  153. package/lib/ticker/react/index.d.ts +0 -5
  154. package/lib/ticker/react/index.js +0 -19
  155. package/lib/ticker/vanilla/index.cjs +0 -1
  156. package/lib/utils/ts-react-utility.d.ts +0 -12
  157. package/lib/window-resizer/react/index.cjs +0 -1
  158. package/lib/window-resizer/react/index.d.ts +0 -2
  159. package/lib/window-resizer/react/index.js +0 -8
  160. package/lib/window-resizer/vanilla/index.cjs +0 -1
  161. /package/lib/{media-elements/iframe → iframe}/index.d.ts +0 -0
  162. /package/lib/{media-elements/image → image}/index.d.ts +0 -0
  163. /package/lib/scroll/{vanilla/ScrollBulletButtonsElement.d.ts → ScrollBulletButtonsElement.d.ts} +0 -0
  164. /package/lib/scroll/{vanilla/ScrollButtonElement.d.ts → ScrollButtonElement.d.ts} +0 -0
  165. /package/lib/scroll/{vanilla/ScrollSection.d.ts → ScrollSection.d.ts} +0 -0
  166. /package/lib/scroll/{vanilla/ScrollSetButtonElement.d.ts → ScrollSetButtonElement.d.ts} +0 -0
  167. /package/lib/scroll/{vanilla/ScrollStepButtonElement.d.ts → ScrollStepButtonElement.d.ts} +0 -0
  168. /package/lib/scroll/{vanilla/ScrollUserElement.d.ts → ScrollUserElement.d.ts} +0 -0
  169. /package/lib/scroll/{vanilla/ScrollbarElement.d.ts → ScrollbarElement.d.ts} +0 -0
  170. /package/lib/scroll/{vanilla/index.d.ts → index.d.ts} +0 -0
  171. /package/lib/store/{vanilla/Composed.d.ts → Composed.d.ts} +0 -0
  172. /package/lib/store/{vanilla/Derived.d.ts → Derived.d.ts} +0 -0
  173. /package/lib/store/{vanilla/DerivedArray.d.ts → DerivedArray.d.ts} +0 -0
  174. /package/lib/store/{vanilla/Resource.d.ts → Resource.d.ts} +0 -0
  175. /package/lib/store/{vanilla/Store.d.ts → Store.d.ts} +0 -0
  176. /package/lib/store/{vanilla/StoreRegistry.d.ts → StoreRegistry.d.ts} +0 -0
  177. /package/lib/store/{vanilla/index.d.ts → index.d.ts} +0 -0
  178. /package/lib/{media-elements/video → video}/index.d.ts +0 -0
  179. /package/lib/{media-elements/youtube → youtube}/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../device/index.cjs"),n=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-C2J4Q87x.cjs");class t extends n.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(e){if(e&&this.hasAttribute("webp")&&i.device.isWebp){const s=e.split(".").slice(0,-1).join(".")+".webp";this.consumerElement.src=s}else this.consumerElement.src=e||""}}customElements.get("e-image")||customElements.define("e-image",t);exports.ImageElement=t;
@@ -0,0 +1,20 @@
1
+ import { device as m } from "../device/index.js";
2
+ import { SourceElement as s } from "../source/index.js";
3
+ import "../window-resizer/index.js";
4
+ import "../Store-Cm3LPXlx.js";
5
+ class i extends s {
6
+ createConsumer() {
7
+ return document.createElement("img");
8
+ }
9
+ consumeSource(e) {
10
+ if (e && this.hasAttribute("webp") && m.isWebp) {
11
+ const t = e.split(".").slice(0, -1).join(".") + ".webp";
12
+ this.consumerElement.src = t;
13
+ } else
14
+ this.consumerElement.src = e || "";
15
+ }
16
+ }
17
+ customElements.get("e-image") || customElements.define("e-image", i);
18
+ export {
19
+ i as ImageElement
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";var y=n=>{throw TypeError(n)};var m=(n,t,r)=>t.has(n)||y("Cannot "+r);var s=(n,t,r)=>(m(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>t.has(n)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,r),f=(n,t,r,e)=>(m(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../browser-CpzFX2xg.cjs"),g=require("../dom-JBOkFLTh.cjs");var i,u,l;class w{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});d.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=g.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback!==t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const v=new w;exports.Intersector=w;exports.intersector=v;
@@ -1,4 +1,4 @@
1
- import { ElementOrSelector } from '../../utils';
1
+ import { ElementOrSelector } from '../utils';
2
2
  export type IntersectorCallback = (entry: IntersectionObserverEntry) => void;
3
3
  export declare class Intersector {
4
4
  #private;
@@ -3,8 +3,8 @@ var m = (n) => {
3
3
  };
4
4
  var y = (n, t, s) => t.has(n) || m("Cannot " + s);
5
5
  var r = (n, t, s) => (y(n, t, "read from private field"), s ? s.call(n) : t.get(n)), f = (n, t, s) => t.has(n) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), h = (n, t, s, e) => (y(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
6
- import { i as p } from "../../browser-0zX67oeU.js";
7
- import { g as w } from "../../dom-0S_WDL4g.js";
6
+ import { i as p } from "../browser-0zX67oeU.js";
7
+ import { g as w } from "../dom-CVWzyXPH.js";
8
8
  var i, b, u;
9
9
  class g {
10
10
  constructor() {
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  export type LadderDefaultStepName = number | string;
3
3
  export type LadderOperation = '+' | '*' | '/' | '-';
4
4
  export type LadderStep<T> = [LadderOperation, T];
@@ -0,0 +1 @@
1
+ "use strict";function i(t,f="offsetLeft",s){let e=0;do e+=t[f]||0,t=t.offsetParent;while(t&&t!==s);return e}function u(t,f){return i(t,"offsetLeft",f)}function c(t,f){return i(t,"offsetTop",f)}function l(t,f){const s=[];let e=t.parentElement;for(;e;)window.getComputedStyle(e).position==="sticky"&&s.push(e),e=e.parentElement;return s.reduce((o,n)=>o+(f==="top"?n.offsetTop:n.offsetLeft),0)}exports.getCumulativeOffsetLeft=u;exports.getCumulativeOffsetTop=c;exports.getCumulativePosition=i;exports.getStickyOffset=l;
@@ -0,0 +1,29 @@
1
+ function i(t, f = "offsetLeft", s) {
2
+ let e = 0;
3
+ do
4
+ e += t[f] || 0, t = t.offsetParent;
5
+ while (t && t !== s);
6
+ return e;
7
+ }
8
+ function c(t, f) {
9
+ return i(t, "offsetLeft", f);
10
+ }
11
+ function l(t, f) {
12
+ return i(t, "offsetTop", f);
13
+ }
14
+ function p(t, f) {
15
+ const s = [];
16
+ let e = t.parentElement;
17
+ for (; e; )
18
+ window.getComputedStyle(e).position === "sticky" && s.push(e), e = e.parentElement;
19
+ return s.reduce(
20
+ (n, o) => n + (f === "top" ? o.offsetTop : o.offsetLeft),
21
+ 0
22
+ );
23
+ }
24
+ export {
25
+ l as a,
26
+ i as b,
27
+ p as c,
28
+ c as g
29
+ };
@@ -1 +1 @@
1
- "use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/vanilla/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),et=require("../dom-JBOkFLTh.cjs"),V=require("../layout-8ryRAMGJ.cjs"),st=require("../element-resizer/vanilla/index.cjs"),it=require("../window-resizer/vanilla/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,q=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:q,translationZ:O}}var u,b,m,M,A,T,R,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,v,I,f,G,rt,nt,lt,P,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,M,"auto");h(this,A,"top");h(this,T,!1);h(this,R,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,v,new Map);h(this,I,new dt.Notifier);h(this,P,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,v).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,v).delete(l))}),e.forEach(s=>{if(!t(this,v).has(s)){const l=()=>s;t(this,v).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,M,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,R,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,P)),it.windowResizer.subscribe(t(this,P),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,P)),it.windowResizer.unsubscribe(t(this,P)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,v).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,M=new WeakMap,A=new WeakMap,T=new WeakMap,R=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,v=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,R)?t(this,x):1,y:t(this,R)?t(this,_):1,z:t(this,R)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,M)==="z"){const q=t(this,d)/y,O=t(this,S)/B;r(this,d,(q-Math.floor(q))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const q=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-q+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,M)!=="auto"&&(l=t(this,M));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},P=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
1
+ "use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),et=require("../dom-JBOkFLTh.cjs"),V=require("../layout-Ctc2p3uz.cjs"),st=require("../element-resizer/index.cjs"),it=require("../window-resizer/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,q=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:q,translationZ:O}}var u,b,m,R,A,T,v,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,M,I,f,G,rt,nt,lt,P,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,R,"auto");h(this,A,"top");h(this,T,!1);h(this,v,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,M,new Map);h(this,I,new dt.Notifier);h(this,P,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,M).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,M).delete(l))}),e.forEach(s=>{if(!t(this,M).has(s)){const l=()=>s;t(this,M).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,R,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,P)),it.windowResizer.subscribe(t(this,P),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,P)),it.windowResizer.unsubscribe(t(this,P)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,R=new WeakMap,A=new WeakMap,T=new WeakMap,v=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,M=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,v)?t(this,x):1,y:t(this,v)?t(this,_):1,z:t(this,v)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,R)==="z"){const q=t(this,d)/y,O=t(this,S)/B;r(this,d,(q-Math.floor(q))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const q=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-q+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,R)!=="auto"&&(l=t(this,R));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},P=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
@@ -1,5 +1,5 @@
1
1
  import { Ladder } from '../ladder';
2
- import { StoreSubscribeCallback } from '../store/vanilla';
2
+ import { StoreSubscribeCallback } from '../store';
3
3
  import { ElementOrSelector, Axes3D, Axes2D } from '../utils';
4
4
  import { Notifier } from '../notifier';
5
5
  export declare function decomposeCSSMatrix(matrix: WebKitCSSMatrix): {
@@ -7,12 +7,12 @@ import { cssUnitParser as ut } from "../css-unit-parser/index.js";
7
7
  import { Ladder as N } from "../ladder/index.js";
8
8
  import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
9
9
  import { scrollEntries as $ } from "../scroll-entries/index.js";
10
- import { ticker as j } from "../ticker/vanilla/index.js";
10
+ import { ticker as j } from "../ticker/index.js";
11
11
  import { i as tt } from "../browser-0zX67oeU.js";
12
- import { g as et } from "../dom-0S_WDL4g.js";
13
- import { g as F, a as G } from "../layout-HoBT_Da2.js";
14
- import { elementResizer as st } from "../element-resizer/vanilla/index.js";
15
- import { windowResizer as it } from "../window-resizer/vanilla/index.js";
12
+ import { g as et } from "../dom-CVWzyXPH.js";
13
+ import { g as F, a as G } from "../layout-DpZo-I0y.js";
14
+ import { elementResizer as st } from "../element-resizer/index.js";
15
+ import { windowResizer as it } from "../window-resizer/index.js";
16
16
  import { Notifier as ft } from "../notifier/index.js";
17
17
  function pt(i) {
18
18
  const e = Math.sqrt(
@@ -0,0 +1 @@
1
+ "use strict";var L=t=>{throw TypeError(t)};var m=(t,s,e)=>s.has(t)||L("Cannot "+e);var o=(t,s,e)=>(m(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>s.has(t)?L("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),y=(t,s,e,i)=>(m(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),p=(t,s,e)=>(m(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../css-property/index.cjs"),E=require("../jss-GJLvaNfT.cjs");var n,a,c,u,d,b;class g extends HTMLElement{constructor(){super();r(this,d);r(this,n,new v.CSSProperty(this,"--columns",2));r(this,a,[]);r(this,c,null);r(this,u,()=>{p(this,d,b).call(this)});const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[E.createStylesheet({":host":{display:"grid",gridTemplateColumns:"repeat(var(--columns), 1fr)"},".column":{display:"grid",width:"100%",gap:"var(--gap, 0rem)",gridAutoRows:"max-content"}})]}connectedCallback(){y(this,c,new MutationObserver(o(this,u))),o(this,c).observe(this,{childList:!0}),o(this,n).subscribe(e=>{var i;this.shadowRoot.innerHTML="",y(this,a,[]);for(let l=0;l<e.current;l++){const h=document.createElement("div");h.classList.add("column"),h.innerHTML=`<slot name="col-${l}"></slot>`,o(this,a).push(h),(i=this.shadowRoot)==null||i.appendChild(h)}p(this,d,b).call(this)}),o(this,n).observe()}disconnectedCallback(){o(this,n).close(),o(this,c).disconnect(),this.classList.remove("distributed")}}n=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet,b=function(){[...this.children].forEach((i,l)=>{i.slot=`col-${l%o(this,n).current}`}),this.classList.add("distributed")};customElements.get("e-masonry-layout")||customElements.define("e-masonry-layout",g);exports.MasonryLayoutElement=g;
@@ -0,0 +1,11 @@
1
+ export declare class MasonryLayoutElement extends HTMLElement {
2
+ #private;
3
+ constructor();
4
+ protected connectedCallback(): void;
5
+ protected disconnectedCallback(): void;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'e-masonry-layout': MasonryLayoutElement;
10
+ }
11
+ }
@@ -0,0 +1,60 @@
1
+ var L = (t) => {
2
+ throw TypeError(t);
3
+ };
4
+ var u = (t, s, e) => s.has(t) || L("Cannot " + e);
5
+ var o = (t, s, e) => (u(t, s, "read from private field"), e ? e.call(t) : s.get(t)), r = (t, s, e) => s.has(t) ? L("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), p = (t, s, e, i) => (u(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e), b = (t, s, e) => (u(t, s, "access private method"), e);
6
+ import { CSSProperty as v } from "../css-property/index.js";
7
+ import { c as f } from "../jss-CjccJC-K.js";
8
+ var n, a, c, m, d, y;
9
+ class g extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ r(this, d);
13
+ r(this, n, new v(this, "--columns", 2));
14
+ r(this, a, []);
15
+ r(this, c, null);
16
+ r(this, m, () => {
17
+ b(this, d, y).call(this);
18
+ });
19
+ const e = this.attachShadow({ mode: "open" });
20
+ e.adoptedStyleSheets = [
21
+ f({
22
+ ":host": {
23
+ display: "grid",
24
+ gridTemplateColumns: "repeat(var(--columns), 1fr)"
25
+ },
26
+ ".column": {
27
+ display: "grid",
28
+ width: "100%",
29
+ gap: "var(--gap, 0rem)",
30
+ gridAutoRows: "max-content"
31
+ }
32
+ })
33
+ ];
34
+ }
35
+ connectedCallback() {
36
+ p(this, c, new MutationObserver(o(this, m))), o(this, c).observe(this, {
37
+ childList: !0
38
+ }), o(this, n).subscribe((e) => {
39
+ var i;
40
+ this.shadowRoot.innerHTML = "", p(this, a, []);
41
+ for (let l = 0; l < e.current; l++) {
42
+ const h = document.createElement("div");
43
+ h.classList.add("column"), h.innerHTML = `<slot name="col-${l}"></slot>`, o(this, a).push(h), (i = this.shadowRoot) == null || i.appendChild(h);
44
+ }
45
+ b(this, d, y).call(this);
46
+ }), o(this, n).observe();
47
+ }
48
+ disconnectedCallback() {
49
+ o(this, n).close(), o(this, c).disconnect(), this.classList.remove("distributed");
50
+ }
51
+ }
52
+ n = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), d = new WeakSet(), y = function() {
53
+ [...this.children].forEach((i, l) => {
54
+ i.slot = `col-${l % o(this, n).current}`;
55
+ }), this.classList.add("distributed");
56
+ };
57
+ customElements.get("e-masonry-layout") || customElements.define("e-masonry-layout", g);
58
+ export {
59
+ g as MasonryLayoutElement
60
+ };
@@ -1 +1 @@
1
- "use strict";var a=e=>{throw TypeError(e)};var d=(e,r,s)=>r.has(e)||a("Cannot "+s);var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>r.has(e)?a("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),n=(e,r,s,u)=>(d(e,r,"write to private field"),u?u.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/vanilla/index.cjs"),b=require("../Store-C2J4Q87x.cjs");var i,t;class w extends b.Store{constructor(s){super(!1);c(this,i);c(this,t);n(this,i,s),n(this,t,h.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},l.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=w;
1
+ "use strict";var d=e=>{throw TypeError(e)};var a=(e,r,s)=>r.has(e)||d("Cannot "+s);var o=(e,r,s)=>(a(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>r.has(e)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),u=(e,r,s,n)=>(a(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-C2J4Q87x.cjs");var i,t;class w extends b.Store{constructor(s){super(!1);c(this,i);c(this,t);u(this,i,s),u(this,t,h.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},l.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=w;
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  export type MediaCallback = () => void;
3
3
  export type MediaQueries<T extends string = string> = Map<T, {
4
4
  match: MediaCallback;
@@ -4,7 +4,7 @@ var a = (e) => {
4
4
  var h = (e, s, r) => s.has(e) || a("Cannot " + r);
5
5
  var o = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(e)), c = (e, s, r) => s.has(e) ? a("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, r), u = (e, s, r, m) => (h(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
6
6
  import { RESIZE_ORDER as n } from "../order/index.js";
7
- import { windowResizer as f } from "../window-resizer/vanilla/index.js";
7
+ import { windowResizer as f } from "../window-resizer/index.js";
8
8
  import { S as l } from "../Store-Cm3LPXlx.js";
9
9
  var t, i;
10
10
  class w extends l {
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerBooleanManagerElement extends TweakerStoreManagerElement<Store<boolean>> {
4
4
  constructor(...stores: Array<Store<boolean>>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerColorManagerElement extends TweakerStoreManagerElement<Store<string>> {
4
4
  constructor(...stores: Array<Store<string>>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerFolderElement } from './TweakerFolderElement';
3
3
  export interface StoreBox {
4
4
  store: Store;
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  export interface TweakerFieldParameters {
3
3
  store: Store<any>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerFieldElement } from './TweakerFieldElement';
3
3
  import { StoreBox } from './TweakerElement';
4
4
  export interface TweakerFolderParameters {
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerLinkManagerElement extends TweakerStoreManagerElement<Store<string>> {
4
4
  constructor(...stores: Array<Store<string>>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerNumberManagerElement extends TweakerStoreManagerElement<Store<Array<number> | number>> {
4
4
  #private;
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerSelectManagerElement extends TweakerStoreManagerElement<Store<string>> {
4
4
  constructor(...stores: Array<Store<string>>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  export declare class TweakerStoreManagerElement<S extends Store<any>> extends HTMLElement {
3
3
  #private;
4
4
  constructor(...stores: Array<S>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../store/vanilla';
1
+ import { Store } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
  export declare class TweakerStringManagerElement<S extends Store<any> = Store<string>> extends TweakerStoreManagerElement<S> {
4
4
  constructor(...stores: Array<S>);
@@ -1,4 +1,4 @@
1
- import { Store } from '../../store/vanilla';
1
+ import { Store } from '../../store';
2
2
  import { SplitFirst } from '../../utils';
3
3
  import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../../connector';
4
4
  export type StoreOr<T> = T | Store<T>;
@@ -1,4 +1,4 @@
1
- "use strict";var bt=r=>{throw TypeError(r)};var Ge=(r,s,t)=>s.has(r)||bt("Cannot "+t);var e=(r,s,t)=>(Ge(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>s.has(r)?bt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,t),c=(r,s,t,i)=>(Ge(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t),l=(r,s,t)=>(Ge(r,s,"access private method"),t);const U=require("../browser-CpzFX2xg.cjs"),m=require("../Store-C2J4Q87x.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-DHLrn6Q8.cjs");require("../ticker/vanilla/index.cjs");const pe=require("../string-DhgS_iFl.cjs"),vt=require("../object-CCiXnER2.cjs"),Ut=require("../connector/index.cjs"),Xt=require("../device/index.cjs"),Qt=require("../math-GDWEqu7y.cjs"),Ue=require("../polyfills-BANSrI_m.cjs"),yt=require("../element-resizer/vanilla/index.cjs"),jt=require("../style-At6aDoqG.cjs"),es=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,$,y,we,I,H,a,kt,Et,xt,Xe,Qe,Ct,Tt,Lt,zt,je,et,Rt,tt,st,Mt,it,qe,nt,ot,rt,Ke,Oe;const Ze=class Ze{constructor(...s){o(this,a);o(this,d,null);o(this,$,new Set);o(this,y,new Set);o(this,we);o(this,I);o(this,H);o(this,Ke,s=>{e(this,$).forEach(t=>{t(s)}),e(this,$).clear()});o(this,Oe,(s,t)=>{e(this,y).forEach(i=>{i(s,t)}),e(this,y).clear(),l(this,a,st).call(this)});if(U.isBrowser){const t=s[0],i=s[1];c(this,d,l(this,a,kt).call(this,t,i==null?void 0:i.forceSvg)),l(this,a,xt).call(this,i)}}get node(){return e(this,d)}set node(s){var t;l(this,a,st).call(this),c(this,d,s),(t=e(this,we))==null||t.call(this),e(this,d)instanceof Element&&c(this,I,[...e(this,d).querySelectorAll("store-root")]),l(this,a,tt).call(this),l(this,a,Xe).call(this)}};d=new WeakMap,$=new WeakMap,y=new WeakMap,we=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,kt=function(s,t){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else es.has(s)||t?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},Et=function(s){return s instanceof HTMLElement||s instanceof SVGElement},xt=function(s){if(!s)return;const t=l(this,a,Et).call(this,e(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(e(this,$).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(e(this,y).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&t?l(this,a,Qe).call(this,g):u==="style"&&t?l(this,a,Lt).call(this,g):u==="lightChildren"?l(this,a,qe).call(this,e(this,d),g):u==="children"?l(this,a,qe).call(this,e(this,d)instanceof Element?e(this,d).shadowRoot||e(this,d):e(this,d),g):u==="connectedClass"?e(this,$).add(()=>{requestAnimationFrame(()=>{e(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,Mt).call(this,n),l(this,a,Rt).call(this,h),i&&(typeof i=="function"?i(e(this,d)):i.current=e(this,d)),l(this,a,Xe).call(this)},Xe=function(){if(U.isBrowser&&(e(this,y).size||e(this,$).size)){const s=e(this,d)instanceof DocumentFragment?e(this,d).firstChild:e(this,d);c(this,we,Ut.connector.subscribe(s,{connectCallback:e(this,Ke),disconnectCallback:e(this,Oe),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},Qe=function(s){if(s){if(typeof s=="string")e(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(t=>{t&&l(this,a,Qe).call(this,t)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Ct).call(this,s);else for(const t in s){const i=s[t];i instanceof m.Store?l(this,a,Tt).call(this,t,i):i?e(this,d).classList.add(t):e(this,d).classList.remove(t)}}else return},Ct=function(s){e(this,y).add(s.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e(this,d).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&e(this,d).classList.add(n)})}))},Tt=function(s,t){e(this,y).add(t.subscribe(({current:i})=>{i?e(this,d).classList.add(s):e(this,d).classList.remove(s)}))},Lt=function(s){if(!s)return;e(this,d).tagName==="style"||e(this,d).tagName==="STYLE"?l(this,a,je).call(this,s):l(this,a,zt).call(this,s)},zt=function(s){for(const t in s){const i=t,n=s[i];n instanceof m.Store?e(this,y).add(n.subscribe(({current:h})=>{l(this,a,et).call(this,i,h)})):l(this,a,et).call(this,i,n)}},je=function(s){for(const t in s){const i=s[t];if(typeof i=="object"&&!(i instanceof m.Store))e(this,d).appendChild(document.createTextNode(`${t} {`)),l(this,a,je).call(this,i),e(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");e(this,y).add(i.subscribe(h=>{h.current?n.nodeValue=`${pe.camelToKebab(t)}: ${h.current};`:n.nodeValue=""})),e(this,d).appendChild(n)}else e(this,d).appendChild(document.createTextNode(`${pe.camelToKebab(t)}: ${i};`))}},et=function(s,t){s.includes("--")?t?e(this,d).style.setProperty(s,t.toString()):e(this,d).style.removeProperty(s):t?e(this,d).style[s]=t.toString():e(this,d).style[s]=""},Rt=function(s){if(s){e(this,H)||c(this,H,[]);for(const t in s){const i=t,n=pe.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?e(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&e(this,H).push({name:n,callback:h})}l(this,a,tt).call(this)}},tt=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).addEventListener(t.name,t.callback,t.options)})},st=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).removeEventListener(t.name,t.callback,t.options)})},Mt=function(s){for(const t in s){const i=s[t];i instanceof m.Store?e(this,y).add(i.subscribe(({current:n})=>{l(this,a,it).call(this,t,n)})):l(this,a,it).call(this,t,i)}},it=function(s,t){var n,h;const i=e(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))t!=null&&(i[s]=t.toString());else if(t!=null){const u=t.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},qe=function(s,t){t&&(t=[t].flat(),t.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),e(this,I)||c(this,I,[]);const h=e(this,I).length;n.setAttribute("store-root",""),e(this,I).push(n),e(this,y).add(i.subscribe(({current:u,previous:g})=>{const k=e(this,I)[h];k.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const T=Array.from(k.childNodes),v=Array.isArray(u)?u:[u],ge=Array.isArray(g)?g:[g],Ve=[],x=[];T.length&&ge.forEach((N,P)=>{v.includes(N)?x.push(N):Ve.push(T[P])}),v.forEach((N,P)=>{if(x[P]!=null){if(N!==x[P]){const q=l(this,a,ot).call(this,N),O=T[P];q instanceof Node&&!O.isEqualNode(q)?k.replaceChild(q,O):k.removeChild(O)}}else{const q=l(this,a,ot).call(this,N);q instanceof Node&&n.appendChild(q)}}),Ve.forEach(N=>{k.removeChild(N)}),k.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Ze)l(this,a,nt).call(this,s,i.node);else if(i instanceof Function)l(this,a,qe).call(this,s,vt.isESClass(i)?new i:i());else{const n=l(this,a,rt).call(this,i);n instanceof Node&&l(this,a,nt).call(this,s,n)}}))},nt=function(s,t){!(s instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(e(this,$).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),e(this,y).add(()=>{t.remove()})):s.appendChild(t)},ot=function(s){return s instanceof Ze?s.node:typeof s=="function"?vt.isESClass(s)?new s:s():l(this,a,rt).call(this,s)},rt=function(s){if(s instanceof Node)return s;if(s!=null){const t=String(s);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}else return document.createTextNode(t)}else return},Ke=new WeakMap,Oe=new WeakMap;let A=Ze;function p(...r){return new A(...r)}function ts(r){return new A("a",r)}function Q(r){return new A("button",r)}function b(r){return new A("div",r)}function De(r){return new A("input",r)}function At(r){return new A("label",r)}function ue(r){return new A("slot",r)}function at(r){return new A("span",r)}function Nt(r){return new A("style",{style:r})}function E(r){const s=new CSSStyleSheet;return s.replaceSync(Nt(r).node.innerHTML),s}function ss(r,s){const t=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${t}${pe.camelToKebab(n)})`,value:r[n]},i.style[`--${t}${pe.camelToKebab(n)}`]=r[n];return i}const f=ss({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(U.isBrowser){const r=Nt({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Ft='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',Pt='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',is='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',ns='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',$t=`<svg
1
+ "use strict";var bt=r=>{throw TypeError(r)};var Ge=(r,s,t)=>s.has(r)||bt("Cannot "+t);var e=(r,s,t)=>(Ge(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>s.has(r)?bt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,t),c=(r,s,t,i)=>(Ge(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t),l=(r,s,t)=>(Ge(r,s,"access private method"),t);const U=require("../browser-CpzFX2xg.cjs"),m=require("../Store-C2J4Q87x.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const pe=require("../string-DhgS_iFl.cjs"),vt=require("../object-CCiXnER2.cjs"),Ut=require("../connector/index.cjs"),Xt=require("../device/index.cjs"),Qt=require("../math-GDWEqu7y.cjs"),Ue=require("../polyfills-BANSrI_m.cjs"),yt=require("../element-resizer/index.cjs"),jt=require("../style-At6aDoqG.cjs"),es=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,$,y,we,I,H,a,kt,Et,xt,Xe,Qe,Ct,Tt,Lt,zt,je,et,Rt,tt,st,Mt,it,qe,nt,ot,rt,Ke,Oe;const Ze=class Ze{constructor(...s){o(this,a);o(this,d,null);o(this,$,new Set);o(this,y,new Set);o(this,we);o(this,I);o(this,H);o(this,Ke,s=>{e(this,$).forEach(t=>{t(s)}),e(this,$).clear()});o(this,Oe,(s,t)=>{e(this,y).forEach(i=>{i(s,t)}),e(this,y).clear(),l(this,a,st).call(this)});if(U.isBrowser){const t=s[0],i=s[1];c(this,d,l(this,a,kt).call(this,t,i==null?void 0:i.forceSvg)),l(this,a,xt).call(this,i)}}get node(){return e(this,d)}set node(s){var t;l(this,a,st).call(this),c(this,d,s),(t=e(this,we))==null||t.call(this),e(this,d)instanceof Element&&c(this,I,[...e(this,d).querySelectorAll("store-root")]),l(this,a,tt).call(this),l(this,a,Xe).call(this)}};d=new WeakMap,$=new WeakMap,y=new WeakMap,we=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,kt=function(s,t){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else es.has(s)||t?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},Et=function(s){return s instanceof HTMLElement||s instanceof SVGElement},xt=function(s){if(!s)return;const t=l(this,a,Et).call(this,e(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(e(this,$).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(e(this,y).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&t?l(this,a,Qe).call(this,g):u==="style"&&t?l(this,a,Lt).call(this,g):u==="lightChildren"?l(this,a,qe).call(this,e(this,d),g):u==="children"?l(this,a,qe).call(this,e(this,d)instanceof Element?e(this,d).shadowRoot||e(this,d):e(this,d),g):u==="connectedClass"?e(this,$).add(()=>{requestAnimationFrame(()=>{e(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,Mt).call(this,n),l(this,a,Rt).call(this,h),i&&(typeof i=="function"?i(e(this,d)):i.current=e(this,d)),l(this,a,Xe).call(this)},Xe=function(){if(U.isBrowser&&(e(this,y).size||e(this,$).size)){const s=e(this,d)instanceof DocumentFragment?e(this,d).firstChild:e(this,d);c(this,we,Ut.connector.subscribe(s,{connectCallback:e(this,Ke),disconnectCallback:e(this,Oe),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},Qe=function(s){if(s){if(typeof s=="string")e(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(t=>{t&&l(this,a,Qe).call(this,t)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Ct).call(this,s);else for(const t in s){const i=s[t];i instanceof m.Store?l(this,a,Tt).call(this,t,i):i?e(this,d).classList.add(t):e(this,d).classList.remove(t)}}else return},Ct=function(s){e(this,y).add(s.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e(this,d).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&e(this,d).classList.add(n)})}))},Tt=function(s,t){e(this,y).add(t.subscribe(({current:i})=>{i?e(this,d).classList.add(s):e(this,d).classList.remove(s)}))},Lt=function(s){if(!s)return;e(this,d).tagName==="style"||e(this,d).tagName==="STYLE"?l(this,a,je).call(this,s):l(this,a,zt).call(this,s)},zt=function(s){for(const t in s){const i=t,n=s[i];n instanceof m.Store?e(this,y).add(n.subscribe(({current:h})=>{l(this,a,et).call(this,i,h)})):l(this,a,et).call(this,i,n)}},je=function(s){for(const t in s){const i=s[t];if(typeof i=="object"&&!(i instanceof m.Store))e(this,d).appendChild(document.createTextNode(`${t} {`)),l(this,a,je).call(this,i),e(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");e(this,y).add(i.subscribe(h=>{h.current?n.nodeValue=`${pe.camelToKebab(t)}: ${h.current};`:n.nodeValue=""})),e(this,d).appendChild(n)}else e(this,d).appendChild(document.createTextNode(`${pe.camelToKebab(t)}: ${i};`))}},et=function(s,t){s.includes("--")?t?e(this,d).style.setProperty(s,t.toString()):e(this,d).style.removeProperty(s):t?e(this,d).style[s]=t.toString():e(this,d).style[s]=""},Rt=function(s){if(s){e(this,H)||c(this,H,[]);for(const t in s){const i=t,n=pe.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?e(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&e(this,H).push({name:n,callback:h})}l(this,a,tt).call(this)}},tt=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).addEventListener(t.name,t.callback,t.options)})},st=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).removeEventListener(t.name,t.callback,t.options)})},Mt=function(s){for(const t in s){const i=s[t];i instanceof m.Store?e(this,y).add(i.subscribe(({current:n})=>{l(this,a,it).call(this,t,n)})):l(this,a,it).call(this,t,i)}},it=function(s,t){var n,h;const i=e(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))t!=null&&(i[s]=t.toString());else if(t!=null){const u=t.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},qe=function(s,t){t&&(t=[t].flat(),t.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),e(this,I)||c(this,I,[]);const h=e(this,I).length;n.setAttribute("store-root",""),e(this,I).push(n),e(this,y).add(i.subscribe(({current:u,previous:g})=>{const k=e(this,I)[h];k.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const T=Array.from(k.childNodes),v=Array.isArray(u)?u:[u],ge=Array.isArray(g)?g:[g],Ve=[],x=[];T.length&&ge.forEach((N,P)=>{v.includes(N)?x.push(N):Ve.push(T[P])}),v.forEach((N,P)=>{if(x[P]!=null){if(N!==x[P]){const q=l(this,a,ot).call(this,N),O=T[P];q instanceof Node&&!O.isEqualNode(q)?k.replaceChild(q,O):k.removeChild(O)}}else{const q=l(this,a,ot).call(this,N);q instanceof Node&&n.appendChild(q)}}),Ve.forEach(N=>{k.removeChild(N)}),k.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Ze)l(this,a,nt).call(this,s,i.node);else if(i instanceof Function)l(this,a,qe).call(this,s,vt.isESClass(i)?new i:i());else{const n=l(this,a,rt).call(this,i);n instanceof Node&&l(this,a,nt).call(this,s,n)}}))},nt=function(s,t){!(s instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(e(this,$).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),e(this,y).add(()=>{t.remove()})):s.appendChild(t)},ot=function(s){return s instanceof Ze?s.node:typeof s=="function"?vt.isESClass(s)?new s:s():l(this,a,rt).call(this,s)},rt=function(s){if(s instanceof Node)return s;if(s!=null){const t=String(s);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}else return document.createTextNode(t)}else return},Ke=new WeakMap,Oe=new WeakMap;let A=Ze;function p(...r){return new A(...r)}function ts(r){return new A("a",r)}function Q(r){return new A("button",r)}function b(r){return new A("div",r)}function De(r){return new A("input",r)}function At(r){return new A("label",r)}function ue(r){return new A("slot",r)}function at(r){return new A("span",r)}function Nt(r){return new A("style",{style:r})}function E(r){const s=new CSSStyleSheet;return s.replaceSync(Nt(r).node.innerHTML),s}function ss(r,s){const t=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${t}${pe.camelToKebab(n)})`,value:r[n]},i.style[`--${t}${pe.camelToKebab(n)}`]=r[n];return i}const f=ss({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(U.isBrowser){const r=Nt({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Ft='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',Pt='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',is='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',ns='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',$t=`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="32"
4
4
  height="32"
@@ -8,14 +8,14 @@ import { S as P, s as B, a as j } from "../Store-Cm3LPXlx.js";
8
8
  import { c as Ut } from "../file-GHShUlue.js";
9
9
  import { d as Xt } from "../function-C10DGppn.js";
10
10
  import { s as Et } from "../gestures-D2Fdra_G.js";
11
- import "../ticker/vanilla/index.js";
11
+ import "../ticker/index.js";
12
12
  import { c as Oe, u as Qt } from "../string-f0Dnk0L1.js";
13
13
  import { i as yt } from "../object-D6MVWB4l.js";
14
14
  import { connector as jt } from "../connector/index.js";
15
15
  import { ViewportMediaRules as es } from "../device/index.js";
16
16
  import { c as ts } from "../math-BOBiC4TN.js";
17
17
  import { n as St, t as ss } from "../polyfills-CxfUK5OU.js";
18
- import { elementResizer as kt } from "../element-resizer/vanilla/index.js";
18
+ import { elementResizer as kt } from "../element-resizer/index.js";
19
19
  import { g as is } from "../style-j2TwriJ_.js";
20
20
  const ns = /* @__PURE__ */ new Set([
21
21
  // 'a', 'style', 'title', 'script',
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty;var _=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var M=i=>{throw TypeError(i)};var D=(i,s,t)=>s in i?A(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,T=(i,s)=>{for(var t in s||(s={}))F.call(s,t)&&D(i,t,s[t]);if(_)for(var t of _(s))G.call(s,t)&&D(i,t,s[t]);return i};var k=(i,s,t)=>s.has(i)||M("Cannot "+t);var e=(i,s,t)=>(k(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>s.has(i)?M("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),c=(i,s,t,a)=>(k(i,s,"write to private field"),a?a.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-C2J4Q87x.cjs");const q=require("../coordinates-D8Np3cPD.cjs"),I=require("../dom-JBOkFLTh.cjs"),H=require("../math-GDWEqu7y.cjs");require("../ticker/vanilla/index.cjs");const R=require("../Damped-BMr6Toib.cjs"),j=require("../element-resizer/vanilla/index.cjs"),B=require("../window-resizer/vanilla/index.cjs"),P=require("../css-property/index.cjs");var o,l,m,d,y,u,b,v,f,w,C,p;class O{constructor(s){n(this,o);n(this,l);n(this,m);n(this,d);n(this,y);n(this,u);n(this,b,0);n(this,v,0);n(this,f,s=>{e(this,d).set(1)});n(this,w,s=>{e(this,d).set(0)});n(this,C,s=>{const t=q.getPointerPosition(s,e(this,o).getBoundingClientRect()),a={width:e(this,b),height:e(this,v)},h={x:t.x,y:t.y};if(e(this,y)){const z=q.screenToCartesian(h,a);h.x=z.x,h.y=z.y}if(e(this,u)){const z=q.normalize(h,a);h.x=H.clamp(z.x*2,-1,1),h.y=H.clamp(z.y*2,-1,1)}e(this,l).set(h.x),e(this,m).set(h.y)});n(this,p,()=>{c(this,b,this.element.clientWidth),c(this,v,this.element.clientHeight);let s=0,t=0,a=0,h=0;e(this,y)?e(this,u)?(s=-1,t=1,a=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,a=e(this,v)/2*-1,h=e(this,v)/2*1):e(this,u)?(s=0,t=1,a=0,h=1):(s=0,t=e(this,b),a=0,h=e(this,v)),e(this,l).min=s,e(this,l).max=t,e(this,m).min=a,e(this,m).max=h});c(this,o,I.getElement(s.element)),c(this,l,new R.Damped(0,s.damped)),c(this,m,new R.Damped(0,s.damped)),c(this,d,new R.Damped(0,T({min:0,max:1},s.damped))),c(this,y,s.cartesian||!1),c(this,u,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,l)}get y(){return e(this,m)}get z(){return e(this,d)}get cartesian(){return e(this,y)}set cartesian(s){c(this,y,s),e(this,p).call(this)}get normalize(){return e(this,u)}set normalize(s){c(this,u,s),e(this,p).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),j.elementResizer.subscribe(e(this,o),e(this,p)),B.windowResizer.subscribe(e(this,p))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),j.elementResizer.unsubscribe(e(this,p)),B.windowResizer.unsubscribe(e(this,p)),e(this,l).reset(),e(this,m).reset(),e(this,d).reset()}}o=new WeakMap,l=new WeakMap,m=new WeakMap,d=new WeakMap,y=new WeakMap,u=new WeakMap,b=new WeakMap,v=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,p=new WeakMap;var r,x,g,S,E,L;class W extends HTMLElement{constructor(){super();n(this,r);n(this,x,new P.CSSProperty(this,"--damping",20));n(this,g,new P.CSSProperty(this,"--mass",0));n(this,S,new P.CSSProperty(this,"--stiffness",0));n(this,E,new P.CSSProperty(this,"--cartesian",!1));n(this,L,new P.CSSProperty(this,"--normalize",!1));c(this,r,new O({element:this})),e(this,x).subscribe(t=>{e(this,r).x.damping=t.current,e(this,r).y.damping=t.current,e(this,r).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,r).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,r).normalize=t.current}),e(this,g).subscribe(t=>{e(this,r).x.mass=t.current,e(this,r).y.mass=t.current,e(this,r).z.mass=t.current}),e(this,S).subscribe(t=>{e(this,r).x.stiffness=t.current,e(this,r).y.stiffness=t.current,e(this,r).z.stiffness=t.current}),e(this,r).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,r).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,r).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,r)}connectedCallback(){e(this,r).connect(),e(this,x).observe(),e(this,g).observe(),e(this,S).observe()}disconnectedCallback(){e(this,r).disconnect(),e(this,x).unobserve(),e(this,g).unobserve(),e(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}r=new WeakMap,x=new WeakMap,g=new WeakMap,S=new WeakMap,E=new WeakMap,L=new WeakMap;customElements.get("e-pointer")||customElements.define("e-pointer",W);exports.Pointer=O;exports.PointerElement=W;
1
+ "use strict";var A=Object.defineProperty;var D=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var T=i=>{throw TypeError(i)};var M=(i,s,t)=>s in i?A(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,_=(i,s)=>{for(var t in s||(s={}))F.call(s,t)&&M(i,t,s[t]);if(D)for(var t of D(s))G.call(s,t)&&M(i,t,s[t]);return i};var k=(i,s,t)=>s.has(i)||T("Cannot "+t);var e=(i,s,t)=>(k(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>s.has(i)?T("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),c=(i,s,t,m)=>(k(i,s,"write to private field"),m?m.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-C2J4Q87x.cjs");const q=require("../coordinates-D8Np3cPD.cjs"),I=require("../dom-JBOkFLTh.cjs"),H=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const R=require("../Damped-CHZ314Rn.cjs"),j=require("../element-resizer/index.cjs"),B=require("../window-resizer/index.cjs"),P=require("../css-property/index.cjs");var o,a,l,d,y,u,b,x,f,w,C,p;class O{constructor(s){n(this,o);n(this,a);n(this,l);n(this,d);n(this,y);n(this,u);n(this,b,0);n(this,x,0);n(this,f,s=>{e(this,d).set(1)});n(this,w,s=>{e(this,d).set(0)});n(this,C,s=>{const t=q.getPointerPosition(s,e(this,o).getBoundingClientRect()),m={width:e(this,b),height:e(this,x)},h={x:t.x,y:t.y};if(e(this,y)){const z=q.screenToCartesian(h,m);h.x=z.x,h.y=z.y}if(e(this,u)){const z=q.normalize(h,m);h.x=H.clamp(z.x*2,-1,1),h.y=H.clamp(z.y*2,-1,1)}e(this,a).set(h.x),e(this,l).set(h.y)});n(this,p,()=>{c(this,b,this.element.clientWidth),c(this,x,this.element.clientHeight);let s=0,t=0,m=0,h=0;e(this,y)?e(this,u)?(s=-1,t=1,m=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,m=e(this,x)/2*-1,h=e(this,x)/2*1):e(this,u)?(s=0,t=1,m=0,h=1):(s=0,t=e(this,b),m=0,h=e(this,x)),e(this,a).min=s,e(this,a).max=t,e(this,l).min=m,e(this,l).max=h});c(this,o,I.getElement(s.element)),c(this,a,new R.Damped(0,s.damped)),c(this,l,new R.Damped(0,s.damped)),c(this,d,new R.Damped(0,_({min:0,max:1},s.damped))),c(this,y,s.cartesian||!1),c(this,u,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,a)}get y(){return e(this,l)}get z(){return e(this,d)}get cartesian(){return e(this,y)}set cartesian(s){c(this,y,s),e(this,p).call(this)}get normalize(){return e(this,u)}set normalize(s){c(this,u,s),e(this,p).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),j.elementResizer.subscribe(e(this,o),e(this,p)),B.windowResizer.subscribe(e(this,p))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),j.elementResizer.unsubscribe(e(this,p)),B.windowResizer.unsubscribe(e(this,p)),e(this,a).reset(),e(this,l).reset(),e(this,d).reset()}}o=new WeakMap,a=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,u=new WeakMap,b=new WeakMap,x=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,p=new WeakMap;var r,g,v,S,E,L;class W extends HTMLElement{constructor(){super();n(this,r);n(this,g,new P.CSSProperty(this,"--damping",20));n(this,v,new P.CSSProperty(this,"--mass",0));n(this,S,new P.CSSProperty(this,"--stiffness",0));n(this,E,new P.CSSProperty(this,"--cartesian",!1));n(this,L,new P.CSSProperty(this,"--normalize",!1));c(this,r,new O({element:this})),e(this,g).subscribe(t=>{e(this,r).x.damping=t.current,e(this,r).y.damping=t.current,e(this,r).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,r).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,r).normalize=t.current}),e(this,v).subscribe(t=>{e(this,r).x.mass=t.current,e(this,r).y.mass=t.current,e(this,r).z.mass=t.current}),e(this,S).subscribe(t=>{e(this,r).x.stiffness=t.current,e(this,r).y.stiffness=t.current,e(this,r).z.stiffness=t.current}),e(this,r).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,r).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,r).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,r)}connectedCallback(){e(this,r).connect(),e(this,g).observe(),e(this,v).observe(),e(this,S).observe()}disconnectedCallback(){e(this,r).disconnect(),e(this,g).unobserve(),e(this,v).unobserve(),e(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}r=new WeakMap,g=new WeakMap,v=new WeakMap,S=new WeakMap,E=new WeakMap,L=new WeakMap;customElements.get("e-pointer")||customElements.define("e-pointer",W);exports.Pointer=O;exports.PointerElement=W;
@@ -16,12 +16,12 @@ var T = (i, s, e) => s.has(i) || H("Cannot " + e);
16
16
  var t = (i, s, e) => (T(i, s, "read from private field"), e ? e.call(i) : s.get(i)), n = (i, s, e) => s.has(i) ? H("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), c = (i, s, e, m) => (T(i, s, "write to private field"), m ? m.call(i, e) : s.set(i, e), e);
17
17
  import "../Store-Cm3LPXlx.js";
18
18
  import { g as G, s as I, n as J } from "../coordinates-CgdGoSYs.js";
19
- import { g as K } from "../dom-0S_WDL4g.js";
19
+ import { g as K } from "../dom-CVWzyXPH.js";
20
20
  import { c as B } from "../math-BOBiC4TN.js";
21
- import "../ticker/vanilla/index.js";
22
- import { D as R } from "../Damped-Bcngr1kp.js";
23
- import { elementResizer as W } from "../element-resizer/vanilla/index.js";
24
- import { windowResizer as j } from "../window-resizer/vanilla/index.js";
21
+ import "../ticker/index.js";
22
+ import { D as R } from "../Damped-DxylD27S.js";
23
+ import { elementResizer as W } from "../element-resizer/index.js";
24
+ import { windowResizer as j } from "../window-resizer/index.js";
25
25
  import { CSSProperty as P } from "../css-property/index.js";
26
26
  var o, a, l, y, b, u, d, f, S, w, E, p;
27
27
  class N {
@@ -1,5 +1,5 @@
1
1
  import { CSSProperty } from '../css-property';
2
- import { Store } from '../store/vanilla';
2
+ import { Store } from '../store';
3
3
  export interface PopoverEvents {
4
4
  popoverTriggered: CustomEvent<{
5
5
  trigger: any;
@@ -1 +1 @@
1
- "use strict";var F=n=>{throw TypeError(n)};var W=(n,c,t)=>c.has(n)||F("Cannot "+t);var e=(n,c,t)=>(W(n,c,"read from private field"),t?t.call(n):c.get(n)),s=(n,c,t)=>c.has(n)?F("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(n):c.set(n,t),i=(n,c,t,h)=>(W(n,c,"write to private field"),h?h.call(n,t):c.set(n,t),t),v=(n,c,t)=>(W(n,c,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../css-property/index.cjs"),X=require("../Store-C2J4Q87x.cjs"),I=require("../events-KVanG9sR.cjs"),Y=require("../function-MthRj-GJ.cjs"),Z=require("../style-At6aDoqG.cjs"),G=require("../url-BiHPIsKq.cjs"),J=require("../window-resizer/vanilla/index.cjs"),ee=require("../browser-CpzFX2xg.cjs");var C,d,O,S,u,m,p,g,f,y,b,w,l,K,T,N,A,B,k,_,R,x,D;const a=class a extends HTMLElement{constructor(){super(...arguments);s(this,l);s(this,C);s(this,d);s(this,O);s(this,S);s(this,u);s(this,m);s(this,p);s(this,g);s(this,f);s(this,y);s(this,b);s(this,w);s(this,T);s(this,A);s(this,k);s(this,_);s(this,R);s(this,x);this.urlValue="",i(this,C,-1),i(this,d,new X.Store(!1)),i(this,u,new E.CSSProperty(this,"--history",!1)),i(this,m,new E.CSSProperty(this,"--restore",!1)),i(this,p,new E.CSSProperty(this,"--dominance",0)),i(this,g,new E.CSSProperty(this,"--group","")),i(this,f,new E.CSSProperty(this,"--click-outside",!1)),i(this,y,new E.CSSProperty(this,"--escape",!1)),i(this,b,!1),this.open=t=>{if(e(this,d).current)return;i(this,w,t==null?void 0:t.trigger),e(this,p).current&&(a.__opened=a.__opened.filter(o=>o!==this&&v(this,l,D).call(this,this,o)?(o.close(),!1):!0)),a.__opened.push(this),i(this,C,a.__opened.length-1),clearTimeout(e(this,O)),this.classList.remove("closing"),this.classList.add("triggered"),this.style.display="block",I.dispatchEvent(this,"popoverTriggered",{custom:!0,detail:{trigger:e(this,w)}}),e(this,u).current&&e(this,b)&&history.pushState(history.state,"",e(this,l,K)),e(this,d).current=!0;const h=()=>{addEventListener("click",e(this,T)),addEventListener("keydown",e(this,A)),e(this,x).call(this),this.style.opacity="1",this.classList.add("opened"),I.dispatchEvent(this,"popoverOpened",{custom:!0,detail:{trigger:e(this,w)}}),i(this,S,void 0),this.setAttribute("aria-hidden","false")};t!=null&&t.skipTransition?h():i(this,S,setTimeout(h,10))},this.close=()=>{e(this,d).current&&(removeEventListener("click",e(this,T)),removeEventListener("keydown",e(this,A)),e(this,d).current=!1,a.__opened=a.__opened.filter(t=>t===this?!1:!e(t,S)&&v(this,l,D).call(this,this,t)?(t.close(),!1):!0),v(this,l,N).call(this),this.classList.remove("opened"),this.classList.add("closing"),this.setAttribute("aria-hidden","true"),this.style.opacity="0",I.dispatchEvent(this,"popoverClosing",{custom:!0}),setTimeout(()=>{this.classList.remove("triggered"),this.classList.remove("closing"),this.style.display="none",I.dispatchEvent(this,"popoverClosed",{custom:!0})},Z.getElementTransitionDurationMS(this)+10))},i(this,T,t=>{e(this,f).current&&v(this,l,B).call(this,()=>{var U;const h=t.composedPath();if(h.find(j=>j instanceof HTMLElement&&j.hasAttribute("data-popover-content")))return;const o=h[0],z=o instanceof Node&&(this.contains(o)||((U=this.shadowRoot)==null?void 0:U.contains(o))),P=o instanceof HTMLElement&&o.hasAttribute("data-outside");(!z||P)&&this.close()})}),i(this,A,t=>{e(this,y).current&&v(this,l,B).call(this,()=>{t.code==="Escape"&&this.close()})}),i(this,k,()=>{i(this,b,!1),e(this,d).current&&e(this,u).current&&!location.search.includes(this.id)?this.close():!e(this,d).current&&e(this,u).current&&location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),i(this,b,!0)}),i(this,_,()=>{this.style.setProperty("--content-width","initial"),this.style.setProperty("--content-height","initial"),e(this,R).call(this)}),i(this,R,Y.debounce(()=>{e(this,x).call(this)},10)),i(this,x,()=>{this.style.setProperty("--content-width",this.scrollWidth+"px"),this.style.setProperty("--content-height",this.scrollHeight+"px")})}get history(){return e(this,u)}get restore(){return e(this,m)}get dominance(){return e(this,p)}get group(){return e(this,g)}get clickOutside(){return e(this,f)}get escape(){return e(this,y)}get opened(){return e(this,d)}get lastTrigger(){return e(this,w)}get idWithValue(){return`${this.id}${this.urlValue?"="+this.urlValue:""}`}updateUrlValue(t){this.urlValue=(t==null?void 0:t.toString())||"",e(this,d).current&&G.updateSearchParameter(this.id,t)}connectedCallback(){e(this,u).observe(),e(this,m).observe(),e(this,p).observe(),e(this,g).observe(),e(this,f).observe(),e(this,y).observe(),this.style.opacity="0",this.style.display="none",this.setAttribute("role","dialog"),this.setAttribute("aria-hidden","true"),this.classList.remove("closing"),this.classList.remove("closed"),this.classList.remove("triggered"),this.classList.remove("opened"),addEventListener("popstate",e(this,k)),setTimeout(()=>{e(this,m).current?(this.urlValue=G.parseSearchParameters(location.search)[this.id],e(this,k).call(this)):(v(this,l,N).call(this),i(this,b,!0))},0),J.windowResizer.subscribe(e(this,_))}disconnectedCallback(){J.windowResizer.unsubscribe(e(this,_)),e(this,u).close(),e(this,m).close(),e(this,p).close(),e(this,g).close(),e(this,f).close(),e(this,y).close(),this.style.opacity="",this.style.display="",this.removeAttribute("role"),this.removeAttribute("aria-hidden"),a.__opened=a.__opened.filter(t=>t!==this),clearTimeout(e(this,O)),clearTimeout(e(this,S)),removeEventListener("popstate",e(this,k)),removeEventListener("click",e(this,T)),removeEventListener("keydown",e(this,A)),this.style.removeProperty("--content-width"),this.style.removeProperty("--content-height"),v(this,l,N).call(this)}};C=new WeakMap,d=new WeakMap,O=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,l=new WeakSet,K=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${this.idWithValue}`},T=new WeakMap,N=function(){if(e(this,u).current){const t=new URL(location.href);t.searchParams.delete(this.id),history.replaceState(history.state,"",t.href)}},A=new WeakMap,B=function(t){(a.__opened[e(this,C)-1]||a.__opened.length===1||a.__opened.filter(h=>h!==this).every(h=>e(this,p).current>h.dominance.current))&&t()},k=new WeakMap,_=new WeakMap,R=new WeakMap,x=new WeakMap,D=function(t,h){if(e(t,g).current===e(h,g).current&&t.dominance.current>=h.dominance.current)return!0},a.__opened=[];let q=a;customElements.get("e-popover")||customElements.define("e-popover",q);var r,L,V,M,$,H;class Q extends HTMLElement{constructor(){super();s(this,r);s(this,L,new E.CSSProperty(this,"--type","open"));s(this,V,()=>{this.classList.add("triggered")});s(this,M,()=>{this.classList.add("opened"),this.setAttribute("aria-expanded","true")});s(this,$,()=>{this.classList.remove("opened")});s(this,H,()=>{this.classList.remove("triggered"),this.setAttribute("aria-expanded","false")});ee.isBrowser&&(this.addEventListener("click",()=>{if(e(this,r)){const t=e(this,L).current;t==="open"||t==="toggle"&&!e(this,r).opened.current?e(this,r).open({trigger:this}):(t==="close"||t==="toggle"&&e(this,r).opened.current)&&e(this,r).close()}}),this.addEventListener("keydown",t=>{t.code==="Space"&&t.currentTarget.click()}))}get type(){return e(this,L)}get popoverElement(){return e(this,r)}connectedCallback(){var h;e(this,L).subscribe(o=>{e(this,r)instanceof q&&(o.current!=="close"?(this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",e(this,r).opened.current?"true":"false"),this.setAttribute("aria-controls",e(this,r).id||"")):(this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls")))}),this.hasAttribute("tabindex")||(this.tabIndex=0);const t=this.getAttribute("target");if(t){let o=null;if(t==="parent"){const z=this.closest("[popover-target]");if(z)o=z;else{const P=this.getRootNode();P instanceof ShadowRoot?o=P.host.closest("[popover-target]"):P instanceof HTMLElement&&(o=P.closest("[popover-target]"))}}else t==="sibling"?o=(h=this.parentElement)==null?void 0:h.querySelector("[popover-target]"):o=document.querySelector(`#${t}`)||this.getRootNode().querySelector(`#${t}`);o instanceof HTMLElement?(i(this,r,o),e(this,r).addEventListener("popoverTriggered",e(this,V)),e(this,r).addEventListener("popoverOpened",e(this,M)),e(this,r).addEventListener("popoverClosing",e(this,$)),e(this,r).addEventListener("popoverClosed",e(this,H))):console.warn(this,`target ${t} not found`)}this.isConnected&&e(this,L).observe()}disconnectedCallback(){e(this,L).unobserve(),this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls"),e(this,r)&&(e(this,r).removeEventListener("popoverTriggered",e(this,V)),e(this,r).removeEventListener("popoverOpened",e(this,M)),e(this,r).removeEventListener("popoverClosing",e(this,$)),e(this,r).removeEventListener("popoverClosed",e(this,H)))}}r=new WeakMap,L=new WeakMap,V=new WeakMap,M=new WeakMap,$=new WeakMap,H=new WeakMap;customElements.get("e-popover-button")||customElements.define("e-popover-button",Q);exports.PopoverButtonElement=Q;exports.PopoverElement=q;
1
+ "use strict";var F=n=>{throw TypeError(n)};var W=(n,c,t)=>c.has(n)||F("Cannot "+t);var e=(n,c,t)=>(W(n,c,"read from private field"),t?t.call(n):c.get(n)),s=(n,c,t)=>c.has(n)?F("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(n):c.set(n,t),i=(n,c,t,h)=>(W(n,c,"write to private field"),h?h.call(n,t):c.set(n,t),t),v=(n,c,t)=>(W(n,c,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../css-property/index.cjs"),X=require("../Store-C2J4Q87x.cjs"),I=require("../events-KVanG9sR.cjs"),Y=require("../function-MthRj-GJ.cjs"),Z=require("../style-At6aDoqG.cjs"),G=require("../url-BiHPIsKq.cjs"),J=require("../window-resizer/index.cjs"),ee=require("../browser-CpzFX2xg.cjs");var C,d,O,S,u,m,p,g,f,y,b,w,l,K,T,N,A,B,k,_,R,x,D;const a=class a extends HTMLElement{constructor(){super(...arguments);s(this,l);s(this,C);s(this,d);s(this,O);s(this,S);s(this,u);s(this,m);s(this,p);s(this,g);s(this,f);s(this,y);s(this,b);s(this,w);s(this,T);s(this,A);s(this,k);s(this,_);s(this,R);s(this,x);this.urlValue="",i(this,C,-1),i(this,d,new X.Store(!1)),i(this,u,new E.CSSProperty(this,"--history",!1)),i(this,m,new E.CSSProperty(this,"--restore",!1)),i(this,p,new E.CSSProperty(this,"--dominance",0)),i(this,g,new E.CSSProperty(this,"--group","")),i(this,f,new E.CSSProperty(this,"--click-outside",!1)),i(this,y,new E.CSSProperty(this,"--escape",!1)),i(this,b,!1),this.open=t=>{if(e(this,d).current)return;i(this,w,t==null?void 0:t.trigger),e(this,p).current&&(a.__opened=a.__opened.filter(o=>o!==this&&v(this,l,D).call(this,this,o)?(o.close(),!1):!0)),a.__opened.push(this),i(this,C,a.__opened.length-1),clearTimeout(e(this,O)),this.classList.remove("closing"),this.classList.add("triggered"),this.style.display="block",I.dispatchEvent(this,"popoverTriggered",{custom:!0,detail:{trigger:e(this,w)}}),e(this,u).current&&e(this,b)&&history.pushState(history.state,"",e(this,l,K)),e(this,d).current=!0;const h=()=>{addEventListener("click",e(this,T)),addEventListener("keydown",e(this,A)),e(this,x).call(this),this.style.opacity="1",this.classList.add("opened"),I.dispatchEvent(this,"popoverOpened",{custom:!0,detail:{trigger:e(this,w)}}),i(this,S,void 0),this.setAttribute("aria-hidden","false")};t!=null&&t.skipTransition?h():i(this,S,setTimeout(h,10))},this.close=()=>{e(this,d).current&&(removeEventListener("click",e(this,T)),removeEventListener("keydown",e(this,A)),e(this,d).current=!1,a.__opened=a.__opened.filter(t=>t===this?!1:!e(t,S)&&v(this,l,D).call(this,this,t)?(t.close(),!1):!0),v(this,l,N).call(this),this.classList.remove("opened"),this.classList.add("closing"),this.setAttribute("aria-hidden","true"),this.style.opacity="0",I.dispatchEvent(this,"popoverClosing",{custom:!0}),setTimeout(()=>{this.classList.remove("triggered"),this.classList.remove("closing"),this.style.display="none",I.dispatchEvent(this,"popoverClosed",{custom:!0})},Z.getElementTransitionDurationMS(this)+10))},i(this,T,t=>{e(this,f).current&&v(this,l,B).call(this,()=>{var U;const h=t.composedPath();if(h.find(j=>j instanceof HTMLElement&&j.hasAttribute("data-popover-content")))return;const o=h[0],z=o instanceof Node&&(this.contains(o)||((U=this.shadowRoot)==null?void 0:U.contains(o))),P=o instanceof HTMLElement&&o.hasAttribute("data-outside");(!z||P)&&this.close()})}),i(this,A,t=>{e(this,y).current&&v(this,l,B).call(this,()=>{t.code==="Escape"&&this.close()})}),i(this,k,()=>{i(this,b,!1),e(this,d).current&&e(this,u).current&&!location.search.includes(this.id)?this.close():!e(this,d).current&&e(this,u).current&&location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),i(this,b,!0)}),i(this,_,()=>{this.style.setProperty("--content-width","initial"),this.style.setProperty("--content-height","initial"),e(this,R).call(this)}),i(this,R,Y.debounce(()=>{e(this,x).call(this)},10)),i(this,x,()=>{this.style.setProperty("--content-width",this.scrollWidth+"px"),this.style.setProperty("--content-height",this.scrollHeight+"px")})}get history(){return e(this,u)}get restore(){return e(this,m)}get dominance(){return e(this,p)}get group(){return e(this,g)}get clickOutside(){return e(this,f)}get escape(){return e(this,y)}get opened(){return e(this,d)}get lastTrigger(){return e(this,w)}get idWithValue(){return`${this.id}${this.urlValue?"="+this.urlValue:""}`}updateUrlValue(t){this.urlValue=(t==null?void 0:t.toString())||"",e(this,d).current&&G.updateSearchParameter(this.id,t)}connectedCallback(){e(this,u).observe(),e(this,m).observe(),e(this,p).observe(),e(this,g).observe(),e(this,f).observe(),e(this,y).observe(),this.style.opacity="0",this.style.display="none",this.setAttribute("role","dialog"),this.setAttribute("aria-hidden","true"),this.classList.remove("closing"),this.classList.remove("closed"),this.classList.remove("triggered"),this.classList.remove("opened"),addEventListener("popstate",e(this,k)),setTimeout(()=>{e(this,m).current?(this.urlValue=G.parseSearchParameters(location.search)[this.id],e(this,k).call(this)):(v(this,l,N).call(this),i(this,b,!0))},0),J.windowResizer.subscribe(e(this,_))}disconnectedCallback(){J.windowResizer.unsubscribe(e(this,_)),e(this,u).close(),e(this,m).close(),e(this,p).close(),e(this,g).close(),e(this,f).close(),e(this,y).close(),this.style.opacity="",this.style.display="",this.removeAttribute("role"),this.removeAttribute("aria-hidden"),a.__opened=a.__opened.filter(t=>t!==this),clearTimeout(e(this,O)),clearTimeout(e(this,S)),removeEventListener("popstate",e(this,k)),removeEventListener("click",e(this,T)),removeEventListener("keydown",e(this,A)),this.style.removeProperty("--content-width"),this.style.removeProperty("--content-height"),v(this,l,N).call(this)}};C=new WeakMap,d=new WeakMap,O=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,l=new WeakSet,K=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${this.idWithValue}`},T=new WeakMap,N=function(){if(e(this,u).current){const t=new URL(location.href);t.searchParams.delete(this.id),history.replaceState(history.state,"",t.href)}},A=new WeakMap,B=function(t){(a.__opened[e(this,C)-1]||a.__opened.length===1||a.__opened.filter(h=>h!==this).every(h=>e(this,p).current>h.dominance.current))&&t()},k=new WeakMap,_=new WeakMap,R=new WeakMap,x=new WeakMap,D=function(t,h){if(e(t,g).current===e(h,g).current&&t.dominance.current>=h.dominance.current)return!0},a.__opened=[];let q=a;customElements.get("e-popover")||customElements.define("e-popover",q);var r,L,V,M,$,H;class Q extends HTMLElement{constructor(){super();s(this,r);s(this,L,new E.CSSProperty(this,"--type","open"));s(this,V,()=>{this.classList.add("triggered")});s(this,M,()=>{this.classList.add("opened"),this.setAttribute("aria-expanded","true")});s(this,$,()=>{this.classList.remove("opened")});s(this,H,()=>{this.classList.remove("triggered"),this.setAttribute("aria-expanded","false")});ee.isBrowser&&(this.addEventListener("click",()=>{if(e(this,r)){const t=e(this,L).current;t==="open"||t==="toggle"&&!e(this,r).opened.current?e(this,r).open({trigger:this}):(t==="close"||t==="toggle"&&e(this,r).opened.current)&&e(this,r).close()}}),this.addEventListener("keydown",t=>{t.code==="Space"&&t.currentTarget.click()}))}get type(){return e(this,L)}get popoverElement(){return e(this,r)}connectedCallback(){var h;e(this,L).subscribe(o=>{e(this,r)instanceof q&&(o.current!=="close"?(this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",e(this,r).opened.current?"true":"false"),this.setAttribute("aria-controls",e(this,r).id||"")):(this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls")))}),this.hasAttribute("tabindex")||(this.tabIndex=0);const t=this.getAttribute("target");if(t){let o=null;if(t==="parent"){const z=this.closest("[popover-target]");if(z)o=z;else{const P=this.getRootNode();P instanceof ShadowRoot?o=P.host.closest("[popover-target]"):P instanceof HTMLElement&&(o=P.closest("[popover-target]"))}}else t==="sibling"?o=(h=this.parentElement)==null?void 0:h.querySelector("[popover-target]"):o=document.querySelector(`#${t}`)||this.getRootNode().querySelector(`#${t}`);o instanceof HTMLElement?(i(this,r,o),e(this,r).addEventListener("popoverTriggered",e(this,V)),e(this,r).addEventListener("popoverOpened",e(this,M)),e(this,r).addEventListener("popoverClosing",e(this,$)),e(this,r).addEventListener("popoverClosed",e(this,H))):console.warn(this,`target ${t} not found`)}this.isConnected&&e(this,L).observe()}disconnectedCallback(){e(this,L).unobserve(),this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls"),e(this,r)&&(e(this,r).removeEventListener("popoverTriggered",e(this,V)),e(this,r).removeEventListener("popoverOpened",e(this,M)),e(this,r).removeEventListener("popoverClosing",e(this,$)),e(this,r).removeEventListener("popoverClosed",e(this,H)))}}r=new WeakMap,L=new WeakMap,V=new WeakMap,M=new WeakMap,$=new WeakMap,H=new WeakMap;customElements.get("e-popover-button")||customElements.define("e-popover-button",Q);exports.PopoverButtonElement=Q;exports.PopoverElement=q;
@@ -9,7 +9,7 @@ import { d as z } from "../events-CsVF98U6.js";
9
9
  import { d as Q } from "../function-C10DGppn.js";
10
10
  import { g as X } from "../style-j2TwriJ_.js";
11
11
  import { u as Y, p as Z } from "../url-B5eH5z6S.js";
12
- import { windowResizer as G } from "../window-resizer/vanilla/index.js";
12
+ import { windowResizer as G } from "../window-resizer/index.js";
13
13
  import { i as ee } from "../browser-0zX67oeU.js";
14
14
  var x, d, V, T, p, v, u, g, f, y, L, w, l, J, A, N, k, B, S, _, O, P, D;
15
15
  const c = class c extends HTMLElement {
@@ -1,7 +1,7 @@
1
- import { Damped, TweenedOptions } from '../../animation';
2
- import { Store } from '../../store/vanilla';
3
- import { Axes2D } from '../../utils';
4
- import { CSSProperty } from '../../css-property';
1
+ import { Damped, TweenedOptions } from '../animation';
2
+ import { Store } from '../store';
3
+ import { Axes2D } from '../utils';
4
+ import { CSSProperty } from '../css-property';
5
5
  import { ScrollSection } from './ScrollSection';
6
6
  export type ScrollLine = 'start' | 'end' | null;
7
7
  export interface ScrollEvents {
@@ -1,4 +1,4 @@
1
- import { ScrollSegmentElement as ScrollSeg } from '../../scroll-segment';
1
+ import { ScrollSegmentElement as ScrollSeg } from '../scroll-segment';
2
2
  export declare class ScrollSegmentElement extends ScrollSeg {
3
3
  protected connectedCallback(): void;
4
4
  }