@okam/stack-ui 1.42.0 → 1.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 (586) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/components/ShareButton/utils/useLinkedinShareUrl.d.ts +2 -0
  3. package/components/ShareButton/utils/useXShareUrl.d.ts +2 -0
  4. package/index.d.ts +3 -1
  5. package/index.js +1 -1
  6. package/index.mjs +72 -70
  7. package/index10.js +1 -1
  8. package/index10.mjs +1 -1
  9. package/index101.js +1 -1
  10. package/index101.mjs +6 -6
  11. package/index102.js +2 -1
  12. package/index102.mjs +8 -25
  13. package/index103.js +1 -2
  14. package/index103.mjs +24 -10
  15. package/index104.js +1 -1
  16. package/index104.mjs +9 -18
  17. package/index105.js +1 -1
  18. package/index105.mjs +15 -47
  19. package/index106.js +1 -1
  20. package/index106.mjs +47 -38
  21. package/index107.js +1 -1
  22. package/index107.mjs +39 -10
  23. package/index108.js +1 -1
  24. package/index108.mjs +10 -35
  25. package/index109.js +1 -1
  26. package/index109.mjs +35 -13
  27. package/index110.js +1 -1
  28. package/index110.mjs +10 -22
  29. package/index111.js +1 -1
  30. package/index111.mjs +20 -16
  31. package/index112.js +1 -1
  32. package/index112.mjs +21 -11
  33. package/index113.js +1 -1
  34. package/index113.mjs +13 -12
  35. package/index114.js +1 -1
  36. package/index114.mjs +11 -34
  37. package/index115.js +2 -1
  38. package/index115.mjs +37 -4
  39. package/index116.js +1 -1
  40. package/index116.mjs +4 -2
  41. package/index117.js +1 -6
  42. package/index117.mjs +2 -94
  43. package/index118.js +6 -1
  44. package/index118.mjs +79 -55
  45. package/index119.js +1 -1
  46. package/index119.mjs +62 -33
  47. package/index120.js +1 -42
  48. package/index120.mjs +34 -67
  49. package/index121.js +38 -60
  50. package/index121.mjs +65 -219
  51. package/index122.js +63 -9
  52. package/index122.mjs +214 -57
  53. package/index123.js +10 -1
  54. package/index123.mjs +61 -35
  55. package/index124.js +1 -1
  56. package/index124.mjs +40 -8
  57. package/index125.js +1 -6
  58. package/index125.mjs +10 -46
  59. package/index126.js +6 -5
  60. package/index126.mjs +44 -83
  61. package/index127.js +5 -1
  62. package/index127.mjs +88 -6
  63. package/index128.js +1 -12
  64. package/index128.mjs +6 -40
  65. package/index129.js +12 -1
  66. package/index129.mjs +34 -83
  67. package/index13.js +1 -1
  68. package/index13.mjs +1 -1
  69. package/index130.js +1 -1
  70. package/index130.mjs +88 -12
  71. package/index131.js +1 -1
  72. package/index131.mjs +13 -8
  73. package/index132.js +1 -1
  74. package/index132.mjs +7 -28
  75. package/index133.js +1 -1
  76. package/index133.mjs +24 -8
  77. package/index134.js +1 -7
  78. package/index134.mjs +7 -13
  79. package/index135.js +6 -14
  80. package/index135.mjs +13 -65
  81. package/index136.js +15 -1
  82. package/index136.mjs +71 -7
  83. package/index137.js +1 -41
  84. package/index137.mjs +7 -106
  85. package/index138.js +32 -38
  86. package/index138.mjs +78 -74
  87. package/index139.js +46 -15
  88. package/index139.mjs +96 -19
  89. package/index14.js +1 -1
  90. package/index14.mjs +1 -1
  91. package/index140.js +16 -1
  92. package/index140.mjs +20 -37
  93. package/index141.js +1 -2
  94. package/index141.mjs +42 -49
  95. package/index142.js +2 -1
  96. package/index142.mjs +48 -22
  97. package/index143.js +1 -2
  98. package/index143.mjs +22 -8
  99. package/index144.js +1 -1
  100. package/index144.mjs +7 -11
  101. package/index145.js +2 -1
  102. package/index145.mjs +13 -240
  103. package/index146.js +1 -1
  104. package/index146.mjs +240 -52
  105. package/index147.js +1 -1
  106. package/index147.mjs +52 -4
  107. package/index148.js +1 -1
  108. package/index148.mjs +4 -11
  109. package/index149.js +1 -1
  110. package/index149.mjs +11 -14
  111. package/index150.js +1 -2
  112. package/index150.mjs +13 -38
  113. package/index151.js +1 -1
  114. package/index151.mjs +35 -20
  115. package/index152.js +2 -1
  116. package/index152.mjs +23 -43
  117. package/index153.js +1 -1
  118. package/index153.mjs +42 -18
  119. package/index154.js +1 -1
  120. package/index154.mjs +18 -36
  121. package/index155.js +1 -1
  122. package/index155.mjs +35 -13
  123. package/index156.js +1 -2
  124. package/index156.mjs +15 -12
  125. package/index157.js +1 -1
  126. package/index157.mjs +12 -38
  127. package/index158.js +2 -1
  128. package/index158.mjs +38 -10
  129. package/index159.js +1 -1
  130. package/index159.mjs +10 -13
  131. package/index16.js +1 -1
  132. package/index16.mjs +1 -1
  133. package/index160.js +1 -1
  134. package/index160.mjs +13 -38
  135. package/index161.js +1 -2
  136. package/index161.mjs +38 -24
  137. package/index162.js +2 -1
  138. package/index162.mjs +23 -21
  139. package/index163.js +1 -1
  140. package/index163.mjs +21 -41
  141. package/index164.js +1 -1
  142. package/index164.mjs +42 -25
  143. package/index165.js +1 -1
  144. package/index165.mjs +25 -40
  145. package/index166.js +1 -2
  146. package/index166.mjs +39 -56
  147. package/index167.js +2 -1
  148. package/index167.mjs +57 -38
  149. package/index168.js +1 -1
  150. package/index168.mjs +34 -26
  151. package/index169.js +1 -2
  152. package/index169.mjs +30 -8
  153. package/index17.js +1 -1
  154. package/index17.mjs +1 -1
  155. package/index170.js +1 -1
  156. package/index170.mjs +7 -8
  157. package/index171.js +2 -1
  158. package/index171.mjs +10 -30
  159. package/index172.js +1 -1
  160. package/index172.mjs +30 -15
  161. package/index173.js +1 -1
  162. package/index173.mjs +13 -15
  163. package/index174.js +1 -2
  164. package/index174.mjs +16 -47
  165. package/index175.js +2 -1
  166. package/index175.mjs +46 -36
  167. package/index176.js +1 -1
  168. package/index176.mjs +36 -27
  169. package/index177.js +1 -1
  170. package/index177.mjs +27 -20
  171. package/index178.js +1 -1
  172. package/index178.mjs +18 -32
  173. package/index179.js +1 -1
  174. package/index179.mjs +35 -21
  175. package/index18.js +1 -1
  176. package/index18.mjs +1 -1
  177. package/index180.js +1 -1
  178. package/index180.mjs +21 -56
  179. package/index181.js +1 -1
  180. package/index181.mjs +57 -46
  181. package/index182.js +1 -1
  182. package/index182.mjs +46 -12
  183. package/index183.js +1 -1
  184. package/index183.mjs +11 -2025
  185. package/index184.js +1 -1
  186. package/index184.mjs +2020 -54
  187. package/index185.js +1 -1
  188. package/index185.mjs +57 -186
  189. package/index186.js +1 -1
  190. package/index186.mjs +188 -5
  191. package/index187.js +1 -2
  192. package/index187.mjs +11 -49
  193. package/index188.js +1 -1
  194. package/index188.mjs +5 -11
  195. package/index189.js +2 -1
  196. package/index189.mjs +46 -200
  197. package/index19.js +1 -1
  198. package/index19.mjs +1 -1
  199. package/index190.js +1 -1
  200. package/index190.mjs +190 -51
  201. package/index191.js +1 -1
  202. package/index191.mjs +51 -130
  203. package/index192.js +1 -1
  204. package/index192.mjs +130 -111
  205. package/index193.js +1 -1
  206. package/index193.mjs +105 -205
  207. package/index194.js +1 -1
  208. package/index194.mjs +203 -169
  209. package/index195.js +1 -1
  210. package/index195.mjs +182 -61
  211. package/index196.js +1 -1
  212. package/index196.mjs +60 -270
  213. package/index197.js +1 -1
  214. package/index197.mjs +270 -89
  215. package/index198.js +1 -1
  216. package/index198.mjs +92 -182
  217. package/index199.js +1 -1
  218. package/index199.mjs +182 -78
  219. package/index2.js +1 -1
  220. package/index2.mjs +25 -25
  221. package/index20.js +1 -1
  222. package/index20.mjs +1 -1
  223. package/index200.js +1 -1
  224. package/index200.mjs +75 -49
  225. package/index201.js +1 -1
  226. package/index201.mjs +49 -117
  227. package/index202.js +1 -1
  228. package/index202.mjs +118 -108
  229. package/index203.js +1 -1
  230. package/index203.mjs +106 -112
  231. package/index204.js +1 -1
  232. package/index204.mjs +113 -63
  233. package/index205.js +1 -1
  234. package/index205.mjs +70 -108
  235. package/index206.js +1 -1
  236. package/index206.mjs +108 -50
  237. package/index207.js +1 -1
  238. package/index207.mjs +34 -75
  239. package/index208.js +1 -1
  240. package/index208.mjs +71 -48
  241. package/index209.js +1 -1
  242. package/index209.mjs +57 -43
  243. package/index21.js +1 -1
  244. package/index21.mjs +3 -3
  245. package/index210.js +1 -1
  246. package/index210.mjs +43 -86
  247. package/index211.js +1 -5
  248. package/index211.mjs +81 -62
  249. package/index212.js +5 -1
  250. package/index212.mjs +77 -127
  251. package/index213.js +1 -1
  252. package/index213.mjs +123 -183
  253. package/index214.js +1 -1
  254. package/index214.mjs +182 -116
  255. package/index215.js +1 -1
  256. package/index215.mjs +122 -132
  257. package/index216.js +1 -1
  258. package/index216.mjs +125 -35
  259. package/index217.js +1 -1
  260. package/index217.mjs +42 -12
  261. package/index218.js +1 -1
  262. package/index218.mjs +12 -93
  263. package/index219.js +1 -1
  264. package/index219.mjs +87 -98
  265. package/index22.js +1 -1
  266. package/index22.mjs +1 -1
  267. package/index220.js +1 -1
  268. package/index220.mjs +106 -4
  269. package/index221.js +1 -1
  270. package/index221.mjs +4 -3
  271. package/index222.js +1 -1
  272. package/index222.mjs +3 -125
  273. package/index223.js +1 -1
  274. package/index223.mjs +117 -21
  275. package/index224.js +1 -1
  276. package/index224.mjs +15 -37
  277. package/index225.js +1 -1
  278. package/index225.mjs +41 -34
  279. package/index226.js +1 -1
  280. package/index226.mjs +32 -25
  281. package/index227.js +1 -1
  282. package/index227.mjs +22 -98
  283. package/index228.js +1 -1
  284. package/index228.mjs +99 -63
  285. package/index229.js +1 -1
  286. package/index229.mjs +55 -79
  287. package/index23.js +1 -1
  288. package/index23.mjs +3 -3
  289. package/index230.js +1 -1
  290. package/index230.mjs +102 -98
  291. package/index231.js +1 -1
  292. package/index231.mjs +98 -126
  293. package/index232.js +1 -1
  294. package/index232.mjs +122 -24
  295. package/index233.js +1 -1
  296. package/index233.mjs +22 -135
  297. package/index234.js +1 -1
  298. package/index234.mjs +65 -189
  299. package/index235.js +1 -1
  300. package/index235.mjs +378 -19
  301. package/index236.js +1 -1
  302. package/index236.mjs +47 -4
  303. package/index237.js +1 -1
  304. package/index237.mjs +4 -29
  305. package/index238.js +1 -1
  306. package/index238.mjs +23 -48
  307. package/index239.js +1 -1
  308. package/index239.mjs +45 -52
  309. package/index240.js +1 -1
  310. package/index240.mjs +5 -48
  311. package/index241.js +1 -1
  312. package/index241.mjs +22 -95
  313. package/index242.js +1 -1
  314. package/index242.mjs +12 -5
  315. package/index243.js +1 -1
  316. package/index243.mjs +4 -6
  317. package/index244.js +1 -1
  318. package/index244.mjs +13 -40
  319. package/index245.js +1 -1
  320. package/index245.mjs +43 -72
  321. package/index246.js +1 -1
  322. package/index246.mjs +56 -13
  323. package/index247.js +1 -1
  324. package/index247.mjs +40 -67
  325. package/index248.js +1 -1
  326. package/index248.mjs +28 -7
  327. package/index249.js +1 -1
  328. package/index249.mjs +31 -11
  329. package/index25.js +1 -1
  330. package/index25.mjs +2 -2
  331. package/index250.js +1 -1
  332. package/index250.mjs +13 -46
  333. package/index251.js +1 -1
  334. package/index251.mjs +10 -73
  335. package/index252.js +1 -1
  336. package/index252.mjs +25 -378
  337. package/index253.js +1 -1
  338. package/index253.mjs +8 -45
  339. package/index254.js +1 -1
  340. package/index254.mjs +6 -24
  341. package/index255.js +1 -1
  342. package/index255.mjs +5 -24
  343. package/index256.js +1 -1
  344. package/index256.mjs +7 -12
  345. package/index257.js +1 -1
  346. package/index257.mjs +29 -4
  347. package/index258.js +1 -1
  348. package/index258.mjs +18 -14
  349. package/index259.js +1 -1
  350. package/index259.mjs +13 -42
  351. package/index26.js +1 -1
  352. package/index26.mjs +4 -4
  353. package/index260.js +1 -1
  354. package/index260.mjs +40 -54
  355. package/index261.js +1 -1
  356. package/index261.mjs +7 -27
  357. package/index262.js +1 -1
  358. package/index262.mjs +15 -29
  359. package/index263.js +1 -1
  360. package/index263.mjs +3 -11
  361. package/index264.js +1 -1
  362. package/index264.mjs +4 -9
  363. package/index265.js +1 -1
  364. package/index265.mjs +19 -5
  365. package/index266.js +1 -1
  366. package/index266.mjs +54 -7
  367. package/index267.js +1 -1
  368. package/index267.mjs +136 -25
  369. package/index268.js +1 -1
  370. package/index268.mjs +196 -17
  371. package/index269.js +1 -1
  372. package/index269.mjs +21 -12
  373. package/index27.js +1 -1
  374. package/index27.mjs +7 -7
  375. package/index270.js +1 -1
  376. package/index270.mjs +47 -41
  377. package/index271.js +1 -1
  378. package/index271.mjs +47 -7
  379. package/index272.js +1 -1
  380. package/index272.mjs +95 -15
  381. package/index273.js +1 -1
  382. package/index273.mjs +72 -3
  383. package/index274.js +1 -1
  384. package/index274.mjs +68 -4
  385. package/index275.js +1 -1
  386. package/index275.mjs +7 -19
  387. package/index276.js +1 -1
  388. package/index276.mjs +11 -5
  389. package/index277.js +1 -1
  390. package/index277.mjs +5 -121
  391. package/index278.js +1 -1
  392. package/index278.mjs +121 -43
  393. package/index279.js +1 -1
  394. package/index279.mjs +43 -230
  395. package/index28.js +1 -1
  396. package/index28.mjs +2 -2
  397. package/index280.js +1 -1
  398. package/index280.mjs +226 -27
  399. package/index281.js +1 -1
  400. package/index281.mjs +30 -8
  401. package/index282.js +1 -1
  402. package/index282.mjs +9 -3
  403. package/index283.js +1 -1
  404. package/index283.mjs +3 -36
  405. package/index284.js +1 -1
  406. package/index284.mjs +36 -5
  407. package/index285.js +1 -1
  408. package/index285.mjs +5 -29
  409. package/index286.js +1 -1
  410. package/index286.mjs +29 -6
  411. package/index287.js +1 -1
  412. package/index287.mjs +6 -4
  413. package/index288.js +1 -1
  414. package/index288.mjs +4 -3
  415. package/index289.js +1 -1
  416. package/index289.mjs +4 -5
  417. package/index29.js +1 -1
  418. package/index29.mjs +1 -1
  419. package/index290.js +1 -1
  420. package/index290.mjs +1 -1
  421. package/index291.js +1 -1
  422. package/index291.mjs +4 -4
  423. package/index292.js +1 -1
  424. package/index292.mjs +1 -1
  425. package/index293.js +1 -1
  426. package/index293.mjs +1 -1
  427. package/index294.js +1 -1
  428. package/index294.mjs +4 -4
  429. package/index295.js +1 -1
  430. package/index295.mjs +4 -4
  431. package/index296.js +1 -1
  432. package/index296.mjs +1 -1
  433. package/index297.js +1 -1
  434. package/index297.mjs +4 -4
  435. package/index298.js +1 -1
  436. package/index298.mjs +4 -4
  437. package/index299.js +1 -1
  438. package/index299.mjs +1 -1
  439. package/index300.js +1 -1
  440. package/index300.mjs +4 -4
  441. package/index301.js +1 -1
  442. package/index301.mjs +4 -4
  443. package/index302.js +1 -1
  444. package/index302.mjs +1 -1
  445. package/index303.js +1 -1
  446. package/index303.mjs +1 -1
  447. package/index304.js +1 -1
  448. package/index304.mjs +4 -4
  449. package/index305.js +1 -1
  450. package/index305.mjs +4 -4
  451. package/index306.js +1 -1
  452. package/index306.mjs +1 -1
  453. package/index307.js +1 -1
  454. package/index307.mjs +4 -4
  455. package/index308.js +1 -1
  456. package/index308.mjs +4 -4
  457. package/index309.js +1 -1
  458. package/index309.mjs +4 -4
  459. package/index310.js +1 -1
  460. package/index310.mjs +1 -1
  461. package/index311.js +1 -1
  462. package/index311.mjs +4 -4
  463. package/index312.js +1 -1
  464. package/index312.mjs +4 -4
  465. package/index313.js +1 -1
  466. package/index313.mjs +4 -4
  467. package/index314.js +1 -1
  468. package/index314.mjs +4 -4
  469. package/index315.js +1 -1
  470. package/index315.mjs +4 -4
  471. package/index316.js +1 -1
  472. package/index316.mjs +1 -1
  473. package/index317.js +1 -1
  474. package/index317.mjs +1 -1
  475. package/index318.js +1 -1
  476. package/index318.mjs +1 -1
  477. package/index319.js +1 -1
  478. package/index319.mjs +4 -4
  479. package/index32.js +1 -1
  480. package/index32.mjs +2 -2
  481. package/index320.js +1 -1
  482. package/index320.mjs +4 -4
  483. package/index321.js +1 -1
  484. package/index321.mjs +4 -4
  485. package/index322.js +1 -1
  486. package/index322.mjs +4 -4
  487. package/index323.js +1 -1
  488. package/index323.mjs +5 -7
  489. package/index324.js +1 -1
  490. package/index324.mjs +62 -27
  491. package/index325.js +1 -1
  492. package/index325.mjs +7 -93
  493. package/index326.js +1 -1
  494. package/index326.mjs +27 -62
  495. package/index327.js +1 -1
  496. package/index327.mjs +90 -7
  497. package/index328.js +1 -1
  498. package/index328.mjs +8 -24
  499. package/index329.js +1 -1
  500. package/index329.mjs +25 -33
  501. package/index33.js +1 -1
  502. package/index33.mjs +3 -3
  503. package/index330.js +1 -1
  504. package/index330.mjs +33 -6
  505. package/index331.js +1 -1
  506. package/index331.mjs +5 -5
  507. package/index332.js +1 -1
  508. package/index332.mjs +6 -50
  509. package/index333.js +1 -1
  510. package/index333.mjs +49 -28
  511. package/index334.js +1 -1
  512. package/index334.mjs +29 -14
  513. package/index335.js +1 -1
  514. package/index335.mjs +14 -21
  515. package/index336.js +1 -1
  516. package/index336.mjs +20 -28
  517. package/index337.js +1 -1
  518. package/index337.mjs +27 -64
  519. package/index338.js +1 -1
  520. package/index338.mjs +66 -53
  521. package/index339.js +1 -1
  522. package/index339.mjs +53 -54
  523. package/index34.js +1 -1
  524. package/index34.mjs +1 -1
  525. package/index340.js +1 -1
  526. package/index340.mjs +54 -281
  527. package/index341.js +1 -1
  528. package/index341.mjs +281 -20
  529. package/index342.js +1 -1
  530. package/index342.mjs +20 -3
  531. package/index343.js +1 -1
  532. package/index343.mjs +3 -4
  533. package/index344.js +1 -1
  534. package/index344.mjs +4 -8
  535. package/index345.js +1 -1
  536. package/index345.mjs +7 -4
  537. package/index346.js +1 -1
  538. package/index346.mjs +5 -30
  539. package/index347.js +1 -1
  540. package/index347.mjs +27 -164
  541. package/index348.js +1 -0
  542. package/index348.mjs +170 -0
  543. package/index35.js +1 -1
  544. package/index35.mjs +2 -2
  545. package/index37.js +1 -1
  546. package/index37.mjs +3 -3
  547. package/index38.js +1 -1
  548. package/index38.mjs +3 -3
  549. package/index39.js +1 -1
  550. package/index39.mjs +3 -3
  551. package/index4.js +1 -1
  552. package/index4.mjs +2 -2
  553. package/index41.js +1 -1
  554. package/index41.mjs +1 -1
  555. package/index43.js +1 -1
  556. package/index43.mjs +2 -2
  557. package/index44.js +1 -1
  558. package/index44.mjs +1 -1
  559. package/index47.js +1 -1
  560. package/index47.mjs +3 -3
  561. package/index51.js +1 -1
  562. package/index51.mjs +1 -1
  563. package/index52.js +1 -1
  564. package/index52.mjs +1 -1
  565. package/index53.js +1 -1
  566. package/index53.mjs +3 -3
  567. package/index54.js +1 -1
  568. package/index54.mjs +1 -1
  569. package/index55.js +1 -1
  570. package/index55.mjs +2 -2
  571. package/index56.js +1 -1
  572. package/index56.mjs +2 -2
  573. package/index57.js +1 -1
  574. package/index57.mjs +2 -2
  575. package/index59.js +1 -1
  576. package/index59.mjs +2 -2
  577. package/index60.js +1 -1
  578. package/index60.mjs +1 -1
  579. package/index9.js +1 -1
  580. package/index9.mjs +1 -1
  581. package/index90.js +1 -1
  582. package/index90.mjs +1 -1
  583. package/index96.js +1 -1
  584. package/index96.mjs +1 -1
  585. package/package.json +1 -1
  586. package/components/ShareButton/utils/useTwitterShareUrl.d.ts +0 -2
