@bbl-digital/snorre 4.2.87 → 4.2.88

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 (621) hide show
  1. package/dist/snorre.es1000.js +29 -28
  2. package/dist/snorre.es1001.js +12 -15
  3. package/dist/snorre.es1002.js +25 -6
  4. package/dist/snorre.es1003.js +6 -2
  5. package/dist/snorre.es1004.js +23 -34
  6. package/dist/snorre.es1005.js +15 -167
  7. package/dist/snorre.es1006.js +29 -7
  8. package/dist/snorre.es1007.js +16 -2
  9. package/dist/snorre.es1008.js +7 -2
  10. package/dist/snorre.es1009.js +2 -2
  11. package/dist/snorre.es1010.js +34 -13
  12. package/dist/snorre.es1011.js +169 -13
  13. package/dist/snorre.es1012.js +7 -13
  14. package/dist/snorre.es1013.js +2 -11
  15. package/dist/snorre.es1014.js +2 -19
  16. package/dist/snorre.es1015.js +2 -6
  17. package/dist/snorre.es1016.js +11 -55
  18. package/dist/snorre.es1017.js +11 -2
  19. package/dist/snorre.es1018.js +13 -8
  20. package/dist/snorre.es1019.js +11 -8
  21. package/dist/snorre.es1020.js +18 -22
  22. package/dist/snorre.es1021.js +5 -7
  23. package/dist/snorre.es1022.js +54 -10
  24. package/dist/snorre.es1023.js +2 -37
  25. package/dist/snorre.es1024.js +8 -9
  26. package/dist/snorre.es1025.js +8 -15
  27. package/dist/snorre.es1026.js +21 -11
  28. package/dist/snorre.es1027.js +8 -10
  29. package/dist/snorre.es1028.js +9 -15
  30. package/dist/snorre.es1029.js +36 -7
  31. package/dist/snorre.es1030.js +9 -28
  32. package/dist/snorre.es1031.js +13 -13
  33. package/dist/snorre.es1032.js +12 -7
  34. package/dist/snorre.es1033.js +10 -8
  35. package/dist/snorre.es1034.js +13 -22
  36. package/dist/snorre.es1035.js +6 -27
  37. package/dist/snorre.es1036.js +17 -21
  38. package/dist/snorre.es1037.js +10 -42
  39. package/dist/snorre.es1038.js +7 -229
  40. package/dist/snorre.es1039.js +7 -89
  41. package/dist/snorre.es1040.js +22 -150
  42. package/dist/snorre.es1041.js +29 -49
  43. package/dist/snorre.es1042.js +30 -80
  44. package/dist/snorre.es1043.js +43 -14
  45. package/dist/snorre.es1044.js +227 -14
  46. package/dist/snorre.es1045.js +88 -29
  47. package/dist/snorre.es1046.js +144 -65
  48. package/dist/snorre.es1047.js +49 -89
  49. package/dist/snorre.es1048.js +79 -116
  50. package/dist/snorre.es1049.js +14 -13
  51. package/dist/snorre.es1050.js +16 -3
  52. package/dist/snorre.es1051.js +28 -100
  53. package/dist/snorre.es1052.js +71 -38
  54. package/dist/snorre.es1053.js +80 -239
  55. package/dist/snorre.es1054.js +117 -13
  56. package/dist/snorre.es1055.js +12 -324
  57. package/dist/snorre.es1056.js +3 -121
  58. package/dist/snorre.es1057.js +89 -478
  59. package/dist/snorre.es1058.js +38 -46
  60. package/dist/snorre.es1059.js +239 -42
  61. package/dist/snorre.es1060.js +14 -65
  62. package/dist/snorre.es1061.js +308 -823
  63. package/dist/snorre.es1062.js +121 -476
  64. package/dist/snorre.es1063.js +491 -24
  65. package/dist/snorre.es1064.js +48 -18
  66. package/dist/snorre.es1065.js +51 -7
  67. package/dist/snorre.es1066.js +66 -6
  68. package/dist/snorre.es1067.js +843 -8
  69. package/dist/snorre.es1068.js +476 -22
  70. package/dist/snorre.es1069.js +5 -64
  71. package/dist/snorre.es1070.js +22 -5
  72. package/dist/snorre.es1071.js +9 -15
  73. package/dist/snorre.es1072.js +7 -8
  74. package/dist/snorre.es1073.js +4 -9
  75. package/dist/snorre.es1074.js +68 -5
  76. package/dist/snorre.es1075.js +30 -67
  77. package/dist/snorre.es1076.js +9 -31
  78. package/dist/snorre.es1077.js +153 -9
  79. package/dist/snorre.es1078.js +97 -142
  80. package/dist/snorre.es1079.js +13 -108
  81. package/dist/snorre.es1080.js +29 -13
  82. package/dist/snorre.es1081.js +120 -29
  83. package/dist/snorre.es1082.js +27 -117
  84. package/dist/snorre.es1083.js +9 -28
  85. package/dist/snorre.es1084.js +13 -10
  86. package/dist/snorre.es1085.js +32 -13
  87. package/dist/snorre.es1086.js +26 -30
  88. package/dist/snorre.es1087.js +10 -28
  89. package/dist/snorre.es1088.js +12 -10
  90. package/dist/snorre.es1089.js +17 -12
  91. package/dist/snorre.es1090.js +23 -17
  92. package/dist/snorre.es1091.js +13 -20
  93. package/dist/snorre.es1092.js +92 -12
  94. package/dist/snorre.es1093.js +39 -91
  95. package/dist/snorre.es1094.js +25 -41
  96. package/dist/snorre.es1095.js +67 -24
  97. package/dist/snorre.es1096.js +46 -66
  98. package/dist/snorre.es1097.js +30 -47
  99. package/dist/snorre.es1098.js +37 -30
  100. package/dist/snorre.es1099.js +7 -41
  101. package/dist/snorre.es1100.js +10 -7
  102. package/dist/snorre.es1101.js +13 -10
  103. package/dist/snorre.es1102.js +13 -13
  104. package/dist/snorre.es1103.js +10 -13
  105. package/dist/snorre.es1104.js +101 -261
  106. package/dist/snorre.es1105.js +15 -62
  107. package/dist/snorre.es1106.js +64 -2
  108. package/dist/snorre.es1107.js +149 -14
  109. package/dist/snorre.es1108.js +231 -8
  110. package/dist/snorre.es1109.js +6 -234
  111. package/dist/snorre.es1110.js +275 -22
  112. package/dist/snorre.es1111.js +2 -25
  113. package/dist/snorre.es1112.js +27 -42
  114. package/dist/snorre.es1113.js +23 -16
  115. package/dist/snorre.es1114.js +43 -6
  116. package/dist/snorre.es1115.js +17 -7
  117. package/dist/snorre.es1116.js +8 -5
  118. package/dist/snorre.es1117.js +4 -5
  119. package/dist/snorre.es1118.js +6 -2
  120. package/dist/snorre.es1119.js +2 -362
  121. package/dist/snorre.es1120.js +349 -435
  122. package/dist/snorre.es1121.js +365 -398
  123. package/dist/snorre.es1122.js +483 -41
  124. package/dist/snorre.es1123.js +41 -10
  125. package/dist/snorre.es1124.js +10 -48
  126. package/dist/snorre.es1125.js +48 -4
  127. package/dist/snorre.es1126.js +2 -2
  128. package/dist/snorre.es1127.js +2 -2
  129. package/dist/snorre.es1128.js +2 -121
  130. package/dist/snorre.es1129.js +9 -151
  131. package/dist/snorre.es1130.js +7 -2
  132. package/dist/snorre.es1131.js +2 -7
  133. package/dist/snorre.es1132.js +5 -70
  134. package/dist/snorre.es1133.js +6 -3
  135. package/dist/snorre.es1134.js +4 -140
  136. package/dist/snorre.es1135.js +15 -9
  137. package/dist/snorre.es1136.js +8 -14
  138. package/dist/snorre.es1137.js +5 -21
  139. package/dist/snorre.es1138.js +4 -12
  140. package/dist/snorre.es1139.js +510 -25
  141. package/dist/snorre.es1140.js +47 -37
  142. package/dist/snorre.es1141.js +17 -5
  143. package/dist/snorre.es1142.js +6 -5
  144. package/dist/snorre.es1143.js +9 -4
  145. package/dist/snorre.es1144.js +7 -15
  146. package/dist/snorre.es1145.js +8 -8
  147. package/dist/snorre.es1146.js +12 -5
  148. package/dist/snorre.es1147.js +10 -4
  149. package/dist/snorre.es1148.js +14 -512
  150. package/dist/snorre.es1149.js +7 -50
  151. package/dist/snorre.es1150.js +15 -17
  152. package/dist/snorre.es1151.js +28 -6
  153. package/dist/snorre.es1152.js +12 -8
  154. package/dist/snorre.es1153.js +3 -7
  155. package/dist/snorre.es1154.js +3 -8
  156. package/dist/snorre.es1155.js +15 -12
  157. package/dist/snorre.es1156.js +3 -10
  158. package/dist/snorre.es1157.js +9 -14
  159. package/dist/snorre.es1158.js +4 -6
  160. package/dist/snorre.es1159.js +5 -15
  161. package/dist/snorre.es1160.js +9 -28
  162. package/dist/snorre.es1161.js +7 -12
  163. package/dist/snorre.es1162.js +4 -3
  164. package/dist/snorre.es1163.js +3 -3
  165. package/dist/snorre.es1164.js +4 -16
  166. package/dist/snorre.es1165.js +11 -3
  167. package/dist/snorre.es1166.js +9 -9
  168. package/dist/snorre.es1167.js +30 -4
  169. package/dist/snorre.es1168.js +23 -4
  170. package/dist/snorre.es1169.js +49 -7
  171. package/dist/snorre.es1170.js +1 -5
  172. package/dist/snorre.es1171.js +8 -4
  173. package/dist/snorre.es1172.js +20 -3
  174. package/dist/snorre.es1173.js +8 -4
  175. package/dist/snorre.es1174.js +6 -11
  176. package/dist/snorre.es1175.js +5 -9
  177. package/dist/snorre.es1176.js +7 -30
  178. package/dist/snorre.es1177.js +15 -24
  179. package/dist/snorre.es1178.js +4 -51
  180. package/dist/snorre.es1179.js +6 -3
  181. package/dist/snorre.es1180.js +34 -8
  182. package/dist/snorre.es1181.js +8 -20
  183. package/dist/snorre.es1182.js +26 -7
  184. package/dist/snorre.es1183.js +109 -7
  185. package/dist/snorre.es1184.js +2 -6
  186. package/dist/snorre.es1185.js +2 -8
  187. package/dist/snorre.es1186.js +18 -15
  188. package/dist/snorre.es1187.js +46 -4
  189. package/dist/snorre.es1188.js +10 -5
  190. package/dist/snorre.es1189.js +69 -33
  191. package/dist/snorre.es1190.js +3 -9
  192. package/dist/snorre.es1191.js +138 -25
  193. package/dist/snorre.es1192.js +10 -109
  194. package/dist/snorre.es1193.js +15 -2
  195. package/dist/snorre.es1194.js +22 -2
  196. package/dist/snorre.es1195.js +11 -17
  197. package/dist/snorre.es1196.js +26 -45
  198. package/dist/snorre.es1197.js +39 -11
  199. package/dist/snorre.es1198.js +5 -2
  200. package/dist/snorre.es1199.js +55 -77
  201. package/dist/snorre.es1200.js +4 -95
  202. package/dist/snorre.es1201.js +7 -10
  203. package/dist/snorre.es1202.js +5 -26
  204. package/dist/snorre.es1203.js +18 -5
  205. package/dist/snorre.es1204.js +14 -9
  206. package/dist/snorre.es1205.js +52 -4
  207. package/dist/snorre.es1206.js +6 -57
  208. package/dist/snorre.es1207.js +3 -4
  209. package/dist/snorre.es1208.js +3 -8
  210. package/dist/snorre.es1209.js +8 -7
  211. package/dist/snorre.es1210.js +6 -18
  212. package/dist/snorre.es1211.js +3 -14
  213. package/dist/snorre.es1212.js +2 -53
  214. package/dist/snorre.es1213.js +5 -5
  215. package/dist/snorre.es1214.js +9 -3
  216. package/dist/snorre.es1215.js +4 -3
  217. package/dist/snorre.es1216.js +6 -8
  218. package/dist/snorre.es1217.js +4 -7
  219. package/dist/snorre.es1218.js +3 -4
  220. package/dist/snorre.es1219.js +4 -2
  221. package/dist/snorre.es1220.js +5 -5
  222. package/dist/snorre.es1221.js +7 -9
  223. package/dist/snorre.es1222.js +4 -4
  224. package/dist/snorre.es1223.js +5 -6
  225. package/dist/snorre.es1224.js +7 -4
  226. package/dist/snorre.es1225.js +6 -3
  227. package/dist/snorre.es1226.js +9 -4
  228. package/dist/snorre.es1227.js +13 -5
  229. package/dist/snorre.es1228.js +3 -8
  230. package/dist/snorre.es1229.js +5 -5
  231. package/dist/snorre.es1230.js +7 -5
  232. package/dist/snorre.es1231.js +5 -7
  233. package/dist/snorre.es1232.js +9 -5
  234. package/dist/snorre.es1233.js +7 -9
  235. package/dist/snorre.es1234.js +17 -13
  236. package/dist/snorre.es1235.js +12 -3
  237. package/dist/snorre.es1236.js +7 -5
  238. package/dist/snorre.es1237.js +12 -6
  239. package/dist/snorre.es1238.js +18 -5
  240. package/dist/snorre.es1239.js +12 -9
  241. package/dist/snorre.es1240.js +3 -6
  242. package/dist/snorre.es1241.js +5 -17
  243. package/dist/snorre.es1242.js +11 -11
  244. package/dist/snorre.es1243.js +2 -7
  245. package/dist/snorre.es1244.js +78 -12
  246. package/dist/snorre.es1245.js +95 -17
  247. package/dist/snorre.es1246.js +11 -12
  248. package/dist/snorre.es1247.js +27 -3
  249. package/dist/snorre.es1248.js +5 -5
  250. package/dist/snorre.es1249.js +9 -11
  251. package/dist/snorre.es1250.js +2 -2
  252. package/dist/snorre.es1251.js +8 -2
  253. package/dist/snorre.es1252.js +9 -8
  254. package/dist/snorre.es1253.js +5 -6
  255. package/dist/snorre.es1254.js +10 -7
  256. package/dist/snorre.es1255.js +5 -9
  257. package/dist/snorre.es1256.js +13 -6
  258. package/dist/snorre.es1257.js +12 -10
  259. package/dist/snorre.es1258.js +4 -6
  260. package/dist/snorre.es1259.js +5 -13
  261. package/dist/snorre.es1260.js +9 -13
  262. package/dist/snorre.es1261.js +6 -4
  263. package/dist/snorre.es1262.js +15 -5
  264. package/dist/snorre.es1263.js +9 -9
  265. package/dist/snorre.es1264.js +5 -4
  266. package/dist/snorre.es1265.js +26 -16
  267. package/dist/snorre.es1266.js +5 -8
  268. package/dist/snorre.es1267.js +39 -6
  269. package/dist/snorre.es1268.js +7 -26
  270. package/dist/snorre.es1269.js +5 -5
  271. package/dist/snorre.es1270.js +6 -39
  272. package/dist/snorre.es1271.js +15 -7
  273. package/dist/snorre.es1272.js +7 -5
  274. package/dist/snorre.es1273.js +3 -7
  275. package/dist/snorre.es1274.js +10 -14
  276. package/dist/snorre.es1275.js +2 -8
  277. package/dist/snorre.es1276.js +3 -3
  278. package/dist/snorre.es1277.js +12 -10
  279. package/dist/snorre.es1278.js +5 -2
  280. package/dist/snorre.es1279.js +3 -3
  281. package/dist/snorre.es1280.js +4 -13
  282. package/dist/snorre.es1281.js +4 -5
  283. package/dist/snorre.es1282.js +4 -3
  284. package/dist/snorre.es1283.js +3 -3
  285. package/dist/snorre.es1284.js +4 -4
  286. package/dist/snorre.es1285.js +15 -4
  287. package/dist/snorre.es1286.js +30 -4
  288. package/dist/snorre.es1287.js +14 -4
  289. package/dist/snorre.es1288.js +8 -14
  290. package/dist/snorre.es1289.js +5 -29
  291. package/dist/snorre.es1290.js +5 -13
  292. package/dist/snorre.es1291.js +6 -7
  293. package/dist/snorre.es1292.js +16 -4
  294. package/dist/snorre.es1293.js +10 -5
  295. package/dist/snorre.es1294.js +5 -7
  296. package/dist/snorre.es1295.js +4 -5
  297. package/dist/snorre.es1296.js +4 -28
  298. package/dist/snorre.es1297.js +5 -4
  299. package/dist/snorre.es1298.js +5 -17
  300. package/dist/snorre.es1299.js +28 -10
  301. package/dist/snorre.es1300.js +4 -5
  302. package/dist/snorre.es1301.js +6 -4
  303. package/dist/snorre.es1302.js +6 -4
  304. package/dist/snorre.es1303.js +6 -5
  305. package/dist/snorre.es1304.js +2 -7
  306. package/dist/snorre.es1305.js +2 -7
  307. package/dist/snorre.es1306.js +8 -6
  308. package/dist/snorre.es1307.js +8 -2
  309. package/dist/snorre.es1308.js +3 -3
  310. package/dist/snorre.es1310.js +1 -1
  311. package/dist/snorre.es1316.js +2 -2
  312. package/dist/snorre.es1317.js +2 -2
  313. package/dist/snorre.es1318.js +2 -2
  314. package/dist/snorre.es1322.js +1 -1
  315. package/dist/snorre.es1324.js +1 -1
  316. package/dist/snorre.es1328.js +1 -1
  317. package/dist/snorre.es1329.js +4 -4
  318. package/dist/snorre.es1330.js +1 -1
  319. package/dist/snorre.es1331.js +1 -1
  320. package/dist/snorre.es1340.js +1 -1
  321. package/dist/snorre.es1347.js +1 -1
  322. package/dist/snorre.es329.js +3 -3
  323. package/dist/snorre.es330.js +1 -1
  324. package/dist/snorre.es331.js +2 -2
  325. package/dist/snorre.es374.js +1 -1
  326. package/dist/snorre.es393.js +1 -1
  327. package/dist/snorre.es397.js +1 -1
  328. package/dist/snorre.es434.js +7 -7
  329. package/dist/snorre.es453.js +2 -2
  330. package/dist/snorre.es454.js +10 -10
  331. package/dist/snorre.es455.js +3 -3
  332. package/dist/snorre.es456.js +5 -5
  333. package/dist/snorre.es457.js +21 -21
  334. package/dist/snorre.es459.js +1 -1
  335. package/dist/snorre.es462.js +11 -11
  336. package/dist/snorre.es482.js +1 -1
  337. package/dist/snorre.es483.js +1 -1
  338. package/dist/snorre.es484.js +1 -1
  339. package/dist/snorre.es485.js +3 -3
  340. package/dist/snorre.es488.js +30 -30
  341. package/dist/snorre.es491.js +13 -13
  342. package/dist/snorre.es493.js +2 -2
  343. package/dist/snorre.es494.js +13 -13
  344. package/dist/snorre.es495.js +8 -8
  345. package/dist/snorre.es496.js +54 -2
  346. package/dist/snorre.es497.js +64 -24
  347. package/dist/snorre.es498.js +2 -602
  348. package/dist/snorre.es499.js +26 -5
  349. package/dist/snorre.es500.js +602 -54
  350. package/dist/snorre.es501.js +5 -66
  351. package/dist/snorre.es547.js +1 -1
  352. package/dist/snorre.es548.js +1 -1
  353. package/dist/snorre.es550.js +4 -4
  354. package/dist/snorre.es553.js +2 -2
  355. package/dist/snorre.es554.js +1 -1
  356. package/dist/snorre.es566.js +1 -1
  357. package/dist/snorre.es570.js +22 -2
  358. package/dist/snorre.es571.js +40 -2
  359. package/dist/snorre.es572.js +4 -22
  360. package/dist/snorre.es573.js +5 -39
  361. package/dist/snorre.es574.js +5 -2
  362. package/dist/snorre.es575.js +14 -7
  363. package/dist/snorre.es576.js +13 -326
  364. package/dist/snorre.es577.js +2 -50
  365. package/dist/snorre.es578.js +2 -4
  366. package/dist/snorre.es579.js +2 -6
  367. package/dist/snorre.es580.js +7 -4
  368. package/dist/snorre.es581.js +326 -14
  369. package/dist/snorre.es582.js +49 -13
  370. package/dist/snorre.es583.js +28 -2
  371. package/dist/snorre.es584.js +2 -76
  372. package/dist/snorre.es585.js +66 -83
  373. package/dist/snorre.es586.js +90 -49
  374. package/dist/snorre.es587.js +51 -7
  375. package/dist/snorre.es588.js +7 -4
  376. package/dist/snorre.es589.js +4 -51
  377. package/dist/snorre.es590.js +50 -26
  378. package/dist/snorre.es595.js +1 -1
  379. package/dist/snorre.es600.js +5 -5
  380. package/dist/snorre.es640.js +1 -1
  381. package/dist/snorre.es645.js +1 -1
  382. package/dist/snorre.es646.js +2 -2
  383. package/dist/snorre.es666.js +2 -2
  384. package/dist/snorre.es667.js +1 -1
  385. package/dist/snorre.es668.js +2 -2
  386. package/dist/snorre.es674.js +1 -1
  387. package/dist/snorre.es675.js +1 -1
  388. package/dist/snorre.es676.js +1 -1
  389. package/dist/snorre.es710.js +3 -3
  390. package/dist/snorre.es715.js +2 -2
  391. package/dist/snorre.es718.js +2 -2
  392. package/dist/snorre.es719.js +1 -1
  393. package/dist/snorre.es727.js +50 -14
  394. package/dist/snorre.es728.js +11 -15
  395. package/dist/snorre.es729.js +16 -6
  396. package/dist/snorre.es730.js +9 -18
  397. package/dist/snorre.es731.js +18 -8
  398. package/dist/snorre.es732.js +8 -16
  399. package/dist/snorre.es733.js +10 -35
  400. package/dist/snorre.es734.js +34 -65
  401. package/dist/snorre.es735.js +71 -22
  402. package/dist/snorre.es736.js +22 -50
  403. package/dist/snorre.es737.js +1 -1
  404. package/dist/snorre.es738.js +1 -1
  405. package/dist/snorre.es739.js +1 -1
  406. package/dist/snorre.es740.js +2 -2
  407. package/dist/snorre.es741.js +6 -6
  408. package/dist/snorre.es742.js +8 -8
  409. package/dist/snorre.es743.js +1 -1
  410. package/dist/snorre.es752.js +1 -1
  411. package/dist/snorre.es753.js +1 -1
  412. package/dist/snorre.es760.js +13 -6
  413. package/dist/snorre.es761.js +3 -12
  414. package/dist/snorre.es762.js +3 -4
  415. package/dist/snorre.es763.js +605 -3
  416. package/dist/snorre.es764.js +11 -605
  417. package/dist/snorre.es765.js +6 -11
  418. package/dist/snorre.es770.js +14 -20
  419. package/dist/snorre.es771.js +22 -22
  420. package/dist/snorre.es772.js +22 -2
  421. package/dist/snorre.es773.js +2 -4
  422. package/dist/snorre.es774.js +4 -11
  423. package/dist/snorre.es775.js +11 -16
  424. package/dist/snorre.es781.js +27 -15
  425. package/dist/snorre.es782.js +5 -26
  426. package/dist/snorre.es783.js +3 -5
  427. package/dist/snorre.es784.js +15 -4
  428. package/dist/snorre.es785.js +39 -4
  429. package/dist/snorre.es786.js +113 -196
  430. package/dist/snorre.es787.js +8 -12
  431. package/dist/snorre.es788.js +14 -31
  432. package/dist/snorre.es789.js +9 -109
  433. package/dist/snorre.es790.js +40 -12
  434. package/dist/snorre.es791.js +251 -47
  435. package/dist/snorre.es792.js +2 -36
  436. package/dist/snorre.es793.js +82 -6
  437. package/dist/snorre.es794.js +13 -5
  438. package/dist/snorre.es795.js +18 -39
  439. package/dist/snorre.es796.js +13 -125
  440. package/dist/snorre.es797.js +18 -7
  441. package/dist/snorre.es798.js +11 -20
  442. package/dist/snorre.es799.js +20 -184
  443. package/dist/snorre.es800.js +26 -4
  444. package/dist/snorre.es801.js +61 -7
  445. package/dist/snorre.es802.js +5 -12
  446. package/dist/snorre.es803.js +9 -13
  447. package/dist/snorre.es804.js +23 -7
  448. package/dist/snorre.es805.js +26 -11
  449. package/dist/snorre.es806.js +2 -11
  450. package/dist/snorre.es807.js +11 -7
  451. package/dist/snorre.es808.js +8 -16
  452. package/dist/snorre.es809.js +13 -24
  453. package/dist/snorre.es810.js +28 -51
  454. package/dist/snorre.es811.js +20 -42
  455. package/dist/snorre.es812.js +188 -9
  456. package/dist/snorre.es813.js +4 -20
  457. package/dist/snorre.es814.js +6 -38
  458. package/dist/snorre.es815.js +12 -16
  459. package/dist/snorre.es816.js +13 -6
  460. package/dist/snorre.es817.js +7 -23
  461. package/dist/snorre.es818.js +11 -19
  462. package/dist/snorre.es819.js +11 -52
  463. package/dist/snorre.es820.js +8 -4
  464. package/dist/snorre.es821.js +16 -4
  465. package/dist/snorre.es822.js +24 -13
  466. package/dist/snorre.es823.js +50 -5
  467. package/dist/snorre.es824.js +41 -8
  468. package/dist/snorre.es825.js +9 -16
  469. package/dist/snorre.es826.js +20 -4
  470. package/dist/snorre.es827.js +39 -4
  471. package/dist/snorre.es828.js +16 -5
  472. package/dist/snorre.es829.js +6 -5
  473. package/dist/snorre.es830.js +23 -4
  474. package/dist/snorre.es831.js +19 -5
  475. package/dist/snorre.es832.js +52 -7
  476. package/dist/snorre.es833.js +4 -24
  477. package/dist/snorre.es834.js +4 -6
  478. package/dist/snorre.es835.js +11 -3
  479. package/dist/snorre.es836.js +5 -6
  480. package/dist/snorre.es837.js +8 -5
  481. package/dist/snorre.es838.js +16 -4
  482. package/dist/snorre.es839.js +4 -5
  483. package/dist/snorre.es840.js +3 -3
  484. package/dist/snorre.es841.js +5 -8
  485. package/dist/snorre.es842.js +5 -5
  486. package/dist/snorre.es843.js +4 -4
  487. package/dist/snorre.es844.js +4 -4
  488. package/dist/snorre.es845.js +5 -5
  489. package/dist/snorre.es846.js +25 -16
  490. package/dist/snorre.es847.js +6 -6
  491. package/dist/snorre.es848.js +4 -4
  492. package/dist/snorre.es849.js +6 -4
  493. package/dist/snorre.es850.js +5 -3
  494. package/dist/snorre.es851.js +4 -3
  495. package/dist/snorre.es852.js +5 -4
  496. package/dist/snorre.es853.js +4 -6
  497. package/dist/snorre.es854.js +8 -6
  498. package/dist/snorre.es855.js +5 -5
  499. package/dist/snorre.es856.js +4 -7
  500. package/dist/snorre.es857.js +4 -3
  501. package/dist/snorre.es858.js +6 -3
  502. package/dist/snorre.es859.js +16 -4
  503. package/dist/snorre.es860.js +6 -3
  504. package/dist/snorre.es861.js +4 -4
  505. package/dist/snorre.es862.js +4 -3
  506. package/dist/snorre.es863.js +3 -3
  507. package/dist/snorre.es864.js +3 -3
  508. package/dist/snorre.es865.js +5 -9
  509. package/dist/snorre.es866.js +7 -25
  510. package/dist/snorre.es867.js +7 -18
  511. package/dist/snorre.es868.js +6 -67
  512. package/dist/snorre.es869.js +8 -31
  513. package/dist/snorre.es870.js +4 -11
  514. package/dist/snorre.es871.js +4 -121
  515. package/dist/snorre.es872.js +4 -86
  516. package/dist/snorre.es873.js +4 -67
  517. package/dist/snorre.es874.js +5 -31
  518. package/dist/snorre.es875.js +4 -11
  519. package/dist/snorre.es876.js +4 -79
  520. package/dist/snorre.es877.js +4 -85
  521. package/dist/snorre.es878.js +18 -9
  522. package/dist/snorre.es879.js +67 -7
  523. package/dist/snorre.es880.js +31 -8
  524. package/dist/snorre.es881.js +11 -5
  525. package/dist/snorre.es882.js +121 -9
  526. package/dist/snorre.es883.js +84 -567
  527. package/dist/snorre.es884.js +65 -72
  528. package/dist/snorre.es885.js +31 -5
  529. package/dist/snorre.es886.js +11 -20
  530. package/dist/snorre.es887.js +79 -5
  531. package/dist/snorre.es888.js +85 -6
  532. package/dist/snorre.es889.js +9 -9
  533. package/dist/snorre.es890.js +25 -16
  534. package/dist/snorre.es891.js +9 -10
  535. package/dist/snorre.es892.js +7 -41
  536. package/dist/snorre.es893.js +7 -253
  537. package/dist/snorre.es894.js +5 -2
  538. package/dist/snorre.es895.js +8 -81
  539. package/dist/snorre.es896.js +568 -12
  540. package/dist/snorre.es897.js +72 -17
  541. package/dist/snorre.es898.js +5 -14
  542. package/dist/snorre.es899.js +18 -17
  543. package/dist/snorre.es900.js +4 -10
  544. package/dist/snorre.es901.js +5 -24
  545. package/dist/snorre.es902.js +8 -26
  546. package/dist/snorre.es903.js +4 -61
  547. package/dist/snorre.es904.js +208 -5
  548. package/dist/snorre.es905.js +12 -10
  549. package/dist/snorre.es906.js +32 -23
  550. package/dist/snorre.es907.js +110 -26
  551. package/dist/snorre.es908.js +13 -2
  552. package/dist/snorre.es909.js +48 -11
  553. package/dist/snorre.es910.js +35 -8
  554. package/dist/snorre.es911.js +6 -13
  555. package/dist/snorre.es912.js +5 -28
  556. package/dist/snorre.es935.js +2 -2
  557. package/dist/snorre.es936.js +24 -5
  558. package/dist/snorre.es937.js +17 -20
  559. package/dist/snorre.es938.js +7 -10
  560. package/dist/snorre.es939.js +6 -8
  561. package/dist/snorre.es940.js +8 -63
  562. package/dist/snorre.es941.js +20 -59
  563. package/dist/snorre.es942.js +64 -6
  564. package/dist/snorre.es943.js +5 -4
  565. package/dist/snorre.es944.js +15 -7
  566. package/dist/snorre.es945.js +8 -17
  567. package/dist/snorre.es946.js +63 -5
  568. package/dist/snorre.es947.js +61 -5
  569. package/dist/snorre.es948.js +6 -13
  570. package/dist/snorre.es949.js +4 -10
  571. package/dist/snorre.es950.js +7 -14
  572. package/dist/snorre.es951.js +17 -5
  573. package/dist/snorre.es952.js +5 -6
  574. package/dist/snorre.es953.js +5 -8
  575. package/dist/snorre.es954.js +13 -6
  576. package/dist/snorre.es955.js +10 -56
  577. package/dist/snorre.es956.js +14 -9
  578. package/dist/snorre.es957.js +3 -3
  579. package/dist/snorre.es958.js +6 -5
  580. package/dist/snorre.es959.js +8 -9
  581. package/dist/snorre.es960.js +5 -4
  582. package/dist/snorre.es961.js +56 -5
  583. package/dist/snorre.es962.js +9 -4
  584. package/dist/snorre.es963.js +5 -11
  585. package/dist/snorre.es964.js +5 -10
  586. package/dist/snorre.es965.js +9 -10
  587. package/dist/snorre.es966.js +5 -11
  588. package/dist/snorre.es967.js +5 -11
  589. package/dist/snorre.es968.js +4 -10
  590. package/dist/snorre.es969.js +11 -7
  591. package/dist/snorre.es970.js +10 -6
  592. package/dist/snorre.es971.js +9 -4
  593. package/dist/snorre.es972.js +11 -6
  594. package/dist/snorre.es973.js +11 -8
  595. package/dist/snorre.es974.js +10 -6
  596. package/dist/snorre.es975.js +7 -18
  597. package/dist/snorre.es976.js +6 -7
  598. package/dist/snorre.es977.js +5 -10
  599. package/dist/snorre.es978.js +6 -10
  600. package/dist/snorre.es979.js +8 -21
  601. package/dist/snorre.es980.js +6 -10
  602. package/dist/snorre.es981.js +18 -9
  603. package/dist/snorre.es982.js +7 -9
  604. package/dist/snorre.es983.js +10 -4
  605. package/dist/snorre.es984.js +10 -5
  606. package/dist/snorre.es985.js +21 -12
  607. package/dist/snorre.es986.js +10 -18
  608. package/dist/snorre.es987.js +9 -23
  609. package/dist/snorre.es988.js +9 -18
  610. package/dist/snorre.es989.js +4 -15
  611. package/dist/snorre.es990.js +5 -12
  612. package/dist/snorre.es991.js +11 -12
  613. package/dist/snorre.es992.js +18 -5
  614. package/dist/snorre.es993.js +23 -5
  615. package/dist/snorre.es994.js +18 -29
  616. package/dist/snorre.es995.js +15 -12
  617. package/dist/snorre.es996.js +12 -25
  618. package/dist/snorre.es997.js +13 -5
  619. package/dist/snorre.es998.js +4 -19
  620. package/dist/snorre.es999.js +5 -14
  621. package/package.json +3 -3
