aptechka 0.83.0 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/lib/Animation-BAiM6_n1.js +111 -0
  2. package/lib/Animation-DMWabSR0.cjs +1 -0
  3. package/lib/Composed-B0fvCtZz.cjs +1 -0
  4. package/lib/Composed-CgA9lLWA.js +75 -0
  5. package/lib/Damped-BLo-OAVb.cjs +1 -0
  6. package/lib/Damped-Dcz5UdMH.js +57 -0
  7. package/lib/DerivedArray-DFhxap_z.js +63 -0
  8. package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
  9. package/lib/DragControls-BPHsDeH6.cjs +1 -0
  10. package/lib/DragControls-D2a1Cifp.js +234 -0
  11. package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
  12. package/lib/LocalLinks-Dwgf3No6.js +65 -0
  13. package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
  14. package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
  15. package/lib/PageScroll-BAatKJx6.cjs +1 -0
  16. package/lib/PageScroll-m3TsHnzR.js +65 -0
  17. package/lib/SourceElement-941MrYpq.js +265 -0
  18. package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
  19. package/lib/Store-BCW70G3Z.cjs +1 -0
  20. package/lib/Store-uLDYY9ed.js +158 -0
  21. package/lib/Tweened-BvtjLCa3.js +48 -0
  22. package/lib/Tweened-DdXm1dbF.cjs +1 -0
  23. package/lib/Viewport-BiDoiU8M.js +113 -0
  24. package/lib/Viewport-CXGKUyDy.cjs +1 -0
  25. package/lib/accordion/index.cjs +1 -1
  26. package/lib/accordion/index.js +97 -93
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.js +6 -6
  29. package/lib/api-fetcher/index.cjs +1 -1
  30. package/lib/api-fetcher/index.js +67 -66
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.js +37 -34
  33. package/lib/attributes-BADnRZpK.cjs +1 -0
  34. package/lib/attributes-FObgMNCf.js +36 -0
  35. package/lib/billboard/index.cjs +1 -1
  36. package/lib/billboard/index.js +240 -232
  37. package/lib/cache/index.cjs +1 -1
  38. package/lib/cache/index.js +26 -23
  39. package/lib/canvas/index.cjs +1 -1
  40. package/lib/canvas/index.js +62 -59
  41. package/lib/canvas-BP1ceie3.cjs +1 -0
  42. package/lib/canvas-DsglKco1.js +40 -0
  43. package/lib/connector/index.cjs +1 -1
  44. package/lib/connector/index.js +44 -41
  45. package/lib/controls/index.cjs +1 -1
  46. package/lib/controls/index.js +6 -6
  47. package/lib/coordinates--JG1U6kQ.js +29 -0
  48. package/lib/coordinates-DQ9XV9M1.cjs +1 -0
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +1 -1
  51. package/lib/css-property/index.js +40 -37
  52. package/lib/css-unit-parser/index.cjs +2 -2
  53. package/lib/css-unit-parser/index.js +22 -19
  54. package/lib/css-value-parser/index.cjs +1 -1
  55. package/lib/css-value-parser/index.js +13 -11
  56. package/lib/custom-elements-BfZCJde6.cjs +1 -0
  57. package/lib/custom-elements-HEMuF7yH.js +27 -0
  58. package/lib/dev/index.cjs +2 -1
  59. package/lib/dev/index.d.ts +1 -0
  60. package/lib/dev/index.js +25 -10
  61. package/lib/device/index.cjs +1 -1
  62. package/lib/device/index.js +5 -5
  63. package/lib/dom-B40i6NXw.cjs +1 -0
  64. package/lib/dom-D8D-_9ty.js +108 -0
  65. package/lib/easings-BSGJFMAo.js +40 -0
  66. package/lib/easings-BWq0pPLq.cjs +1 -0
  67. package/lib/element-CqD0jqBJ.cjs +1 -0
  68. package/lib/element-DKw5H-Tu.js +10 -0
  69. package/lib/element-linked-store/index.cjs +1 -1
  70. package/lib/element-linked-store/index.js +53 -52
  71. package/lib/element-resizer/index.cjs +1 -1
  72. package/lib/element-resizer/index.js +47 -44
  73. package/lib/en3/index.cjs +4 -4
  74. package/lib/en3/index.js +192 -185
  75. package/lib/events-Ds-TuvYW.js +9 -0
  76. package/lib/events-UlGk63iC.cjs +1 -0
  77. package/lib/file-DwQs6bB6.js +28 -0
  78. package/lib/file-RHfA3OS-.cjs +1 -0
  79. package/lib/function-H4b_gTg6.cjs +1 -0
  80. package/lib/function-UmbPrOHm.js +19 -0
  81. package/lib/gestures-DmKKNnh4.js +14 -0
  82. package/lib/gestures-DtYbQr49.cjs +1 -0
  83. package/lib/history/index.cjs +1 -1
  84. package/lib/history/index.js +24 -21
  85. package/lib/iframe/index.cjs +1 -1
  86. package/lib/iframe/index.js +27 -24
  87. package/lib/image/index.cjs +1 -1
  88. package/lib/image/index.js +17 -13
  89. package/lib/index-BpO2RJ__.cjs +1 -0
  90. package/lib/index-DpKsHe97.js +68 -0
  91. package/lib/intersector/index.cjs +1 -1
  92. package/lib/intersector/index.js +3 -3
  93. package/lib/jsx/ComponentElement.d.ts +4 -0
  94. package/lib/jsx/h.d.ts +8 -2
  95. package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
  96. package/lib/jsx/hooks/cssProperty.d.ts +6 -0
  97. package/lib/jsx/hooks/resize.d.ts +4 -0
  98. package/lib/jsx/hooks/store.d.ts +1 -2
  99. package/lib/jsx/hooks/ticker.d.ts +5 -0
  100. package/lib/jsx/index.cjs +1 -1
  101. package/lib/jsx/index.d.ts +5 -2
  102. package/lib/jsx/index.js +171 -124
  103. package/lib/jsx/plugins/vite/index.cjs +49 -0
  104. package/lib/jsx/plugins/vite/index.d.ts +38 -0
  105. package/lib/jsx/plugins/vite/index.js +104 -0
  106. package/lib/jsx/render.d.ts +3 -1
  107. package/lib/jsx/type.d.ts +13 -6
  108. package/lib/jsx/utils/children/createElement.d.ts +1 -0
  109. package/lib/jsx/utils/children/hydrateTextNode.d.ts +1 -0
  110. package/lib/ladder/index.cjs +1 -1
  111. package/lib/ladder/index.js +86 -84
  112. package/lib/layout-C26zkY7D.js +35 -0
  113. package/lib/layout-CnGLl7oe.cjs +1 -0
  114. package/lib/layout-box/index.cjs +1 -1
  115. package/lib/layout-box/index.js +221 -217
  116. package/lib/loading/index.cjs +1 -1
  117. package/lib/loading/index.js +48 -45
  118. package/lib/local-links/index.cjs +1 -1
  119. package/lib/local-links/index.js +2 -2
  120. package/lib/masonry-layout/index.cjs +1 -1
  121. package/lib/masonry-layout/index.js +48 -45
  122. package/lib/math-C-knY2TL.cjs +1 -0
  123. package/lib/math-r8V23YFe.js +57 -0
  124. package/lib/media/index.cjs +1 -1
  125. package/lib/media/index.js +28 -25
  126. package/lib/metadata-BNdkmeeD.js +15 -0
  127. package/lib/metadata-BrHUfpV9.cjs +1 -0
  128. package/lib/morph/index.cjs +1 -1
  129. package/lib/morph/index.js +561 -556
  130. package/lib/morph-BtgB1YQP.js +256 -0
  131. package/lib/morph-Buhxq-X0.cjs +1 -0
  132. package/lib/need_redo_tweaker/index.cjs +4 -4
  133. package/lib/need_redo_tweaker/index.js +862 -834
  134. package/lib/notifier/index.cjs +1 -1
  135. package/lib/notifier/index.js +29 -26
  136. package/lib/number-Bu4sGvW7.cjs +1 -0
  137. package/lib/number-DiVt2xnh.js +47 -0
  138. package/lib/object-CiIdEmJx.js +98 -0
  139. package/lib/object-DTY_W6xG.cjs +1 -0
  140. package/lib/order/index.cjs +1 -1
  141. package/lib/order/index.js +3 -3
  142. package/lib/page-announcer/index.cjs +1 -1
  143. package/lib/page-announcer/index.js +2 -2
  144. package/lib/page-scroll/index.cjs +1 -1
  145. package/lib/page-scroll/index.js +2 -2
  146. package/lib/pixel-perfect/index.cjs +4 -4
  147. package/lib/pixel-perfect/index.js +43 -40
  148. package/lib/pointer/index.cjs +1 -1
  149. package/lib/pointer/index.js +125 -122
  150. package/lib/polyfills-CG1XJNia.js +28 -0
  151. package/lib/polyfills-DZCuDBkA.cjs +1 -0
  152. package/lib/popover/index.cjs +1 -1
  153. package/lib/popover/index.js +249 -245
  154. package/lib/radio/index.cjs +1 -1
  155. package/lib/radio/index.js +58 -55
  156. package/lib/render-DLcWVnuH.js +355 -0
  157. package/lib/render-DdomypCo.cjs +1 -0
  158. package/lib/router/index.cjs +1 -1
  159. package/lib/router/index.js +196 -194
  160. package/lib/scroll/index.cjs +1 -1
  161. package/lib/scroll/index.js +890 -877
  162. package/lib/scroll-BvIWh1xB.js +41 -0
  163. package/lib/scroll-CT0lpyRZ.cjs +1 -0
  164. package/lib/scroll-entries/index.cjs +1 -1
  165. package/lib/scroll-entries/index.js +37 -34
  166. package/lib/scroll-kit/index.cjs +1 -1
  167. package/lib/scroll-kit/index.js +214 -209
  168. package/lib/sequence/index.cjs +1 -1
  169. package/lib/sequence/index.js +102 -98
  170. package/lib/size-element/index.cjs +1 -1
  171. package/lib/size-element/index.js +29 -26
  172. package/lib/slicer/index.cjs +1 -1
  173. package/lib/slicer/index.js +118 -113
  174. package/lib/source/index.cjs +1 -1
  175. package/lib/source/index.js +5 -5
  176. package/lib/spa/index.cjs +1 -1
  177. package/lib/spa/index.js +94 -94
  178. package/lib/store/index.cjs +1 -1
  179. package/lib/store/index.d.ts +2 -2
  180. package/lib/store/index.js +11 -10
  181. package/lib/string-B3lm2b7v.js +84 -0
  182. package/lib/string-CbRNzmd9.cjs +1 -0
  183. package/lib/style-DBoQWK0d.js +14 -0
  184. package/lib/style-IDJ6db6n.cjs +1 -0
  185. package/lib/stylesheet-CHvuef16.js +28 -0
  186. package/lib/stylesheet-CQdBaIAA.cjs +1 -0
  187. package/lib/ticker/index.cjs +1 -1
  188. package/lib/ticker/index.js +96 -92
  189. package/lib/url-CPCO10Sy.cjs +1 -0
  190. package/lib/url-CWCY_qe_.js +124 -0
  191. package/lib/utils/attributes.d.ts +2 -0
  192. package/lib/utils/dom.d.ts +1 -0
  193. package/lib/utils/index.cjs +1 -1
  194. package/lib/utils/index.js +245 -226
  195. package/lib/video/index.cjs +1 -1
  196. package/lib/video/index.js +36 -33
  197. package/lib/window-resizer/index.cjs +1 -1
  198. package/lib/window-resizer/index.js +27 -24
  199. package/lib/youtube/index.cjs +1 -1
  200. package/lib/youtube/index.js +56 -54
  201. package/package.json +15 -3
  202. package/lib/Animation-BzTjZIE-.js +0 -108
  203. package/lib/Animation-C39Ah-LM.cjs +0 -1
  204. package/lib/Composed-C-mnUGX6.js +0 -70
  205. package/lib/Composed-RFcm2x5c.cjs +0 -1
  206. package/lib/Damped-CRusiRIV.js +0 -56
  207. package/lib/Damped-Prr0iKu1.cjs +0 -1
  208. package/lib/DerivedArray-DdCR-Oy7.cjs +0 -1
  209. package/lib/DerivedArray-opbeygTL.js +0 -59
  210. package/lib/DragControls-8rNZwQrs.cjs +0 -1
  211. package/lib/DragControls-DBNdMBA4.js +0 -228
  212. package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
  213. package/lib/LocalLinks-DRAQ-fxE.js +0 -62
  214. package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
  215. package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
  216. package/lib/PageScroll-0LxFblry.js +0 -62
  217. package/lib/PageScroll-BXJUQwG7.cjs +0 -1
  218. package/lib/SourceElement-BHqPFbna.cjs +0 -5
  219. package/lib/SourceElement-DjbHjynf.js +0 -260
  220. package/lib/Store-Blf4msDz.cjs +0 -1
  221. package/lib/Store-ZThXYBQd.js +0 -152
  222. package/lib/Tweened-Bw1Cn1PJ.js +0 -47
  223. package/lib/Tweened-DWtk9E-O.cjs +0 -1
  224. package/lib/Viewport-BxCr0GlB.cjs +0 -1
  225. package/lib/Viewport-Dt-d9DPi.js +0 -109
  226. package/lib/attributes-69we3byR.js +0 -10
  227. package/lib/attributes-Bf2svn4j.cjs +0 -1
  228. package/lib/canvas-CU5Xjahf.cjs +0 -1
  229. package/lib/canvas-DeZ0SLUJ.js +0 -34
  230. package/lib/coordinates-CgdGoSYs.js +0 -24
  231. package/lib/coordinates-D8Np3cPD.cjs +0 -1
  232. package/lib/custom-elements-DBnCK7Zx.js +0 -24
  233. package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
  234. package/lib/dom-BETkVSSZ.js +0 -82
  235. package/lib/dom-CBLlqORw.cjs +0 -1
  236. package/lib/easings-BEmRlrDd.js +0 -38
  237. package/lib/easings-GegIwET5.cjs +0 -1
  238. package/lib/element-CGVl1jA-.js +0 -7
  239. package/lib/element-yhcBhsho.cjs +0 -1
  240. package/lib/events-CsVF98U6.js +0 -6
  241. package/lib/events-KVanG9sR.cjs +0 -1
  242. package/lib/file-DSpfWdd9.cjs +0 -1
  243. package/lib/file-GHShUlue.js +0 -24
  244. package/lib/function-C10DGppn.js +0 -17
  245. package/lib/function-MthRj-GJ.cjs +0 -1
  246. package/lib/gestures-C7gbKx11.cjs +0 -1
  247. package/lib/gestures-CcXV6fCp.js +0 -11
  248. package/lib/index-OE2INULi.cjs +0 -1
  249. package/lib/index-e9eDuagL.js +0 -65
  250. package/lib/jsx/plugins/hmr.d.ts +0 -13
  251. package/lib/layout-BSMtwCga.js +0 -29
  252. package/lib/layout-Ctc2p3uz.cjs +0 -1
  253. package/lib/math-BOBiC4TN.js +0 -45
  254. package/lib/math-GDWEqu7y.cjs +0 -1
  255. package/lib/metadata-BcYZ5w3T.cjs +0 -1
  256. package/lib/metadata-jfowcCyz.js +0 -12
  257. package/lib/morph-B6sGhLCi.cjs +0 -1
  258. package/lib/morph-D_ybmXWR.js +0 -242
  259. package/lib/number-ChAm68cm.cjs +0 -1
  260. package/lib/number-CumqY64S.js +0 -40
  261. package/lib/object-CcMK4y_r.js +0 -87
  262. package/lib/object-baN9pgbU.cjs +0 -1
  263. package/lib/polyfills-DJrTJQky.js +0 -24
  264. package/lib/polyfills-Df4r-ETT.cjs +0 -1
  265. package/lib/render-1u700s93.js +0 -212
  266. package/lib/render-BIOfUddT.cjs +0 -1
  267. package/lib/scroll-BA2WnUrb.cjs +0 -1
  268. package/lib/scroll-DY5senkF.js +0 -37
  269. package/lib/string-BlMQbe8b.js +0 -70
  270. package/lib/string-DUXXtU8v.cjs +0 -1
  271. package/lib/style-At6aDoqG.cjs +0 -1
  272. package/lib/style-j2TwriJ_.js +0 -10
  273. package/lib/stylesheet-5_o7PFzM.cjs +0 -1
  274. package/lib/stylesheet-DdBzowZY.js +0 -24
  275. package/lib/url-CHgcNwJ1.cjs +0 -1
  276. package/lib/url-CYgo5vrG.js +0 -113