package/index183.mjs CHANGED
@@ -1,2028 +1,14 @@
1
- import { a as D, g as F } from "./index212.mjs";
2
- import { w as A, e as G, h as ie, c as K, p as V, x as ve, a as we, s as N, f as se, q as Se, r as Te, j as xe, t as de, n as J, u as R, v as be, d as $ } from "./index213.mjs";
3
- let H;
4
- function ye() {
5
- const i = D(), t = F();
6
- return {
7
- smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
8
- touch: !!("ontouchstart" in i || i.DocumentTouch && t instanceof i.DocumentTouch)
9
- };
10
- }
11
- function ce() {
12
- return H || (H = ye()), H;
13
- }
14
- let W;
15
- function Ee(i) {
16
- let {
17
- userAgent: t
18
- } = i === void 0 ? {} : i;
19
- const e = ce(), s = D(), n = s.navigator.platform, r = t || s.navigator.userAgent, l = {
20
- ios: !1,
21
- android: !1
22
- }, o = s.screen.width, a = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
23
- let c = r.match(/(iPad).*OS\s([\d_]+)/);
24
- const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), p = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), u = n === "Win32";
25
- let h = n === "MacIntel";
26
- const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
27
- return !c && h && e.touch && m.indexOf(`${o}x${a}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), h = !1), d && !u && (l.os = "android", l.android = !0), (c || p || f) && (l.os = "ios", l.ios = !0), l;
28
- }
29
- function fe(i) {
30
- return i === void 0 && (i = {}), W || (W = Ee(i)), W;
31
- }
32
- let Y;
33
- function Pe() {
34
- const i = D(), t = fe();
35
- let e = !1;
36
- function s() {
37
- const o = i.navigator.userAgent.toLowerCase();
38
- return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
39
- }
40
- if (s()) {
41
- const o = String(i.navigator.userAgent);
42
- if (o.includes("Version/")) {
43
- const [a, d] = o.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
44
- e = a < 16 || a === 16 && d < 2;
45
- }
46
- }
47
- const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent), r = s(), l = r || n && t.ios;
48
- return {
49
- isSafari: e || r,
50
- needPerspectiveFix: e,
51
- need3dFix: l,
52
- isWebView: n
53
- };
54
- }
55
- function Me() {
56
- return Y || (Y = Pe()), Y;
57
- }
58
- function Ie(i) {
59
- let {
60
- swiper: t,
61
- on: e,
62
- emit: s
63
- } = i;
64
- const n = D();
65
- let r = null, l = null;
66
- const o = () => {
67
- !t || t.destroyed || !t.initialized || (s("beforeResize"), s("resize"));
68
- }, a = () => {
69
- !t || t.destroyed || !t.initialized || (r = new ResizeObserver((f) => {
70
- l = n.requestAnimationFrame(() => {
71
- const {
72
- width: p,
73
- height: u
74
- } = t;
75
- let h = p, m = u;
76
- f.forEach((x) => {
77
- let {
78
- contentBoxSize: g,
79
- contentRect: b,
80
- target: v
81
- } = x;
82
- v && v !== t.el || (h = b ? b.width : (g[0] || g).inlineSize, m = b ? b.height : (g[0] || g).blockSize);
83
- }), (h !== p || m !== u) && o();
84
- });
85
- }), r.observe(t.el));
86
- }, d = () => {
87
- l && n.cancelAnimationFrame(l), r && r.unobserve && t.el && (r.unobserve(t.el), r = null);
88
- }, c = () => {
89
- !t || t.destroyed || !t.initialized || s("orientationchange");
90
- };
91
- e("init", () => {
92
- if (t.params.resizeObserver && typeof n.ResizeObserver < "u") {
93
- a();
94
- return;
95
- }
96
- n.addEventListener("resize", o), n.addEventListener("orientationchange", c);
97
- }), e("destroy", () => {
98
- d(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", c);
99
- });
100
- }
101
- function Ce(i) {
102
- let {
103
- swiper: t,
104
- extendParams: e,
105
- on: s,
106
- emit: n
107
- } = i;
108
- const r = [], l = D(), o = function(c, f) {
109
- f === void 0 && (f = {});
110
- const p = l.MutationObserver || l.WebkitMutationObserver, u = new p((h) => {
111
- if (t.__preventObserver__) return;
112
- if (h.length === 1) {
113
- n("observerUpdate", h[0]);
114
- return;
115
- }
116
- const m = function() {
117
- n("observerUpdate", h[0]);
118
- };
119
- l.requestAnimationFrame ? l.requestAnimationFrame(m) : l.setTimeout(m, 0);
120
- });
121
- u.observe(c, {
122
- attributes: typeof f.attributes > "u" ? !0 : f.attributes,
123
- childList: t.isElement || (typeof f.childList > "u" ? !0 : f).childList,
124
- characterData: typeof f.characterData > "u" ? !0 : f.characterData
125
- }), r.push(u);
126
- }, a = () => {
127
- if (t.params.observer) {
128
- if (t.params.observeParents) {
129
- const c = we(t.hostEl);
130
- for (let f = 0; f < c.length; f += 1)
131
- o(c[f]);
132
- }
133
- o(t.hostEl, {
134
- childList: t.params.observeSlideChildren
135
- }), o(t.wrapperEl, {
136
- attributes: !1
137
- });
138
- }
139
- }, d = () => {
140
- r.forEach((c) => {
141
- c.disconnect();
142
- }), r.splice(0, r.length);
143
- };
144
- e({
145
- observer: !1,
146
- observeParents: !1,
147
- observeSlideChildren: !1
148
- }), s("init", a), s("destroy", d);
149
- }
150
- var Le = {
151
- on(i, t, e) {
152
- const s = this;
153
- if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
154
- const n = e ? "unshift" : "push";
155
- return i.split(" ").forEach((r) => {
156
- s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](t);
157
- }), s;
158
- },
159
- once(i, t, e) {
160
- const s = this;
161
- if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
162
- function n() {
163
- s.off(i, n), n.__emitterProxy && delete n.__emitterProxy;
164
- for (var r = arguments.length, l = new Array(r), o = 0; o < r; o++)
165
- l[o] = arguments[o];
166
- t.apply(s, l);
167
- }
168
- return n.__emitterProxy = t, s.on(i, n, e);
169
- },
170
- onAny(i, t) {
171
- const e = this;
172
- if (!e.eventsListeners || e.destroyed || typeof i != "function") return e;
173
- const s = t ? "unshift" : "push";
174
- return e.eventsAnyListeners.indexOf(i) < 0 && e.eventsAnyListeners[s](i), e;
175
- },
176
- offAny(i) {
177
- const t = this;
178
- if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
179
- const e = t.eventsAnyListeners.indexOf(i);
180
- return e >= 0 && t.eventsAnyListeners.splice(e, 1), t;
181
- },
182
- off(i, t) {
183
- const e = this;
184
- return !e.eventsListeners || e.destroyed || !e.eventsListeners || i.split(" ").forEach((s) => {
185
- typeof t > "u" ? e.eventsListeners[s] = [] : e.eventsListeners[s] && e.eventsListeners[s].forEach((n, r) => {
186
- (n === t || n.__emitterProxy && n.__emitterProxy === t) && e.eventsListeners[s].splice(r, 1);
187
- });
188
- }), e;
189
- },
190
- emit() {
191
- const i = this;
192
- if (!i.eventsListeners || i.destroyed || !i.eventsListeners) return i;
193
- let t, e, s;
194
- for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
195
- r[l] = arguments[l];
196
- return typeof r[0] == "string" || Array.isArray(r[0]) ? (t = r[0], e = r.slice(1, r.length), s = i) : (t = r[0].events, e = r[0].data, s = r[0].context || i), e.unshift(s), (Array.isArray(t) ? t : t.split(" ")).forEach((a) => {
197
- i.eventsAnyListeners && i.eventsAnyListeners.length && i.eventsAnyListeners.forEach((d) => {
198
- d.apply(s, [a, ...e]);
199
- }), i.eventsListeners && i.eventsListeners[a] && i.eventsListeners[a].forEach((d) => {
200
- d.apply(s, e);
201
- });
202
- }), i;
203
- }
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import { useTransition as c, animated as g } from "@react-spring/web";
3
+ import l from "./index88.mjs";
4
+ const w = (e) => {
5
+ const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
+ from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
+ enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
+ leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
+ }), a = l(r, i, n);
10
+ return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
204
11
  };
205
- function ze() {
206
- const i = this;
207
- let t, e;
208
- const s = i.el;
209
- typeof i.params.width < "u" && i.params.width !== null ? t = i.params.width : t = s.clientWidth, typeof i.params.height < "u" && i.params.height !== null ? e = i.params.height : e = s.clientHeight, !(t === 0 && i.isHorizontal() || e === 0 && i.isVertical()) && (t = t - parseInt(V(s, "padding-left") || 0, 10) - parseInt(V(s, "padding-right") || 0, 10), e = e - parseInt(V(s, "padding-top") || 0, 10) - parseInt(V(s, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(e) && (e = 0), Object.assign(i, {
210
- width: t,
211
- height: e,
212
- size: i.isHorizontal() ? t : e
213
- }));
214
- }
215
- function Oe() {
216
- const i = this;
217
- function t(w, y) {
218
- return parseFloat(w.getPropertyValue(i.getDirectionLabel(y)) || 0);
219
- }
220
- const e = i.params, {
221
- wrapperEl: s,
222
- slidesEl: n,
223
- size: r,
224
- rtlTranslate: l,
225
- wrongRTL: o
226
- } = i, a = i.virtual && e.virtual.enabled, d = a ? i.virtual.slides.length : i.slides.length, c = G(n, `.${i.params.slideClass}, swiper-slide`), f = a ? i.virtual.slides.length : c.length;
227
- let p = [];
228
- const u = [], h = [];
229
- let m = e.slidesOffsetBefore;
230
- typeof m == "function" && (m = e.slidesOffsetBefore.call(i));
231
- let x = e.slidesOffsetAfter;
232
- typeof x == "function" && (x = e.slidesOffsetAfter.call(i));
233
- const g = i.snapGrid.length, b = i.slidesGrid.length;
234
- let v = e.spaceBetween, E = -m, S = 0, M = 0;
235
- if (typeof r > "u")
236
- return;
237
- typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * r : typeof v == "string" && (v = parseFloat(v)), i.virtualSize = -v, c.forEach((w) => {
238
- l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
239
- }), e.centeredSlides && e.cssMode && (N(s, "--swiper-centered-offset-before", ""), N(s, "--swiper-centered-offset-after", ""));
240
- const z = e.grid && e.grid.rows > 1 && i.grid;
241
- z ? i.grid.initSlides(c) : i.grid && i.grid.unsetSlides();
242
- let I;
243
- const B = e.slidesPerView === "auto" && e.breakpoints && Object.keys(e.breakpoints).filter((w) => typeof e.breakpoints[w].slidesPerView < "u").length > 0;
244
- for (let w = 0; w < f; w += 1) {
245
- I = 0;
246
- let y;
247
- if (c[w] && (y = c[w]), z && i.grid.updateSlide(w, y, c), !(c[w] && V(y, "display") === "none")) {
248
- if (e.slidesPerView === "auto") {
249
- B && (c[w].style[i.getDirectionLabel("width")] = "");
250
- const P = getComputedStyle(y), T = y.style.transform, C = y.style.webkitTransform;
251
- if (T && (y.style.transform = "none"), C && (y.style.webkitTransform = "none"), e.roundLengths)
252
- I = i.isHorizontal() ? se(y, "width") : se(y, "height");
253
- else {
254
- const L = t(P, "width"), k = t(P, "padding-left"), he = t(P, "padding-right"), Z = t(P, "margin-left"), ee = t(P, "margin-right"), te = P.getPropertyValue("box-sizing");
255
- if (te && te === "border-box")
256
- I = L + Z + ee;
257
- else {
258
- const {
259
- clientWidth: me,
260
- offsetWidth: ge
261
- } = y;
262
- I = L + k + he + Z + ee + (ge - me);
263
- }
264
- }
265
- T && (y.style.transform = T), C && (y.style.webkitTransform = C), e.roundLengths && (I = Math.floor(I));
266
- } else
267
- I = (r - (e.slidesPerView - 1) * v) / e.slidesPerView, e.roundLengths && (I = Math.floor(I)), c[w] && (c[w].style[i.getDirectionLabel("width")] = `${I}px`);
268
- c[w] && (c[w].swiperSlideSize = I), h.push(I), e.centeredSlides ? (E = E + I / 2 + S / 2 + v, S === 0 && w !== 0 && (E = E - r / 2 - v), w === 0 && (E = E - r / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), e.roundLengths && (E = Math.floor(E)), M % e.slidesPerGroup === 0 && p.push(E), u.push(E)) : (e.roundLengths && (E = Math.floor(E)), (M - Math.min(i.params.slidesPerGroupSkip, M)) % i.params.slidesPerGroup === 0 && p.push(E), u.push(E), E = E + I + v), i.virtualSize += I + v, S = I, M += 1;
269
- }
270
- }
271
- if (i.virtualSize = Math.max(i.virtualSize, r) + x, l && o && (e.effect === "slide" || e.effect === "coverflow") && (s.style.width = `${i.virtualSize + v}px`), e.setWrapperSize && (s.style[i.getDirectionLabel("width")] = `${i.virtualSize + v}px`), z && i.grid.updateWrapperSize(I, p), !e.centeredSlides) {
272
- const w = [];
273
- for (let y = 0; y < p.length; y += 1) {
274
- let P = p[y];
275
- e.roundLengths && (P = Math.floor(P)), p[y] <= i.virtualSize - r && w.push(P);
276
- }
277
- p = w, Math.floor(i.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(i.virtualSize - r);
278
- }
279
- if (a && e.loop) {
280
- const w = h[0] + v;
281
- if (e.slidesPerGroup > 1) {
282
- const y = Math.ceil((i.virtual.slidesBefore + i.virtual.slidesAfter) / e.slidesPerGroup), P = w * e.slidesPerGroup;
283
- for (let T = 0; T < y; T += 1)
284
- p.push(p[p.length - 1] + P);
285
- }
286
- for (let y = 0; y < i.virtual.slidesBefore + i.virtual.slidesAfter; y += 1)
287
- e.slidesPerGroup === 1 && p.push(p[p.length - 1] + w), u.push(u[u.length - 1] + w), i.virtualSize += w;
288
- }
289
- if (p.length === 0 && (p = [0]), v !== 0) {
290
- const w = i.isHorizontal() && l ? "marginLeft" : i.getDirectionLabel("marginRight");
291
- c.filter((y, P) => !e.cssMode || e.loop ? !0 : P !== c.length - 1).forEach((y) => {
292
- y.style[w] = `${v}px`;
293
- });
294
- }
295
- if (e.centeredSlides && e.centeredSlidesBounds) {
296
- let w = 0;
297
- h.forEach((P) => {
298
- w += P + (v || 0);
299
- }), w -= v;
300
- const y = w > r ? w - r : 0;
301
- p = p.map((P) => P <= 0 ? -m : P > y ? y + x : P);
302
- }
303
- if (e.centerInsufficientSlides) {
304
- let w = 0;
305
- h.forEach((P) => {
306
- w += P + (v || 0);
307
- }), w -= v;
308
- const y = (e.slidesOffsetBefore || 0) + (e.slidesOffsetAfter || 0);
309
- if (w + y < r) {
310
- const P = (r - w - y) / 2;
311
- p.forEach((T, C) => {
312
- p[C] = T - P;
313
- }), u.forEach((T, C) => {
314
- u[C] = T + P;
315
- });
316
- }
317
- }
318
- if (Object.assign(i, {
319
- slides: c,
320
- snapGrid: p,
321
- slidesGrid: u,
322
- slidesSizesGrid: h
323
- }), e.centeredSlides && e.cssMode && !e.centeredSlidesBounds) {
324
- N(s, "--swiper-centered-offset-before", `${-p[0]}px`), N(s, "--swiper-centered-offset-after", `${i.size / 2 - h[h.length - 1] / 2}px`);
325
- const w = -i.snapGrid[0], y = -i.slidesGrid[0];
326
- i.snapGrid = i.snapGrid.map((P) => P + w), i.slidesGrid = i.slidesGrid.map((P) => P + y);
327
- }
328
- if (f !== d && i.emit("slidesLengthChange"), p.length !== g && (i.params.watchOverflow && i.checkOverflow(), i.emit("snapGridLengthChange")), u.length !== b && i.emit("slidesGridLengthChange"), e.watchSlidesProgress && i.updateSlidesOffset(), i.emit("slidesUpdated"), !a && !e.cssMode && (e.effect === "slide" || e.effect === "fade")) {
329
- const w = `${e.containerModifierClass}backface-hidden`, y = i.el.classList.contains(w);
330
- f <= e.maxBackfaceHiddenSlides ? y || i.el.classList.add(w) : y && i.el.classList.remove(w);
331
- }
332
- }
333
- function Ae(i) {
334
- const t = this, e = [], s = t.virtual && t.params.virtual.enabled;
335
- let n = 0, r;
336
- typeof i == "number" ? t.setTransition(i) : i === !0 && t.setTransition(t.params.speed);
337
- const l = (o) => s ? t.slides[t.getSlideIndexByData(o)] : t.slides[o];
338
- if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1)
339
- if (t.params.centeredSlides)
340
- (t.visibleSlides || []).forEach((o) => {
341
- e.push(o);
342
- });
343
- else
344
- for (r = 0; r < Math.ceil(t.params.slidesPerView); r += 1) {
345
- const o = t.activeIndex + r;
346
- if (o > t.slides.length && !s) break;
347
- e.push(l(o));
348
- }
349
- else
350
- e.push(l(t.activeIndex));
351
- for (r = 0; r < e.length; r += 1)
352
- if (typeof e[r] < "u") {
353
- const o = e[r].offsetHeight;
354
- n = o > n ? o : n;
355
- }
356
- (n || n === 0) && (t.wrapperEl.style.height = `${n}px`);
357
- }
358
- function Ge() {
359
- const i = this, t = i.slides, e = i.isElement ? i.isHorizontal() ? i.wrapperEl.offsetLeft : i.wrapperEl.offsetTop : 0;
360
- for (let s = 0; s < t.length; s += 1)
361
- t[s].swiperSlideOffset = (i.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop) - e - i.cssOverflowAdjustment();
362
- }
363
- const re = (i, t, e) => {
364
- t && !i.classList.contains(e) ? i.classList.add(e) : !t && i.classList.contains(e) && i.classList.remove(e);
365
- };
366
- function ke(i) {
367
- i === void 0 && (i = this && this.translate || 0);
368
- const t = this, e = t.params, {
369
- slides: s,
370
- rtlTranslate: n,
371
- snapGrid: r
372
- } = t;
373
- if (s.length === 0) return;
374
- typeof s[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
375
- let l = -i;
376
- n && (l = i), t.visibleSlidesIndexes = [], t.visibleSlides = [];
377
- let o = e.spaceBetween;
378
- typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * t.size : typeof o == "string" && (o = parseFloat(o));
379
- for (let a = 0; a < s.length; a += 1) {
380
- const d = s[a];
381
- let c = d.swiperSlideOffset;
382
- e.cssMode && e.centeredSlides && (c -= s[0].swiperSlideOffset);
383
- const f = (l + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), p = (l - r[0] + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), u = -(l - c), h = u + t.slidesSizesGrid[a], m = u >= 0 && u <= t.size - t.slidesSizesGrid[a], x = u >= 0 && u < t.size - 1 || h > 1 && h <= t.size || u <= 0 && h >= t.size;
384
- x && (t.visibleSlides.push(d), t.visibleSlidesIndexes.push(a)), re(d, x, e.slideVisibleClass), re(d, m, e.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -p : p;
385
- }
386
- }
387
- function Ve(i) {
388
- const t = this;
389
- if (typeof i > "u") {
390
- const c = t.rtlTranslate ? -1 : 1;
391
- i = t && t.translate && t.translate * c || 0;
392
- }
393
- const e = t.params, s = t.maxTranslate() - t.minTranslate();
394
- let {
395
- progress: n,
396
- isBeginning: r,
397
- isEnd: l,
398
- progressLoop: o
399
- } = t;
400
- const a = r, d = l;
401
- if (s === 0)
402
- n = 0, r = !0, l = !0;
403
- else {
404
- n = (i - t.minTranslate()) / s;
405
- const c = Math.abs(i - t.minTranslate()) < 1, f = Math.abs(i - t.maxTranslate()) < 1;
406
- r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
407
- }
408
- if (e.loop) {
409
- const c = t.getSlideIndexByData(0), f = t.getSlideIndexByData(t.slides.length - 1), p = t.slidesGrid[c], u = t.slidesGrid[f], h = t.slidesGrid[t.slidesGrid.length - 1], m = Math.abs(i);
410
- m >= p ? o = (m - p) / h : o = (m + h - u) / h, o > 1 && (o -= 1);
411
- }
412
- Object.assign(t, {
413
- progress: n,
414
- progressLoop: o,
415
- isBeginning: r,
416
- isEnd: l
417
- }), (e.watchSlidesProgress || e.centeredSlides && e.autoHeight) && t.updateSlidesProgress(i), r && !a && t.emit("reachBeginning toEdge"), l && !d && t.emit("reachEnd toEdge"), (a && !r || d && !l) && t.emit("fromEdge"), t.emit("progress", n);
418
- }
419
- const X = (i, t, e) => {
420
- t && !i.classList.contains(e) ? i.classList.add(e) : !t && i.classList.contains(e) && i.classList.remove(e);
421
- };
422
- function De() {
423
- const i = this, {
424
- slides: t,
425
- params: e,
426
- slidesEl: s,
427
- activeIndex: n
428
- } = i, r = i.virtual && e.virtual.enabled, l = i.grid && e.grid && e.grid.rows > 1, o = (f) => G(s, `.${e.slideClass}${f}, swiper-slide${f}`)[0];
429
- let a, d, c;
430
- if (r)
431
- if (e.loop) {
432
- let f = n - i.virtual.slidesBefore;
433
- f < 0 && (f = i.virtual.slides.length + f), f >= i.virtual.slides.length && (f -= i.virtual.slides.length), a = o(`[data-swiper-slide-index="${f}"]`);
434
- } else
435
- a = o(`[data-swiper-slide-index="${n}"]`);
436
- else
437
- l ? (a = t.filter((f) => f.column === n)[0], c = t.filter((f) => f.column === n + 1)[0], d = t.filter((f) => f.column === n - 1)[0]) : a = t[n];
438
- a && (l || (c = Se(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !c && (c = t[0]), d = Te(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !d === 0 && (d = t[t.length - 1]))), t.forEach((f) => {
439
- X(f, f === a, e.slideActiveClass), X(f, f === c, e.slideNextClass), X(f, f === d, e.slidePrevClass);
440
- }), i.emitSlidesClasses();
441
- }
442
- const _ = (i, t) => {
443
- if (!i || i.destroyed || !i.params) return;
444
- const e = () => i.isElement ? "swiper-slide" : `.${i.params.slideClass}`, s = t.closest(e());
445
- if (s) {
446
- let n = s.querySelector(`.${i.params.lazyPreloaderClass}`);
447
- !n && i.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
448
- s.shadowRoot && (n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`), n && n.remove());
449
- })), n && n.remove();
450
- }
451
- }, j = (i, t) => {
452
- if (!i.slides[t]) return;
453
- const e = i.slides[t].querySelector('[loading="lazy"]');
454
- e && e.removeAttribute("loading");
455
- }, Q = (i) => {
456
- if (!i || i.destroyed || !i.params) return;
457
- let t = i.params.lazyPreloadPrevNext;
458
- const e = i.slides.length;
459
- if (!e || !t || t < 0) return;
460
- t = Math.min(t, e);
461
- const s = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(i.params.slidesPerView), n = i.activeIndex;
462
- if (i.params.grid && i.params.grid.rows > 1) {
463
- const l = n, o = [l - t];
464
- o.push(...Array.from({
465
- length: t
466
- }).map((a, d) => l + s + d)), i.slides.forEach((a, d) => {
467
- o.includes(a.column) && j(i, d);
468
- });
469
- return;
470
- }
471
- const r = n + s - 1;
472
- if (i.params.rewind || i.params.loop)
473
- for (let l = n - t; l <= r + t; l += 1) {
474
- const o = (l % e + e) % e;
475
- (o < n || o > r) && j(i, o);
476
- }
477
- else
478
- for (let l = Math.max(n - t, 0); l <= Math.min(r + t, e - 1); l += 1)
479
- l !== n && (l > r || l < n) && j(i, l);
480
- };
481
- function Be(i) {
482
- const {
483
- slidesGrid: t,
484
- params: e
485
- } = i, s = i.rtlTranslate ? i.translate : -i.translate;
486
- let n;
487
- for (let r = 0; r < t.length; r += 1)
488
- typeof t[r + 1] < "u" ? s >= t[r] && s < t[r + 1] - (t[r + 1] - t[r]) / 2 ? n = r : s >= t[r] && s < t[r + 1] && (n = r + 1) : s >= t[r] && (n = r);
489
- return e.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
490
- }
491
- function Fe(i) {
492
- const t = this, e = t.rtlTranslate ? t.translate : -t.translate, {
493
- snapGrid: s,
494
- params: n,
495
- activeIndex: r,
496
- realIndex: l,
497
- snapIndex: o
498
- } = t;
499
- let a = i, d;
500
- const c = (u) => {
501
- let h = u - t.virtual.slidesBefore;
502
- return h < 0 && (h = t.virtual.slides.length + h), h >= t.virtual.slides.length && (h -= t.virtual.slides.length), h;
503
- };
504
- if (typeof a > "u" && (a = Be(t)), s.indexOf(e) >= 0)
505
- d = s.indexOf(e);
506
- else {
507
- const u = Math.min(n.slidesPerGroupSkip, a);
508
- d = u + Math.floor((a - u) / n.slidesPerGroup);
509
- }
510
- if (d >= s.length && (d = s.length - 1), a === r && !t.params.loop) {
511
- d !== o && (t.snapIndex = d, t.emit("snapIndexChange"));
512
- return;
513
- }
514
- if (a === r && t.params.loop && t.virtual && t.params.virtual.enabled) {
515
- t.realIndex = c(a);
516
- return;
517
- }
518
- const f = t.grid && n.grid && n.grid.rows > 1;
519
- let p;
520
- if (t.virtual && n.virtual.enabled && n.loop)
521
- p = c(a);
522
- else if (f) {
523
- const u = t.slides.filter((m) => m.column === a)[0];
524
- let h = parseInt(u.getAttribute("data-swiper-slide-index"), 10);
525
- Number.isNaN(h) && (h = Math.max(t.slides.indexOf(u), 0)), p = Math.floor(h / n.grid.rows);
526
- } else if (t.slides[a]) {
527
- const u = t.slides[a].getAttribute("data-swiper-slide-index");
528
- u ? p = parseInt(u, 10) : p = a;
529
- } else
530
- p = a;
531
- Object.assign(t, {
532
- previousSnapIndex: o,
533
- snapIndex: d,
534
- previousRealIndex: l,
535
- realIndex: p,
536
- previousIndex: r,
537
- activeIndex: a
538
- }), t.initialized && Q(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (l !== p && t.emit("realIndexChange"), t.emit("slideChange"));
539
- }
540
- function Ne(i, t) {
541
- const e = this, s = e.params;
542
- let n = i.closest(`.${s.slideClass}, swiper-slide`);
543
- !n && e.isElement && t && t.length > 1 && t.includes(i) && [...t.slice(t.indexOf(i) + 1, t.length)].forEach((o) => {
544
- !n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
545
- });
546
- let r = !1, l;
547
- if (n) {
548
- for (let o = 0; o < e.slides.length; o += 1)
549
- if (e.slides[o] === n) {
550
- r = !0, l = o;
551
- break;
552
- }
553
- }
554
- if (n && r)
555
- e.clickedSlide = n, e.virtual && e.params.virtual.enabled ? e.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : e.clickedIndex = l;
556
- else {
557
- e.clickedSlide = void 0, e.clickedIndex = void 0;
558
- return;
559
- }
560
- s.slideToClickedSlide && e.clickedIndex !== void 0 && e.clickedIndex !== e.activeIndex && e.slideToClickedSlide();
561
- }
562
- var _e = {
563
- updateSize: ze,
564
- updateSlides: Oe,
565
- updateAutoHeight: Ae,
566
- updateSlidesOffset: Ge,
567
- updateSlidesProgress: ke,
568
- updateProgress: Ve,
569
- updateSlidesClasses: De,
570
- updateActiveIndex: Fe,
571
- updateClickedSlide: Ne
572
- };
573
- function Re(i) {
574
- i === void 0 && (i = this.isHorizontal() ? "x" : "y");
575
- const t = this, {
576
- params: e,
577
- rtlTranslate: s,
578
- translate: n,
579
- wrapperEl: r
580
- } = t;
581
- if (e.virtualTranslate)
582
- return s ? -n : n;
583
- if (e.cssMode)
584
- return n;
585
- let l = xe(r, i);
586
- return l += t.cssOverflowAdjustment(), s && (l = -l), l || 0;
587
- }
588
- function $e(i, t) {
589
- const e = this, {
590
- rtlTranslate: s,
591
- params: n,
592
- wrapperEl: r,
593
- progress: l
594
- } = e;
595
- let o = 0, a = 0;
596
- const d = 0;
597
- e.isHorizontal() ? o = s ? -i : i : a = i, n.roundLengths && (o = Math.floor(o), a = Math.floor(a)), e.previousTranslate = e.translate, e.translate = e.isHorizontal() ? o : a, n.cssMode ? r[e.isHorizontal() ? "scrollLeft" : "scrollTop"] = e.isHorizontal() ? -o : -a : n.virtualTranslate || (e.isHorizontal() ? o -= e.cssOverflowAdjustment() : a -= e.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${a}px, ${d}px)`);
598
- let c;
599
- const f = e.maxTranslate() - e.minTranslate();
600
- f === 0 ? c = 0 : c = (i - e.minTranslate()) / f, c !== l && e.updateProgress(i), e.emit("setTranslate", e.translate, t);
601
- }
602
- function He() {
603
- return -this.snapGrid[0];
604
- }
605
- function We() {
606
- return -this.snapGrid[this.snapGrid.length - 1];
607
- }
608
- function Ye(i, t, e, s, n) {
609
- i === void 0 && (i = 0), t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), s === void 0 && (s = !0);
610
- const r = this, {
611
- params: l,
612
- wrapperEl: o
613
- } = r;
614
- if (r.animating && l.preventInteractionOnTransition)
615
- return !1;
616
- const a = r.minTranslate(), d = r.maxTranslate();
617
- let c;
618
- if (s && i > a ? c = a : s && i < d ? c = d : c = i, r.updateProgress(c), l.cssMode) {
619
- const f = r.isHorizontal();
620
- if (t === 0)
621
- o[f ? "scrollLeft" : "scrollTop"] = -c;
622
- else {
623
- if (!r.support.smoothScroll)
624
- return de({
625
- swiper: r,
626
- targetPosition: -c,
627
- side: f ? "left" : "top"
628
- }), !0;
629
- o.scrollTo({
630
- [f ? "left" : "top"]: -c,
631
- behavior: "smooth"
632
- });
633
- }
634
- return !0;
635
- }
636
- return t === 0 ? (r.setTransition(0), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(p) {
637
- !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, e && r.emit("transitionEnd"));
638
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
639
- }
640
- var Xe = {
641
- getTranslate: Re,
642
- setTranslate: $e,
643
- minTranslate: He,
644
- maxTranslate: We,
645
- translateTo: Ye
646
- };
647
- function je(i, t) {
648
- const e = this;
649
- e.params.cssMode || (e.wrapperEl.style.transitionDuration = `${i}ms`, e.wrapperEl.style.transitionDelay = i === 0 ? "0ms" : ""), e.emit("setTransition", i, t);
650
- }
651
- function ue(i) {
652
- let {
653
- swiper: t,
654
- runCallbacks: e,
655
- direction: s,
656
- step: n
657
- } = i;
658
- const {
659
- activeIndex: r,
660
- previousIndex: l
661
- } = t;
662
- let o = s;
663
- if (o || (r > l ? o = "next" : r < l ? o = "prev" : o = "reset"), t.emit(`transition${n}`), e && r !== l) {
664
- if (o === "reset") {
665
- t.emit(`slideResetTransition${n}`);
666
- return;
667
- }
668
- t.emit(`slideChangeTransition${n}`), o === "next" ? t.emit(`slideNextTransition${n}`) : t.emit(`slidePrevTransition${n}`);
669
- }
670
- }
671
- function qe(i, t) {
672
- i === void 0 && (i = !0);
673
- const e = this, {
674
- params: s
675
- } = e;
676
- s.cssMode || (s.autoHeight && e.updateAutoHeight(), ue({
677
- swiper: e,
678
- runCallbacks: i,
679
- direction: t,
680
- step: "Start"
681
- }));
682
- }
683
- function Ue(i, t) {
684
- i === void 0 && (i = !0);
685
- const e = this, {
686
- params: s
687
- } = e;
688
- e.animating = !1, !s.cssMode && (e.setTransition(0), ue({
689
- swiper: e,
690
- runCallbacks: i,
691
- direction: t,
692
- step: "End"
693
- }));
694
- }
695
- var Ke = {
696
- setTransition: je,
697
- transitionStart: qe,
698
- transitionEnd: Ue
699
- };
700
- function Je(i, t, e, s, n) {
701
- i === void 0 && (i = 0), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
702
- const r = this;
703
- let l = i;
704
- l < 0 && (l = 0);
705
- const {
706
- params: o,
707
- snapGrid: a,
708
- slidesGrid: d,
709
- previousIndex: c,
710
- activeIndex: f,
711
- rtlTranslate: p,
712
- wrapperEl: u,
713
- enabled: h
714
- } = r;
715
- if (!h && !s && !n || r.destroyed || r.animating && o.preventInteractionOnTransition)
716
- return !1;
717
- typeof t > "u" && (t = r.params.speed);
718
- const m = Math.min(r.params.slidesPerGroupSkip, l);
719
- let x = m + Math.floor((l - m) / r.params.slidesPerGroup);
720
- x >= a.length && (x = a.length - 1);
721
- const g = -a[x];
722
- if (o.normalizeSlideIndex)
723
- for (let S = 0; S < d.length; S += 1) {
724
- const M = -Math.floor(g * 100), z = Math.floor(d[S] * 100), I = Math.floor(d[S + 1] * 100);
725
- typeof d[S + 1] < "u" ? M >= z && M < I - (I - z) / 2 ? l = S : M >= z && M < I && (l = S + 1) : M >= z && (l = S);
726
- }
727
- if (r.initialized && l !== f && (!r.allowSlideNext && (p ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (f || 0) !== l))
728
- return !1;
729
- l !== (c || 0) && e && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
730
- let b;
731
- l > f ? b = "next" : l < f ? b = "prev" : b = "reset";
732
- const v = r.virtual && r.params.virtual.enabled;
733
- if (!(v && n) && (p && -g === r.translate || !p && g === r.translate))
734
- return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(g), b !== "reset" && (r.transitionStart(e, b), r.transitionEnd(e, b)), !1;
735
- if (o.cssMode) {
736
- const S = r.isHorizontal(), M = p ? g : -g;
737
- if (t === 0)
738
- v && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), v && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
739
- u[S ? "scrollLeft" : "scrollTop"] = M;
740
- })) : u[S ? "scrollLeft" : "scrollTop"] = M, v && requestAnimationFrame(() => {
741
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
742
- });
743
- else {
744
- if (!r.support.smoothScroll)
745
- return de({
746
- swiper: r,
747
- targetPosition: M,
748
- side: S ? "left" : "top"
749
- }), !0;
750
- u.scrollTo({
751
- [S ? "left" : "top"]: M,
752
- behavior: "smooth"
753
- });
754
- }
755
- return !0;
756
- }
757
- return r.setTransition(t), r.setTranslate(g), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(e, b), t === 0 ? r.transitionEnd(e, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(M) {
758
- !r || r.destroyed || M.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(e, b));
759
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
760
- }
761
- function Qe(i, t, e, s) {
762
- i === void 0 && (i = 0), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
763
- const n = this;
764
- if (n.destroyed) return;
765
- typeof t > "u" && (t = n.params.speed);
766
- const r = n.grid && n.params.grid && n.params.grid.rows > 1;
767
- let l = i;
768
- if (n.params.loop)
769
- if (n.virtual && n.params.virtual.enabled)
770
- l = l + n.virtual.slidesBefore;
771
- else {
772
- let o;
773
- if (r) {
774
- const p = l * n.params.grid.rows;
775
- o = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
776
- } else
777
- o = n.getSlideIndexByData(l);
778
- const a = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
779
- centeredSlides: d
780
- } = n.params;
781
- let c = n.params.slidesPerView;
782
- c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
783
- let f = a - o < c;
784
- if (d && (f = f || o < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (f = !1), f) {
785
- const p = d ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
786
- n.loopFix({
787
- direction: p,
788
- slideTo: !0,
789
- activeSlideIndex: p === "next" ? o + 1 : o - a + 1,
790
- slideRealIndex: p === "next" ? n.realIndex : void 0
791
- });
792
- }
793
- if (r) {
794
- const p = l * n.params.grid.rows;
795
- l = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
796
- } else
797
- l = n.getSlideIndexByData(l);
798
- }
799
- return requestAnimationFrame(() => {
800
- n.slideTo(l, t, e, s);
801
- }), n;
802
- }
803
- function Ze(i, t, e) {
804
- t === void 0 && (t = !0);
805
- const s = this, {
806
- enabled: n,
807
- params: r,
808
- animating: l
809
- } = s;
810
- if (!n || s.destroyed) return s;
811
- typeof i > "u" && (i = s.params.speed);
812
- let o = r.slidesPerGroup;
813
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
814
- const a = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, d = s.virtual && r.virtual.enabled;
815
- if (r.loop) {
816
- if (l && !d && r.loopPreventsSliding) return !1;
817
- if (s.loopFix({
818
- direction: "next"
819
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
820
- return requestAnimationFrame(() => {
821
- s.slideTo(s.activeIndex + a, i, t, e);
822
- }), !0;
823
- }
824
- return r.rewind && s.isEnd ? s.slideTo(0, i, t, e) : s.slideTo(s.activeIndex + a, i, t, e);
825
- }
826
- function et(i, t, e) {
827
- t === void 0 && (t = !0);
828
- const s = this, {
829
- params: n,
830
- snapGrid: r,
831
- slidesGrid: l,
832
- rtlTranslate: o,
833
- enabled: a,
834
- animating: d
835
- } = s;
836
- if (!a || s.destroyed) return s;
837
- typeof i > "u" && (i = s.params.speed);
838
- const c = s.virtual && n.virtual.enabled;
839
- if (n.loop) {
840
- if (d && !c && n.loopPreventsSliding) return !1;
841
- s.loopFix({
842
- direction: "prev"
843
- }), s._clientLeft = s.wrapperEl.clientLeft;
844
- }
845
- const f = o ? s.translate : -s.translate;
846
- function p(g) {
847
- return g < 0 ? -Math.floor(Math.abs(g)) : Math.floor(g);
848
- }
849
- const u = p(f), h = r.map((g) => p(g));
850
- let m = r[h.indexOf(u) - 1];
851
- if (typeof m > "u" && n.cssMode) {
852
- let g;
853
- r.forEach((b, v) => {
854
- u >= b && (g = v);
855
- }), typeof g < "u" && (m = r[g > 0 ? g - 1 : g]);
856
- }
857
- let x = 0;
858
- if (typeof m < "u" && (x = l.indexOf(m), x < 0 && (x = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (x = x - s.slidesPerViewDynamic("previous", !0) + 1, x = Math.max(x, 0))), n.rewind && s.isBeginning) {
859
- const g = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
860
- return s.slideTo(g, i, t, e);
861
- } else if (n.loop && s.activeIndex === 0 && n.cssMode)
862
- return requestAnimationFrame(() => {
863
- s.slideTo(x, i, t, e);
864
- }), !0;
865
- return s.slideTo(x, i, t, e);
866
- }
867
- function tt(i, t, e) {
868
- t === void 0 && (t = !0);
869
- const s = this;
870
- if (!s.destroyed)
871
- return typeof i > "u" && (i = s.params.speed), s.slideTo(s.activeIndex, i, t, e);
872
- }
873
- function it(i, t, e, s) {
874
- t === void 0 && (t = !0), s === void 0 && (s = 0.5);
875
- const n = this;
876
- if (n.destroyed) return;
877
- typeof i > "u" && (i = n.params.speed);
878
- let r = n.activeIndex;
879
- const l = Math.min(n.params.slidesPerGroupSkip, r), o = l + Math.floor((r - l) / n.params.slidesPerGroup), a = n.rtlTranslate ? n.translate : -n.translate;
880
- if (a >= n.snapGrid[o]) {
881
- const d = n.snapGrid[o], c = n.snapGrid[o + 1];
882
- a - d > (c - d) * s && (r += n.params.slidesPerGroup);
883
- } else {
884
- const d = n.snapGrid[o - 1], c = n.snapGrid[o];
885
- a - d <= (c - d) * s && (r -= n.params.slidesPerGroup);
886
- }
887
- return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, i, t, e);
888
- }
889
- function st() {
890
- const i = this;
891
- if (i.destroyed) return;
892
- const {
893
- params: t,
894
- slidesEl: e
895
- } = i, s = t.slidesPerView === "auto" ? i.slidesPerViewDynamic() : t.slidesPerView;
896
- let n = i.clickedIndex, r;
897
- const l = i.isElement ? "swiper-slide" : `.${t.slideClass}`;
898
- if (t.loop) {
899
- if (i.animating) return;
900
- r = parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? n < i.loopedSlides - s / 2 || n > i.slides.length - i.loopedSlides + s / 2 ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), J(() => {
901
- i.slideTo(n);
902
- })) : i.slideTo(n) : n > i.slides.length - s ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), J(() => {
903
- i.slideTo(n);
904
- })) : i.slideTo(n);
905
- } else
906
- i.slideTo(n);
907
- }
908
- var rt = {
909
- slideTo: Je,
910
- slideToLoop: Qe,
911
- slideNext: Ze,
912
- slidePrev: et,
913
- slideReset: tt,
914
- slideToClosest: it,
915
- slideToClickedSlide: st
916
- };
917
- function nt(i) {
918
- const t = this, {
919
- params: e,
920
- slidesEl: s
921
- } = t;
922
- if (!e.loop || t.virtual && t.params.virtual.enabled) return;
923
- const n = () => {
924
- G(s, `.${e.slideClass}, swiper-slide`).forEach((f, p) => {
925
- f.setAttribute("data-swiper-slide-index", p);
926
- });
927
- }, r = t.grid && e.grid && e.grid.rows > 1, l = e.slidesPerGroup * (r ? e.grid.rows : 1), o = t.slides.length % l !== 0, a = r && t.slides.length % e.grid.rows !== 0, d = (c) => {
928
- for (let f = 0; f < c; f += 1) {
929
- const p = t.isElement ? K("swiper-slide", [e.slideBlankClass]) : K("div", [e.slideClass, e.slideBlankClass]);
930
- t.slidesEl.append(p);
931
- }
932
- };
933
- if (o) {
934
- if (e.loopAddBlankSlides) {
935
- const c = l - t.slides.length % l;
936
- d(c), t.recalcSlides(), t.updateSlides();
937
- } else
938
- R("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
939
- n();
940
- } else if (a) {
941
- if (e.loopAddBlankSlides) {
942
- const c = e.grid.rows - t.slides.length % e.grid.rows;
943
- d(c), t.recalcSlides(), t.updateSlides();
944
- } else
945
- R("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
946
- n();
947
- } else
948
- n();
949
- t.loopFix({
950
- slideRealIndex: i,
951
- direction: e.centeredSlides ? void 0 : "next"
952
- });
953
- }
954
- function at(i) {
955
- let {
956
- slideRealIndex: t,
957
- slideTo: e = !0,
958
- direction: s,
959
- setTranslate: n,
960
- activeSlideIndex: r,
961
- byController: l,
962
- byMousewheel: o
963
- } = i === void 0 ? {} : i;
964
- const a = this;
965
- if (!a.params.loop) return;
966
- a.emit("beforeLoopFix");
967
- const {
968
- slides: d,
969
- allowSlidePrev: c,
970
- allowSlideNext: f,
971
- slidesEl: p,
972
- params: u
973
- } = a, {
974
- centeredSlides: h
975
- } = u;
976
- if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && u.virtual.enabled) {
977
- e && (!u.centeredSlides && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : u.centeredSlides && a.snapIndex < u.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = c, a.allowSlideNext = f, a.emit("loopFix");
978
- return;
979
- }
980
- let m = u.slidesPerView;
981
- m === "auto" ? m = a.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(u.slidesPerView, 10)), h && m % 2 === 0 && (m = m + 1));
982
- const x = u.slidesPerGroupAuto ? m : u.slidesPerGroup;
983
- let g = x;
984
- g % x !== 0 && (g += x - g % x), g += u.loopAdditionalSlides, a.loopedSlides = g;
985
- const b = a.grid && u.grid && u.grid.rows > 1;
986
- d.length < m + g ? R("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : b && u.grid.fill === "row" && R("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
987
- const v = [], E = [];
988
- let S = a.activeIndex;
989
- typeof r > "u" ? r = a.getSlideIndex(d.filter((T) => T.classList.contains(u.slideActiveClass))[0]) : S = r;
990
- const M = s === "next" || !s, z = s === "prev" || !s;
991
- let I = 0, B = 0;
992
- const w = b ? Math.ceil(d.length / u.grid.rows) : d.length, P = (b ? d[r].column : r) + (h && typeof n > "u" ? -m / 2 + 0.5 : 0);
993
- if (P < g) {
994
- I = Math.max(g - P, x);
995
- for (let T = 0; T < g - P; T += 1) {
996
- const C = T - Math.floor(T / w) * w;
997
- if (b) {
998
- const L = w - C - 1;
999
- for (let k = d.length - 1; k >= 0; k -= 1)
1000
- d[k].column === L && v.push(k);
1001
- } else
1002
- v.push(w - C - 1);
1003
- }
1004
- } else if (P + m > w - g) {
1005
- B = Math.max(P - (w - g * 2), x);
1006
- for (let T = 0; T < B; T += 1) {
1007
- const C = T - Math.floor(T / w) * w;
1008
- b ? d.forEach((L, k) => {
1009
- L.column === C && E.push(k);
1010
- }) : E.push(C);
1011
- }
1012
- }
1013
- if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
1014
- a.__preventObserver__ = !1;
1015
- }), z && v.forEach((T) => {
1016
- d[T].swiperLoopMoveDOM = !0, p.prepend(d[T]), d[T].swiperLoopMoveDOM = !1;
1017
- }), M && E.forEach((T) => {
1018
- d[T].swiperLoopMoveDOM = !0, p.append(d[T]), d[T].swiperLoopMoveDOM = !1;
1019
- }), a.recalcSlides(), u.slidesPerView === "auto" ? a.updateSlides() : b && (v.length > 0 && z || E.length > 0 && M) && a.slides.forEach((T, C) => {
1020
- a.grid.updateSlide(C, T, a.slides);
1021
- }), u.watchSlidesProgress && a.updateSlidesOffset(), e) {
1022
- if (v.length > 0 && z) {
1023
- if (typeof t > "u") {
1024
- const T = a.slidesGrid[S], L = a.slidesGrid[S + I] - T;
1025
- o ? a.setTranslate(a.translate - L) : (a.slideTo(S + Math.ceil(I), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1026
- } else if (n) {
1027
- const T = b ? v.length / u.grid.rows : v.length;
1028
- a.slideTo(a.activeIndex + T, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
1029
- }
1030
- } else if (E.length > 0 && M)
1031
- if (typeof t > "u") {
1032
- const T = a.slidesGrid[S], L = a.slidesGrid[S - B] - T;
1033
- o ? a.setTranslate(a.translate - L) : (a.slideTo(S - B, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1034
- } else {
1035
- const T = b ? E.length / u.grid.rows : E.length;
1036
- a.slideTo(a.activeIndex - T, 0, !1, !0);
1037
- }
1038
- }
1039
- if (a.allowSlidePrev = c, a.allowSlideNext = f, a.controller && a.controller.control && !l) {
1040
- const T = {
1041
- slideRealIndex: t,
1042
- direction: s,
1043
- setTranslate: n,
1044
- activeSlideIndex: r,
1045
- byController: !0
1046
- };
1047
- Array.isArray(a.controller.control) ? a.controller.control.forEach((C) => {
1048
- !C.destroyed && C.params.loop && C.loopFix({
1049
- ...T,
1050
- slideTo: C.params.slidesPerView === u.slidesPerView ? e : !1
1051
- });
1052
- }) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
1053
- ...T,
1054
- slideTo: a.controller.control.params.slidesPerView === u.slidesPerView ? e : !1
1055
- });
1056
- }
1057
- a.emit("loopFix");
1058
- }
1059
- function lt() {
1060
- const i = this, {
1061
- params: t,
1062
- slidesEl: e
1063
- } = i;
1064
- if (!t.loop || i.virtual && i.params.virtual.enabled) return;
1065
- i.recalcSlides();
1066
- const s = [];
1067
- i.slides.forEach((n) => {
1068
- const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1069
- s[r] = n;
1070
- }), i.slides.forEach((n) => {
1071
- n.removeAttribute("data-swiper-slide-index");
1072
- }), s.forEach((n) => {
1073
- e.append(n);
1074
- }), i.recalcSlides(), i.slideTo(i.realIndex, 0);
1075
- }
1076
- var ot = {
1077
- loopCreate: nt,
1078
- loopFix: at,
1079
- loopDestroy: lt
1080
- };
1081
- function dt(i) {
1082
- const t = this;
1083
- if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
1084
- const e = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
1085
- t.isElement && (t.__preventObserver__ = !0), e.style.cursor = "move", e.style.cursor = i ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
1086
- t.__preventObserver__ = !1;
1087
- });
1088
- }
1089
- function ct() {
1090
- const i = this;
1091
- i.params.watchOverflow && i.isLocked || i.params.cssMode || (i.isElement && (i.__preventObserver__ = !0), i[i.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", i.isElement && requestAnimationFrame(() => {
1092
- i.__preventObserver__ = !1;
1093
- }));
1094
- }
1095
- var ft = {
1096
- setGrabCursor: dt,
1097
- unsetGrabCursor: ct
1098
- };
1099
- function ut(i, t) {
1100
- t === void 0 && (t = this);
1101
- function e(s) {
1102
- if (!s || s === F() || s === D()) return null;
1103
- s.assignedSlot && (s = s.assignedSlot);
1104
- const n = s.closest(i);
1105
- return !n && !s.getRootNode ? null : n || e(s.getRootNode().host);
1106
- }
1107
- return e(t);
1108
- }
1109
- function ne(i, t, e) {
1110
- const s = D(), {
1111
- params: n
1112
- } = i, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1113
- return r && (e <= l || e >= s.innerWidth - l) ? r === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
1114
- }
1115
- function pt(i) {
1116
- const t = this, e = F();
1117
- let s = i;
1118
- s.originalEvent && (s = s.originalEvent);
1119
- const n = t.touchEventsData;
1120
- if (s.type === "pointerdown") {
1121
- if (n.pointerId !== null && n.pointerId !== s.pointerId)
1122
- return;
1123
- n.pointerId = s.pointerId;
1124
- } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1125
- if (s.type === "touchstart") {
1126
- ne(t, s, s.targetTouches[0].pageX);
1127
- return;
1128
- }
1129
- const {
1130
- params: r,
1131
- touches: l,
1132
- enabled: o
1133
- } = t;
1134
- if (!o || !r.simulateTouch && s.pointerType === "mouse" || t.animating && r.preventInteractionOnTransition)
1135
- return;
1136
- !t.animating && r.cssMode && r.loop && t.loopFix();
1137
- let a = s.target;
1138
- if (r.touchEventsTarget === "wrapper" && !be(a, t.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1139
- const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1140
- d && s.target && s.target.shadowRoot && c && (a = c[0]);
1141
- const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
1142
- if (r.noSwiping && (p ? ut(f, a) : a.closest(f))) {
1143
- t.allowClick = !0;
1144
- return;
1145
- }
1146
- if (r.swipeHandler && !a.closest(r.swipeHandler))
1147
- return;
1148
- l.currentX = s.pageX, l.currentY = s.pageY;
1149
- const u = l.currentX, h = l.currentY;
1150
- if (!ne(t, s, u))
1151
- return;
1152
- Object.assign(n, {
1153
- isTouched: !0,
1154
- isMoved: !1,
1155
- allowTouchCallbacks: !0,
1156
- isScrolling: void 0,
1157
- startMoving: void 0
1158
- }), l.startX = u, l.startY = h, n.touchStartTime = $(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1159
- let m = !0;
1160
- a.matches(n.focusableElements) && (m = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), e.activeElement && e.activeElement.matches(n.focusableElements) && e.activeElement !== a && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !a.matches(n.focusableElements)) && e.activeElement.blur();
1161
- const x = m && t.allowTouchMove && r.touchStartPreventDefault;
1162
- (r.touchStartForcePreventDefault || x) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && t.freeMode && t.animating && !r.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", s);
1163
- }
1164
- function ht(i) {
1165
- const t = F(), e = this, s = e.touchEventsData, {
1166
- params: n,
1167
- touches: r,
1168
- rtlTranslate: l,
1169
- enabled: o
1170
- } = e;
1171
- if (!o || !n.simulateTouch && i.pointerType === "mouse") return;
1172
- let a = i;
1173
- if (a.originalEvent && (a = a.originalEvent), a.type === "pointermove" && (s.touchId !== null || a.pointerId !== s.pointerId))
1174
- return;
1175
- let d;
1176
- if (a.type === "touchmove") {
1177
- if (d = [...a.changedTouches].filter((M) => M.identifier === s.touchId)[0], !d || d.identifier !== s.touchId) return;
1178
- } else
1179
- d = a;
1180
- if (!s.isTouched) {
1181
- s.startMoving && s.isScrolling && e.emit("touchMoveOpposite", a);
1182
- return;
1183
- }
1184
- const c = d.pageX, f = d.pageY;
1185
- if (a.preventedByNestedSwiper) {
1186
- r.startX = c, r.startY = f;
1187
- return;
1188
- }
1189
- if (!e.allowTouchMove) {
1190
- a.target.matches(s.focusableElements) || (e.allowClick = !1), s.isTouched && (Object.assign(r, {
1191
- startX: c,
1192
- startY: f,
1193
- currentX: c,
1194
- currentY: f
1195
- }), s.touchStartTime = $());
1196
- return;
1197
- }
1198
- if (n.touchReleaseOnEdges && !n.loop) {
1199
- if (e.isVertical()) {
1200
- if (f < r.startY && e.translate <= e.maxTranslate() || f > r.startY && e.translate >= e.minTranslate()) {
1201
- s.isTouched = !1, s.isMoved = !1;
1202
- return;
1203
- }
1204
- } else if (c < r.startX && e.translate <= e.maxTranslate() || c > r.startX && e.translate >= e.minTranslate())
1205
- return;
1206
- }
1207
- if (t.activeElement && t.activeElement.matches(s.focusableElements) && t.activeElement !== a.target && a.pointerType !== "mouse" && t.activeElement.blur(), t.activeElement && a.target === t.activeElement && a.target.matches(s.focusableElements)) {
1208
- s.isMoved = !0, e.allowClick = !1;
1209
- return;
1210
- }
1211
- s.allowTouchCallbacks && e.emit("touchMove", a), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
1212
- const p = r.currentX - r.startX, u = r.currentY - r.startY;
1213
- if (e.params.threshold && Math.sqrt(p ** 2 + u ** 2) < e.params.threshold) return;
1214
- if (typeof s.isScrolling > "u") {
1215
- let M;
1216
- e.isHorizontal() && r.currentY === r.startY || e.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : p * p + u * u >= 25 && (M = Math.atan2(Math.abs(u), Math.abs(p)) * 180 / Math.PI, s.isScrolling = e.isHorizontal() ? M > n.touchAngle : 90 - M > n.touchAngle);
1217
- }
1218
- if (s.isScrolling && e.emit("touchMoveOpposite", a), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || a.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1219
- s.isTouched = !1;
1220
- return;
1221
- }
1222
- if (!s.startMoving)
1223
- return;
1224
- e.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
1225
- let h = e.isHorizontal() ? p : u, m = e.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1226
- n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), m = Math.abs(m) * (l ? 1 : -1)), r.diff = h, h *= n.touchRatio, l && (h = -h, m = -m);
1227
- const x = e.touchesDirection;
1228
- e.swipeDirection = h > 0 ? "prev" : "next", e.touchesDirection = m > 0 ? "prev" : "next";
1229
- const g = e.params.loop && !n.cssMode, b = e.touchesDirection === "next" && e.allowSlideNext || e.touchesDirection === "prev" && e.allowSlidePrev;
1230
- if (!s.isMoved) {
1231
- if (g && b && e.loopFix({
1232
- direction: e.swipeDirection
1233
- }), s.startTranslate = e.getTranslate(), e.setTransition(0), e.animating) {
1234
- const M = new window.CustomEvent("transitionend", {
1235
- bubbles: !0,
1236
- cancelable: !0,
1237
- detail: {
1238
- bySwiperTouchMove: !0
1239
- }
1240
- });
1241
- e.wrapperEl.dispatchEvent(M);
1242
- }
1243
- s.allowMomentumBounce = !1, n.grabCursor && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!0), e.emit("sliderFirstMove", a);
1244
- }
1245
- let v;
1246
- if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && x !== e.touchesDirection && g && b && Math.abs(h) >= 1) {
1247
- Object.assign(r, {
1248
- startX: c,
1249
- startY: f,
1250
- currentX: c,
1251
- currentY: f,
1252
- startTranslate: s.currentTranslate
1253
- }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1254
- return;
1255
- }
1256
- e.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
1257
- let E = !0, S = n.resistanceRatio;
1258
- if (n.touchReleaseOnEdges && (S = 0), h > 0 ? (g && b && !v && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? e.minTranslate() - e.slidesSizesGrid[e.activeIndex + 1] - (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.activeIndex + 1] + e.params.spaceBetween : 0) - e.params.spaceBetween : e.minTranslate()) && e.loopFix({
1259
- direction: "prev",
1260
- setTranslate: !0,
1261
- activeSlideIndex: 0
1262
- }), s.currentTranslate > e.minTranslate() && (E = !1, n.resistance && (s.currentTranslate = e.minTranslate() - 1 + (-e.minTranslate() + s.startTranslate + h) ** S))) : h < 0 && (g && b && !v && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? e.maxTranslate() + e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween + (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween : 0) : e.maxTranslate()) && e.loopFix({
1263
- direction: "next",
1264
- setTranslate: !0,
1265
- activeSlideIndex: e.slides.length - (n.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1266
- }), s.currentTranslate < e.maxTranslate() && (E = !1, n.resistance && (s.currentTranslate = e.maxTranslate() + 1 - (e.maxTranslate() - s.startTranslate - h) ** S))), E && (a.preventedByNestedSwiper = !0), !e.allowSlideNext && e.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && e.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && !e.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1267
- if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
1268
- if (!s.allowThresholdMove) {
1269
- s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = e.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1270
- return;
1271
- }
1272
- } else {
1273
- s.currentTranslate = s.startTranslate;
1274
- return;
1275
- }
1276
- !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && e.freeMode || n.watchSlidesProgress) && (e.updateActiveIndex(), e.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && e.freeMode && e.freeMode.onTouchMove(), e.updateProgress(s.currentTranslate), e.setTranslate(s.currentTranslate));
1277
- }
1278
- function mt(i) {
1279
- const t = this, e = t.touchEventsData;
1280
- let s = i;
1281
- s.originalEvent && (s = s.originalEvent);
1282
- let n;
1283
- if (s.type === "touchend" || s.type === "touchcancel") {
1284
- if (n = [...s.changedTouches].filter((S) => S.identifier === e.touchId)[0], !n || n.identifier !== e.touchId) return;
1285
- } else {
1286
- if (e.touchId !== null || s.pointerId !== e.pointerId) return;
1287
- n = s;
1288
- }
1289
- if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (t.browser.isSafari || t.browser.isWebView)))
1290
- return;
1291
- e.pointerId = null, e.touchId = null;
1292
- const {
1293
- params: l,
1294
- touches: o,
1295
- rtlTranslate: a,
1296
- slidesGrid: d,
1297
- enabled: c
1298
- } = t;
1299
- if (!c || !l.simulateTouch && s.pointerType === "mouse") return;
1300
- if (e.allowTouchCallbacks && t.emit("touchEnd", s), e.allowTouchCallbacks = !1, !e.isTouched) {
1301
- e.isMoved && l.grabCursor && t.setGrabCursor(!1), e.isMoved = !1, e.startMoving = !1;
1302
- return;
1303
- }
1304
- l.grabCursor && e.isMoved && e.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
1305
- const f = $(), p = f - e.touchStartTime;
1306
- if (t.allowClick) {
1307
- const S = s.path || s.composedPath && s.composedPath();
1308
- t.updateClickedSlide(S && S[0] || s.target, S), t.emit("tap click", s), p < 300 && f - e.lastClickTime < 300 && t.emit("doubleTap doubleClick", s);
1309
- }
1310
- if (e.lastClickTime = $(), J(() => {
1311
- t.destroyed || (t.allowClick = !0);
1312
- }), !e.isTouched || !e.isMoved || !t.swipeDirection || o.diff === 0 && !e.loopSwapReset || e.currentTranslate === e.startTranslate && !e.loopSwapReset) {
1313
- e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1314
- return;
1315
- }
1316
- e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1317
- let u;
1318
- if (l.followFinger ? u = a ? t.translate : -t.translate : u = -e.currentTranslate, l.cssMode)
1319
- return;
1320
- if (l.freeMode && l.freeMode.enabled) {
1321
- t.freeMode.onTouchEnd({
1322
- currentPos: u
1323
- });
1324
- return;
1325
- }
1326
- const h = u >= -t.maxTranslate() && !t.params.loop;
1327
- let m = 0, x = t.slidesSizesGrid[0];
1328
- for (let S = 0; S < d.length; S += S < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1329
- const M = S < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1330
- typeof d[S + M] < "u" ? (h || u >= d[S] && u < d[S + M]) && (m = S, x = d[S + M] - d[S]) : (h || u >= d[S]) && (m = S, x = d[d.length - 1] - d[d.length - 2]);
1331
- }
1332
- let g = null, b = null;
1333
- l.rewind && (t.isBeginning ? b = l.virtual && l.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0));
1334
- const v = (u - d[m]) / x, E = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1335
- if (p > l.longSwipesMs) {
1336
- if (!l.longSwipes) {
1337
- t.slideTo(t.activeIndex);
1338
- return;
1339
- }
1340
- t.swipeDirection === "next" && (v >= l.longSwipesRatio ? t.slideTo(l.rewind && t.isEnd ? g : m + E) : t.slideTo(m)), t.swipeDirection === "prev" && (v > 1 - l.longSwipesRatio ? t.slideTo(m + E) : b !== null && v < 0 && Math.abs(v) > l.longSwipesRatio ? t.slideTo(b) : t.slideTo(m));
1341
- } else {
1342
- if (!l.shortSwipes) {
1343
- t.slideTo(t.activeIndex);
1344
- return;
1345
- }
1346
- t.navigation && (s.target === t.navigation.nextEl || s.target === t.navigation.prevEl) ? s.target === t.navigation.nextEl ? t.slideTo(m + E) : t.slideTo(m) : (t.swipeDirection === "next" && t.slideTo(g !== null ? g : m + E), t.swipeDirection === "prev" && t.slideTo(b !== null ? b : m));
1347
- }
1348
- }
1349
- function ae() {
1350
- const i = this, {
1351
- params: t,
1352
- el: e
1353
- } = i;
1354
- if (e && e.offsetWidth === 0) return;
1355
- t.breakpoints && i.setBreakpoint();
1356
- const {
1357
- allowSlideNext: s,
1358
- allowSlidePrev: n,
1359
- snapGrid: r
1360
- } = i, l = i.virtual && i.params.virtual.enabled;
1361
- i.allowSlideNext = !0, i.allowSlidePrev = !0, i.updateSize(), i.updateSlides(), i.updateSlidesClasses();
1362
- const o = l && t.loop;
1363
- (t.slidesPerView === "auto" || t.slidesPerView > 1) && i.isEnd && !i.isBeginning && !i.params.centeredSlides && !o ? i.slideTo(i.slides.length - 1, 0, !1, !0) : i.params.loop && !l ? i.slideToLoop(i.realIndex, 0, !1, !0) : i.slideTo(i.activeIndex, 0, !1, !0), i.autoplay && i.autoplay.running && i.autoplay.paused && (clearTimeout(i.autoplay.resizeTimeout), i.autoplay.resizeTimeout = setTimeout(() => {
1364
- i.autoplay && i.autoplay.running && i.autoplay.paused && i.autoplay.resume();
1365
- }, 500)), i.allowSlidePrev = n, i.allowSlideNext = s, i.params.watchOverflow && r !== i.snapGrid && i.checkOverflow();
1366
- }
1367
- function gt(i) {
1368
- const t = this;
1369
- t.enabled && (t.allowClick || (t.params.preventClicks && i.preventDefault(), t.params.preventClicksPropagation && t.animating && (i.stopPropagation(), i.stopImmediatePropagation())));
1370
- }
1371
- function vt() {
1372
- const i = this, {
1373
- wrapperEl: t,
1374
- rtlTranslate: e,
1375
- enabled: s
1376
- } = i;
1377
- if (!s) return;
1378
- i.previousTranslate = i.translate, i.isHorizontal() ? i.translate = -t.scrollLeft : i.translate = -t.scrollTop, i.translate === 0 && (i.translate = 0), i.updateActiveIndex(), i.updateSlidesClasses();
1379
- let n;
1380
- const r = i.maxTranslate() - i.minTranslate();
1381
- r === 0 ? n = 0 : n = (i.translate - i.minTranslate()) / r, n !== i.progress && i.updateProgress(e ? -i.translate : i.translate), i.emit("setTranslate", i.translate, !1);
1382
- }
1383
- function wt(i) {
1384
- const t = this;
1385
- _(t, i.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update();
1386
- }
1387
- function St() {
1388
- const i = this;
1389
- i.documentTouchHandlerProceeded || (i.documentTouchHandlerProceeded = !0, i.params.touchReleaseOnEdges && (i.el.style.touchAction = "auto"));
1390
- }
1391
- const pe = (i, t) => {
1392
- const e = F(), {
1393
- params: s,
1394
- el: n,
1395
- wrapperEl: r,
1396
- device: l
1397
- } = i, o = !!s.nested, a = t === "on" ? "addEventListener" : "removeEventListener", d = t;
1398
- !n || typeof n == "string" || (e[a]("touchstart", i.onDocumentTouchStart, {
1399
- passive: !1,
1400
- capture: o
1401
- }), n[a]("touchstart", i.onTouchStart, {
1402
- passive: !1
1403
- }), n[a]("pointerdown", i.onTouchStart, {
1404
- passive: !1
1405
- }), e[a]("touchmove", i.onTouchMove, {
1406
- passive: !1,
1407
- capture: o
1408
- }), e[a]("pointermove", i.onTouchMove, {
1409
- passive: !1,
1410
- capture: o
1411
- }), e[a]("touchend", i.onTouchEnd, {
1412
- passive: !0
1413
- }), e[a]("pointerup", i.onTouchEnd, {
1414
- passive: !0
1415
- }), e[a]("pointercancel", i.onTouchEnd, {
1416
- passive: !0
1417
- }), e[a]("touchcancel", i.onTouchEnd, {
1418
- passive: !0
1419
- }), e[a]("pointerout", i.onTouchEnd, {
1420
- passive: !0
1421
- }), e[a]("pointerleave", i.onTouchEnd, {
1422
- passive: !0
1423
- }), e[a]("contextmenu", i.onTouchEnd, {
1424
- passive: !0
1425
- }), (s.preventClicks || s.preventClicksPropagation) && n[a]("click", i.onClick, !0), s.cssMode && r[a]("scroll", i.onScroll), s.updateOnWindowResize ? i[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", ae, !0) : i[d]("observerUpdate", ae, !0), n[a]("load", i.onLoad, {
1426
- capture: !0
1427
- }));
1428
- };
1429
- function Tt() {
1430
- const i = this, {
1431
- params: t
1432
- } = i;
1433
- i.onTouchStart = pt.bind(i), i.onTouchMove = ht.bind(i), i.onTouchEnd = mt.bind(i), i.onDocumentTouchStart = St.bind(i), t.cssMode && (i.onScroll = vt.bind(i)), i.onClick = gt.bind(i), i.onLoad = wt.bind(i), pe(i, "on");
1434
- }
1435
- function xt() {
1436
- pe(this, "off");
1437
- }
1438
- var bt = {
1439
- attachEvents: Tt,
1440
- detachEvents: xt
1441
- };
1442
- const le = (i, t) => i.grid && t.grid && t.grid.rows > 1;
1443
- function yt() {
1444
- const i = this, {
1445
- realIndex: t,
1446
- initialized: e,
1447
- params: s,
1448
- el: n
1449
- } = i, r = s.breakpoints;
1450
- if (!r || r && Object.keys(r).length === 0) return;
1451
- const l = i.getBreakpoint(r, i.params.breakpointsBase, i.el);
1452
- if (!l || i.currentBreakpoint === l) return;
1453
- const a = (l in r ? r[l] : void 0) || i.originalParams, d = le(i, s), c = le(i, a), f = i.params.grabCursor, p = a.grabCursor, u = s.enabled;
1454
- d && !c ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), i.emitContainerClasses()) : !d && c && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), i.emitContainerClasses()), f && !p ? i.unsetGrabCursor() : !f && p && i.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((v) => {
1455
- if (typeof a[v] > "u") return;
1456
- const E = s[v] && s[v].enabled, S = a[v] && a[v].enabled;
1457
- E && !S && i[v].disable(), !E && S && i[v].enable();
1458
- });
1459
- const h = a.direction && a.direction !== s.direction, m = s.loop && (a.slidesPerView !== s.slidesPerView || h), x = s.loop;
1460
- h && e && i.changeDirection(), A(i.params, a);
1461
- const g = i.params.enabled, b = i.params.loop;
1462
- Object.assign(i, {
1463
- allowTouchMove: i.params.allowTouchMove,
1464
- allowSlideNext: i.params.allowSlideNext,
1465
- allowSlidePrev: i.params.allowSlidePrev
1466
- }), u && !g ? i.disable() : !u && g && i.enable(), i.currentBreakpoint = l, i.emit("_beforeBreakpoint", a), e && (m ? (i.loopDestroy(), i.loopCreate(t), i.updateSlides()) : !x && b ? (i.loopCreate(t), i.updateSlides()) : x && !b && i.loopDestroy()), i.emit("breakpoint", a);
1467
- }
1468
- function Et(i, t, e) {
1469
- if (t === void 0 && (t = "window"), !i || t === "container" && !e) return;
1470
- let s = !1;
1471
- const n = D(), r = t === "window" ? n.innerHeight : e.clientHeight, l = Object.keys(i).map((o) => {
1472
- if (typeof o == "string" && o.indexOf("@") === 0) {
1473
- const a = parseFloat(o.substr(1));
1474
- return {
1475
- value: r * a,
1476
- point: o
1477
- };
1478
- }
1479
- return {
1480
- value: o,
1481
- point: o
1482
- };
1483
- });
1484
- l.sort((o, a) => parseInt(o.value, 10) - parseInt(a.value, 10));
1485
- for (let o = 0; o < l.length; o += 1) {
1486
- const {
1487
- point: a,
1488
- value: d
1489
- } = l[o];
1490
- t === "window" ? n.matchMedia(`(min-width: ${d}px)`).matches && (s = a) : d <= e.clientWidth && (s = a);
1491
- }
1492
- return s || "max";
1493
- }
1494
- var Pt = {
1495
- setBreakpoint: yt,
1496
- getBreakpoint: Et
1497
- };
1498
- function Mt(i, t) {
1499
- const e = [];
1500
- return i.forEach((s) => {
1501
- typeof s == "object" ? Object.keys(s).forEach((n) => {
1502
- s[n] && e.push(t + n);
1503
- }) : typeof s == "string" && e.push(t + s);
1504
- }), e;
1505
- }
1506
- function It() {
1507
- const i = this, {
1508
- classNames: t,
1509
- params: e,
1510
- rtl: s,
1511
- el: n,
1512
- device: r
1513
- } = i, l = Mt(["initialized", e.direction, {
1514
- "free-mode": i.params.freeMode && e.freeMode.enabled
1515
- }, {
1516
- autoheight: e.autoHeight
1517
- }, {
1518
- rtl: s
1519
- }, {
1520
- grid: e.grid && e.grid.rows > 1
1521
- }, {
1522
- "grid-column": e.grid && e.grid.rows > 1 && e.grid.fill === "column"
1523
- }, {
1524
- android: r.android
1525
- }, {
1526
- ios: r.ios
1527
- }, {
1528
- "css-mode": e.cssMode
1529
- }, {
1530
- centered: e.cssMode && e.centeredSlides
1531
- }, {
1532
- "watch-progress": e.watchSlidesProgress
1533
- }], e.containerModifierClass);
1534
- t.push(...l), n.classList.add(...t), i.emitContainerClasses();
1535
- }
1536
- function Ct() {
1537
- const i = this, {
1538
- el: t,
1539
- classNames: e
1540
- } = i;
1541
- !t || typeof t == "string" || (t.classList.remove(...e), i.emitContainerClasses());
1542
- }
1543
- var Lt = {
1544
- addClasses: It,
1545
- removeClasses: Ct
1546
- };
1547
- function zt() {
1548
- const i = this, {
1549
- isLocked: t,
1550
- params: e
1551
- } = i, {
1552
- slidesOffsetBefore: s
1553
- } = e;
1554
- if (s) {
1555
- const n = i.slides.length - 1, r = i.slidesGrid[n] + i.slidesSizesGrid[n] + s * 2;
1556
- i.isLocked = i.size > r;
1557
- } else
1558
- i.isLocked = i.snapGrid.length === 1;
1559
- e.allowSlideNext === !0 && (i.allowSlideNext = !i.isLocked), e.allowSlidePrev === !0 && (i.allowSlidePrev = !i.isLocked), t && t !== i.isLocked && (i.isEnd = !1), t !== i.isLocked && i.emit(i.isLocked ? "lock" : "unlock");
1560
- }
1561
- var Ot = {
1562
- checkOverflow: zt
1563
- }, oe = {
1564
- init: !0,
1565
- direction: "horizontal",
1566
- oneWayMovement: !1,
1567
- swiperElementNodeName: "SWIPER-CONTAINER",
1568
- touchEventsTarget: "wrapper",
1569
- initialSlide: 0,
1570
- speed: 300,
1571
- cssMode: !1,
1572
- updateOnWindowResize: !0,
1573
- resizeObserver: !0,
1574
- nested: !1,
1575
- createElements: !1,
1576
- eventsPrefix: "swiper",
1577
- enabled: !0,
1578
- focusableElements: "input, select, option, textarea, button, video, label",
1579
- // Overrides
1580
- width: null,
1581
- height: null,
1582
- //
1583
- preventInteractionOnTransition: !1,
1584
- // ssr
1585
- userAgent: null,
1586
- url: null,
1587
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
1588
- edgeSwipeDetection: !1,
1589
- edgeSwipeThreshold: 20,
1590
- // Autoheight
1591
- autoHeight: !1,
1592
- // Set wrapper width
1593
- setWrapperSize: !1,
1594
- // Virtual Translate
1595
- virtualTranslate: !1,
1596
- // Effects
1597
- effect: "slide",
1598
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1599
- // Breakpoints
1600
- breakpoints: void 0,
1601
- breakpointsBase: "window",
1602
- // Slides grid
1603
- spaceBetween: 0,
1604
- slidesPerView: 1,
1605
- slidesPerGroup: 1,
1606
- slidesPerGroupSkip: 0,
1607
- slidesPerGroupAuto: !1,
1608
- centeredSlides: !1,
1609
- centeredSlidesBounds: !1,
1610
- slidesOffsetBefore: 0,
1611
- // in px
1612
- slidesOffsetAfter: 0,
1613
- // in px
1614
- normalizeSlideIndex: !0,
1615
- centerInsufficientSlides: !1,
1616
- // Disable swiper and hide navigation when container not overflow
1617
- watchOverflow: !0,
1618
- // Round length
1619
- roundLengths: !1,
1620
- // Touches
1621
- touchRatio: 1,
1622
- touchAngle: 45,
1623
- simulateTouch: !0,
1624
- shortSwipes: !0,
1625
- longSwipes: !0,
1626
- longSwipesRatio: 0.5,
1627
- longSwipesMs: 300,
1628
- followFinger: !0,
1629
- allowTouchMove: !0,
1630
- threshold: 5,
1631
- touchMoveStopPropagation: !1,
1632
- touchStartPreventDefault: !0,
1633
- touchStartForcePreventDefault: !1,
1634
- touchReleaseOnEdges: !1,
1635
- // Unique Navigation Elements
1636
- uniqueNavElements: !0,
1637
- // Resistance
1638
- resistance: !0,
1639
- resistanceRatio: 0.85,
1640
- // Progress
1641
- watchSlidesProgress: !1,
1642
- // Cursor
1643
- grabCursor: !1,
1644
- // Clicks
1645
- preventClicks: !0,
1646
- preventClicksPropagation: !0,
1647
- slideToClickedSlide: !1,
1648
- // loop
1649
- loop: !1,
1650
- loopAddBlankSlides: !0,
1651
- loopAdditionalSlides: 0,
1652
- loopPreventsSliding: !0,
1653
- // rewind
1654
- rewind: !1,
1655
- // Swiping/no swiping
1656
- allowSlidePrev: !0,
1657
- allowSlideNext: !0,
1658
- swipeHandler: null,
1659
- // '.swipe-handler',
1660
- noSwiping: !0,
1661
- noSwipingClass: "swiper-no-swiping",
1662
- noSwipingSelector: null,
1663
- // Passive Listeners
1664
- passiveListeners: !0,
1665
- maxBackfaceHiddenSlides: 10,
1666
- // NS
1667
- containerModifierClass: "swiper-",
1668
- // NEW
1669
- slideClass: "swiper-slide",
1670
- slideBlankClass: "swiper-slide-blank",
1671
- slideActiveClass: "swiper-slide-active",
1672
- slideVisibleClass: "swiper-slide-visible",
1673
- slideFullyVisibleClass: "swiper-slide-fully-visible",
1674
- slideNextClass: "swiper-slide-next",
1675
- slidePrevClass: "swiper-slide-prev",
1676
- wrapperClass: "swiper-wrapper",
1677
- lazyPreloaderClass: "swiper-lazy-preloader",
1678
- lazyPreloadPrevNext: 0,
1679
- // Callbacks
1680
- runCallbacksOnInit: !0,
1681
- // Internals
1682
- _emitClasses: !1
1683
- };
1684
- function At(i, t) {
1685
- return function(s) {
1686
- s === void 0 && (s = {});
1687
- const n = Object.keys(s)[0], r = s[n];
1688
- if (typeof r != "object" || r === null) {
1689
- A(t, s);
1690
- return;
1691
- }
1692
- if (i[n] === !0 && (i[n] = {
1693
- enabled: !0
1694
- }), n === "navigation" && i[n] && i[n].enabled && !i[n].prevEl && !i[n].nextEl && (i[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && i[n] && i[n].enabled && !i[n].el && (i[n].auto = !0), !(n in i && "enabled" in r)) {
1695
- A(t, s);
1696
- return;
1697
- }
1698
- typeof i[n] == "object" && !("enabled" in i[n]) && (i[n].enabled = !0), i[n] || (i[n] = {
1699
- enabled: !1
1700
- }), A(t, s);
1701
- };
1702
- }
1703
- const q = {
1704
- eventsEmitter: Le,
1705
- update: _e,
1706
- translate: Xe,
1707
- transition: Ke,
1708
- slide: rt,
1709
- loop: ot,
1710
- grabCursor: ft,
1711
- events: bt,
1712
- breakpoints: Pt,
1713
- checkOverflow: Ot,
1714
- classes: Lt
1715
- }, U = {};
1716
- class O {
1717
- constructor() {
1718
- let t, e;
1719
- for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
1720
- n[r] = arguments[r];
1721
- n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? e = n[0] : [t, e] = n, e || (e = {}), e = A({}, e), t && !e.el && (e.el = t);
1722
- const l = F();
1723
- if (e.el && typeof e.el == "string" && l.querySelectorAll(e.el).length > 1) {
1724
- const c = [];
1725
- return l.querySelectorAll(e.el).forEach((f) => {
1726
- const p = A({}, e, {
1727
- el: f
1728
- });
1729
- c.push(new O(p));
1730
- }), c;
1731
- }
1732
- const o = this;
1733
- o.__swiper__ = !0, o.support = ce(), o.device = fe({
1734
- userAgent: e.userAgent
1735
- }), o.browser = Me(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], e.modules && Array.isArray(e.modules) && o.modules.push(...e.modules);
1736
- const a = {};
1737
- o.modules.forEach((c) => {
1738
- c({
1739
- params: e,
1740
- swiper: o,
1741
- extendParams: At(e, a),
1742
- on: o.on.bind(o),
1743
- once: o.once.bind(o),
1744
- off: o.off.bind(o),
1745
- emit: o.emit.bind(o)
1746
- });
1747
- });
1748
- const d = A({}, oe, a);
1749
- return o.params = A({}, d, U, e), o.originalParams = A({}, o.params), o.passedParams = A({}, e), o.params && o.params.on && Object.keys(o.params.on).forEach((c) => {
1750
- o.on(c, o.params.on[c]);
1751
- }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
1752
- enabled: o.params.enabled,
1753
- el: t,
1754
- // Classes
1755
- classNames: [],
1756
- // Slides
1757
- slides: [],
1758
- slidesGrid: [],
1759
- snapGrid: [],
1760
- slidesSizesGrid: [],
1761
- // isDirection
1762
- isHorizontal() {
1763
- return o.params.direction === "horizontal";
1764
- },
1765
- isVertical() {
1766
- return o.params.direction === "vertical";
1767
- },
1768
- // Indexes
1769
- activeIndex: 0,
1770
- realIndex: 0,
1771
- //
1772
- isBeginning: !0,
1773
- isEnd: !1,
1774
- // Props
1775
- translate: 0,
1776
- previousTranslate: 0,
1777
- progress: 0,
1778
- velocity: 0,
1779
- animating: !1,
1780
- cssOverflowAdjustment() {
1781
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
1782
- },
1783
- // Locks
1784
- allowSlideNext: o.params.allowSlideNext,
1785
- allowSlidePrev: o.params.allowSlidePrev,
1786
- // Touch Events
1787
- touchEventsData: {
1788
- isTouched: void 0,
1789
- isMoved: void 0,
1790
- allowTouchCallbacks: void 0,
1791
- touchStartTime: void 0,
1792
- isScrolling: void 0,
1793
- currentTranslate: void 0,
1794
- startTranslate: void 0,
1795
- allowThresholdMove: void 0,
1796
- // Form elements to match
1797
- focusableElements: o.params.focusableElements,
1798
- // Last click time
1799
- lastClickTime: 0,
1800
- clickTimeout: void 0,
1801
- // Velocities
1802
- velocities: [],
1803
- allowMomentumBounce: void 0,
1804
- startMoving: void 0,
1805
- pointerId: null,
1806
- touchId: null
1807
- },
1808
- // Clicks
1809
- allowClick: !0,
1810
- // Touches
1811
- allowTouchMove: o.params.allowTouchMove,
1812
- touches: {
1813
- startX: 0,
1814
- startY: 0,
1815
- currentX: 0,
1816
- currentY: 0,
1817
- diff: 0
1818
- },
1819
- // Images
1820
- imagesToLoad: [],
1821
- imagesLoaded: 0
1822
- }), o.emit("_swiper"), o.params.init && o.init(), o;
1823
- }
1824
- getDirectionLabel(t) {
1825
- return this.isHorizontal() ? t : {
1826
- width: "height",
1827
- "margin-top": "margin-left",
1828
- "margin-bottom ": "margin-right",
1829
- "margin-left": "margin-top",
1830
- "margin-right": "margin-bottom",
1831
- "padding-left": "padding-top",
1832
- "padding-right": "padding-bottom",
1833
- marginRight: "marginBottom"
1834
- }[t];
1835
- }
1836
- getSlideIndex(t) {
1837
- const {
1838
- slidesEl: e,
1839
- params: s
1840
- } = this, n = G(e, `.${s.slideClass}, swiper-slide`), r = ie(n[0]);
1841
- return ie(t) - r;
1842
- }
1843
- getSlideIndexByData(t) {
1844
- return this.getSlideIndex(this.slides.filter((e) => e.getAttribute("data-swiper-slide-index") * 1 === t)[0]);
1845
- }
1846
- recalcSlides() {
1847
- const t = this, {
1848
- slidesEl: e,
1849
- params: s
1850
- } = t;
1851
- t.slides = G(e, `.${s.slideClass}, swiper-slide`);
1852
- }
1853
- enable() {
1854
- const t = this;
1855
- t.enabled || (t.enabled = !0, t.params.grabCursor && t.setGrabCursor(), t.emit("enable"));
1856
- }
1857
- disable() {
1858
- const t = this;
1859
- t.enabled && (t.enabled = !1, t.params.grabCursor && t.unsetGrabCursor(), t.emit("disable"));
1860
- }
1861
- setProgress(t, e) {
1862
- const s = this;
1863
- t = Math.min(Math.max(t, 0), 1);
1864
- const n = s.minTranslate(), l = (s.maxTranslate() - n) * t + n;
1865
- s.translateTo(l, typeof e > "u" ? 0 : e), s.updateActiveIndex(), s.updateSlidesClasses();
1866
- }
1867
- emitContainerClasses() {
1868
- const t = this;
1869
- if (!t.params._emitClasses || !t.el) return;
1870
- const e = t.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(t.params.containerModifierClass) === 0);
1871
- t.emit("_containerClasses", e.join(" "));
1872
- }
1873
- getSlideClasses(t) {
1874
- const e = this;
1875
- return e.destroyed ? "" : t.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(e.params.slideClass) === 0).join(" ");
1876
- }
1877
- emitSlidesClasses() {
1878
- const t = this;
1879
- if (!t.params._emitClasses || !t.el) return;
1880
- const e = [];
1881
- t.slides.forEach((s) => {
1882
- const n = t.getSlideClasses(s);
1883
- e.push({
1884
- slideEl: s,
1885
- classNames: n
1886
- }), t.emit("_slideClass", s, n);
1887
- }), t.emit("_slideClasses", e);
1888
- }
1889
- slidesPerViewDynamic(t, e) {
1890
- t === void 0 && (t = "current"), e === void 0 && (e = !1);
1891
- const s = this, {
1892
- params: n,
1893
- slides: r,
1894
- slidesGrid: l,
1895
- slidesSizesGrid: o,
1896
- size: a,
1897
- activeIndex: d
1898
- } = s;
1899
- let c = 1;
1900
- if (typeof n.slidesPerView == "number") return n.slidesPerView;
1901
- if (n.centeredSlides) {
1902
- let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, p;
1903
- for (let u = d + 1; u < r.length; u += 1)
1904
- r[u] && !p && (f += Math.ceil(r[u].swiperSlideSize), c += 1, f > a && (p = !0));
1905
- for (let u = d - 1; u >= 0; u -= 1)
1906
- r[u] && !p && (f += r[u].swiperSlideSize, c += 1, f > a && (p = !0));
1907
- } else if (t === "current")
1908
- for (let f = d + 1; f < r.length; f += 1)
1909
- (e ? l[f] + o[f] - l[d] < a : l[f] - l[d] < a) && (c += 1);
1910
- else
1911
- for (let f = d - 1; f >= 0; f -= 1)
1912
- l[d] - l[f] < a && (c += 1);
1913
- return c;
1914
- }
1915
- update() {
1916
- const t = this;
1917
- if (!t || t.destroyed) return;
1918
- const {
1919
- snapGrid: e,
1920
- params: s
1921
- } = t;
1922
- s.breakpoints && t.setBreakpoint(), [...t.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
1923
- l.complete && _(t, l);
1924
- }), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
1925
- function n() {
1926
- const l = t.rtlTranslate ? t.translate * -1 : t.translate, o = Math.min(Math.max(l, t.maxTranslate()), t.minTranslate());
1927
- t.setTranslate(o), t.updateActiveIndex(), t.updateSlidesClasses();
1928
- }
1929
- let r;
1930
- if (s.freeMode && s.freeMode.enabled && !s.cssMode)
1931
- n(), s.autoHeight && t.updateAutoHeight();
1932
- else {
1933
- if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && t.isEnd && !s.centeredSlides) {
1934
- const l = t.virtual && s.virtual.enabled ? t.virtual.slides : t.slides;
1935
- r = t.slideTo(l.length - 1, 0, !1, !0);
1936
- } else
1937
- r = t.slideTo(t.activeIndex, 0, !1, !0);
1938
- r || n();
1939
- }
1940
- s.watchOverflow && e !== t.snapGrid && t.checkOverflow(), t.emit("update");
1941
- }
1942
- changeDirection(t, e) {
1943
- e === void 0 && (e = !0);
1944
- const s = this, n = s.params.direction;
1945
- return t || (t = n === "horizontal" ? "vertical" : "horizontal"), t === n || t !== "horizontal" && t !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${t}`), s.emitContainerClasses(), s.params.direction = t, s.slides.forEach((r) => {
1946
- t === "vertical" ? r.style.width = "" : r.style.height = "";
1947
- }), s.emit("changeDirection"), e && s.update()), s;
1948
- }
1949
- changeLanguageDirection(t) {
1950
- const e = this;
1951
- e.rtl && t === "rtl" || !e.rtl && t === "ltr" || (e.rtl = t === "rtl", e.rtlTranslate = e.params.direction === "horizontal" && e.rtl, e.rtl ? (e.el.classList.add(`${e.params.containerModifierClass}rtl`), e.el.dir = "rtl") : (e.el.classList.remove(`${e.params.containerModifierClass}rtl`), e.el.dir = "ltr"), e.update());
1952
- }
1953
- mount(t) {
1954
- const e = this;
1955
- if (e.mounted) return !0;
1956
- let s = t || e.params.el;
1957
- if (typeof s == "string" && (s = document.querySelector(s)), !s)
1958
- return !1;
1959
- s.swiper = e, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === e.params.swiperElementNodeName.toUpperCase() && (e.isElement = !0);
1960
- const n = () => `.${(e.params.wrapperClass || "").trim().split(" ").join(".")}`;
1961
- let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : G(s, n())[0];
1962
- return !l && e.params.createElements && (l = K("div", e.params.wrapperClass), s.append(l), G(s, `.${e.params.slideClass}`).forEach((o) => {
1963
- l.append(o);
1964
- })), Object.assign(e, {
1965
- el: s,
1966
- wrapperEl: l,
1967
- slidesEl: e.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : l,
1968
- hostEl: e.isElement ? s.parentNode.host : s,
1969
- mounted: !0,
1970
- // RTL
1971
- rtl: s.dir.toLowerCase() === "rtl" || V(s, "direction") === "rtl",
1972
- rtlTranslate: e.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || V(s, "direction") === "rtl"),
1973
- wrongRTL: V(l, "display") === "-webkit-box"
1974
- }), !0;
1975
- }
1976
- init(t) {
1977
- const e = this;
1978
- if (e.initialized || e.mount(t) === !1) return e;
1979
- e.emit("beforeInit"), e.params.breakpoints && e.setBreakpoint(), e.addClasses(), e.updateSize(), e.updateSlides(), e.params.watchOverflow && e.checkOverflow(), e.params.grabCursor && e.enabled && e.setGrabCursor(), e.params.loop && e.virtual && e.params.virtual.enabled ? e.slideTo(e.params.initialSlide + e.virtual.slidesBefore, 0, e.params.runCallbacksOnInit, !1, !0) : e.slideTo(e.params.initialSlide, 0, e.params.runCallbacksOnInit, !1, !0), e.params.loop && e.loopCreate(), e.attachEvents();
1980
- const n = [...e.el.querySelectorAll('[loading="lazy"]')];
1981
- return e.isElement && n.push(...e.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
1982
- r.complete ? _(e, r) : r.addEventListener("load", (l) => {
1983
- _(e, l.target);
1984
- });
1985
- }), Q(e), e.initialized = !0, Q(e), e.emit("init"), e.emit("afterInit"), e;
1986
- }
1987
- destroy(t, e) {
1988
- t === void 0 && (t = !0), e === void 0 && (e = !0);
1989
- const s = this, {
1990
- params: n,
1991
- el: r,
1992
- wrapperEl: l,
1993
- slides: o
1994
- } = s;
1995
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), e && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), o && o.length && o.forEach((a) => {
1996
- a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
1997
- })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
1998
- s.off(a);
1999
- }), t !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), ve(s)), s.destroyed = !0), null;
2000
- }
2001
- static extendDefaults(t) {
2002
- A(U, t);
2003
- }
2004
- static get extendedDefaults() {
2005
- return U;
2006
- }
2007
- static get defaults() {
2008
- return oe;
2009
- }
2010
- static installModule(t) {
2011
- O.prototype.__modules__ || (O.prototype.__modules__ = []);
2012
- const e = O.prototype.__modules__;
2013
- typeof t == "function" && e.indexOf(t) < 0 && e.push(t);
2014
- }
2015
- static use(t) {
2016
- return Array.isArray(t) ? (t.forEach((e) => O.installModule(e)), O) : (O.installModule(t), O);
2017
- }
2018
- }
2019
- Object.keys(q).forEach((i) => {
2020
- Object.keys(q[i]).forEach((t) => {
2021
- O.prototype[t] = q[i][t];
2022
- });
2023
- });
2024
- O.use([Ie, Ce]);
2025
12
  export {
2026
- O as S,
2027
- oe as d
13
+ w as default
2028
14
  };