@@ -1,607 +1,13 @@
1
- import { noop as at } from "./snorre.es605.js";
2
- import { getValueTransition as rt } from "./snorre.es756.js";
3
- import { animateSingleValue as nt } from "./snorre.es920.js";
4
- import { getOptimisedAppearId as lt } from "./snorre.es758.js";
5
- import { cancelFrame as M, frameData as g, frameSteps as C, frame as U } from "./snorre.es671.js";
6
- import { microtask as ht } from "./snorre.es763.js";
7
- import { time as ut } from "./snorre.es656.js";
8
- import { isSVGElement as ct } from "./snorre.es921.js";
9
- import { FlatTree as dt } from "./snorre.es688.js";
10
- import { clamp as ft } from "./snorre.es624.js";
11
- import { delay as mt } from "./snorre.es691.js";
12
- import { mixNumber as w } from "./snorre.es711.js";
13
- import { SubscriptionManager as pt } from "./snorre.es662.js";
14
- import { resolveMotionValue as F } from "./snorre.es601.js";
15
- import { mixValues as yt } from "./snorre.es922.js";
16
- import { copyBoxInto as y, copyAxisDeltaInto as z } from "./snorre.es923.js";
17
- import { translateAxis as L, transformBox as E, applyBoxDelta as gt, applyTreeDeltas as vt } from "./snorre.es924.js";
18
- import { calcLength as B, calcRelativePosition as V, calcRelativeBox as Tt, calcBoxDelta as k, isNear as xt } from "./snorre.es720.js";
19
- import { removeBoxTransforms as N } from "./snorre.es925.js";
20
- import { createBox as f, createDelta as A } from "./snorre.es657.js";
21
- import { boxEqualsRounded as et, isDeltaZero as it, axisDeltaEquals as _, boxEquals as Dt, aspectRatio as W } from "./snorre.es926.js";
22
- import { NodeStack as St } from "./snorre.es927.js";
23
- import { scaleCorrectors as H } from "./snorre.es648.js";
24
- import { buildProjectionTransform as Pt } from "./snorre.es928.js";
25
- import { eachAxis as q } from "./snorre.es929.js";
26
- import { hasTransform as P, hasScale as G, has2DTranslate as Bt } from "./snorre.es930.js";
27
- import { globalProjectionState as O } from "./snorre.es896.js";
28
- const b = ["", "X", "Y", "Z"], At = { visibility: "hidden" }, X = 1e3;
29
- let jt = 0;
30
- function I(e, l, h, c) {
31
- const { latestValues: v } = l;
32
- v[e] && (h[e] = v[e], l.setStaticValue(e, 0), c && (c[e] = 0));
33
- }
34
- function st(e) {
35
- if (e.hasCheckedOptimisedAppear = !0, e.root === e)
36
- return;
37
- const { visualElement: l } = e.options;
38
- if (!l)
39
- return;
40
- const h = lt(l);
41
- if (window.MotionHasOptimisedAnimation(h, "transform")) {
42
- const { layout: v, layoutId: j } = e.options;
43
- window.MotionCancelOptimisedAnimation(h, "transform", U, !(v || j));
44
- }
45
- const { parent: c } = e;
46
- c && !c.hasCheckedOptimisedAppear && st(c);
47
- }
48
- function ge({ attachResizeListener: e, defaultParent: l, measureScroll: h, checkIsScrollRoot: c, resetTransform: v }) {
49
- return class {
50
- constructor(t = {}, i = l == null ? void 0 : l()) {
51
- this.id = jt++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
52
- this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
53
- }, this.updateProjection = () => {
54
- this.projectionUpdateScheduled = !1, this.nodes.forEach(kt), this.nodes.forEach(Ct), this.nodes.forEach(Ft), this.nodes.forEach(Lt);
55
- }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
56
- for (let s = 0; s < this.path.length; s++)
57
- this.path[s].shouldResetTransform = !0;
58
- this.root === this && (this.nodes = new dt());
59
- }
60
- addEventListener(t, i) {
61
- return this.eventHandlers.has(t) || this.eventHandlers.set(t, new pt()), this.eventHandlers.get(t).add(i);
62
- }
63
- notifyListeners(t, ...i) {
64
- const s = this.eventHandlers.get(t);
65
- s && s.notify(...i);
66
- }
67
- hasListeners(t) {
68
- return this.eventHandlers.has(t);
69
- }
70
- /**
71
- * Lifecycles
72
- */
73
- mount(t, i = this.root.hasTreeAnimated) {
74
- if (this.instance)
75
- return;
76
- this.isSVG = ct(t), this.instance = t;
77
- const { layoutId: s, layout: o, visualElement: a } = this.options;
78
- if (a && !a.current && a.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), i && (o || s) && (this.isLayoutDirty = !0), e) {
79
- let r;
80
- const n = () => this.root.updateBlockedByResize = !1;
81
- e(t, () => {
82
- this.root.updateBlockedByResize = !0, r && r(), r = mt(n, 250), O.hasAnimatedSinceResize && (O.hasAnimatedSinceResize = !1, this.nodes.forEach($));
83
- });
84
- }
85
- s && this.root.registerSharedNode(s, this), this.options.animate !== !1 && a && (s || o) && this.addEventListener("didUpdate", ({ delta: r, hasLayoutChanged: n, hasRelativeLayoutChanged: u, layout: m }) => {
86
- if (this.isTreeAnimationBlocked()) {
87
- this.target = void 0, this.relativeTarget = void 0;
88
- return;
89
- }
90
- const d = this.options.transition || a.getDefaultTransition() || zt, { onLayoutAnimationStart: S, onLayoutAnimationComplete: x } = a.getProps(), R = !this.targetLayout || !et(this.targetLayout, m), p = !n && u;
91
- if (this.options.layoutRoot || this.resumeFrom || p || n && (R || !this.currentAnimation)) {
92
- this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(r, p);
93
- const D = {
94
- ...rt(d, "layout"),
95
- onPlay: S,
96
- onComplete: x
97
- };
98
- (a.shouldReduceMotion || this.options.layoutRoot) && (D.delay = 0, D.type = !1), this.startAnimation(D);
99
- } else
100
- n || $(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
101
- this.targetLayout = m;
102
- });
103
- }
104
- unmount() {
105
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
106
- const t = this.getStack();
107
- t && t.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, M(this.updateProjection);
108
- }
109
- // only on the root
110
- blockUpdate() {
111
- this.updateManuallyBlocked = !0;
112
- }
113
- unblockUpdate() {
114
- this.updateManuallyBlocked = !1;
115
- }
116
- isUpdateBlocked() {
117
- return this.updateManuallyBlocked || this.updateBlockedByResize;
118
- }
119
- isTreeAnimationBlocked() {
120
- return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
121
- }
122
- // Note: currently only running on root node
123
- startUpdate() {
124
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ot), this.animationId++);
125
- }
126
- getTransformTemplate() {
127
- const { visualElement: t } = this.options;
128
- return t && t.getProps().transformTemplate;
129
- }
130
- willUpdate(t = !0) {
131
- if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
132
- this.options.onExitComplete && this.options.onExitComplete();
133
- return;
134
- }
135
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && st(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
136
- return;
137
- this.isLayoutDirty = !0;
138
- for (let a = 0; a < this.path.length; a++) {
139
- const r = this.path[a];
140
- r.shouldResetTransform = !0, r.updateScroll("snapshot"), r.options.layoutRoot && r.willUpdate(!1);
141
- }
142
- const { layoutId: i, layout: s } = this.options;
143
- if (i === void 0 && !s)
144
- return;
145
- const o = this.getTransformTemplate();
146
- this.prevTransformTemplateValue = o ? o(this.latestValues, "") : void 0, this.updateSnapshot(), t && this.notifyListeners("willUpdate");
147
- }
148
- update() {
149
- if (this.updateScheduled = !1, this.isUpdateBlocked()) {
150
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Y);
151
- return;
152
- }
153
- this.isUpdating || this.nodes.forEach(Ut), this.isUpdating = !1, this.nodes.forEach(wt), this.nodes.forEach(Rt), this.nodes.forEach(Vt), this.clearAllSnapshots();
154
- const i = ut.now();
155
- g.delta = ft(0, 1e3 / 60, i - g.timestamp), g.timestamp = i, g.isProcessing = !0, C.update.process(g), C.preRender.process(g), C.render.process(g), g.isProcessing = !1;
156
- }
157
- didUpdate() {
158
- this.updateScheduled || (this.updateScheduled = !0, ht.read(this.scheduleUpdate));
159
- }
160
- clearAllSnapshots() {
161
- this.nodes.forEach(Et), this.sharedNodes.forEach(bt);
162
- }
163
- scheduleUpdateProjection() {
164
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, U.preRender(this.updateProjection, !1, !0));
165
- }
166
- scheduleCheckAfterUnmount() {
167
- U.postRender(() => {
168
- this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
169
- });
170
- }
171
- /**
172
- * Update measurements
173
- */
174
- updateSnapshot() {
175
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !B(this.snapshot.measuredBox.x) && !B(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
176
- }
177
- updateLayout() {
178
- if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
179
- return;
180
- if (this.resumeFrom && !this.resumeFrom.instance)
181
- for (let s = 0; s < this.path.length; s++)
182
- this.path[s].updateScroll();
183
- const t = this.layout;
184
- this.layout = this.measure(!1), this.layoutCorrected = f(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
185
- const { visualElement: i } = this.options;
186
- i && i.notify("LayoutMeasure", this.layout.layoutBox, t ? t.layoutBox : void 0);
187
- }
188
- updateScroll(t = "measure") {
189
- let i = !!(this.options.layoutScroll && this.instance);
190
- if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === t && (i = !1), i) {
191
- const s = c(this.instance);
192
- this.scroll = {
193
- animationId: this.root.animationId,
194
- phase: t,
195
- isRoot: s,
196
- offset: h(this.instance),
197
- wasRoot: this.scroll ? this.scroll.isRoot : s
198
- };
199
- }
200
- }
201
- resetTransform() {
202
- if (!v)
203
- return;
204
- const t = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, i = this.projectionDelta && !it(this.projectionDelta), s = this.getTransformTemplate(), o = s ? s(this.latestValues, "") : void 0, a = o !== this.prevTransformTemplateValue;
205
- t && (i || P(this.latestValues) || a) && (v(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
206
- }
207
- measure(t = !0) {
208
- const i = this.measurePageBox();
209
- let s = this.removeElementScroll(i);
210
- return t && (s = this.removeTransform(s)), Nt(s), {
211
- animationId: this.root.animationId,
212
- measuredBox: i,
213
- layoutBox: s,
214
- latestValues: {},
215
- source: this.id
216
- };
217
- }
218
- measurePageBox() {
219
- var t;
220
- const { visualElement: i } = this.options;
221
- if (!i)
222
- return f();
223
- const s = i.measureViewportBox();
224
- if (!(((t = this.scroll) === null || t === void 0 ? void 0 : t.wasRoot) || this.path.some(_t))) {
225
- const { scroll: a } = this.root;
226
- a && (L(s.x, a.offset.x), L(s.y, a.offset.y));
227
- }
228
- return s;
229
- }
230
- removeElementScroll(t) {
231
- var i;
232
- const s = f();
233
- if (y(s, t), !((i = this.scroll) === null || i === void 0) && i.wasRoot)
234
- return s;
235
- for (let o = 0; o < this.path.length; o++) {
236
- const a = this.path[o], { scroll: r, options: n } = a;
237
- a !== this.root && r && n.layoutScroll && (r.wasRoot && y(s, t), L(s.x, r.offset.x), L(s.y, r.offset.y));
238
- }
239
- return s;
240
- }
241
- applyTransform(t, i = !1) {
242
- const s = f();
243
- y(s, t);
244
- for (let o = 0; o < this.path.length; o++) {
245
- const a = this.path[o];
246
- !i && a.options.layoutScroll && a.scroll && a !== a.root && E(s, {
247
- x: -a.scroll.offset.x,
248
- y: -a.scroll.offset.y
249
- }), P(a.latestValues) && E(s, a.latestValues);
250
- }
251
- return P(this.latestValues) && E(s, this.latestValues), s;
252
- }
253
- removeTransform(t) {
254
- const i = f();
255
- y(i, t);
256
- for (let s = 0; s < this.path.length; s++) {
257
- const o = this.path[s];
258
- if (!o.instance || !P(o.latestValues))
259
- continue;
260
- G(o.latestValues) && o.updateSnapshot();
261
- const a = f(), r = o.measurePageBox();
262
- y(a, r), N(i, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
263
- }
264
- return P(this.latestValues) && N(i, this.latestValues), i;
265
- }
266
- setTargetDelta(t) {
267
- this.targetDelta = t, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
268
- }
269
- setOptions(t) {
270
- this.options = {
271
- ...this.options,
272
- ...t,
273
- crossfade: t.crossfade !== void 0 ? t.crossfade : !0
274
- };
275
- }
276
- clearMeasurements() {
277
- this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
278
- }
279
- forceRelativeParentToResolveTarget() {
280
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== g.timestamp && this.relativeParent.resolveTargetDelta(!0);
281
- }
282
- resolveTargetDelta(t = !1) {
283
- var i;
284
- const s = this.getLead();
285
- this.isProjectionDirty || (this.isProjectionDirty = s.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = s.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = s.isSharedProjectionDirty);
286
- const o = !!this.resumingFrom || this !== s;
287
- if (!(t || o && this.isSharedProjectionDirty || this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
288
- return;
289
- const { layout: r, layoutId: n } = this.options;
290
- if (!(!this.layout || !(r || n))) {
291
- if (this.resolvedRelativeTargetAt = g.timestamp, !this.targetDelta && !this.relativeTarget) {
292
- const u = this.getClosestProjectingParent();
293
- u && u.layout && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), V(this.relativeTargetOrigin, this.layout.layoutBox, u.layout.layoutBox), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
294
- }
295
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = f(), this.targetWithTransforms = f()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : y(this.target, this.layout.layoutBox), gt(this.target, this.targetDelta)) : y(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
296
- this.attemptToResolveRelativeTarget = !1;
297
- const u = this.getClosestProjectingParent();
298
- u && !!u.resumingFrom == !!this.resumingFrom && !u.options.layoutScroll && u.target && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), V(this.relativeTargetOrigin, this.target, u.target), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
299
- }
300
- }
301
- }
302
- getClosestProjectingParent() {
303
- if (!(!this.parent || G(this.parent.latestValues) || Bt(this.parent.latestValues)))
304
- return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
305
- }
306
- isProjecting() {
307
- return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
308
- }
309
- calcProjection() {
310
- var t;
311
- const i = this.getLead(), s = !!this.resumingFrom || this !== i;
312
- let o = !0;
313
- if ((this.isProjectionDirty || !((t = this.parent) === null || t === void 0) && t.isProjectionDirty) && (o = !1), s && (this.isSharedProjectionDirty || this.isTransformDirty) && (o = !1), this.resolvedRelativeTargetAt === g.timestamp && (o = !1), o)
314
- return;
315
- const { layout: a, layoutId: r } = this.options;
316
- if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(a || r))
317
- return;
318
- y(this.layoutCorrected, this.layout.layoutBox);
319
- const n = this.treeScale.x, u = this.treeScale.y;
320
- vt(this.layoutCorrected, this.treeScale, this.path, s), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = f());
321
- const { target: m } = i;
322
- if (!m) {
323
- this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
324
- return;
325
- }
326
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (z(this.prevProjectionDelta.x, this.projectionDelta.x), z(this.prevProjectionDelta.y, this.projectionDelta.y)), k(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== n || this.treeScale.y !== u || !_(this.projectionDelta.x, this.prevProjectionDelta.x) || !_(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m));
327
- }
328
- hide() {
329
- this.isVisible = !1;
330
- }
331
- show() {
332
- this.isVisible = !0;
333
- }
334
- scheduleRender(t = !0) {
335
- var i;
336
- if ((i = this.options.visualElement) === null || i === void 0 || i.scheduleRender(), t) {
337
- const s = this.getStack();
338
- s && s.scheduleRender();
339
- }
340
- this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
341
- }
342
- createProjectionDeltas() {
343
- this.prevProjectionDelta = A(), this.projectionDelta = A(), this.projectionDeltaWithTransform = A();
344
- }
345
- setAnimationOrigin(t, i = !1) {
346
- const s = this.snapshot, o = s ? s.latestValues : {}, a = { ...this.latestValues }, r = A();
347
- (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !i;
348
- const n = f(), u = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, d = u !== m, S = this.getStack(), x = !S || S.members.length <= 1, R = !!(d && !x && this.options.crossfade === !0 && !this.path.some(Mt));
349
- this.animationProgress = 0;
350
- let p;
351
- this.mixTargetDelta = (D) => {
352
- const T = D / 1e3;
353
- Z(r.x, t.x, T), Z(r.y, t.y, T), this.setTargetDelta(r), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (V(n, this.layout.layoutBox, this.relativeParent.layout.layoutBox), It(this.relativeTarget, this.relativeTargetOrigin, n, T), p && Dt(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = f()), y(p, this.relativeTarget)), d && (this.animationValues = a, yt(a, o, this.latestValues, T, R, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
354
- }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
355
- }
356
- startAnimation(t) {
357
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (M(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = U.update(() => {
358
- O.hasAnimatedSinceResize = !0, this.currentAnimation = nt(0, X, {
359
- ...t,
360
- onUpdate: (i) => {
361
- this.mixTargetDelta(i), t.onUpdate && t.onUpdate(i);
362
- },
363
- onStop: () => {
364
- },
365
- onComplete: () => {
366
- t.onComplete && t.onComplete(), this.completeAnimation();
367
- }
368
- }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
369
- });
370
- }
371
- completeAnimation() {
372
- this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
373
- const t = this.getStack();
374
- t && t.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
375
- }
376
- finishAnimation() {
377
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(X), this.currentAnimation.stop()), this.completeAnimation();
378
- }
379
- applyTransformsToTarget() {
380
- const t = this.getLead();
381
- let { targetWithTransforms: i, target: s, layout: o, latestValues: a } = t;
382
- if (!(!i || !s || !o)) {
383
- if (this !== t && this.layout && o && ot(this.options.animationType, this.layout.layoutBox, o.layoutBox)) {
384
- s = this.target || f();
385
- const r = B(this.layout.layoutBox.x);
386
- s.x.min = t.target.x.min, s.x.max = s.x.min + r;
387
- const n = B(this.layout.layoutBox.y);
388
- s.y.min = t.target.y.min, s.y.max = s.y.min + n;
389
- }
390
- y(i, s), E(i, a), k(this.projectionDeltaWithTransform, this.layoutCorrected, i, a);
391
- }
392
- }
393
- registerSharedNode(t, i) {
394
- this.sharedNodes.has(t) || this.sharedNodes.set(t, new St()), this.sharedNodes.get(t).add(i);
395
- const o = i.options.initialPromotionConfig;
396
- i.promote({
397
- transition: o ? o.transition : void 0,
398
- preserveFollowOpacity: o && o.shouldPreserveFollowOpacity ? o.shouldPreserveFollowOpacity(i) : void 0
399
- });
400
- }
401
- isLead() {
402
- const t = this.getStack();
403
- return t ? t.lead === this : !0;
404
- }
405
- getLead() {
406
- var t;
407
- const { layoutId: i } = this.options;
408
- return i ? ((t = this.getStack()) === null || t === void 0 ? void 0 : t.lead) || this : this;
409
- }
410
- getPrevLead() {
411
- var t;
412
- const { layoutId: i } = this.options;
413
- return i ? (t = this.getStack()) === null || t === void 0 ? void 0 : t.prevLead : void 0;
414
- }
415
- getStack() {
416
- const { layoutId: t } = this.options;
417
- if (t)
418
- return this.root.sharedNodes.get(t);
419
- }
420
- promote({ needsReset: t, transition: i, preserveFollowOpacity: s } = {}) {
421
- const o = this.getStack();
422
- o && o.promote(this, s), t && (this.projectionDelta = void 0, this.needsReset = !0), i && this.setOptions({ transition: i });
423
- }
424
- relegate() {
425
- const t = this.getStack();
426
- return t ? t.relegate(this) : !1;
427
- }
428
- resetSkewAndRotation() {
429
- const { visualElement: t } = this.options;
430
- if (!t)
431
- return;
432
- let i = !1;
433
- const { latestValues: s } = t;
434
- if ((s.z || s.rotate || s.rotateX || s.rotateY || s.rotateZ || s.skewX || s.skewY) && (i = !0), !i)
435
- return;
436
- const o = {};
437
- s.z && I("z", t, o, this.animationValues);
438
- for (let a = 0; a < b.length; a++)
439
- I(`rotate${b[a]}`, t, o, this.animationValues), I(`skew${b[a]}`, t, o, this.animationValues);
440
- t.render();
441
- for (const a in o)
442
- t.setStaticValue(a, o[a]), this.animationValues && (this.animationValues[a] = o[a]);
443
- t.scheduleRender();
444
- }
445
- getProjectionStyles(t) {
446
- var i, s;
447
- if (!this.instance || this.isSVG)
448
- return;
449
- if (!this.isVisible)
450
- return At;
451
- const o = {
452
- visibility: ""
453
- }, a = this.getTransformTemplate();
454
- if (this.needsReset)
455
- return this.needsReset = !1, o.opacity = "", o.pointerEvents = F(t == null ? void 0 : t.pointerEvents) || "", o.transform = a ? a(this.latestValues, "") : "none", o;
456
- const r = this.getLead();
457
- if (!this.projectionDelta || !this.layout || !r.target) {
458
- const d = {};
459
- return this.options.layoutId && (d.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, d.pointerEvents = F(t == null ? void 0 : t.pointerEvents) || ""), this.hasProjected && !P(this.latestValues) && (d.transform = a ? a({}, "") : "none", this.hasProjected = !1), d;
460
- }
461
- const n = r.animationValues || r.latestValues;
462
- this.applyTransformsToTarget(), o.transform = Pt(this.projectionDeltaWithTransform, this.treeScale, n), a && (o.transform = a(n, o.transform));
463
- const { x: u, y: m } = this.projectionDelta;
464
- o.transformOrigin = `${u.origin * 100}% ${m.origin * 100}% 0`, r.animationValues ? o.opacity = r === this ? (s = (i = n.opacity) !== null && i !== void 0 ? i : this.latestValues.opacity) !== null && s !== void 0 ? s : 1 : this.preserveOpacity ? this.latestValues.opacity : n.opacityExit : o.opacity = r === this ? n.opacity !== void 0 ? n.opacity : "" : n.opacityExit !== void 0 ? n.opacityExit : 0;
465
- for (const d in H) {
466
- if (n[d] === void 0)
467
- continue;
468
- const { correct: S, applyTo: x, isCSSVariable: R } = H[d], p = o.transform === "none" ? n[d] : S(n[d], r);
469
- if (x) {
470
- const D = x.length;
471
- for (let T = 0; T < D; T++)
472
- o[x[T]] = p;
473
- } else
474
- R ? this.options.visualElement.renderState.vars[d] = p : o[d] = p;
475
- }
476
- return this.options.layoutId && (o.pointerEvents = r === this ? F(t == null ? void 0 : t.pointerEvents) || "" : "none"), o;
477
- }
478
- clearSnapshot() {
479
- this.resumeFrom = this.snapshot = void 0;
480
- }
481
- // Only run on root
482
- resetTree() {
483
- this.root.nodes.forEach((t) => {
484
- var i;
485
- return (i = t.currentAnimation) === null || i === void 0 ? void 0 : i.stop();
486
- }), this.root.nodes.forEach(Y), this.root.sharedNodes.clear();
487
- }
488
- };
489
- }
490
- function Rt(e) {
491
- e.updateLayout();
492
- }
493
- function Vt(e) {
494
- var l;
495
- const h = ((l = e.resumeFrom) === null || l === void 0 ? void 0 : l.snapshot) || e.snapshot;
496
- if (e.isLead() && e.layout && h && e.hasListeners("didUpdate")) {
497
- const { layoutBox: c, measuredBox: v } = e.layout, { animationType: j } = e.options, t = h.source !== e.layout.source;
498
- j === "size" ? q((r) => {
499
- const n = t ? h.measuredBox[r] : h.layoutBox[r], u = B(n);
500
- n.min = c[r].min, n.max = n.min + u;
501
- }) : ot(j, h.layoutBox, c) && q((r) => {
502
- const n = t ? h.measuredBox[r] : h.layoutBox[r], u = B(c[r]);
503
- n.max = n.min + u, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + u);
504
- });
505
- const i = A();
506
- k(i, c, h.layoutBox);
507
- const s = A();
508
- t ? k(s, e.applyTransform(v, !0), h.measuredBox) : k(s, c, h.layoutBox);
509
- const o = !it(i);
510
- let a = !1;
511
- if (!e.resumeFrom) {
512
- const r = e.getClosestProjectingParent();
513
- if (r && !r.resumeFrom) {
514
- const { snapshot: n, layout: u } = r;
515
- if (n && u) {
516
- const m = f();
517
- V(m, h.layoutBox, n.layoutBox);
518
- const d = f();
519
- V(d, c, u.layoutBox), et(m, d) || (a = !0), r.options.layoutRoot && (e.relativeTarget = d, e.relativeTargetOrigin = m, e.relativeParent = r);
520
- }
521
- }
522
- }
523
- e.notifyListeners("didUpdate", {
524
- layout: c,
525
- snapshot: h,
526
- delta: s,
527
- layoutDelta: i,
528
- hasLayoutChanged: o,
529
- hasRelativeLayoutChanged: a
530
- });
531
- } else if (e.isLead()) {
532
- const { onExitComplete: c } = e.options;
533
- c && c();
534
- }
535
- e.options.transition = void 0;
536
- }
537
- function kt(e) {
538
- e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
539
- }
540
- function Lt(e) {
541
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
542
- }
543
- function Et(e) {
544
- e.clearSnapshot();
545
- }
546
- function Y(e) {
547
- e.clearMeasurements();
548
- }
549
- function Ut(e) {
550
- e.isLayoutDirty = !1;
551
- }
552
- function wt(e) {
553
- const { visualElement: l } = e.options;
554
- l && l.getProps().onBeforeLayoutMeasure && l.notify("BeforeLayoutMeasure"), e.resetTransform();
555
- }
556
- function $(e) {
557
- e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
558
- }
559
- function Ct(e) {
560
- e.resolveTargetDelta();
561
- }
562
- function Ft(e) {
563
- e.calcProjection();
564
- }
565
- function Ot(e) {
566
- e.resetSkewAndRotation();
567
- }
568
- function bt(e) {
569
- e.removeLeadSnapshot();
570
- }
571
- function Z(e, l, h) {
572
- e.translate = w(l.translate, 0, h), e.scale = w(l.scale, 1, h), e.origin = l.origin, e.originPoint = l.originPoint;
573
- }
574
- function J(e, l, h, c) {
575
- e.min = w(l.min, h.min, c), e.max = w(l.max, h.max, c);
576
- }
577
- function It(e, l, h, c) {
578
- J(e.x, l.x, h.x, c), J(e.y, l.y, h.y, c);
579
- }
580
- function Mt(e) {
581
- return e.animationValues && e.animationValues.opacityExit !== void 0;
582
- }
583
- const zt = {
584
- duration: 0.45,
585
- ease: [0.4, 0, 0.1, 1]
586
- }, K = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Q = K("applewebkit/") && !K("chrome/") ? Math.round : at;
587
- function tt(e) {
588
- e.min = Q(e.min), e.max = Q(e.max);
589
- }
590
- function Nt(e) {
591
- tt(e.x), tt(e.y);
592
- }
593
- function ot(e, l, h) {
594
- return e === "position" || e === "preserve-aspect" && !xt(W(l), W(h), 0.2);
595
- }
596
- function _t(e) {
597
- var l;
598
- return e !== e.root && ((l = e.scroll) === null || l === void 0 ? void 0 : l.wasRoot);
599
- }
1
+ import { createProjectionNode as t } from "./snorre.es763.js";
2
+ import { addDomEvent as c } from "./snorre.es725.js";
3
+ const l = t({
4
+ attachResizeListener: (o, e) => c(o, "resize", e),
5
+ measureScroll: () => ({
6
+ x: document.documentElement.scrollLeft || document.body.scrollLeft,
7
+ y: document.documentElement.scrollTop || document.body.scrollTop
8
+ }),
9
+ checkIsScrollRoot: () => !0
10
+ });
600
11
  export {
601
- Lt as cleanDirtyNodes,
602
- ge as createProjectionNode,
603
- J as mixAxis,
604
- Z as mixAxisDelta,
605
- It as mixBox,
606
- kt as propagateDirtyNodes
12
+ l as DocumentProjectionNode
607
13
  };
@@ -1,13 +1,8 @@
1
- import { createProjectionNode as t } from "./snorre.es764.js";
2
- import { addDomEvent as c } from "./snorre.es725.js";
3
- const l = t({
4
- attachResizeListener: (o, e) => c(o, "resize", e),
5
- measureScroll: () => ({
6
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
7
- y: document.documentElement.scrollTop || document.body.scrollTop
8
- }),
9
- checkIsScrollRoot: () => !0
10
- });
1
+ import { css as o } from "@emotion/react";
2
+ const e = o`
3
+ outline: 1px dotted #212121;
4
+ outline: 5px auto -webkit-focus-ring-color;
5
+ `;
11
6
  export {
12
- l as DocumentProjectionNode
7
+ e as defaultOutline
13
8
  };