@@ -1,56 +0,0 @@
1
- var v = Object.defineProperty, w = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var d = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var g = (s) => {
6
- throw TypeError(s);
7
- };
8
- var f = (s, e, t) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, l = (s, e) => {
9
- for (var t in e || (e = {}))
10
- y.call(e, t) && f(s, t, e[t]);
11
- if (d)
12
- for (var t of d(e))
13
- B.call(e, t) && f(s, t, e[t]);
14
- return s;
15
- }, p = (s, e) => w(s, x(e));
16
- var A = (s, e, t) => e.has(s) || g("Cannot " + t);
17
- var a = (s, e, t) => (A(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), m = (s, e, t, r) => (A(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
18
- import { d as D } from "./math-BOBiC4TN.js";
19
- import { p as F } from "./number-CumqY64S.js";
20
- import { n as u } from "./polyfills-DJrTJQky.js";
21
- import "construct-style-sheets-polyfill";
22
- import "./index-e9eDuagL.js";
23
- import { A as q } from "./Animation-BzTjZIE-.js";
24
- var i, h;
25
- class G extends q {
26
- constructor(t, r) {
27
- super(t, r);
28
- c(this, i);
29
- c(this, h);
30
- this.damping = 20, this.stiffness = 0, this.mass = 0, m(this, i, 0), m(this, h, 0), this.updateOptions(p(l({}, r), { equalize: !0 }));
31
- }
32
- get velocity() {
33
- return a(this, i);
34
- }
35
- get speed() {
36
- return a(this, h);
37
- }
38
- updateOptions(t) {
39
- this.damping = u(t == null ? void 0 : t.damping, this.damping), this.mass = u(t == null ? void 0 : t.mass, this.mass), this.stiffness = u(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
40
- }
41
- handleAnimationFrame(t) {
42
- F(this.current, 6) === F(this.target, 6) && (this.unlistenAnimationFrame(), this.current = this.target);
43
- const r = this.current, O = Math.abs(r - this.target);
44
- m(this, h, O / t.timeBetweenFrames);
45
- const n = t.timeBetweenFrames / 1e3;
46
- if (this.mass || this.stiffness) {
47
- const b = (this.target - this.current) * this.stiffness - a(this, i) * this.damping;
48
- m(this, i, a(this, i) + b / this.mass * n), this.current += a(this, i) * n;
49
- } else
50
- this.current = D(this.current, this.target, this.damping, n);
51
- }
52
- }
53
- i = new WeakMap(), h = new WeakMap();
54
- export {
55
- G as D
56
- };
@@ -1 +0,0 @@
1
- "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},q=(t,e)=>C(t,O(e));var p=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(p(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(p(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-ChAm68cm.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const D=require("./Animation-C39Ah-LM.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(q(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
@@ -1 +0,0 @@
1
- "use strict";var g=e=>{throw TypeError(e)};var D=(e,r,s)=>r.has(e)||g("Cannot "+s);var d=(e,r,s)=>(D(e,r,"read from private field"),s?s.call(e):r.get(e)),h=(e,r,s)=>r.has(e)?g("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),f=(e,r,s,i)=>(D(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);const j=require("./Store-Blf4msDz.cjs");var v,b;class p extends j.Store{constructor(s,i,t){super(null,t);h(this,v);h(this,b);f(this,b,!!(t!=null&&t.revalidateAll)),f(this,v,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var c,n;return!d(this,b)&&((c=this.current)!=null&&c.length)&&((n=l.previous)!=null&&n.length)&&l.previous[a]===u?this.current[a]:i(u,a,o)})}))}close(){super.close(),d(this,v).call(this)}}v=new WeakMap,b=new WeakMap;var k,A;class x extends j.Store{constructor(s,i,t){super(null,t);h(this,k);h(this,A);f(this,A,!!(t!=null&&t.revalidateAll)),f(this,k,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var n;if(!d(this,A)){const S=(n=l.previous)==null?void 0:n.find(y=>y.key===u.key&&JSON.stringify(y)===JSON.stringify(u));if(S){const y=this.current.find(_=>typeof _=="object"&&_&&"__key"in _&&_.__key===S.key);if(y)return y}}const c=i(u,a,o);return c&&typeof c=="object"&&(c.__key=u.key),c})}))}close(){super.close(),d(this,k).call(this)}}k=new WeakMap,A=new WeakMap;exports.DerivedArray=p;exports.DerivedKeyedArray=x;
@@ -1,59 +0,0 @@
1
- var p = (e) => {
2
- throw TypeError(e);
3
- };
4
- var S = (e, r, s) => r.has(e) || p("Cannot " + s);
5
- var f = (e, r, s) => (S(e, r, "read from private field"), s ? s.call(e) : r.get(e)), y = (e, r, s) => r.has(e) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), d = (e, r, s, c) => (S(e, r, "write to private field"), c ? c.call(e, s) : r.set(e, s), s);
6
- import { S as m } from "./Store-ZThXYBQd.js";
7
- var b, v;
8
- class j extends m {
9
- constructor(s, c, t) {
10
- super(null, t);
11
- y(this, b);
12
- y(this, v);
13
- d(this, v, !!(t != null && t.revalidateAll)), d(this, b, s.subscribe((i) => {
14
- this.current = i.current.map((u, a, o) => {
15
- var l, n;
16
- return !f(this, v) && ((l = this.current) != null && l.length) && ((n = i.previous) != null && n.length) && i.previous[a] === u ? this.current[a] : c(u, a, o);
17
- });
18
- }));
19
- }
20
- close() {
21
- super.close(), f(this, b).call(this);
22
- }
23
- }
24
- b = new WeakMap(), v = new WeakMap();
25
- var k, A;
26
- class I extends m {
27
- constructor(s, c, t) {
28
- super(null, t);
29
- y(this, k);
30
- y(this, A);
31
- d(this, A, !!(t != null && t.revalidateAll)), d(this, k, s.subscribe((i) => {
32
- this.current = i.current.map((u, a, o) => {
33
- var n;
34
- if (!f(this, A)) {
35
- const g = (n = i.previous) == null ? void 0 : n.find(
36
- (h) => h.key === u.key && JSON.stringify(h) === JSON.stringify(u)
37
- );
38
- if (g) {
39
- const h = this.current.find(
40
- (_) => typeof _ == "object" && _ && "__key" in _ && _.__key === g.key
41
- );
42
- if (h)
43
- return h;
44
- }
45
- }
46
- const l = c(u, a, o);
47
- return l && typeof l == "object" && (l.__key = u.key), l;
48
- });
49
- }));
50
- }
51
- close() {
52
- super.close(), f(this, k).call(this);
53
- }
54
- }
55
- k = new WeakMap(), A = new WeakMap();
56
- export {
57
- j as D,
58
- I as a
59
- };
@@ -1 +0,0 @@
1
- "use strict";var p=n=>{throw TypeError(n)};var G=(n,a,e)=>a.has(n)||p("Cannot "+e);var t=(n,a,e)=>(G(n,a,"read from private field"),e?e.call(n):a.get(n)),s=(n,a,e)=>a.has(n)?p("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,e),i=(n,a,e,h)=>(G(n,a,"write to private field"),h?h.call(n,e):a.set(n,e),e),T=(n,a,e)=>(G(n,a,"access private method"),e);const w=require("./index-OE2INULi.cjs"),_=require("./dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");const B=require("./ticker/index.cjs");require("./Store-Blf4msDz.cjs");const ee=require("./easings-GegIwET5.cjs"),te=require("./Tweened-DWtk9E-O.cjs"),ie=require("./gestures-C7gbKx11.cjs"),se=require("./number-ChAm68cm.cjs"),he=require("./order/index.cjs"),ne=require("./notifier/index.cjs");var j;class F{constructor(){s(this,j,new ne.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var y,c,u,R;class re extends F{constructor(e){super();s(this,y,null);s(this,c,null);s(this,u,"offsetHeight");s(this,R,e=>{const h=e.shiftKey?-1:1;let r;e.code==="Space"?r=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?r=1*t(this,c)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r,e))});w.isBrowser&&(i(this,y,e!=null&&e.element&&_.getElement(e.element)||window),i(this,c,t(this,y)instanceof HTMLElement?t(this,y):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,y).addEventListener("keydown",t(this,R))}disconnect(){w.isBrowser&&t(this,y).removeEventListener("keydown",t(this,R))}}y=new WeakMap,c=new WeakMap,u=new WeakMap,R=new WeakMap;var E,v,X,Y,d,A,m,b,V,J,D,O,I;class ae extends F{constructor(e){super();s(this,b);s(this,E);s(this,v);s(this,X);s(this,Y);s(this,d);s(this,A);s(this,m);s(this,D);s(this,O);s(this,I);this.direction=1,i(this,d,new te.Tweened(0,{easing:ee.easeInQuad})),i(this,m,!1),i(this,D,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,E)*this.direction*(1-t(this,d).current),h)}),i(this,O,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,E))*this.direction*(1-t(this,d).current),null)}),i(this,I,()=>{t(this,v)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,E,(e==null?void 0:e.speed)||1),i(this,v,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,v,e),t(this,m)&&T(this,b,V).call(this)}set speed(e){i(this,E,e),t(this,m)&&T(this,b,V).call(this)}connect(){t(this,m)||(i(this,m,!0),T(this,b,V).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),T(this,b,J).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,A)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,A,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}E=new WeakMap,v=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,A=new WeakMap,m=new WeakMap,b=new WeakSet,V=function(){T(this,b,J).call(this),t(this,v)?i(this,Y,setInterval(t(this,O),Math.abs(t(this,E)))):B.ticker.subscribe(t(this,D),t(this,X)),document.addEventListener("visibilitychange",t(this,I))},J=function(){clearInterval(t(this,Y)),B.ticker.unsubscribe(t(this,D)),clearTimeout(t(this,A)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,I))},D=new WeakMap,O=new WeakMap,I=new WeakMap;var H,M,z,S;class le extends F{constructor(e){super();s(this,H,null);s(this,M);s(this,z);s(this,S,e=>{let h=0;const r=Math.abs(e.deltaY),g=Math.abs(e.deltaX);if(!(this.axis==="x"&&r>g||this.axis==="y"&&g>r)&&(e.preventDefault(),!(this.debounce&&this.axis==="x"&&g<5||this.debounce&&this.axis==="y"&&r<5)))if(h=(this.axis==="max"?g>r?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const N=Date.now();if(N-t(this,z)>40&&(h=100*Math.sign(h)),i(this,z,N),Math.abs(h)<100||t(this,M))return;this.changeEvent.notify("wheel",h,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,z,Date.now()),w.isBrowser&&i(this,H,e!=null&&e.element&&_.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,H).addEventListener("wheel",t(this,S),{passive:!1})}disconnect(){w.isBrowser&&(t(this,H).removeEventListener("wheel",t(this,S)),clearTimeout(t(this,M)))}}H=new WeakMap,M=new WeakMap,z=new WeakMap,S=new WeakMap;var q,P,o,l,C,x,W,K,L;const k=class k extends F{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,C);s(this,x);s(this,W);s(this,K);s(this,L);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,C,[]),i(this,x,0),i(this,W,h=>{Math.abs(t(this,x))>2&&h.preventDefault()}),i(this,K,h=>{if(i(this,x,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||B.ticker.unsubscribe(t(this,L));let r=h,g=!1;document.documentElement.classList.add("grabbing");let N=0,$=0,U=0,Q=0;ie.setupDrag(f=>{t(k,q)&&t(k,q)!==t(this,o)||(N=r.x-f.x,$=r.y-f.y,U=f.x-h.x,Q=f.y-h.y,this.axis==="x"?(i(this,x,U),i(this,l,N)):(i(this,x,Q),i(this,l,$)),r=f,g=this.axis==="x"&&Math.abs(U)>Math.abs(Q)||this.axis==="y"&&Math.abs(Q)>Math.abs(U),g&&(document.documentElement.classList.add("dragging"),document.documentElement.classList.add("click-disabled"),i(k,q,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(k,q,null),g&&(!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),B.ticker.subscribe(t(this,L),{order:he.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f)),setTimeout(()=>{document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging"),document.documentElement.classList.remove("click-disabled")})})}),i(this,L,()=>{Math.floor(Math.abs(t(this,l)))||B.ticker.unsubscribe(t(this,L)),i(this,l,t(this,l)*.95),i(this,l,se.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&_.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,C,[...t(this,P).querySelectorAll("a")]),t(this,C).forEach(e=>{e.addEventListener("click",t(this,W))}),t(this,o).addEventListener("pointerdown",t(this,K)))}disconnect(){w.isBrowser&&(t(this,C).forEach(e=>{e.removeEventListener("click",t(this,W))}),t(this,o).removeEventListener("pointerdown",t(this,K)),B.ticker.unsubscribe(t(this,L)))}};q=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,C=new WeakMap,x=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakMap,s(k,q,null);let Z=k;exports.AutoplayControls=ae;exports.Controls=F;exports.DragControls=Z;exports.KeyboardControls=re;exports.WheelControls=le;
@@ -1,228 +0,0 @@
1
- var _ = (n) => {
2
- throw TypeError(n);
3
- };
4
- var G = (n, r, e) => r.has(n) || _("Cannot " + e);
5
- var t = (n, r, e) => (G(n, r, "read from private field"), e ? e.call(n) : r.get(n)), s = (n, r, e) => r.has(n) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), i = (n, r, e, h) => (G(n, r, "write to private field"), h ? h.call(n, e) : r.set(n, e), e), A = (n, r, e) => (G(n, r, "access private method"), e);
6
- import { i as b } from "./index-e9eDuagL.js";
7
- import { g as Z } from "./dom-BETkVSSZ.js";
8
- import "construct-style-sheets-polyfill";
9
- import { ticker as D } from "./ticker/index.js";
10
- import "./Store-ZThXYBQd.js";
11
- import { a as ee } from "./easings-BEmRlrDd.js";
12
- import { T as te } from "./Tweened-Bw1Cn1PJ.js";
13
- import { s as ie } from "./gestures-CcXV6fCp.js";
14
- import { p as se } from "./number-CumqY64S.js";
15
- import { TICK_ORDER as he } from "./order/index.js";
16
- import { Notifier as ne } from "./notifier/index.js";
17
- var V;
18
- class j {
19
- constructor() {
20
- s(this, V, new ne());
21
- }
22
- get changeEvent() {
23
- return t(this, V);
24
- }
25
- }
26
- V = new WeakMap();
27
- var y, c, u, X;
28
- class ye extends j {
29
- constructor(e) {
30
- super();
31
- s(this, y, null);
32
- s(this, c, null);
33
- s(this, u, "offsetHeight");
34
- s(this, X, (e) => {
35
- const h = e.shiftKey ? -1 : 1;
36
- let a;
37
- e.code === "Space" ? a = h * t(this, c)[t(this, u)] * 0.4 : e.code === "ArrowLeft" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowRight" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowUp" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowDown" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "PageUp" ? a = -1 * t(this, c)[t(this, u)] : e.code === "PageDown" ? a = 1 * t(this, c)[t(this, u)] : e.code === "Home" ? a = 0 : e.code === "End" && (a = t(this, u) === "offsetWidth" ? t(this, c).scrollWidth : t(this, c).scrollHeight), a && (e.stopPropagation(), this.changeEvent.notify("keyboard", a, e));
38
- });
39
- b && (i(this, y, e != null && e.element && Z(e.element) || window), i(this, c, t(this, y) instanceof HTMLElement ? t(this, y) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
40
- }
41
- set dimension(e) {
42
- i(this, u, e === "width" ? "offsetWidth" : "offsetHeight");
43
- }
44
- connect() {
45
- b && t(this, y).addEventListener(
46
- "keydown",
47
- t(this, X)
48
- );
49
- }
50
- disconnect() {
51
- b && t(this, y).removeEventListener(
52
- "keydown",
53
- t(this, X)
54
- );
55
- }
56
- }
57
- y = new WeakMap(), c = new WeakMap(), u = new WeakMap(), X = new WeakMap();
58
- var E, M, Y, O, d, I, f, w, Q, J, H, S, q;
59
- class Ee extends j {
60
- constructor(e) {
61
- super();
62
- s(this, w);
63
- s(this, E);
64
- s(this, M);
65
- s(this, Y);
66
- s(this, O);
67
- s(this, d);
68
- s(this, I);
69
- s(this, f);
70
- s(this, H);
71
- s(this, S);
72
- s(this, q);
73
- this.direction = 1, i(this, d, new te(0, { easing: ee })), i(this, f, !1), i(this, H, (h) => {
74
- t(this, d).current !== 1 && this.changeEvent.notify(
75
- "autoplay",
76
- h.timeBetweenFrames * t(this, E) * this.direction * (1 - t(this, d).current),
77
- h
78
- );
79
- }), i(this, S, () => {
80
- t(this, d).current !== 1 && this.changeEvent.notify(
81
- "autoplay",
82
- Math.sign(t(this, E)) * this.direction * (1 - t(this, d).current),
83
- null
84
- );
85
- }), i(this, q, () => {
86
- t(this, M) && (document.hidden ? t(this, d).set(1, { equalize: !0 }) : t(this, d).set(0, { equalize: !0 }));
87
- }), i(this, E, (e == null ? void 0 : e.speed) || 1), i(this, M, (e == null ? void 0 : e.interval) || !1), i(this, Y, e);
88
- }
89
- set interval(e) {
90
- i(this, M, e), t(this, f) && A(this, w, Q).call(this);
91
- }
92
- set speed(e) {
93
- i(this, E, e), t(this, f) && A(this, w, Q).call(this);
94
- }
95
- connect() {
96
- t(this, f) || (i(this, f, !0), A(this, w, Q).call(this));
97
- }
98
- disconnect() {
99
- t(this, f) && (i(this, f, !1), A(this, w, J).call(this));
100
- }
101
- pauseAndContinue(e, h) {
102
- t(this, f) && e && (clearTimeout(t(this, I)), t(this, d).set(1, {
103
- duration: Math.min(e, 1e3),
104
- equalize: h
105
- }), i(this, I, setTimeout(() => {
106
- t(this, d).set(0, {
107
- duration: Math.min(e, 5e3),
108
- equalize: h
109
- });
110
- }, e)));
111
- }
112
- }
113
- E = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), O = new WeakMap(), d = new WeakMap(), I = new WeakMap(), f = new WeakMap(), w = new WeakSet(), Q = function() {
114
- A(this, w, J).call(this), t(this, M) ? i(this, O, setInterval(
115
- t(this, S),
116
- Math.abs(t(this, E))
117
- )) : D.subscribe(t(this, H), t(this, Y)), document.addEventListener(
118
- "visibilitychange",
119
- t(this, q)
120
- );
121
- }, J = function() {
122
- clearInterval(t(this, O)), D.unsubscribe(t(this, H)), clearTimeout(t(this, I)), t(this, d).close(), document.removeEventListener(
123
- "visibilitychange",
124
- t(this, q)
125
- );
126
- }, H = new WeakMap(), S = new WeakMap(), q = new WeakMap();
127
- var z, k, P, B;
128
- class xe extends j {
129
- constructor(e) {
130
- super();
131
- s(this, z, null);
132
- s(this, k);
133
- s(this, P);
134
- s(this, B, (e) => {
135
- let h = 0;
136
- const a = Math.abs(e.deltaY), g = Math.abs(e.deltaX);
137
- if (!(this.axis === "x" && a > g || this.axis === "y" && g > a) && (e.preventDefault(), !(this.debounce && this.axis === "x" && g < 5 || this.debounce && this.axis === "y" && a < 5)))
138
- if (h = (this.axis === "max" ? g > a ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), this.debounce) {
139
- const R = Date.now();
140
- if (R - t(this, P) > 40 && (h = 100 * Math.sign(h)), i(this, P, R), Math.abs(h) < 100 || t(this, k))
141
- return;
142
- this.changeEvent.notify("wheel", h, e), i(this, k, setTimeout(() => {
143
- i(this, k, void 0);
144
- }, 80));
145
- } else
146
- this.changeEvent.notify("wheel", h, e);
147
- });
148
- this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, i(this, P, Date.now()), b && i(this, z, e != null && e.element && Z(e.element) || window);
149
- }
150
- connect() {
151
- b && t(this, z).addEventListener(
152
- "wheel",
153
- t(this, B),
154
- {
155
- passive: !1
156
- }
157
- );
158
- }
159
- disconnect() {
160
- b && (t(this, z).removeEventListener(
161
- "wheel",
162
- t(this, B)
163
- ), clearTimeout(t(this, k)));
164
- }
165
- }
166
- z = new WeakMap(), k = new WeakMap(), P = new WeakMap(), B = new WeakMap();
167
- var T, W, o, l, C, x, K, N, L;
168
- const v = class v extends j {
169
- constructor(e) {
170
- super();
171
- s(this, W);
172
- s(this, o);
173
- s(this, l);
174
- s(this, C);
175
- s(this, x);
176
- s(this, K);
177
- s(this, N);
178
- s(this, L);
179
- this.inertion = 1, i(this, W, null), i(this, o, null), i(this, l, 0), i(this, C, []), i(this, x, 0), i(this, K, (h) => {
180
- Math.abs(t(this, x)) > 2 && h.preventDefault();
181
- }), i(this, N, (h) => {
182
- if (i(this, x, 0), i(this, l, 0), h.button !== 0 || h.composedPath().find(
183
- (m) => m instanceof HTMLElement && m.hasAttribute("drag-dead-zone")
184
- ))
185
- return;
186
- this.swipe || D.unsubscribe(t(this, L));
187
- let a = h, g = !1;
188
- document.documentElement.classList.add("grabbing");
189
- let R = 0, $ = 0, F = 0, U = 0;
190
- ie(
191
- (m) => {
192
- t(v, T) && t(v, T) !== t(this, o) || (R = a.x - m.x, $ = a.y - m.y, F = m.x - h.x, U = m.y - h.y, this.axis === "x" ? (i(this, x, F), i(this, l, R)) : (i(this, x, U), i(this, l, $)), a = m, g = this.axis === "x" && Math.abs(F) > Math.abs(U) || this.axis === "y" && Math.abs(U) > Math.abs(F), g && (document.documentElement.classList.add("dragging"), document.documentElement.classList.add("click-disabled"), i(v, T, t(this, o)), this.changeEvent.notify("drag", t(this, l), m)));
193
- },
194
- (m) => {
195
- i(v, T, null), g && (!this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), D.subscribe(t(this, L), {
196
- order: he.CONTROLS - 1
197
- })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l), m)), setTimeout(() => {
198
- document.documentElement.classList.remove("grabbing"), document.documentElement.classList.remove("dragging"), document.documentElement.classList.remove("click-disabled");
199
- });
200
- }
201
- );
202
- }), i(this, L, () => {
203
- Math.floor(Math.abs(t(this, l))) || D.unsubscribe(t(this, L)), i(this, l, t(this, l) * 0.95), i(this, l, se(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l), null);
204
- }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, b && (i(this, o, e != null && e.element && Z(e.element) || document.documentElement), i(this, W, (e == null ? void 0 : e.rootElement) || t(this, o)));
205
- }
206
- connect() {
207
- b && (i(this, C, [...t(this, W).querySelectorAll("a")]), t(this, C).forEach((e) => {
208
- e.addEventListener("click", t(this, K));
209
- }), t(this, o).addEventListener("pointerdown", t(this, N)));
210
- }
211
- disconnect() {
212
- b && (t(this, C).forEach((e) => {
213
- e.removeEventListener("click", t(this, K));
214
- }), t(this, o).removeEventListener(
215
- "pointerdown",
216
- t(this, N)
217
- ), D.unsubscribe(t(this, L)));
218
- }
219
- };
220
- T = new WeakMap(), W = new WeakMap(), o = new WeakMap(), l = new WeakMap(), C = new WeakMap(), x = new WeakMap(), K = new WeakMap(), N = new WeakMap(), L = new WeakMap(), s(v, T, null);
221
- let p = v;
222
- export {
223
- Ee as A,
224
- j as C,
225
- p as D,
226
- ye as K,
227
- xe as W
228
- };
@@ -1 +0,0 @@
1
- "use strict";var f=i=>{throw TypeError(i)};var h=(i,e,t)=>e.has(i)||f("Cannot "+t);var n=(i,e,t)=>(h(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>e.has(i)?f("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),m=(i,e,t,r)=>(h(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),d=(i,e,t)=>(h(i,e,"access private method"),t);const v=require("./morph-B6sGhLCi.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const L=require("./url-CHgcNwJ1.cjs");var s,o,E,k,a;class S{constructor(e){u(this,o);u(this,s);u(this,a,e=>{var c,l,p;e.preventDefault();const{url:t,options:r={}}=(c=d(this,o,k).call(this,e))!=null?c:{};t&&(e.preventDefault(),(p=(l=n(this,s)).onClick)==null||p.call(l,t,r))});m(this,s,e),window.addEventListener("click",n(this,a))}destroy(){window.removeEventListener("click",n(this,a))}update(){document.querySelectorAll("a").forEach(e=>{L.normalizeURL(e.getAttribute("href"),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}).pathname===location.pathname?e.classList.add("current"):e.classList.remove("current")})}}s=new WeakMap,o=new WeakSet,E=function(e){return(e==null?void 0:e.nodeType)===v.NODE_TYPE_ELEMENT},k=function(e){const t=e.composedPath()[0];if(!d(this,o,E).call(this,t))return;const r=t.closest("a");if(!r||typeof n(this,s).includeAnchor=="function"&&!n(this,s).includeAnchor(r)||r.closest("[data-router-ignore]"))return;const{href:c}=r;if(!L.isLocalUrl(c))return;const l={keepScrollPosition:"keepScrollPosition"in r.dataset,cache:"cache"in r.dataset,revalidate:"revalidate"in r.dataset};return{url:L.normalizeURL(new URL(c),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}),options:l}},a=new WeakMap;exports.LocalLinks=S;
@@ -1,62 +0,0 @@
1
- var f = (i) => {
2
- throw TypeError(i);
3
- };
4
- var u = (i, t, e) => t.has(i) || f("Cannot " + e);
5
- var n = (i, t, e) => (u(i, t, "read from private field"), e ? e.call(i) : t.get(i)), h = (i, t, e) => t.has(i) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), m = (i, t, e, s) => (u(i, t, "write to private field"), s ? s.call(i, e) : t.set(i, e), e), d = (i, t, e) => (u(i, t, "access private method"), e);
6
- import { N as v } from "./morph-D_ybmXWR.js";
7
- import "construct-style-sheets-polyfill";
8
- import "./index-e9eDuagL.js";
9
- import { n as L, i as S } from "./url-CYgo5vrG.js";
10
- var r, o, E, k, c;
11
- class P {
12
- constructor(t) {
13
- h(this, o);
14
- h(this, r);
15
- h(this, c, (t) => {
16
- var a, l, p;
17
- t.preventDefault();
18
- const { url: e, options: s = {} } = (a = d(this, o, k).call(this, t)) != null ? a : {};
19
- e && (t.preventDefault(), (p = (l = n(this, r)).onClick) == null || p.call(l, e, s));
20
- });
21
- m(this, r, t), window.addEventListener("click", n(this, c));
22
- }
23
- destroy() {
24
- window.removeEventListener("click", n(this, c));
25
- }
26
- update() {
27
- document.querySelectorAll("a").forEach((t) => {
28
- L(t.getAttribute("href"), {
29
- base: n(this, r).base,
30
- trailingSlash: n(this, r).trailingSlash
31
- }).pathname === location.pathname ? t.classList.add("current") : t.classList.remove("current");
32
- });
33
- }
34
- }
35
- r = new WeakMap(), o = new WeakSet(), E = function(t) {
36
- return (t == null ? void 0 : t.nodeType) === v;
37
- }, k = function(t) {
38
- const e = t.composedPath()[0];
39
- if (!d(this, o, E).call(this, e))
40
- return;
41
- const s = e.closest("a");
42
- if (!s || typeof n(this, r).includeAnchor == "function" && !n(this, r).includeAnchor(s) || s.closest("[data-router-ignore]"))
43
- return;
44
- const { href: a } = s;
45
- if (!S(a))
46
- return;
47
- const l = {
48
- keepScrollPosition: "keepScrollPosition" in s.dataset,
49
- cache: "cache" in s.dataset,
50
- revalidate: "revalidate" in s.dataset
51
- };
52
- return {
53
- url: L(new URL(a), {
54
- base: n(this, r).base,
55
- trailingSlash: n(this, r).trailingSlash
56
- }),
57
- options: l
58
- };
59
- }, c = new WeakMap();
60
- export {
61
- P as L
62
- };
@@ -1,24 +0,0 @@
1
- import { i } from "./index-e9eDuagL.js";
2
- import "construct-style-sheets-polyfill";
3
- class n extends HTMLElement {
4
- create(e, t) {
5
- this.textContent !== t && (this.textContent = t), this.dataset.persist = "", e.body.appendChild(this);
6
- }
7
- done() {
8
- var e;
9
- (e = document.activeElement) != null && e.closest("[data-persist]") || document.body.focus(), delete this.dataset.persist;
10
- }
11
- connectedCallback() {
12
- const e = {
13
- "aria-live": "assertive",
14
- "aria-atomic": "true",
15
- style: "position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"
16
- };
17
- for (const [t, s] of Object.entries(e))
18
- this.setAttribute(t, s);
19
- }
20
- }
21
- i && !customElements.get("e-page-announcer") && customElements.define("e-page-announcer", n);
22
- export {
23
- n as P
24
- };
@@ -1 +0,0 @@
1
- "use strict";const i=require("./index-OE2INULi.cjs");require("construct-style-sheets-polyfill");class s extends HTMLElement{create(e,t){this.textContent!==t&&(this.textContent=t),this.dataset.persist="",e.body.appendChild(this)}done(){var e;(e=document.activeElement)!=null&&e.closest("[data-persist]")||document.body.focus(),delete this.dataset.persist}connectedCallback(){const e={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};for(const[t,n]of Object.entries(e))this.setAttribute(t,n)}}i.isBrowser&&!customElements.get("e-page-announcer")&&customElements.define("e-page-announcer",s);exports.PageAnnouncerElement=s;
@@ -1,62 +0,0 @@
1
- var w = (l) => {
2
- throw TypeError(l);
3
- };
4
- var g = (l, t, e) => t.has(l) || w("Cannot " + e);
5
- var s = (l, t, e) => (g(l, t, "read from private field"), e ? e.call(l) : t.get(l)), r = (l, t, e) => t.has(l) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(l) : t.set(l, e), c = (l, t, e, a) => (g(l, t, "write to private field"), a ? a.call(l, e) : t.set(l, e), e);
6
- import { d as E } from "./events-CsVF98U6.js";
7
- import "construct-style-sheets-polyfill";
8
- import "./index-e9eDuagL.js";
9
- var o, n, i, u, d, m;
10
- class y {
11
- constructor(t) {
12
- r(this, o, null);
13
- r(this, n, 0);
14
- r(this, i, 0);
15
- r(this, u, !1);
16
- r(this, d);
17
- r(this, m, () => {
18
- const { left: t, top: e } = this.value, a = e - s(this, i), h = t - s(this, n);
19
- c(this, i, e), c(this, n, t), document.documentElement.classList.toggle("scroll-y", e > 0), document.documentElement.classList.toggle("scroll-x", t > 0), document.documentElement.classList.toggle(
20
- "scroll-y-forward",
21
- a > 0
22
- ), document.documentElement.classList.toggle(
23
- "scroll-y-backward",
24
- a < 0
25
- ), document.documentElement.classList.toggle(
26
- "scroll-x-forward",
27
- h > 0
28
- ), document.documentElement.classList.toggle(
29
- "scroll-x-backward",
30
- h < 0
31
- ), E(document, "pageScrollEvent", {
32
- detail: this.value
33
- });
34
- });
35
- c(this, d, t);
36
- }
37
- get element() {
38
- return s(this, o);
39
- }
40
- get x() {
41
- return s(this, n);
42
- }
43
- get y() {
44
- return s(this, i);
45
- }
46
- get value() {
47
- let t = 0, e = 0;
48
- return s(this, u) ? (t = window.scrollY, e = window.scrollX) : (t = s(this, o).scrollTop, e = s(this, o).scrollLeft), { top: t, left: e };
49
- }
50
- destroy() {
51
- var t;
52
- (t = s(this, o)) == null || t.removeEventListener("scroll", s(this, m)), document.documentElement.classList.remove("scroll-y"), document.documentElement.classList.remove("scroll-x"), document.documentElement.classList.remove("scroll-y-forward"), document.documentElement.classList.remove("scroll-y-backward"), document.documentElement.classList.remove("scroll-x-forward"), document.documentElement.classList.remove("scroll-x-backward");
53
- }
54
- update() {
55
- var t, e;
56
- (t = s(this, o)) == null || t.removeEventListener("scroll", s(this, m)), c(this, i, 0), c(this, n, 0), c(this, o, s(this, d) && document.querySelector(s(this, d)) || window), c(this, u, s(this, o) === window), (e = s(this, o)) == null || e.addEventListener("scroll", s(this, m)), s(this, m).call(this);
57
- }
58
- }
59
- o = new WeakMap(), n = new WeakMap(), i = new WeakMap(), u = new WeakMap(), d = new WeakMap(), m = new WeakMap();
60
- export {
61
- y as P
62
- };
@@ -1 +0,0 @@
1
- "use strict";var g=l=>{throw TypeError(l)};var w=(l,e,t)=>e.has(l)||g("Cannot "+t);var s=(l,e,t)=>(w(l,e,"read from private field"),t?t.call(l):e.get(l)),r=(l,e,t)=>e.has(l)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(l):e.set(l,t),c=(l,e,t,u)=>(w(l,e,"write to private field"),u?u.call(l,t):e.set(l,t),t);const v=require("./events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");var o,n,i,a,m,d;class E{constructor(e){r(this,o,null);r(this,n,0);r(this,i,0);r(this,a,!1);r(this,m);r(this,d,()=>{const{left:e,top:t}=this.value,u=t-s(this,i),h=e-s(this,n);c(this,i,t),c(this,n,e),document.documentElement.classList.toggle("scroll-y",t>0),document.documentElement.classList.toggle("scroll-x",e>0),document.documentElement.classList.toggle("scroll-y-forward",u>0),document.documentElement.classList.toggle("scroll-y-backward",u<0),document.documentElement.classList.toggle("scroll-x-forward",h>0),document.documentElement.classList.toggle("scroll-x-backward",h<0),v.dispatchEvent(document,"pageScrollEvent",{detail:this.value})});c(this,m,e)}get element(){return s(this,o)}get x(){return s(this,n)}get y(){return s(this,i)}get value(){let e=0,t=0;return s(this,a)?(e=window.scrollY,t=window.scrollX):(e=s(this,o).scrollTop,t=s(this,o).scrollLeft),{top:e,left:t}}destroy(){var e;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),document.documentElement.classList.remove("scroll-y"),document.documentElement.classList.remove("scroll-x"),document.documentElement.classList.remove("scroll-y-forward"),document.documentElement.classList.remove("scroll-y-backward"),document.documentElement.classList.remove("scroll-x-forward"),document.documentElement.classList.remove("scroll-x-backward")}update(){var e,t;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),c(this,i,0),c(this,n,0),c(this,o,s(this,m)&&document.querySelector(s(this,m))||window),c(this,a,s(this,o)===window),(t=s(this,o))==null||t.addEventListener("scroll",s(this,d)),s(this,d).call(this)}}o=new WeakMap,n=new WeakMap,i=new WeakMap,a=new WeakMap,m=new WeakMap,d=new WeakMap;exports.PageScroll=E;
@@ -1,5 +0,0 @@
1
- "use strict";var Y=u=>{throw TypeError(u)};var Z=(u,h,e)=>h.has(u)||Y("Cannot "+e);var t=(u,h,e)=>(Z(u,h,"read from private field"),e?e.call(u):h.get(u)),i=(u,h,e)=>h.has(u)?Y("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(u):h.set(u,e),s=(u,h,e,c)=>(Z(u,h,"write to private field"),c?c.call(u,e):h.set(u,e),e),N=(u,h,e)=>(Z(u,h,"access private method"),e);const rt=require("./element-linked-store/index.cjs"),J=require("./loading/index.cjs"),nt=require("./index-OE2INULi.cjs"),w=require("./events-KVanG9sR.cjs"),tt=require("./string-DUXXtU8v.cjs"),at=require("./metadata-BcYZ5w3T.cjs");require("construct-style-sheets-polyfill");const ht=require("./order/index.cjs"),et=require("./window-resizer/index.cjs"),ot=require("./Store-Blf4msDz.cjs");var z,q,V,L,m,p,A;class st{constructor(h){i(this,z);i(this,q);i(this,V);i(this,L);i(this,m);i(this,p);i(this,A);s(this,z,h);let e=h.split(".");const c=/\b\d{1,2}x\b/g,n=e.find(y=>y.match(c)&&parseInt(y));s(this,V,n?parseInt(n):1),n&&(e=e.slice(0,-1)),s(this,q,e.length>1?e.slice(0,-1).join("."):e.join("."));const l=/\d+max/g,d=/\d+min/g,U=/\d+mar/g,F=/\d+mir/g,W=e.find(y=>y.match(l)),o=e.find(y=>y.match(d)),x=e.find(y=>y.match(U)),X=e.find(y=>y.match(F));x?(s(this,m,parseInt(x)),s(this,p,"max"),s(this,L,`(max-aspect-ratio: ${t(this,m)})`)):X?(s(this,m,parseInt(X)),s(this,p,"max"),s(this,L,`(min-aspect-ratio: ${t(this,m)})`)):W?(s(this,m,parseInt(W)),s(this,p,"max"),s(this,L,`(max-width: ${t(this,m)}px)`)):o?(s(this,m,parseInt(o)),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")):(s(this,m,0),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")),s(this,q,t(this,q).replace(`.${t(this,m)}${t(this,p)}`,"")),s(this,A,e[e.length-1]===t(this,q)?"":"."+e[e.length-1]),s(this,A,t(this,A).replace(`.${t(this,m)}${t(this,p)}`,""))}get url(){return t(this,z)}get name(){return t(this,q)}get density(){return t(this,V)}get query(){return t(this,L)}get extension(){return t(this,A)}get queryType(){return t(this,p)}get queryValue(){return t(this,m)}}z=new WeakMap,q=new WeakMap,V=new WeakMap,L=new WeakMap,m=new WeakMap,p=new WeakMap,A=new WeakMap;var S;class Q{constructor(h,e){i(this,S);s(this,S,new Map);const c=(e==null?void 0:e.mediaBuckets)!==!1,n=typeof h=="string"?c?h.trim().split(",").map(o=>o.trim()).filter(o=>!!o):[h]:h,l=[];n.forEach(o=>{const x=new st(o);l.push([x.query,x])});const d=l.filter(o=>o[1].queryType.includes("max")).sort((o,x)=>x[1].queryValue-o[1].queryValue),U=l.filter(o=>o[1].queryType.includes("min")&&o[1].queryValue!==0).sort((o,x)=>o[1].queryValue-x[1].queryValue),F=l.filter(o=>o[0]==="(min-width: 0px)");(F?[...F,...d,...U]:[...d,...U]).forEach(o=>{t(this,S).has(o[0])||t(this,S).set(o[0],[]),t(this,S).get(o[0]).push(o[1])})}get mediaBuckets(){return t(this,S)}}S=new WeakMap;var I,k;class it extends ot.Store{constructor(e){super(void 0);i(this,I);i(this,k,()=>{let e;t(this,I).mediaBuckets.forEach((l,d)=>{matchMedia(d).matches&&(e=l)});let c,n=0;e==null||e.forEach(l=>{l.density>n&&l.density<=Math.max(devicePixelRatio,1)&&(n=l.density,c=l)}),e!=null&&e.length&&!c&&(c=e[0]),this.current=c});s(this,I,new Q(e.srcset,e.sourceSetOptions))}updateSource(e){s(this,I,new Q(e.srcset,e.sourceSetOptions)),t(this,k).call(this)}close(){super.close(),this.disconnect()}connect(){et.windowResizer.subscribe(t(this,k),ht.RESIZE_ORDER.SOURCE_MANAGER),t(this,k).call(this)}disconnect(){et.windowResizer.unsubscribe(t(this,k))}}I=new WeakMap,k=new WeakMap;let ct=0;var f,r,R,E,b,g,B,M,a,O,T,v,P,$,j,G,_,K,D,H,C;class lt extends HTMLElement{constructor(e){super();i(this,$);i(this,f,null);i(this,r,null);i(this,R,this);i(this,E,!1);i(this,b,!1);i(this,g,!1);i(this,B,"");i(this,M,"");i(this,a,new rt.ElementLinkedStore(this,{loading:!1,loaded:!1,error:!1,clear:!1,playing:!1,metadata:!1}));i(this,O,null);i(this,T);i(this,v,null);i(this,P);i(this,G,e=>{const c=e[0];t(this,g)&&(!t(this,b)||this.hasAttribute("reload-source"))&&c.isIntersecting&&this.triggerLazyLoad(),c.isIntersecting?w.dispatchEvent(this,"sourceCapture",{custom:!0}):(this.hasAttribute("reload-source")&&(N(this,$,j).call(this,void 0),s(this,b,!1)),w.dispatchEvent(this,"sourceRelease",{custom:!0}))});i(this,_,()=>{t(this,a).set("loaded",!0),t(this,a).set("error",!1),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.complete(t(this,M)),w.dispatchEvent(this,"sourceLoaded",{custom:!0});const e=getComputedStyle(this).getPropertyValue("--clear-duration");e?s(this,T,setTimeout(()=>{t(this,a).set("clear",!0)},parseFloat(e)*1e3)):t(this,a).set("clear",!0),s(this,E,!0)});i(this,K,e=>{t(this,a).set("loaded",!1),t(this,a).set("error",!0),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.error(t(this,M)),w.dispatchEvent(this,"sourceError",{custom:!0}),s(this,E,!0)});i(this,D,()=>{t(this,a).set("playing",!0),w.dispatchEvent(this,"sourcePlay",{custom:!0})});i(this,H,()=>{t(this,a).set("playing",!1),w.dispatchEvent(this,"sourcePause",{custom:!0})});i(this,C,()=>{const e=t(this,r);(e.tagName==="VIDEO"||e.tagName==="AUDIO")&&e.readyState>=1&&(t(this,a).set("metadata",!0),w.dispatchEvent(this,"sourceMetadataLoaded",{custom:!0}),this.querySelectorAll("[data-source-duration]").forEach(c=>{c.textContent=at.formatMediaDuration(e.duration)}))});s(this,P,e==null?void 0:e.sourceSetOptions),nt.isBrowser&&window.IntersectionObserver&&s(this,O,new IntersectionObserver(t(this,G))),t(this,a).subscribe(c=>{var l;const n=(l=this.getAttribute("data-global-play-class"))==null?void 0:l.split(",");n!=null&&n.length&&(c.current.playing?n.forEach(d=>{document.documentElement.classList.add(d.trim())}):n.forEach(d=>{document.documentElement.classList.remove(d.trim())}))})}get consumerElement(){return t(this,r)}get consumerHolderElement(){return t(this,R)}get sourceManager(){return t(this,f)}get status(){return t(this,a)}get isLazy(){return t(this,g)}get currentURL(){return t(this,v)}get isFirstLoadHappened(){return t(this,E)}triggerLazyLoad(){!t(this,b)&&t(this,f).current&&t(this,f).current!==t(this,f).previous&&(s(this,b,!0),N(this,$,j).call(this,t(this,f).current))}connectedCallback(){s(this,B,`source-consumer-${++ct}`);const e=this.getAttribute("srcset")||"",c=this.hasAttribute("notify")?this.closest(this.getAttribute("notify")):null;c&&t(this,a).addElement(c),s(this,R,this.querySelector("[data-consumer-holder]")||this),this.querySelectorAll(".source-consumer").forEach(n=>n==null?void 0:n.remove()),s(this,r,this.createConsumer()),t(this,r).style.cssText=`
2
- display: block;
3
- width: 100%;
4
- height: 100%;
5
- `,t(this,r).classList.add("source-consumer"),t(this,r).addEventListener("play",t(this,D)),t(this,r).addEventListener("pause",t(this,H)),t(this,r).addEventListener("loadedmetadata",t(this,C)),t(this,C).call(this),Array.from(this.attributes).forEach(n=>{if(n.name!=="srcset"){const l=n.nodeValue||"",d=tt.kebabToCamel(n.name);d in t(this,r)&&(t(this,r)[d]=l||!0)}});for(const n in this.dataset){const l=this.dataset[n],d=tt.kebabToCamel(n);d in t(this,r)&&(t(this,r)[d]=l?l==="false"?!1:l:!0)}t(this,R).appendChild(t(this,r)),s(this,f,new it({srcset:e,sourceSetOptions:t(this,P)})),s(this,g,this.hasAttribute("lazy")),t(this,f).subscribe(n=>{(!t(this,g)||t(this,g)&&t(this,b))&&N(this,$,j).call(this,n.current)}),t(this,f).connect(),t(this,O).observe(this)}disconnectedCallback(){var e;clearTimeout(t(this,T)),t(this,O).disconnect(),(e=t(this,f))==null||e.close(),t(this,r)&&(this.consumeSource(null),t(this,r).removeEventListener("play",t(this,D)),t(this,r).removeEventListener("pause",t(this,H)),t(this,r).removeEventListener("loadedmetadata",t(this,C)),t(this,r).onloadeddata=null,t(this,r).onload=null,t(this,r).onerror=null,t(this,r).onerror=null,t(this,r).remove()),s(this,E,!1),s(this,b,!1),t(this,a).reset()}}f=new WeakMap,r=new WeakMap,R=new WeakMap,E=new WeakMap,b=new WeakMap,g=new WeakMap,B=new WeakMap,M=new WeakMap,a=new WeakMap,O=new WeakMap,T=new WeakMap,v=new WeakMap,P=new WeakMap,$=new WeakSet,j=function(e){if(clearTimeout(t(this,T)),t(this,r).onloadeddata=null,t(this,r).onload=null,t(this,r).onerror=null,t(this,a).set("loaded",!1),t(this,a).set("error",!1),t(this,a).set("loading",!1),t(this,a).set("clear",!1),t(this,a).set("playing",!1),t(this,a).set("metadata",!1),e){s(this,M,`${t(this,B)}-${e.url}`);const c=this.hasAttribute("keep-source-parameters");t(this,a).set("loading",!0),s(this,v,c?e.url:e.name+e.extension),this.consumeSource(t(this,v)),!t(this,g)&&!t(this,E)&&J.loading.add(t(this,M)),t(this,r).onloadeddata=()=>{t(this,_).call(this)},t(this,r).onload=()=>{t(this,_).call(this)},t(this,r).onerror=()=>{t(this,K).call(this,t(this,v))}}else s(this,v,null),this.consumeSource(null)},G=new WeakMap,_=new WeakMap,K=new WeakMap,D=new WeakMap,H=new WeakMap,C=new WeakMap;exports.Source=st;exports.SourceElement=lt;exports.SourceManager=it;exports.SourceSet=Q;