@performant-software/core-data 2.1.0-beta.4 → 2.1.0-beta.6

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 (883) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs103.js +1 -1
  3. package/dist/index.cjs106.js +1 -1
  4. package/dist/index.cjs108.js +1 -1
  5. package/dist/index.cjs110.js +1 -1
  6. package/dist/index.cjs110.js.map +1 -1
  7. package/dist/index.cjs111.js +1 -1
  8. package/dist/index.cjs111.js.map +1 -1
  9. package/dist/index.cjs112.js +1 -1
  10. package/dist/index.cjs112.js.map +1 -1
  11. package/dist/index.cjs113.js +1 -1
  12. package/dist/index.cjs113.js.map +1 -1
  13. package/dist/index.cjs114.js +1 -1
  14. package/dist/index.cjs114.js.map +1 -1
  15. package/dist/index.cjs115.js +1 -1
  16. package/dist/index.cjs115.js.map +1 -1
  17. package/dist/index.cjs116.js +1 -1
  18. package/dist/index.cjs116.js.map +1 -1
  19. package/dist/index.cjs118.js +1 -1
  20. package/dist/index.cjs122.js +1 -1
  21. package/dist/index.cjs123.js +1 -1
  22. package/dist/index.cjs134.js +1 -1
  23. package/dist/index.cjs135.js +1 -1
  24. package/dist/index.cjs137.js +1 -1
  25. package/dist/index.cjs143.js +1 -1
  26. package/dist/index.cjs144.js +1 -1
  27. package/dist/index.cjs145.js +1 -1
  28. package/dist/index.cjs146.js +1 -1
  29. package/dist/index.cjs147.js +1 -1
  30. package/dist/index.cjs148.js +1 -1
  31. package/dist/index.cjs149.js +1 -1
  32. package/dist/index.cjs150.js +1 -1
  33. package/dist/index.cjs151.js +1 -1
  34. package/dist/index.cjs152.js +1 -1
  35. package/dist/index.cjs26.js +1 -1
  36. package/dist/index.cjs262.js +6 -1
  37. package/dist/index.cjs262.js.map +1 -1
  38. package/dist/index.cjs263.js +6 -1
  39. package/dist/index.cjs263.js.map +1 -1
  40. package/dist/index.cjs264.js +1 -1
  41. package/dist/index.cjs264.js.map +1 -1
  42. package/dist/index.cjs265.js +1 -1
  43. package/dist/index.cjs265.js.map +1 -1
  44. package/dist/index.cjs266.js +1 -1
  45. package/dist/index.cjs266.js.map +1 -1
  46. package/dist/index.cjs267.js +1 -1
  47. package/dist/index.cjs267.js.map +1 -1
  48. package/dist/index.cjs268.js +1 -1
  49. package/dist/index.cjs268.js.map +1 -1
  50. package/dist/index.cjs269.js +1 -6
  51. package/dist/index.cjs269.js.map +1 -1
  52. package/dist/index.cjs27.js +1 -1
  53. package/dist/index.cjs270.js +1 -6
  54. package/dist/index.cjs270.js.map +1 -1
  55. package/dist/index.cjs271.js +1 -1
  56. package/dist/index.cjs271.js.map +1 -1
  57. package/dist/index.cjs272.js +1 -1
  58. package/dist/index.cjs272.js.map +1 -1
  59. package/dist/index.cjs273.js +1 -1
  60. package/dist/index.cjs273.js.map +1 -1
  61. package/dist/index.cjs274.js +1 -1
  62. package/dist/index.cjs274.js.map +1 -1
  63. package/dist/index.cjs275.js +1 -1
  64. package/dist/index.cjs275.js.map +1 -1
  65. package/dist/index.cjs276.js +1 -1
  66. package/dist/index.cjs276.js.map +1 -1
  67. package/dist/index.cjs277.js +1 -1
  68. package/dist/index.cjs277.js.map +1 -1
  69. package/dist/index.cjs278.js +1 -1
  70. package/dist/index.cjs278.js.map +1 -1
  71. package/dist/index.cjs281.js +1 -1
  72. package/dist/index.cjs282.js +1 -6
  73. package/dist/index.cjs282.js.map +1 -1
  74. package/dist/index.cjs283.js +1 -1
  75. package/dist/index.cjs283.js.map +1 -1
  76. package/dist/index.cjs284.js +1 -1
  77. package/dist/index.cjs284.js.map +1 -1
  78. package/dist/index.cjs285.js +6 -1
  79. package/dist/index.cjs285.js.map +1 -1
  80. package/dist/index.cjs286.js +1 -1
  81. package/dist/index.cjs286.js.map +1 -1
  82. package/dist/index.cjs287.js +1 -1
  83. package/dist/index.cjs287.js.map +1 -1
  84. package/dist/index.cjs288.js +1 -1
  85. package/dist/index.cjs288.js.map +1 -1
  86. package/dist/index.cjs289.js +1 -1
  87. package/dist/index.cjs289.js.map +1 -1
  88. package/dist/index.cjs290.js +1 -1
  89. package/dist/index.cjs290.js.map +1 -1
  90. package/dist/index.cjs291.js +1 -1
  91. package/dist/index.cjs291.js.map +1 -1
  92. package/dist/index.cjs292.js +1 -1
  93. package/dist/index.cjs292.js.map +1 -1
  94. package/dist/index.cjs293.js +1 -1
  95. package/dist/index.cjs293.js.map +1 -1
  96. package/dist/index.cjs294.js +1 -2
  97. package/dist/index.cjs294.js.map +1 -1
  98. package/dist/index.cjs295.js +1 -4
  99. package/dist/index.cjs295.js.map +1 -1
  100. package/dist/index.cjs296.js +1 -2
  101. package/dist/index.cjs296.js.map +1 -1
  102. package/dist/index.cjs297.js +2 -1
  103. package/dist/index.cjs297.js.map +1 -1
  104. package/dist/index.cjs298.js +4 -1
  105. package/dist/index.cjs298.js.map +1 -1
  106. package/dist/index.cjs299.js +2 -2
  107. package/dist/index.cjs299.js.map +1 -1
  108. package/dist/index.cjs300.js +1 -1
  109. package/dist/index.cjs300.js.map +1 -1
  110. package/dist/index.cjs301.js +1 -1
  111. package/dist/index.cjs301.js.map +1 -1
  112. package/dist/index.cjs302.js +2 -1
  113. package/dist/index.cjs302.js.map +1 -1
  114. package/dist/index.cjs303.js +1 -1
  115. package/dist/index.cjs303.js.map +1 -1
  116. package/dist/index.cjs304.js +1 -1
  117. package/dist/index.cjs304.js.map +1 -1
  118. package/dist/index.cjs305.js +1 -1
  119. package/dist/index.cjs305.js.map +1 -1
  120. package/dist/index.cjs306.js +1 -1
  121. package/dist/index.cjs306.js.map +1 -1
  122. package/dist/index.cjs307.js +1 -1
  123. package/dist/index.cjs307.js.map +1 -1
  124. package/dist/index.cjs309.js +1 -1
  125. package/dist/index.cjs309.js.map +1 -1
  126. package/dist/index.cjs310.js +1 -1
  127. package/dist/index.cjs311.js +1 -1
  128. package/dist/index.cjs312.js +1 -1
  129. package/dist/index.cjs312.js.map +1 -1
  130. package/dist/index.cjs313.js +1 -1
  131. package/dist/index.cjs313.js.map +1 -1
  132. package/dist/index.cjs314.js +1 -1
  133. package/dist/index.cjs314.js.map +1 -1
  134. package/dist/index.cjs316.js +1 -1
  135. package/dist/index.cjs316.js.map +1 -1
  136. package/dist/index.cjs317.js +1 -1
  137. package/dist/index.cjs317.js.map +1 -1
  138. package/dist/index.cjs318.js +1 -1
  139. package/dist/index.cjs318.js.map +1 -1
  140. package/dist/index.cjs319.js +1 -1
  141. package/dist/index.cjs319.js.map +1 -1
  142. package/dist/index.cjs320.js +1 -1
  143. package/dist/index.cjs320.js.map +1 -1
  144. package/dist/index.cjs321.js +1 -1
  145. package/dist/index.cjs321.js.map +1 -1
  146. package/dist/index.cjs322.js +1 -1
  147. package/dist/index.cjs322.js.map +1 -1
  148. package/dist/index.cjs323.js +1 -1
  149. package/dist/index.cjs323.js.map +1 -1
  150. package/dist/index.cjs324.js +1 -1
  151. package/dist/index.cjs324.js.map +1 -1
  152. package/dist/index.cjs325.js +1 -1
  153. package/dist/index.cjs325.js.map +1 -1
  154. package/dist/index.cjs326.js +1 -1
  155. package/dist/index.cjs326.js.map +1 -1
  156. package/dist/index.cjs354.js +1 -1
  157. package/dist/index.cjs356.js +1 -1
  158. package/dist/index.cjs358.js +1 -1
  159. package/dist/index.cjs359.js +1 -1
  160. package/dist/index.cjs360.js +1 -1
  161. package/dist/index.cjs360.js.map +1 -1
  162. package/dist/index.cjs361.js +1 -1
  163. package/dist/index.cjs361.js.map +1 -1
  164. package/dist/index.cjs362.js +1 -1
  165. package/dist/index.cjs362.js.map +1 -1
  166. package/dist/index.cjs363.js +1 -1
  167. package/dist/index.cjs363.js.map +1 -1
  168. package/dist/index.cjs364.js +1 -2
  169. package/dist/index.cjs364.js.map +1 -1
  170. package/dist/index.cjs365.js +1 -1
  171. package/dist/index.cjs365.js.map +1 -1
  172. package/dist/index.cjs366.js +1 -1
  173. package/dist/index.cjs366.js.map +1 -1
  174. package/dist/index.cjs367.js +2 -1
  175. package/dist/index.cjs367.js.map +1 -1
  176. package/dist/index.cjs368.js +1 -1
  177. package/dist/index.cjs368.js.map +1 -1
  178. package/dist/index.cjs369.js +1 -1
  179. package/dist/index.cjs369.js.map +1 -1
  180. package/dist/index.cjs370.js +1 -1
  181. package/dist/index.cjs370.js.map +1 -1
  182. package/dist/index.cjs371.js +1 -1
  183. package/dist/index.cjs371.js.map +1 -1
  184. package/dist/index.cjs372.js +1 -1
  185. package/dist/index.cjs372.js.map +1 -1
  186. package/dist/index.cjs373.js +1 -1
  187. package/dist/index.cjs373.js.map +1 -1
  188. package/dist/index.cjs378.js +1 -1
  189. package/dist/index.cjs379.js +1 -1
  190. package/dist/index.cjs379.js.map +1 -1
  191. package/dist/index.cjs380.js +1 -1
  192. package/dist/index.cjs381.js +1 -1
  193. package/dist/index.cjs381.js.map +1 -1
  194. package/dist/index.cjs382.js +1 -5
  195. package/dist/index.cjs382.js.map +1 -1
  196. package/dist/index.cjs383.js +1 -1
  197. package/dist/index.cjs383.js.map +1 -1
  198. package/dist/index.cjs384.js +5 -1
  199. package/dist/index.cjs384.js.map +1 -1
  200. package/dist/index.cjs385.js +1 -1
  201. package/dist/index.cjs385.js.map +1 -1
  202. package/dist/index.cjs386.js +1 -12
  203. package/dist/index.cjs386.js.map +1 -1
  204. package/dist/index.cjs387.js +1 -1
  205. package/dist/index.cjs387.js.map +1 -1
  206. package/dist/index.cjs388.js +12 -1
  207. package/dist/index.cjs388.js.map +1 -1
  208. package/dist/index.cjs389.js +1 -1
  209. package/dist/index.cjs389.js.map +1 -1
  210. package/dist/index.cjs390.js +1 -1
  211. package/dist/index.cjs390.js.map +1 -1
  212. package/dist/index.cjs391.js +1 -1
  213. package/dist/index.cjs391.js.map +1 -1
  214. package/dist/index.cjs392.js +1 -1
  215. package/dist/index.cjs392.js.map +1 -1
  216. package/dist/index.cjs393.js +1 -1
  217. package/dist/index.cjs393.js.map +1 -1
  218. package/dist/index.cjs394.js +1 -1
  219. package/dist/index.cjs394.js.map +1 -1
  220. package/dist/index.cjs395.js +1 -1
  221. package/dist/index.cjs395.js.map +1 -1
  222. package/dist/index.cjs396.js +1 -1
  223. package/dist/index.cjs396.js.map +1 -1
  224. package/dist/index.cjs397.js +1 -1
  225. package/dist/index.cjs397.js.map +1 -1
  226. package/dist/index.cjs398.js +1 -1
  227. package/dist/index.cjs398.js.map +1 -1
  228. package/dist/index.cjs399.js +1 -1
  229. package/dist/index.cjs399.js.map +1 -1
  230. package/dist/index.cjs400.js +1 -1
  231. package/dist/index.cjs400.js.map +1 -1
  232. package/dist/index.cjs401.js +1 -1
  233. package/dist/index.cjs401.js.map +1 -1
  234. package/dist/index.cjs402.js +1 -1
  235. package/dist/index.cjs402.js.map +1 -1
  236. package/dist/index.cjs403.js +1 -1
  237. package/dist/index.cjs403.js.map +1 -1
  238. package/dist/index.cjs404.js +1 -1
  239. package/dist/index.cjs404.js.map +1 -1
  240. package/dist/index.cjs405.js +1 -1
  241. package/dist/index.cjs405.js.map +1 -1
  242. package/dist/index.cjs406.js +1 -1
  243. package/dist/index.cjs406.js.map +1 -1
  244. package/dist/index.cjs407.js +1 -1
  245. package/dist/index.cjs407.js.map +1 -1
  246. package/dist/index.cjs408.js +1 -1
  247. package/dist/index.cjs408.js.map +1 -1
  248. package/dist/index.cjs409.js +1 -1
  249. package/dist/index.cjs409.js.map +1 -1
  250. package/dist/index.cjs410.js +1 -1
  251. package/dist/index.cjs410.js.map +1 -1
  252. package/dist/index.cjs411.js +1 -1
  253. package/dist/index.cjs411.js.map +1 -1
  254. package/dist/index.cjs412.js +1 -1
  255. package/dist/index.cjs412.js.map +1 -1
  256. package/dist/index.cjs413.js +1 -1
  257. package/dist/index.cjs413.js.map +1 -1
  258. package/dist/index.cjs414.js +1 -1
  259. package/dist/index.cjs414.js.map +1 -1
  260. package/dist/index.cjs415.js +1 -1
  261. package/dist/index.cjs415.js.map +1 -1
  262. package/dist/index.cjs416.js +1 -1
  263. package/dist/index.cjs416.js.map +1 -1
  264. package/dist/index.cjs417.js +1 -1
  265. package/dist/index.cjs417.js.map +1 -1
  266. package/dist/index.cjs418.js +1 -1
  267. package/dist/index.cjs418.js.map +1 -1
  268. package/dist/index.cjs419.js +1 -1
  269. package/dist/index.cjs419.js.map +1 -1
  270. package/dist/index.cjs420.js +1 -1
  271. package/dist/index.cjs420.js.map +1 -1
  272. package/dist/index.cjs421.js +1 -1
  273. package/dist/index.cjs421.js.map +1 -1
  274. package/dist/index.cjs422.js +1 -1
  275. package/dist/index.cjs422.js.map +1 -1
  276. package/dist/index.cjs423.js +1 -1
  277. package/dist/index.cjs423.js.map +1 -1
  278. package/dist/index.cjs424.js +1 -1
  279. package/dist/index.cjs424.js.map +1 -1
  280. package/dist/index.cjs425.js +1 -1
  281. package/dist/index.cjs425.js.map +1 -1
  282. package/dist/index.cjs426.js +1 -1
  283. package/dist/index.cjs426.js.map +1 -1
  284. package/dist/index.cjs427.js +1 -1
  285. package/dist/index.cjs427.js.map +1 -1
  286. package/dist/index.cjs428.js +1 -1
  287. package/dist/index.cjs428.js.map +1 -1
  288. package/dist/index.cjs429.js +1 -1
  289. package/dist/index.cjs429.js.map +1 -1
  290. package/dist/index.cjs430.js +1 -2
  291. package/dist/index.cjs430.js.map +1 -1
  292. package/dist/index.cjs431.js +1 -1
  293. package/dist/index.cjs431.js.map +1 -1
  294. package/dist/index.cjs432.js +1 -1
  295. package/dist/index.cjs432.js.map +1 -1
  296. package/dist/index.cjs433.js +2 -1
  297. package/dist/index.cjs433.js.map +1 -1
  298. package/dist/index.cjs434.js +1 -2
  299. package/dist/index.cjs434.js.map +1 -1
  300. package/dist/index.cjs435.js +1 -1
  301. package/dist/index.cjs435.js.map +1 -1
  302. package/dist/index.cjs436.js +1 -1
  303. package/dist/index.cjs436.js.map +1 -1
  304. package/dist/index.cjs437.js +2 -1
  305. package/dist/index.cjs437.js.map +1 -1
  306. package/dist/index.cjs438.js +1 -1
  307. package/dist/index.cjs438.js.map +1 -1
  308. package/dist/index.cjs442.js +38 -1
  309. package/dist/index.cjs442.js.map +1 -1
  310. package/dist/index.cjs443.js +1 -38
  311. package/dist/index.cjs443.js.map +1 -1
  312. package/dist/index.cjs444.js +1 -1
  313. package/dist/index.cjs444.js.map +1 -1
  314. package/dist/index.cjs445.js +1 -1
  315. package/dist/index.cjs445.js.map +1 -1
  316. package/dist/index.cjs446.js +1 -1
  317. package/dist/index.cjs446.js.map +1 -1
  318. package/dist/index.cjs447.js +1 -1
  319. package/dist/index.cjs447.js.map +1 -1
  320. package/dist/index.cjs448.js +1 -1
  321. package/dist/index.cjs448.js.map +1 -1
  322. package/dist/index.cjs449.js +1 -1
  323. package/dist/index.cjs449.js.map +1 -1
  324. package/dist/index.cjs450.js +1 -1
  325. package/dist/index.cjs450.js.map +1 -1
  326. package/dist/index.cjs451.js +1 -1
  327. package/dist/index.cjs451.js.map +1 -1
  328. package/dist/index.cjs452.js +1 -1
  329. package/dist/index.cjs452.js.map +1 -1
  330. package/dist/index.cjs454.js +1 -1
  331. package/dist/index.cjs454.js.map +1 -1
  332. package/dist/index.cjs458.js +1 -1
  333. package/dist/index.cjs458.js.map +1 -1
  334. package/dist/index.cjs459.js +1 -1
  335. package/dist/index.cjs460.js +1 -1
  336. package/dist/index.cjs460.js.map +1 -1
  337. package/dist/index.cjs461.js +1 -1
  338. package/dist/index.cjs461.js.map +1 -1
  339. package/dist/index.cjs463.js +1 -1
  340. package/dist/index.cjs464.js +1 -1
  341. package/dist/index.cjs464.js.map +1 -1
  342. package/dist/index.cjs465.js +1 -1
  343. package/dist/index.cjs467.js +1 -1
  344. package/dist/index.cjs467.js.map +1 -1
  345. package/dist/index.cjs469.js +1 -1
  346. package/dist/index.cjs469.js.map +1 -1
  347. package/dist/index.cjs470.js +1 -1
  348. package/dist/index.cjs471.js +1 -1
  349. package/dist/index.cjs471.js.map +1 -1
  350. package/dist/index.cjs473.js +1 -1
  351. package/dist/index.cjs473.js.map +1 -1
  352. package/dist/index.cjs474.js +1 -1
  353. package/dist/index.cjs474.js.map +1 -1
  354. package/dist/index.cjs475.js +1 -1
  355. package/dist/index.cjs476.js +1 -1
  356. package/dist/index.cjs476.js.map +1 -1
  357. package/dist/index.cjs477.js +1 -1
  358. package/dist/index.cjs477.js.map +1 -1
  359. package/dist/index.cjs478.js +1 -1
  360. package/dist/index.cjs478.js.map +1 -1
  361. package/dist/index.cjs480.js +1 -7
  362. package/dist/index.cjs480.js.map +1 -1
  363. package/dist/index.cjs481.js +1 -1
  364. package/dist/index.cjs481.js.map +1 -1
  365. package/dist/index.cjs482.js +1 -1
  366. package/dist/index.cjs482.js.map +1 -1
  367. package/dist/index.cjs483.js +7 -1
  368. package/dist/index.cjs483.js.map +1 -1
  369. package/dist/index.cjs484.js +1 -1
  370. package/dist/index.cjs484.js.map +1 -1
  371. package/dist/index.cjs485.js +1 -1
  372. package/dist/index.cjs485.js.map +1 -1
  373. package/dist/index.cjs486.js +1 -1
  374. package/dist/index.cjs486.js.map +1 -1
  375. package/dist/index.cjs487.js +1 -1
  376. package/dist/index.cjs487.js.map +1 -1
  377. package/dist/index.cjs488.js +1 -1
  378. package/dist/index.cjs488.js.map +1 -1
  379. package/dist/index.cjs497.js +1 -1
  380. package/dist/index.cjs497.js.map +1 -1
  381. package/dist/index.cjs498.js +1 -1
  382. package/dist/index.cjs498.js.map +1 -1
  383. package/dist/index.cjs499.js +1 -1
  384. package/dist/index.cjs500.js +1 -1
  385. package/dist/index.cjs500.js.map +1 -1
  386. package/dist/index.cjs501.js +1 -1
  387. package/dist/index.cjs501.js.map +1 -1
  388. package/dist/index.cjs502.js +1 -1
  389. package/dist/index.cjs503.js +1 -1
  390. package/dist/index.cjs503.js.map +1 -1
  391. package/dist/index.cjs504.js +1 -1
  392. package/dist/index.cjs505.js +1 -1
  393. package/dist/index.cjs506.js +1 -1
  394. package/dist/index.cjs507.js +1 -1
  395. package/dist/index.cjs508.js +1 -1
  396. package/dist/index.cjs509.js +1 -1
  397. package/dist/index.cjs509.js.map +1 -1
  398. package/dist/index.cjs514.js +1 -1
  399. package/dist/index.cjs519.js +1 -1
  400. package/dist/index.cjs519.js.map +1 -1
  401. package/dist/index.cjs520.js +1 -1
  402. package/dist/index.cjs522.js +1 -1
  403. package/dist/index.cjs522.js.map +1 -1
  404. package/dist/index.cjs528.js +1 -1
  405. package/dist/index.cjs531.js +1 -1
  406. package/dist/index.cjs531.js.map +1 -1
  407. package/dist/index.cjs532.js +1 -1
  408. package/dist/index.cjs532.js.map +1 -1
  409. package/dist/index.cjs533.js +1 -1
  410. package/dist/index.cjs533.js.map +1 -1
  411. package/dist/index.cjs534.js +1 -1
  412. package/dist/index.cjs534.js.map +1 -1
  413. package/dist/index.cjs61.js +1 -1
  414. package/dist/index.cjs62.js +1 -1
  415. package/dist/index.cjs63.js +1 -1
  416. package/dist/index.cjs65.js +1 -1
  417. package/dist/index.cjs66.js +1 -1
  418. package/dist/index.cjs68.js +1 -1
  419. package/dist/index.cjs69.js +1 -1
  420. package/dist/index.cjs70.js +1 -1
  421. package/dist/index.cjs71.js +1 -1
  422. package/dist/index.cjs74.js +1 -1
  423. package/dist/index.cjs82.js +1 -1
  424. package/dist/index.cjs83.js +1 -1
  425. package/dist/index.cjs84.js +1 -1
  426. package/dist/index.cjs85.js +1 -1
  427. package/dist/index.cjs87.js +1 -1
  428. package/dist/index.cjs90.js +1 -1
  429. package/dist/index.cjs94.js +1 -1
  430. package/dist/index.cjs97.js +1 -1
  431. package/dist/index.es100.js +1 -1
  432. package/dist/index.es103.js +4 -4
  433. package/dist/index.es106.js +3 -3
  434. package/dist/index.es108.js +1 -1
  435. package/dist/index.es110.js +1556 -55
  436. package/dist/index.es110.js.map +1 -1
  437. package/dist/index.es111.js +33 -7
  438. package/dist/index.es111.js.map +1 -1
  439. package/dist/index.es112.js +3 -1558
  440. package/dist/index.es112.js.map +1 -1
  441. package/dist/index.es113.js +14 -33
  442. package/dist/index.es113.js.map +1 -1
  443. package/dist/index.es114.js +15 -4
  444. package/dist/index.es114.js.map +1 -1
  445. package/dist/index.es115.js +56 -12
  446. package/dist/index.es115.js.map +1 -1
  447. package/dist/index.es116.js +6 -14
  448. package/dist/index.es116.js.map +1 -1
  449. package/dist/index.es118.js +8 -8
  450. package/dist/index.es122.js +1 -1
  451. package/dist/index.es123.js +18 -18
  452. package/dist/index.es134.js +3 -3
  453. package/dist/index.es135.js +1 -1
  454. package/dist/index.es137.js +2 -2
  455. package/dist/index.es143.js +1 -1
  456. package/dist/index.es144.js +1 -1
  457. package/dist/index.es145.js +1 -1
  458. package/dist/index.es146.js +1 -1
  459. package/dist/index.es147.js +2 -2
  460. package/dist/index.es148.js +1 -1
  461. package/dist/index.es149.js +4 -4
  462. package/dist/index.es150.js +2 -2
  463. package/dist/index.es151.js +6 -6
  464. package/dist/index.es152.js +2 -2
  465. package/dist/index.es26.js +1 -1
  466. package/dist/index.es262.js +39 -27
  467. package/dist/index.es262.js.map +1 -1
  468. package/dist/index.es263.js +17 -28
  469. package/dist/index.es263.js.map +1 -1
  470. package/dist/index.es264.js +28 -5
  471. package/dist/index.es264.js.map +1 -1
  472. package/dist/index.es265.js +29 -6
  473. package/dist/index.es265.js.map +1 -1
  474. package/dist/index.es266.js +5 -4
  475. package/dist/index.es266.js.map +1 -1
  476. package/dist/index.es267.js +4 -8
  477. package/dist/index.es267.js.map +1 -1
  478. package/dist/index.es268.js +7 -6
  479. package/dist/index.es268.js.map +1 -1
  480. package/dist/index.es269.js +7 -40
  481. package/dist/index.es269.js.map +1 -1
  482. package/dist/index.es27.js +1 -1
  483. package/dist/index.es270.js +10 -17
  484. package/dist/index.es270.js.map +1 -1
  485. package/dist/index.es271.js +9 -260
  486. package/dist/index.es271.js.map +1 -1
  487. package/dist/index.es272.js +7 -85
  488. package/dist/index.es272.js.map +1 -1
  489. package/dist/index.es273.js +14 -339
  490. package/dist/index.es273.js.map +1 -1
  491. package/dist/index.es274.js +263 -12
  492. package/dist/index.es274.js.map +1 -1
  493. package/dist/index.es275.js +83 -45
  494. package/dist/index.es275.js.map +1 -1
  495. package/dist/index.es276.js +339 -4
  496. package/dist/index.es276.js.map +1 -1
  497. package/dist/index.es277.js +12 -4
  498. package/dist/index.es277.js.map +1 -1
  499. package/dist/index.es278.js +47 -4
  500. package/dist/index.es278.js.map +1 -1
  501. package/dist/index.es280.js +2 -2
  502. package/dist/index.es281.js +2 -2
  503. package/dist/index.es282.js +2 -43
  504. package/dist/index.es282.js.map +1 -1
  505. package/dist/index.es283.js +2 -13
  506. package/dist/index.es283.js.map +1 -1
  507. package/dist/index.es284.js +2 -349
  508. package/dist/index.es284.js.map +1 -1
  509. package/dist/index.es285.js +39 -220
  510. package/dist/index.es285.js.map +1 -1
  511. package/dist/index.es286.js +10 -36
  512. package/dist/index.es286.js.map +1 -1
  513. package/dist/index.es287.js +348 -7
  514. package/dist/index.es287.js.map +1 -1
  515. package/dist/index.es288.js +221 -38
  516. package/dist/index.es288.js.map +1 -1
  517. package/dist/index.es289.js +36 -16
  518. package/dist/index.es289.js.map +1 -1
  519. package/dist/index.es290.js +6 -18
  520. package/dist/index.es290.js.map +1 -1
  521. package/dist/index.es291.js +39 -8
  522. package/dist/index.es291.js.map +1 -1
  523. package/dist/index.es292.js +16 -14
  524. package/dist/index.es292.js.map +1 -1
  525. package/dist/index.es293.js +16 -20
  526. package/dist/index.es293.js.map +1 -1
  527. package/dist/index.es294.js +8 -131
  528. package/dist/index.es294.js.map +1 -1
  529. package/dist/index.es295.js +15 -18
  530. package/dist/index.es295.js.map +1 -1
  531. package/dist/index.es296.js +23 -18
  532. package/dist/index.es296.js.map +1 -1
  533. package/dist/index.es297.js +129 -15
  534. package/dist/index.es297.js.map +1 -1
  535. package/dist/index.es298.js +18 -33
  536. package/dist/index.es298.js.map +1 -1
  537. package/dist/index.es299.js +18 -217
  538. package/dist/index.es299.js.map +1 -1
  539. package/dist/index.es300.js +19 -11
  540. package/dist/index.es300.js.map +1 -1
  541. package/dist/index.es301.js +33 -8
  542. package/dist/index.es301.js.map +1 -1
  543. package/dist/index.es302.js +217 -4
  544. package/dist/index.es302.js.map +1 -1
  545. package/dist/index.es303.js +6 -12
  546. package/dist/index.es303.js.map +1 -1
  547. package/dist/index.es304.js +45 -2
  548. package/dist/index.es304.js.map +1 -1
  549. package/dist/index.es305.js +12 -321
  550. package/dist/index.es305.js.map +1 -1
  551. package/dist/index.es306.js +7 -2
  552. package/dist/index.es306.js.map +1 -1
  553. package/dist/index.es307.js +18 -2
  554. package/dist/index.es307.js.map +1 -1
  555. package/dist/index.es309.js +320 -13
  556. package/dist/index.es309.js.map +1 -1
  557. package/dist/index.es310.js +2 -2
  558. package/dist/index.es311.js +2 -2
  559. package/dist/index.es312.js +2 -48
  560. package/dist/index.es312.js.map +1 -1
  561. package/dist/index.es313.js +14 -37
  562. package/dist/index.es313.js.map +1 -1
  563. package/dist/index.es314.js +2 -43
  564. package/dist/index.es314.js.map +1 -1
  565. package/dist/index.es316.js +47 -15
  566. package/dist/index.es316.js.map +1 -1
  567. package/dist/index.es317.js +38 -2
  568. package/dist/index.es317.js.map +1 -1
  569. package/dist/index.es318.js +42 -15
  570. package/dist/index.es318.js.map +1 -1
  571. package/dist/index.es319.js +2 -16
  572. package/dist/index.es319.js.map +1 -1
  573. package/dist/index.es320.js +14 -16
  574. package/dist/index.es320.js.map +1 -1
  575. package/dist/index.es321.js +2 -20
  576. package/dist/index.es321.js.map +1 -1
  577. package/dist/index.es322.js +16 -2
  578. package/dist/index.es322.js.map +1 -1
  579. package/dist/index.es323.js +14 -43
  580. package/dist/index.es323.js.map +1 -1
  581. package/dist/index.es324.js +17 -12
  582. package/dist/index.es324.js.map +1 -1
  583. package/dist/index.es325.js +19 -6
  584. package/dist/index.es325.js.map +1 -1
  585. package/dist/index.es326.js +2 -18
  586. package/dist/index.es326.js.map +1 -1
  587. package/dist/index.es354.js +1 -1
  588. package/dist/index.es356.js +1 -1
  589. package/dist/index.es358.js +5 -5
  590. package/dist/index.es359.js +1 -1
  591. package/dist/index.es360.js +149 -218
  592. package/dist/index.es360.js.map +1 -1
  593. package/dist/index.es361.js +104 -2
  594. package/dist/index.es361.js.map +1 -1
  595. package/dist/index.es362.js +16 -355
  596. package/dist/index.es362.js.map +1 -1
  597. package/dist/index.es363.js +227 -4
  598. package/dist/index.es363.js.map +1 -1
  599. package/dist/index.es364.js +2 -38
  600. package/dist/index.es364.js.map +1 -1
  601. package/dist/index.es365.js +354 -49
  602. package/dist/index.es365.js.map +1 -1
  603. package/dist/index.es366.js +2 -62
  604. package/dist/index.es366.js.map +1 -1
  605. package/dist/index.es367.js +33 -56
  606. package/dist/index.es367.js.map +1 -1
  607. package/dist/index.es368.js +51 -73
  608. package/dist/index.es368.js.map +1 -1
  609. package/dist/index.es369.js +61 -49
  610. package/dist/index.es369.js.map +1 -1
  611. package/dist/index.es370.js +54 -82
  612. package/dist/index.es370.js.map +1 -1
  613. package/dist/index.es371.js +73 -2
  614. package/dist/index.es371.js.map +1 -1
  615. package/dist/index.es372.js +52 -4
  616. package/dist/index.es372.js.map +1 -1
  617. package/dist/index.es373.js +89 -2
  618. package/dist/index.es373.js.map +1 -1
  619. package/dist/index.es375.js +2 -2
  620. package/dist/index.es376.js +2 -2
  621. package/dist/index.es377.js +2 -2
  622. package/dist/index.es378.js +2 -2
  623. package/dist/index.es379.js +2 -8
  624. package/dist/index.es379.js.map +1 -1
  625. package/dist/index.es380.js +2 -4
  626. package/dist/index.es380.js.map +1 -1
  627. package/dist/index.es381.js +8 -4
  628. package/dist/index.es381.js.map +1 -1
  629. package/dist/index.es382.js +4 -161
  630. package/dist/index.es382.js.map +1 -1
  631. package/dist/index.es383.js +4 -5
  632. package/dist/index.es383.js.map +1 -1
  633. package/dist/index.es384.js +161 -2
  634. package/dist/index.es384.js.map +1 -1
  635. package/dist/index.es385.js +5 -88
  636. package/dist/index.es385.js.map +1 -1
  637. package/dist/index.es386.js +2 -194
  638. package/dist/index.es386.js.map +1 -1
  639. package/dist/index.es387.js +83 -83
  640. package/dist/index.es387.js.map +1 -1
  641. package/dist/index.es388.js +193 -12
  642. package/dist/index.es388.js.map +1 -1
  643. package/dist/index.es389.js +78 -309
  644. package/dist/index.es389.js.map +1 -1
  645. package/dist/index.es390.js +13 -2
  646. package/dist/index.es390.js.map +1 -1
  647. package/dist/index.es391.js +316 -19
  648. package/dist/index.es391.js.map +1 -1
  649. package/dist/index.es392.js +60 -2
  650. package/dist/index.es392.js.map +1 -1
  651. package/dist/index.es393.js +5 -95
  652. package/dist/index.es393.js.map +1 -1
  653. package/dist/index.es394.js +2 -275
  654. package/dist/index.es394.js.map +1 -1
  655. package/dist/index.es395.js +2 -129
  656. package/dist/index.es395.js.map +1 -1
  657. package/dist/index.es396.js +19 -165
  658. package/dist/index.es396.js.map +1 -1
  659. package/dist/index.es397.js +2 -131
  660. package/dist/index.es397.js.map +1 -1
  661. package/dist/index.es398.js +87 -119
  662. package/dist/index.es398.js.map +1 -1
  663. package/dist/index.es399.js +227 -85
  664. package/dist/index.es399.js.map +1 -1
  665. package/dist/index.es400.js +72 -71
  666. package/dist/index.es400.js.map +1 -1
  667. package/dist/index.es401.js +120 -69
  668. package/dist/index.es401.js.map +1 -1
  669. package/dist/index.es402.js +67 -53
  670. package/dist/index.es402.js.map +1 -1
  671. package/dist/index.es403.js +75 -64
  672. package/dist/index.es403.js.map +1 -1
  673. package/dist/index.es404.js +84 -68
  674. package/dist/index.es404.js.map +1 -1
  675. package/dist/index.es405.js +79 -76
  676. package/dist/index.es405.js.map +1 -1
  677. package/dist/index.es406.js +66 -80
  678. package/dist/index.es406.js.map +1 -1
  679. package/dist/index.es407.js +43 -54
  680. package/dist/index.es407.js.map +1 -1
  681. package/dist/index.es408.js +110 -26
  682. package/dist/index.es408.js.map +1 -1
  683. package/dist/index.es409.js +117 -2
  684. package/dist/index.es409.js.map +1 -1
  685. package/dist/index.es410.js +119 -15
  686. package/dist/index.es410.js.map +1 -1
  687. package/dist/index.es411.js +131 -2
  688. package/dist/index.es411.js.map +1 -1
  689. package/dist/index.es412.js +122 -37
  690. package/dist/index.es412.js.map +1 -1
  691. package/dist/index.es413.js +25 -35
  692. package/dist/index.es413.js.map +1 -1
  693. package/dist/index.es414.js +2 -43
  694. package/dist/index.es414.js.map +1 -1
  695. package/dist/index.es415.js +17 -39
  696. package/dist/index.es415.js.map +1 -1
  697. package/dist/index.es416.js +2 -43
  698. package/dist/index.es416.js.map +1 -1
  699. package/dist/index.es417.js +28 -28
  700. package/dist/index.es417.js.map +1 -1
  701. package/dist/index.es418.js +31 -31
  702. package/dist/index.es418.js.map +1 -1
  703. package/dist/index.es419.js +35 -35
  704. package/dist/index.es419.js.map +1 -1
  705. package/dist/index.es420.js +25 -26
  706. package/dist/index.es420.js.map +1 -1
  707. package/dist/index.es421.js +27 -25
  708. package/dist/index.es421.js.map +1 -1
  709. package/dist/index.es422.js +41 -154
  710. package/dist/index.es422.js.map +1 -1
  711. package/dist/index.es423.js +42 -103
  712. package/dist/index.es423.js.map +1 -1
  713. package/dist/index.es424.js +43 -17
  714. package/dist/index.es424.js.map +1 -1
  715. package/dist/index.es425.js +44 -2
  716. package/dist/index.es425.js.map +1 -1
  717. package/dist/index.es426.js +41 -2
  718. package/dist/index.es426.js.map +1 -1
  719. package/dist/index.es427.js +2 -12
  720. package/dist/index.es427.js.map +1 -1
  721. package/dist/index.es428.js +2 -34
  722. package/dist/index.es428.js.map +1 -1
  723. package/dist/index.es429.js +2 -21
  724. package/dist/index.es429.js.map +1 -1
  725. package/dist/index.es430.js +8 -8
  726. package/dist/index.es430.js.map +1 -1
  727. package/dist/index.es431.js +34 -2
  728. package/dist/index.es431.js.map +1 -1
  729. package/dist/index.es432.js +19 -12
  730. package/dist/index.es432.js.map +1 -1
  731. package/dist/index.es433.js +9 -9
  732. package/dist/index.es433.js.map +1 -1
  733. package/dist/index.es434.js +2 -12
  734. package/dist/index.es434.js.map +1 -1
  735. package/dist/index.es435.js +14 -2
  736. package/dist/index.es435.js.map +1 -1
  737. package/dist/index.es436.js +12 -2
  738. package/dist/index.es436.js.map +1 -1
  739. package/dist/index.es437.js +10 -58
  740. package/dist/index.es437.js.map +1 -1
  741. package/dist/index.es438.js +2 -6
  742. package/dist/index.es438.js.map +1 -1
  743. package/dist/index.es442.js +55 -7
  744. package/dist/index.es442.js.map +1 -1
  745. package/dist/index.es443.js +8 -54
  746. package/dist/index.es443.js.map +1 -1
  747. package/dist/index.es444.js +14 -9
  748. package/dist/index.es444.js.map +1 -1
  749. package/dist/index.es445.js +60 -14
  750. package/dist/index.es445.js.map +1 -1
  751. package/dist/index.es446.js +64 -59
  752. package/dist/index.es446.js.map +1 -1
  753. package/dist/index.es447.js +6 -64
  754. package/dist/index.es447.js.map +1 -1
  755. package/dist/index.es448.js +120 -8
  756. package/dist/index.es448.js.map +1 -1
  757. package/dist/index.es449.js +5 -8
  758. package/dist/index.es449.js.map +1 -1
  759. package/dist/index.es450.js +8 -50
  760. package/dist/index.es450.js.map +1 -1
  761. package/dist/index.es451.js +8 -4
  762. package/dist/index.es451.js.map +1 -1
  763. package/dist/index.es452.js +50 -4
  764. package/dist/index.es452.js.map +1 -1
  765. package/dist/index.es453.js +2 -2
  766. package/dist/index.es454.js +3 -146
  767. package/dist/index.es454.js.map +1 -1
  768. package/dist/index.es455.js +2 -2
  769. package/dist/index.es458.js +144 -108
  770. package/dist/index.es458.js.map +1 -1
  771. package/dist/index.es459.js +2 -2
  772. package/dist/index.es460.js +108 -13
  773. package/dist/index.es460.js.map +1 -1
  774. package/dist/index.es461.js +5 -2
  775. package/dist/index.es461.js.map +1 -1
  776. package/dist/index.es462.js +2 -2
  777. package/dist/index.es463.js +2 -2
  778. package/dist/index.es464.js +2 -118
  779. package/dist/index.es464.js.map +1 -1
  780. package/dist/index.es465.js +2 -2
  781. package/dist/index.es467.js +2 -151
  782. package/dist/index.es467.js.map +1 -1
  783. package/dist/index.es468.js +2 -2
  784. package/dist/index.es469.js +2 -6
  785. package/dist/index.es469.js.map +1 -1
  786. package/dist/index.es471.js +2 -148
  787. package/dist/index.es471.js.map +1 -1
  788. package/dist/index.es472.js +2 -2
  789. package/dist/index.es473.js +2 -138
  790. package/dist/index.es473.js.map +1 -1
  791. package/dist/index.es474.js +151 -2
  792. package/dist/index.es474.js.map +1 -1
  793. package/dist/index.es475.js +2 -2
  794. package/dist/index.es476.js +6 -2
  795. package/dist/index.es476.js.map +1 -1
  796. package/dist/index.es477.js +2 -3
  797. package/dist/index.es477.js.map +1 -1
  798. package/dist/index.es478.js +148 -2
  799. package/dist/index.es478.js.map +1 -1
  800. package/dist/index.es479.js +2 -2
  801. package/dist/index.es480.js +90 -177
  802. package/dist/index.es480.js.map +1 -1
  803. package/dist/index.es481.js +2 -134
  804. package/dist/index.es481.js.map +1 -1
  805. package/dist/index.es482.js +2 -129
  806. package/dist/index.es482.js.map +1 -1
  807. package/dist/index.es483.js +176 -85
  808. package/dist/index.es483.js.map +1 -1
  809. package/dist/index.es484.js +83 -78
  810. package/dist/index.es484.js.map +1 -1
  811. package/dist/index.es485.js +77 -83
  812. package/dist/index.es485.js.map +1 -1
  813. package/dist/index.es486.js +134 -2
  814. package/dist/index.es486.js.map +1 -1
  815. package/dist/index.es487.js +129 -2
  816. package/dist/index.es487.js.map +1 -1
  817. package/dist/index.es488.js +135 -2
  818. package/dist/index.es488.js.map +1 -1
  819. package/dist/index.es489.js +2 -2
  820. package/dist/index.es490.js +2 -2
  821. package/dist/index.es491.js +2 -2
  822. package/dist/index.es492.js +2 -2
  823. package/dist/index.es493.js +2 -2
  824. package/dist/index.es494.js +2 -2
  825. package/dist/index.es495.js +2 -2
  826. package/dist/index.es496.js +2 -2
  827. package/dist/index.es497.js +2 -131
  828. package/dist/index.es497.js.map +1 -1
  829. package/dist/index.es498.js +2 -128
  830. package/dist/index.es498.js.map +1 -1
  831. package/dist/index.es499.js +2 -2
  832. package/dist/index.es500.js +131 -2
  833. package/dist/index.es500.js.map +1 -1
  834. package/dist/index.es501.js +128 -2
  835. package/dist/index.es501.js.map +1 -1
  836. package/dist/index.es502.js +2 -2
  837. package/dist/index.es503.js +14 -2
  838. package/dist/index.es503.js.map +1 -1
  839. package/dist/index.es504.js +2 -2
  840. package/dist/index.es505.js +2 -2
  841. package/dist/index.es506.js +2 -2
  842. package/dist/index.es507.js +2 -2
  843. package/dist/index.es508.js +2 -2
  844. package/dist/index.es509.js +2 -5
  845. package/dist/index.es509.js.map +1 -1
  846. package/dist/index.es514.js +2 -2
  847. package/dist/index.es518.js +2 -2
  848. package/dist/index.es519.js +30 -2
  849. package/dist/index.es519.js.map +1 -1
  850. package/dist/index.es520.js +2 -2
  851. package/dist/index.es522.js +2 -30
  852. package/dist/index.es522.js.map +1 -1
  853. package/dist/index.es523.js +2 -2
  854. package/dist/index.es525.js +2 -2
  855. package/dist/index.es527.js +2 -2
  856. package/dist/index.es528.js +2 -2
  857. package/dist/index.es531.js +11 -21
  858. package/dist/index.es531.js.map +1 -1
  859. package/dist/index.es532.js +26 -11
  860. package/dist/index.es532.js.map +1 -1
  861. package/dist/index.es533.js +4 -27
  862. package/dist/index.es533.js.map +1 -1
  863. package/dist/index.es534.js +22 -4
  864. package/dist/index.es534.js.map +1 -1
  865. package/dist/index.es61.js +4 -4
  866. package/dist/index.es62.js +2 -2
  867. package/dist/index.es63.js +2 -2
  868. package/dist/index.es65.js +1 -1
  869. package/dist/index.es66.js +1 -1
  870. package/dist/index.es68.js +1 -1
  871. package/dist/index.es69.js +1 -1
  872. package/dist/index.es70.js +1 -1
  873. package/dist/index.es71.js +1 -1
  874. package/dist/index.es74.js +4 -4
  875. package/dist/index.es82.js +1 -1
  876. package/dist/index.es83.js +1 -1
  877. package/dist/index.es84.js +2 -2
  878. package/dist/index.es85.js +1 -1
  879. package/dist/index.es87.js +1 -1
  880. package/dist/index.es90.js +3 -3
  881. package/dist/index.es94.js +1 -1
  882. package/dist/index.es97.js +1 -1
  883. package/package.json +2 -2
@@ -1,1562 +1,7 @@
1
- const ue = {
2
- type: "logger",
3
- log(r) {
4
- this.output("log", r);
5
- },
6
- warn(r) {
7
- this.output("warn", r);
8
- },
9
- error(r) {
10
- this.output("error", r);
11
- },
12
- output(r, e) {
13
- console && console[r] && console[r].apply(console, e);
14
- }
1
+ import { useLayoutEffect as o } from "react";
2
+ const e = globalThis != null && globalThis.document ? o : () => {
15
3
  };
16
- class U {
17
- constructor(e) {
18
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
19
- this.init(e, t);
20
- }
21
- init(e) {
22
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
23
- this.prefix = t.prefix || "i18next:", this.logger = e || ue, this.options = t, this.debug = t.debug;
24
- }
25
- log() {
26
- for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
27
- t[s] = arguments[s];
28
- return this.forward(t, "log", "", !0);
29
- }
30
- warn() {
31
- for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
32
- t[s] = arguments[s];
33
- return this.forward(t, "warn", "", !0);
34
- }
35
- error() {
36
- for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
37
- t[s] = arguments[s];
38
- return this.forward(t, "error", "");
39
- }
40
- deprecate() {
41
- for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
42
- t[s] = arguments[s];
43
- return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
44
- }
45
- forward(e, t, s, i) {
46
- return i && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
47
- }
48
- create(e) {
49
- return new U(this.logger, {
50
- prefix: `${this.prefix}:${e}:`,
51
- ...this.options
52
- });
53
- }
54
- clone(e) {
55
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new U(this.logger, e);
56
- }
57
- }
58
- var N = new U();
59
- class J {
60
- constructor() {
61
- this.observers = {};
62
- }
63
- on(e, t) {
64
- return e.split(" ").forEach((s) => {
65
- this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
66
- const i = this.observers[s].get(t) || 0;
67
- this.observers[s].set(t, i + 1);
68
- }), this;
69
- }
70
- off(e, t) {
71
- if (this.observers[e]) {
72
- if (!t) {
73
- delete this.observers[e];
74
- return;
75
- }
76
- this.observers[e].delete(t);
77
- }
78
- }
79
- emit(e) {
80
- for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
81
- s[i - 1] = arguments[i];
82
- this.observers[e] && Array.from(this.observers[e].entries()).forEach((a) => {
83
- let [o, l] = a;
84
- for (let f = 0; f < l; f++)
85
- o(...s);
86
- }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((a) => {
87
- let [o, l] = a;
88
- for (let f = 0; f < l; f++)
89
- o.apply(o, [e, ...s]);
90
- });
91
- }
92
- }
93
- function F() {
94
- let r, e;
95
- const t = new Promise((s, i) => {
96
- r = s, e = i;
97
- });
98
- return t.resolve = r, t.reject = e, t;
99
- }
100
- function Z(r) {
101
- return r == null ? "" : "" + r;
102
- }
103
- function fe(r, e, t) {
104
- r.forEach((s) => {
105
- e[s] && (t[s] = e[s]);
106
- });
107
- }
108
- const ge = /###/g;
109
- function I(r, e, t) {
110
- function s(o) {
111
- return o && o.indexOf("###") > -1 ? o.replace(ge, ".") : o;
112
- }
113
- function i() {
114
- return !r || typeof r == "string";
115
- }
116
- const n = typeof e != "string" ? e : e.split(".");
117
- let a = 0;
118
- for (; a < n.length - 1; ) {
119
- if (i())
120
- return {};
121
- const o = s(n[a]);
122
- !r[o] && t && (r[o] = new t()), Object.prototype.hasOwnProperty.call(r, o) ? r = r[o] : r = {}, ++a;
123
- }
124
- return i() ? {} : {
125
- obj: r,
126
- k: s(n[a])
127
- };
128
- }
129
- function X(r, e, t) {
130
- const {
131
- obj: s,
132
- k: i
133
- } = I(r, e, Object);
134
- if (s !== void 0 || e.length === 1) {
135
- s[i] = t;
136
- return;
137
- }
138
- let n = e[e.length - 1], a = e.slice(0, e.length - 1), o = I(r, a, Object);
139
- for (; o.obj === void 0 && a.length; )
140
- n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = I(r, a, Object), o && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
141
- o.obj[`${o.k}.${n}`] = t;
142
- }
143
- function he(r, e, t, s) {
144
- const {
145
- obj: i,
146
- k: n
147
- } = I(r, e, Object);
148
- i[n] = i[n] || [], s && (i[n] = i[n].concat(t)), s || i[n].push(t);
149
- }
150
- function M(r, e) {
151
- const {
152
- obj: t,
153
- k: s
154
- } = I(r, e);
155
- if (t)
156
- return t[s];
157
- }
158
- function ce(r, e, t) {
159
- const s = M(r, t);
160
- return s !== void 0 ? s : M(e, t);
161
- }
162
- function ne(r, e, t) {
163
- for (const s in e)
164
- s !== "__proto__" && s !== "constructor" && (s in r ? typeof r[s] == "string" || r[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (r[s] = e[s]) : ne(r[s], e[s], t) : r[s] = e[s]);
165
- return r;
166
- }
167
- function P(r) {
168
- return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
169
- }
170
- var pe = {
171
- "&": "&amp;",
172
- "<": "&lt;",
173
- ">": "&gt;",
174
- '"': "&quot;",
175
- "'": "&#39;",
176
- "/": "&#x2F;"
177
- };
178
- function de(r) {
179
- return typeof r == "string" ? r.replace(/[&<>"'\/]/g, (e) => pe[e]) : r;
180
- }
181
- class me {
182
- constructor(e) {
183
- this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
184
- }
185
- getRegExp(e) {
186
- const t = this.regExpMap.get(e);
187
- if (t !== void 0)
188
- return t;
189
- const s = new RegExp(e);
190
- return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
191
- }
192
- }
193
- const ve = [" ", ",", "?", "!", ";"], be = new me(20);
194
- function ye(r, e, t) {
195
- e = e || "", t = t || "";
196
- const s = ve.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
197
- if (s.length === 0)
198
- return !0;
199
- const i = be.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
200
- let n = !i.test(r);
201
- if (!n) {
202
- const a = r.indexOf(t);
203
- a > 0 && !i.test(r.substring(0, a)) && (n = !0);
204
- }
205
- return n;
206
- }
207
- function W(r, e) {
208
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
209
- if (!r)
210
- return;
211
- if (r[e])
212
- return r[e];
213
- const s = e.split(t);
214
- let i = r;
215
- for (let n = 0; n < s.length; ) {
216
- if (!i || typeof i != "object")
217
- return;
218
- let a, o = "";
219
- for (let l = n; l < s.length; ++l)
220
- if (l !== n && (o += t), o += s[l], a = i[o], a !== void 0) {
221
- if (["string", "number", "boolean"].indexOf(typeof a) > -1 && l < s.length - 1)
222
- continue;
223
- n += l - n + 1;
224
- break;
225
- }
226
- i = a;
227
- }
228
- return i;
229
- }
230
- function H(r) {
231
- return r && r.indexOf("_") > 0 ? r.replace("_", "-") : r;
232
- }
233
- class q extends J {
234
- constructor(e) {
235
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
236
- ns: ["translation"],
237
- defaultNS: "translation"
238
- };
239
- super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
240
- }
241
- addNamespaces(e) {
242
- this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
243
- }
244
- removeNamespaces(e) {
245
- const t = this.options.ns.indexOf(e);
246
- t > -1 && this.options.ns.splice(t, 1);
247
- }
248
- getResource(e, t, s) {
249
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
250
- const n = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
251
- let o;
252
- e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : typeof s == "string" && n ? o.push(...s.split(n)) : o.push(s)));
253
- const l = M(this.data, o);
254
- return !l && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), l || !a || typeof s != "string" ? l : W(this.data && this.data[e] && this.data[e][t], s, n);
255
- }
256
- addResource(e, t, s, i) {
257
- let n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
258
- silent: !1
259
- };
260
- const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
261
- let o = [e, t];
262
- s && (o = o.concat(a ? s.split(a) : s)), e.indexOf(".") > -1 && (o = e.split("."), i = t, t = o[1]), this.addNamespaces(t), X(this.data, o, i), n.silent || this.emit("added", e, t, s, i);
263
- }
264
- addResources(e, t, s) {
265
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
266
- silent: !1
267
- };
268
- for (const n in s)
269
- (typeof s[n] == "string" || Object.prototype.toString.apply(s[n]) === "[object Array]") && this.addResource(e, t, n, s[n], {
270
- silent: !0
271
- });
272
- i.silent || this.emit("added", e, t, s);
273
- }
274
- addResourceBundle(e, t, s, i, n) {
275
- let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
276
- silent: !1
277
- }, o = [e, t];
278
- e.indexOf(".") > -1 && (o = e.split("."), i = s, s = t, t = o[1]), this.addNamespaces(t);
279
- let l = M(this.data, o) || {};
280
- i ? ne(l, s, n) : l = {
281
- ...l,
282
- ...s
283
- }, X(this.data, o, l), a.silent || this.emit("added", e, t, s);
284
- }
285
- removeResourceBundle(e, t) {
286
- this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
287
- }
288
- hasResourceBundle(e, t) {
289
- return this.getResource(e, t) !== void 0;
290
- }
291
- getResourceBundle(e, t) {
292
- return t || (t = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? {
293
- ...this.getResource(e, t)
294
- } : this.getResource(e, t);
295
- }
296
- getDataByLanguage(e) {
297
- return this.data[e];
298
- }
299
- hasLanguageSomeTranslations(e) {
300
- const t = this.getDataByLanguage(e);
301
- return !!(t && Object.keys(t) || []).find((i) => t[i] && Object.keys(t[i]).length > 0);
302
- }
303
- toJSON() {
304
- return this.data;
305
- }
306
- }
307
- var ae = {
308
- processors: {},
309
- addPostProcessor(r) {
310
- this.processors[r.name] = r;
311
- },
312
- handle(r, e, t, s, i) {
313
- return r.forEach((n) => {
314
- this.processors[n] && (e = this.processors[n].process(e, t, s, i));
315
- }), e;
316
- }
317
- };
318
- const _ = {};
319
- class z extends J {
320
- constructor(e) {
321
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
322
- super(), fe(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = N.create("translator");
323
- }
324
- changeLanguage(e) {
325
- e && (this.language = e);
326
- }
327
- exists(e) {
328
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
329
- interpolation: {}
330
- };
331
- if (e == null)
332
- return !1;
333
- const s = this.resolve(e, t);
334
- return s && s.res !== void 0;
335
- }
336
- extractFromKey(e, t) {
337
- let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
338
- s === void 0 && (s = ":");
339
- const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
340
- let n = t.ns || this.options.defaultNS || [];
341
- const a = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ye(e, s, i);
342
- if (a && !o) {
343
- const l = e.match(this.interpolator.nestingRegexp);
344
- if (l && l.length > 0)
345
- return {
346
- key: e,
347
- namespaces: n
348
- };
349
- const f = e.split(s);
350
- (s !== i || s === i && this.options.ns.indexOf(f[0]) > -1) && (n = f.shift()), e = f.join(i);
351
- }
352
- return typeof n == "string" && (n = [n]), {
353
- key: e,
354
- namespaces: n
355
- };
356
- }
357
- translate(e, t, s) {
358
- if (typeof t != "object" && this.options.overloadTranslationOptionHandler && (t = this.options.overloadTranslationOptionHandler(arguments)), typeof t == "object" && (t = {
359
- ...t
360
- }), t || (t = {}), e == null)
361
- return "";
362
- Array.isArray(e) || (e = [String(e)]);
363
- const i = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
364
- key: a,
365
- namespaces: o
366
- } = this.extractFromKey(e[e.length - 1], t), l = o[o.length - 1], f = t.lng || this.language, g = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
367
- if (f && f.toLowerCase() === "cimode") {
368
- if (g) {
369
- const v = t.nsSeparator || this.options.nsSeparator;
370
- return i ? {
371
- res: `${l}${v}${a}`,
372
- usedKey: a,
373
- exactUsedKey: a,
374
- usedLng: f,
375
- usedNS: l,
376
- usedParams: this.getUsedParamsDetails(t)
377
- } : `${l}${v}${a}`;
378
- }
379
- return i ? {
380
- res: a,
381
- usedKey: a,
382
- exactUsedKey: a,
383
- usedLng: f,
384
- usedNS: l,
385
- usedParams: this.getUsedParamsDetails(t)
386
- } : a;
387
- }
388
- const h = this.resolve(e, t);
389
- let u = h && h.res;
390
- const p = h && h.usedKey || a, c = h && h.exactUsedKey || a, d = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], S = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject;
391
- if (b && u && (typeof u != "string" && typeof u != "boolean" && typeof u != "number") && m.indexOf(d) < 0 && !(typeof S == "string" && d === "[object Array]")) {
392
- if (!t.returnObjects && !this.options.returnObjects) {
393
- this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
394
- const v = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
395
- ...t,
396
- ns: o
397
- }) : `key '${a} (${this.language})' returned an object instead of string.`;
398
- return i ? (h.res = v, h.usedParams = this.getUsedParamsDetails(t), h) : v;
399
- }
400
- if (n) {
401
- const v = d === "[object Array]", L = v ? [] : {}, w = v ? c : p;
402
- for (const y in u)
403
- if (Object.prototype.hasOwnProperty.call(u, y)) {
404
- const T = `${w}${n}${y}`;
405
- L[y] = this.translate(T, {
406
- ...t,
407
- joinArrays: !1,
408
- ns: o
409
- }), L[y] === T && (L[y] = u[y]);
410
- }
411
- u = L;
412
- }
413
- } else if (b && typeof S == "string" && d === "[object Array]")
414
- u = u.join(S), u && (u = this.extendTranslation(u, e, t, s));
415
- else {
416
- let v = !1, L = !1;
417
- const w = t.count !== void 0 && typeof t.count != "string", y = z.hasDefaultValue(t), T = w ? this.pluralResolver.getSuffix(f, t.count, t) : "", oe = t.ordinal && w ? this.pluralResolver.getSuffix(f, t.count, {
418
- ordinal: !1
419
- }) : "", Q = w && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = Q && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${T}`] || t[`defaultValue${oe}`] || t.defaultValue;
420
- !this.isValidLookup(u) && y && (v = !0, u = $), this.isValidLookup(u) || (L = !0, u = a);
421
- const le = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : u, k = y && $ !== u && this.options.updateMissing;
422
- if (L || v || k) {
423
- if (this.logger.log(k ? "updateKey" : "missingKey", f, l, a, k ? $ : u), n) {
424
- const O = this.resolve(a, {
425
- ...t,
426
- keySeparator: !1
427
- });
428
- O && O.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
429
- }
430
- let j = [];
431
- const V = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
432
- if (this.options.saveMissingTo === "fallback" && V && V[0])
433
- for (let O = 0; O < V.length; O++)
434
- j.push(V[O]);
435
- else
436
- this.options.saveMissingTo === "all" ? j = this.languageUtils.toResolveHierarchy(t.lng || this.language) : j.push(t.lng || this.language);
437
- const Y = (O, R, E) => {
438
- const G = y && E !== u ? E : le;
439
- this.options.missingKeyHandler ? this.options.missingKeyHandler(O, l, R, G, k, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(O, l, R, G, k, t), this.emit("missingKey", O, l, R, u);
440
- };
441
- this.options.saveMissing && (this.options.saveMissingPlurals && w ? j.forEach((O) => {
442
- const R = this.pluralResolver.getSuffixes(O, t);
443
- Q && t[`defaultValue${this.options.pluralSeparator}zero`] && R.indexOf(`${this.options.pluralSeparator}zero`) < 0 && R.push(`${this.options.pluralSeparator}zero`), R.forEach((E) => {
444
- Y([O], a + E, t[`defaultValue${E}`] || $);
445
- });
446
- }) : Y(j, a, $));
447
- }
448
- u = this.extendTranslation(u, e, t, h, s), L && u === a && this.options.appendNamespaceToMissingKey && (u = `${l}:${a}`), (L || v) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${a}` : a, v ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
449
- }
450
- return i ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
451
- }
452
- extendTranslation(e, t, s, i, n) {
453
- var a = this;
454
- if (this.i18nFormat && this.i18nFormat.parse)
455
- e = this.i18nFormat.parse(e, {
456
- ...this.options.interpolation.defaultVariables,
457
- ...s
458
- }, s.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
459
- resolved: i
460
- });
461
- else if (!s.skipInterpolation) {
462
- s.interpolation && this.interpolator.init({
463
- ...s,
464
- interpolation: {
465
- ...this.options.interpolation,
466
- ...s.interpolation
467
- }
468
- });
469
- const f = typeof e == "string" && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
470
- let g;
471
- if (f) {
472
- const u = e.match(this.interpolator.nestingRegexp);
473
- g = u && u.length;
474
- }
475
- let h = s.replace && typeof s.replace != "string" ? s.replace : s;
476
- if (this.options.interpolation.defaultVariables && (h = {
477
- ...this.options.interpolation.defaultVariables,
478
- ...h
479
- }), e = this.interpolator.interpolate(e, h, s.lng || this.language, s), f) {
480
- const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
481
- g < p && (s.nest = !1);
482
- }
483
- !s.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (s.lng = i.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
484
- for (var u = arguments.length, p = new Array(u), c = 0; c < u; c++)
485
- p[c] = arguments[c];
486
- return n && n[0] === p[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : a.translate(...p, t);
487
- }, s)), s.interpolation && this.interpolator.reset();
488
- }
489
- const o = s.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
490
- return e != null && l && l.length && s.applyPostProcessor !== !1 && (e = ae.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
491
- i18nResolved: {
492
- ...i,
493
- usedParams: this.getUsedParamsDetails(s)
494
- },
495
- ...s
496
- } : s, this)), e;
497
- }
498
- resolve(e) {
499
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, i, n, a, o;
500
- return typeof e == "string" && (e = [e]), e.forEach((l) => {
501
- if (this.isValidLookup(s))
502
- return;
503
- const f = this.extractFromKey(l, t), g = f.key;
504
- i = g;
505
- let h = f.namespaces;
506
- this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
507
- const u = t.count !== void 0 && typeof t.count != "string", p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), c = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", d = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
508
- h.forEach((m) => {
509
- this.isValidLookup(s) || (o = m, !_[`${d[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (_[`${d[0]}-${m}`] = !0, this.logger.warn(`key "${i}" for languages "${d.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), d.forEach((S) => {
510
- if (this.isValidLookup(s))
511
- return;
512
- a = S;
513
- const b = [g];
514
- if (this.i18nFormat && this.i18nFormat.addLookupKeys)
515
- this.i18nFormat.addLookupKeys(b, g, S, m, t);
516
- else {
517
- let v;
518
- u && (v = this.pluralResolver.getSuffix(S, t.count, t));
519
- const L = `${this.options.pluralSeparator}zero`, w = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
520
- if (u && (b.push(g + v), t.ordinal && v.indexOf(w) === 0 && b.push(g + v.replace(w, this.options.pluralSeparator)), p && b.push(g + L)), c) {
521
- const y = `${g}${this.options.contextSeparator}${t.context}`;
522
- b.push(y), u && (b.push(y + v), t.ordinal && v.indexOf(w) === 0 && b.push(y + v.replace(w, this.options.pluralSeparator)), p && b.push(y + L));
523
- }
524
- }
525
- let D;
526
- for (; D = b.pop(); )
527
- this.isValidLookup(s) || (n = D, s = this.getResource(S, m, D, t));
528
- }));
529
- });
530
- }), {
531
- res: s,
532
- usedKey: i,
533
- exactUsedKey: n,
534
- usedLng: a,
535
- usedNS: o
536
- };
537
- }
538
- isValidLookup(e) {
539
- return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
540
- }
541
- getResource(e, t, s) {
542
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
543
- return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, s, i) : this.resourceStore.getResource(e, t, s, i);
544
- }
545
- getUsedParamsDetails() {
546
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
547
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && typeof e.replace != "string";
548
- let i = s ? e.replace : e;
549
- if (s && typeof e.count < "u" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = {
550
- ...this.options.interpolation.defaultVariables,
551
- ...i
552
- }), !s) {
553
- i = {
554
- ...i
555
- };
556
- for (const n of t)
557
- delete i[n];
558
- }
559
- return i;
560
- }
561
- static hasDefaultValue(e) {
562
- const t = "defaultValue";
563
- for (const s in e)
564
- if (Object.prototype.hasOwnProperty.call(e, s) && t === s.substring(0, t.length) && e[s] !== void 0)
565
- return !0;
566
- return !1;
567
- }
568
- }
569
- function B(r) {
570
- return r.charAt(0).toUpperCase() + r.slice(1);
571
- }
572
- class ee {
573
- constructor(e) {
574
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = N.create("languageUtils");
575
- }
576
- getScriptPartFromCode(e) {
577
- if (e = H(e), !e || e.indexOf("-") < 0)
578
- return null;
579
- const t = e.split("-");
580
- return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
581
- }
582
- getLanguagePartFromCode(e) {
583
- if (e = H(e), !e || e.indexOf("-") < 0)
584
- return e;
585
- const t = e.split("-");
586
- return this.formatLanguageCode(t[0]);
587
- }
588
- formatLanguageCode(e) {
589
- if (typeof e == "string" && e.indexOf("-") > -1) {
590
- const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
591
- let s = e.split("-");
592
- return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = B(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = B(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = B(s[2].toLowerCase()))), s.join("-");
593
- }
594
- return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
595
- }
596
- isSupportedCode(e) {
597
- return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
598
- }
599
- getBestMatchFromCodes(e) {
600
- if (!e)
601
- return null;
602
- let t;
603
- return e.forEach((s) => {
604
- if (t)
605
- return;
606
- const i = this.formatLanguageCode(s);
607
- (!this.options.supportedLngs || this.isSupportedCode(i)) && (t = i);
608
- }), !t && this.options.supportedLngs && e.forEach((s) => {
609
- if (t)
610
- return;
611
- const i = this.getLanguagePartFromCode(s);
612
- if (this.isSupportedCode(i))
613
- return t = i;
614
- t = this.options.supportedLngs.find((n) => {
615
- if (n === i)
616
- return n;
617
- if (!(n.indexOf("-") < 0 && i.indexOf("-") < 0) && n.indexOf(i) === 0)
618
- return n;
619
- });
620
- }), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
621
- }
622
- getFallbackCodes(e, t) {
623
- if (!e)
624
- return [];
625
- if (typeof e == "function" && (e = e(t)), typeof e == "string" && (e = [e]), Object.prototype.toString.apply(e) === "[object Array]")
626
- return e;
627
- if (!t)
628
- return e.default || [];
629
- let s = e[t];
630
- return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
631
- }
632
- toResolveHierarchy(e, t) {
633
- const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), i = [], n = (a) => {
634
- a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
635
- };
636
- return typeof e == "string" && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && n(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && n(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && n(this.getLanguagePartFromCode(e))) : typeof e == "string" && n(this.formatLanguageCode(e)), s.forEach((a) => {
637
- i.indexOf(a) < 0 && n(this.formatLanguageCode(a));
638
- }), i;
639
- }
640
- }
641
- let xe = [{
642
- lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
643
- nr: [1, 2],
644
- fc: 1
645
- }, {
646
- lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
647
- nr: [1, 2],
648
- fc: 2
649
- }, {
650
- lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
651
- nr: [1],
652
- fc: 3
653
- }, {
654
- lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
655
- nr: [1, 2, 5],
656
- fc: 4
657
- }, {
658
- lngs: ["ar"],
659
- nr: [0, 1, 2, 3, 11, 100],
660
- fc: 5
661
- }, {
662
- lngs: ["cs", "sk"],
663
- nr: [1, 2, 5],
664
- fc: 6
665
- }, {
666
- lngs: ["csb", "pl"],
667
- nr: [1, 2, 5],
668
- fc: 7
669
- }, {
670
- lngs: ["cy"],
671
- nr: [1, 2, 3, 8],
672
- fc: 8
673
- }, {
674
- lngs: ["fr"],
675
- nr: [1, 2],
676
- fc: 9
677
- }, {
678
- lngs: ["ga"],
679
- nr: [1, 2, 3, 7, 11],
680
- fc: 10
681
- }, {
682
- lngs: ["gd"],
683
- nr: [1, 2, 3, 20],
684
- fc: 11
685
- }, {
686
- lngs: ["is"],
687
- nr: [1, 2],
688
- fc: 12
689
- }, {
690
- lngs: ["jv"],
691
- nr: [0, 1],
692
- fc: 13
693
- }, {
694
- lngs: ["kw"],
695
- nr: [1, 2, 3, 4],
696
- fc: 14
697
- }, {
698
- lngs: ["lt"],
699
- nr: [1, 2, 10],
700
- fc: 15
701
- }, {
702
- lngs: ["lv"],
703
- nr: [1, 2, 0],
704
- fc: 16
705
- }, {
706
- lngs: ["mk"],
707
- nr: [1, 2],
708
- fc: 17
709
- }, {
710
- lngs: ["mnk"],
711
- nr: [0, 1, 2],
712
- fc: 18
713
- }, {
714
- lngs: ["mt"],
715
- nr: [1, 2, 11, 20],
716
- fc: 19
717
- }, {
718
- lngs: ["or"],
719
- nr: [2, 1],
720
- fc: 2
721
- }, {
722
- lngs: ["ro"],
723
- nr: [1, 2, 20],
724
- fc: 20
725
- }, {
726
- lngs: ["sl"],
727
- nr: [5, 1, 2, 3],
728
- fc: 21
729
- }, {
730
- lngs: ["he", "iw"],
731
- nr: [1, 2, 20, 21],
732
- fc: 22
733
- }], Se = {
734
- 1: function(r) {
735
- return +(r > 1);
736
- },
737
- 2: function(r) {
738
- return +(r != 1);
739
- },
740
- 3: function(r) {
741
- return 0;
742
- },
743
- 4: function(r) {
744
- return r % 10 == 1 && r % 100 != 11 ? 0 : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) ? 1 : 2;
745
- },
746
- 5: function(r) {
747
- return r == 0 ? 0 : r == 1 ? 1 : r == 2 ? 2 : r % 100 >= 3 && r % 100 <= 10 ? 3 : r % 100 >= 11 ? 4 : 5;
748
- },
749
- 6: function(r) {
750
- return r == 1 ? 0 : r >= 2 && r <= 4 ? 1 : 2;
751
- },
752
- 7: function(r) {
753
- return r == 1 ? 0 : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) ? 1 : 2;
754
- },
755
- 8: function(r) {
756
- return r == 1 ? 0 : r == 2 ? 1 : r != 8 && r != 11 ? 2 : 3;
757
- },
758
- 9: function(r) {
759
- return +(r >= 2);
760
- },
761
- 10: function(r) {
762
- return r == 1 ? 0 : r == 2 ? 1 : r < 7 ? 2 : r < 11 ? 3 : 4;
763
- },
764
- 11: function(r) {
765
- return r == 1 || r == 11 ? 0 : r == 2 || r == 12 ? 1 : r > 2 && r < 20 ? 2 : 3;
766
- },
767
- 12: function(r) {
768
- return +(r % 10 != 1 || r % 100 == 11);
769
- },
770
- 13: function(r) {
771
- return +(r !== 0);
772
- },
773
- 14: function(r) {
774
- return r == 1 ? 0 : r == 2 ? 1 : r == 3 ? 2 : 3;
775
- },
776
- 15: function(r) {
777
- return r % 10 == 1 && r % 100 != 11 ? 0 : r % 10 >= 2 && (r % 100 < 10 || r % 100 >= 20) ? 1 : 2;
778
- },
779
- 16: function(r) {
780
- return r % 10 == 1 && r % 100 != 11 ? 0 : r !== 0 ? 1 : 2;
781
- },
782
- 17: function(r) {
783
- return r == 1 || r % 10 == 1 && r % 100 != 11 ? 0 : 1;
784
- },
785
- 18: function(r) {
786
- return r == 0 ? 0 : r == 1 ? 1 : 2;
787
- },
788
- 19: function(r) {
789
- return r == 1 ? 0 : r == 0 || r % 100 > 1 && r % 100 < 11 ? 1 : r % 100 > 10 && r % 100 < 20 ? 2 : 3;
790
- },
791
- 20: function(r) {
792
- return r == 1 ? 0 : r == 0 || r % 100 > 0 && r % 100 < 20 ? 1 : 2;
793
- },
794
- 21: function(r) {
795
- return r % 100 == 1 ? 1 : r % 100 == 2 ? 2 : r % 100 == 3 || r % 100 == 4 ? 3 : 0;
796
- },
797
- 22: function(r) {
798
- return r == 1 ? 0 : r == 2 ? 1 : (r < 0 || r > 10) && r % 10 == 0 ? 2 : 3;
799
- }
800
- };
801
- const Le = ["v1", "v2", "v3"], Oe = ["v4"], te = {
802
- zero: 0,
803
- one: 1,
804
- two: 2,
805
- few: 3,
806
- many: 4,
807
- other: 5
808
- };
809
- function we() {
810
- const r = {};
811
- return xe.forEach((e) => {
812
- e.lngs.forEach((t) => {
813
- r[t] = {
814
- numbers: e.nr,
815
- plurals: Se[e.fc]
816
- };
817
- });
818
- }), r;
819
- }
820
- class Ne {
821
- constructor(e) {
822
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
823
- this.languageUtils = e, this.options = t, this.logger = N.create("pluralResolver"), (!this.options.compatibilityJSON || Oe.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = we();
824
- }
825
- addRule(e, t) {
826
- this.rules[e] = t;
827
- }
828
- getRule(e) {
829
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
830
- if (this.shouldUseIntlApi())
831
- try {
832
- return new Intl.PluralRules(H(e === "dev" ? "en" : e), {
833
- type: t.ordinal ? "ordinal" : "cardinal"
834
- });
835
- } catch {
836
- return;
837
- }
838
- return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
839
- }
840
- needsPlural(e) {
841
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
842
- const s = this.getRule(e, t);
843
- return this.shouldUseIntlApi() ? s && s.resolvedOptions().pluralCategories.length > 1 : s && s.numbers.length > 1;
844
- }
845
- getPluralFormsOfKey(e, t) {
846
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
847
- return this.getSuffixes(e, s).map((i) => `${t}${i}`);
848
- }
849
- getSuffixes(e) {
850
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
851
- const s = this.getRule(e, t);
852
- return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, n) => te[i] - te[n]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(e, i, t)) : [];
853
- }
854
- getSuffix(e, t) {
855
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
856
- const i = this.getRule(e, s);
857
- return i ? this.shouldUseIntlApi() ? `${this.options.prepend}${s.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(t)}` : this.getSuffixRetroCompatible(i, t) : (this.logger.warn(`no plural rule found for: ${e}`), "");
858
- }
859
- getSuffixRetroCompatible(e, t) {
860
- const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
861
- let i = e.numbers[s];
862
- this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (i === 2 ? i = "plural" : i === 1 && (i = ""));
863
- const n = () => this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
864
- return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : n() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? n() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
865
- }
866
- shouldUseIntlApi() {
867
- return !Le.includes(this.options.compatibilityJSON);
868
- }
869
- }
870
- function se(r, e, t) {
871
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, n = ce(r, e, t);
872
- return !n && i && typeof t == "string" && (n = W(r, t, s), n === void 0 && (n = W(e, t, s))), n;
873
- }
874
- class Re {
875
- constructor() {
876
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
877
- this.logger = N.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
878
- }
879
- init() {
880
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
881
- e.interpolation || (e.interpolation = {
882
- escapeValue: !0
883
- });
884
- const t = e.interpolation;
885
- this.escape = t.escape !== void 0 ? t.escape : de, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? P(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? P(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? P(t.nestingPrefix) : t.nestingPrefixEscaped || P("$t("), this.nestingSuffix = t.nestingSuffix ? P(t.nestingSuffix) : t.nestingSuffixEscaped || P(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
886
- }
887
- reset() {
888
- this.options && this.init(this.options);
889
- }
890
- resetRegExp() {
891
- const e = (t, s) => t && t.source === s ? (t.lastIndex = 0, t) : new RegExp(s, "g");
892
- this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
893
- }
894
- interpolate(e, t, s, i) {
895
- let n, a, o;
896
- const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
897
- function f(c) {
898
- return c.replace(/\$/g, "$$$$");
899
- }
900
- const g = (c) => {
901
- if (c.indexOf(this.formatSeparator) < 0) {
902
- const b = se(t, l, c, this.options.keySeparator, this.options.ignoreJSONStructure);
903
- return this.alwaysFormat ? this.format(b, void 0, s, {
904
- ...i,
905
- ...t,
906
- interpolationkey: c
907
- }) : b;
908
- }
909
- const d = c.split(this.formatSeparator), m = d.shift().trim(), S = d.join(this.formatSeparator).trim();
910
- return this.format(se(t, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), S, s, {
911
- ...i,
912
- ...t,
913
- interpolationkey: m
914
- });
915
- };
916
- this.resetRegExp();
917
- const h = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, u = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
918
- return [{
919
- regex: this.regexpUnescape,
920
- safeValue: (c) => f(c)
921
- }, {
922
- regex: this.regexp,
923
- safeValue: (c) => this.escapeValue ? f(this.escape(c)) : f(c)
924
- }].forEach((c) => {
925
- for (o = 0; n = c.regex.exec(e); ) {
926
- const d = n[1].trim();
927
- if (a = g(d), a === void 0)
928
- if (typeof h == "function") {
929
- const S = h(e, n, i);
930
- a = typeof S == "string" ? S : "";
931
- } else if (i && Object.prototype.hasOwnProperty.call(i, d))
932
- a = "";
933
- else if (u) {
934
- a = n[0];
935
- continue;
936
- } else
937
- this.logger.warn(`missed to pass in variable ${d} for interpolating ${e}`), a = "";
938
- else
939
- typeof a != "string" && !this.useRawValueToEscape && (a = Z(a));
940
- const m = c.safeValue(a);
941
- if (e = e.replace(n[0], m), u ? (c.regex.lastIndex += a.length, c.regex.lastIndex -= n[0].length) : c.regex.lastIndex = 0, o++, o >= this.maxReplaces)
942
- break;
943
- }
944
- }), e;
945
- }
946
- nest(e, t) {
947
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, n, a;
948
- function o(l, f) {
949
- const g = this.nestingOptionsSeparator;
950
- if (l.indexOf(g) < 0)
951
- return l;
952
- const h = l.split(new RegExp(`${g}[ ]*{`));
953
- let u = `{${h[1]}`;
954
- l = h[0], u = this.interpolate(u, a);
955
- const p = u.match(/'/g), c = u.match(/"/g);
956
- (p && p.length % 2 === 0 && !c || c.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
957
- try {
958
- a = JSON.parse(u), f && (a = {
959
- ...f,
960
- ...a
961
- });
962
- } catch (d) {
963
- return this.logger.warn(`failed parsing options string in nesting for key ${l}`, d), `${l}${g}${u}`;
964
- }
965
- return delete a.defaultValue, l;
966
- }
967
- for (; i = this.nestingRegexp.exec(e); ) {
968
- let l = [];
969
- a = {
970
- ...s
971
- }, a = a.replace && typeof a.replace != "string" ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
972
- let f = !1;
973
- if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
974
- const g = i[1].split(this.formatSeparator).map((h) => h.trim());
975
- i[1] = g.shift(), l = g, f = !0;
976
- }
977
- if (n = t(o.call(this, i[1].trim(), a), a), n && i[0] === e && typeof n != "string")
978
- return n;
979
- typeof n != "string" && (n = Z(n)), n || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), n = ""), f && (n = l.reduce((g, h) => this.format(g, h, s.lng, {
980
- ...s,
981
- interpolationkey: i[1].trim()
982
- }), n.trim())), e = e.replace(i[0], n), this.regexp.lastIndex = 0;
983
- }
984
- return e;
985
- }
986
- }
987
- function Pe(r) {
988
- let e = r.toLowerCase().trim();
989
- const t = {};
990
- if (r.indexOf("(") > -1) {
991
- const s = r.split("(");
992
- e = s[0].toLowerCase().trim();
993
- const i = s[1].substring(0, s[1].length - 1);
994
- e === "currency" && i.indexOf(":") < 0 ? t.currency || (t.currency = i.trim()) : e === "relativetime" && i.indexOf(":") < 0 ? t.range || (t.range = i.trim()) : i.split(";").forEach((a) => {
995
- if (!a)
996
- return;
997
- const [o, ...l] = a.split(":"), f = l.join(":").trim().replace(/^'+|'+$/g, "");
998
- t[o.trim()] || (t[o.trim()] = f), f === "false" && (t[o.trim()] = !1), f === "true" && (t[o.trim()] = !0), isNaN(f) || (t[o.trim()] = parseInt(f, 10));
999
- });
1000
- }
1001
- return {
1002
- formatName: e,
1003
- formatOptions: t
1004
- };
1005
- }
1006
- function C(r) {
1007
- const e = {};
1008
- return function(s, i, n) {
1009
- const a = i + JSON.stringify(n);
1010
- let o = e[a];
1011
- return o || (o = r(H(i), n), e[a] = o), o(s);
1012
- };
1013
- }
1014
- class Ce {
1015
- constructor() {
1016
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1017
- this.logger = N.create("formatter"), this.options = e, this.formats = {
1018
- number: C((t, s) => {
1019
- const i = new Intl.NumberFormat(t, {
1020
- ...s
1021
- });
1022
- return (n) => i.format(n);
1023
- }),
1024
- currency: C((t, s) => {
1025
- const i = new Intl.NumberFormat(t, {
1026
- ...s,
1027
- style: "currency"
1028
- });
1029
- return (n) => i.format(n);
1030
- }),
1031
- datetime: C((t, s) => {
1032
- const i = new Intl.DateTimeFormat(t, {
1033
- ...s
1034
- });
1035
- return (n) => i.format(n);
1036
- }),
1037
- relativetime: C((t, s) => {
1038
- const i = new Intl.RelativeTimeFormat(t, {
1039
- ...s
1040
- });
1041
- return (n) => i.format(n, s.range || "day");
1042
- }),
1043
- list: C((t, s) => {
1044
- const i = new Intl.ListFormat(t, {
1045
- ...s
1046
- });
1047
- return (n) => i.format(n);
1048
- })
1049
- }, this.init(e);
1050
- }
1051
- init(e) {
1052
- const s = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1053
- interpolation: {}
1054
- }).interpolation;
1055
- this.formatSeparator = s.formatSeparator ? s.formatSeparator : s.formatSeparator || ",";
1056
- }
1057
- add(e, t) {
1058
- this.formats[e.toLowerCase().trim()] = t;
1059
- }
1060
- addCached(e, t) {
1061
- this.formats[e.toLowerCase().trim()] = C(t);
1062
- }
1063
- format(e, t, s) {
1064
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1065
- return t.split(this.formatSeparator).reduce((o, l) => {
1066
- const {
1067
- formatName: f,
1068
- formatOptions: g
1069
- } = Pe(l);
1070
- if (this.formats[f]) {
1071
- let h = o;
1072
- try {
1073
- const u = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, p = u.locale || u.lng || i.locale || i.lng || s;
1074
- h = this.formats[f](o, p, {
1075
- ...g,
1076
- ...i,
1077
- ...u
1078
- });
1079
- } catch (u) {
1080
- this.logger.warn(u);
1081
- }
1082
- return h;
1083
- } else
1084
- this.logger.warn(`there was no format function for ${f}`);
1085
- return o;
1086
- }, e);
1087
- }
1088
- }
1089
- function $e(r, e) {
1090
- r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
1091
- }
1092
- class ke extends J {
1093
- constructor(e, t, s) {
1094
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1095
- super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = N.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, i.backend, i);
1096
- }
1097
- queueLoad(e, t, s, i) {
1098
- const n = {}, a = {}, o = {}, l = {};
1099
- return e.forEach((f) => {
1100
- let g = !0;
1101
- t.forEach((h) => {
1102
- const u = `${f}|${h}`;
1103
- !s.reload && this.store.hasResourceBundle(f, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? a[u] === void 0 && (a[u] = !0) : (this.state[u] = 1, g = !1, a[u] === void 0 && (a[u] = !0), n[u] === void 0 && (n[u] = !0), l[h] === void 0 && (l[h] = !0)));
1104
- }), g || (o[f] = !0);
1105
- }), (Object.keys(n).length || Object.keys(a).length) && this.queue.push({
1106
- pending: a,
1107
- pendingCount: Object.keys(a).length,
1108
- loaded: {},
1109
- errors: [],
1110
- callback: i
1111
- }), {
1112
- toLoad: Object.keys(n),
1113
- pending: Object.keys(a),
1114
- toLoadLanguages: Object.keys(o),
1115
- toLoadNamespaces: Object.keys(l)
1116
- };
1117
- }
1118
- loaded(e, t, s) {
1119
- const i = e.split("|"), n = i[0], a = i[1];
1120
- t && this.emit("failedLoading", n, a, t), s && this.store.addResourceBundle(n, a, s), this.state[e] = t ? -1 : 2;
1121
- const o = {};
1122
- this.queue.forEach((l) => {
1123
- he(l.loaded, [n], a), $e(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((f) => {
1124
- o[f] || (o[f] = {});
1125
- const g = l.loaded[f];
1126
- g.length && g.forEach((h) => {
1127
- o[f][h] === void 0 && (o[f][h] = !0);
1128
- });
1129
- }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
1130
- }), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
1131
- }
1132
- read(e, t, s) {
1133
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, a = arguments.length > 5 ? arguments[5] : void 0;
1134
- if (!e.length)
1135
- return a(null, {});
1136
- if (this.readingCalls >= this.maxParallelReads) {
1137
- this.waitingReads.push({
1138
- lng: e,
1139
- ns: t,
1140
- fcName: s,
1141
- tried: i,
1142
- wait: n,
1143
- callback: a
1144
- });
1145
- return;
1146
- }
1147
- this.readingCalls++;
1148
- const o = (f, g) => {
1149
- if (this.readingCalls--, this.waitingReads.length > 0) {
1150
- const h = this.waitingReads.shift();
1151
- this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
1152
- }
1153
- if (f && g && i < this.maxRetries) {
1154
- setTimeout(() => {
1155
- this.read.call(this, e, t, s, i + 1, n * 2, a);
1156
- }, n);
1157
- return;
1158
- }
1159
- a(f, g);
1160
- }, l = this.backend[s].bind(this.backend);
1161
- if (l.length === 2) {
1162
- try {
1163
- const f = l(e, t);
1164
- f && typeof f.then == "function" ? f.then((g) => o(null, g)).catch(o) : o(null, f);
1165
- } catch (f) {
1166
- o(f);
1167
- }
1168
- return;
1169
- }
1170
- return l(e, t, o);
1171
- }
1172
- prepareLoading(e, t) {
1173
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
1174
- if (!this.backend)
1175
- return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
1176
- typeof e == "string" && (e = this.languageUtils.toResolveHierarchy(e)), typeof t == "string" && (t = [t]);
1177
- const n = this.queueLoad(e, t, s, i);
1178
- if (!n.toLoad.length)
1179
- return n.pending.length || i(), null;
1180
- n.toLoad.forEach((a) => {
1181
- this.loadOne(a);
1182
- });
1183
- }
1184
- load(e, t, s) {
1185
- this.prepareLoading(e, t, {}, s);
1186
- }
1187
- reload(e, t, s) {
1188
- this.prepareLoading(e, t, {
1189
- reload: !0
1190
- }, s);
1191
- }
1192
- loadOne(e) {
1193
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1194
- const s = e.split("|"), i = s[0], n = s[1];
1195
- this.read(i, n, "read", void 0, void 0, (a, o) => {
1196
- a && this.logger.warn(`${t}loading namespace ${n} for language ${i} failed`, a), !a && o && this.logger.log(`${t}loaded namespace ${n} for language ${i}`, o), this.loaded(e, a, o);
1197
- });
1198
- }
1199
- saveMissing(e, t, s, i, n) {
1200
- let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
1201
- };
1202
- if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
1203
- this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
1204
- return;
1205
- }
1206
- if (!(s == null || s === "")) {
1207
- if (this.backend && this.backend.create) {
1208
- const l = {
1209
- ...a,
1210
- isUpdate: n
1211
- }, f = this.backend.create.bind(this.backend);
1212
- if (f.length < 6)
1213
- try {
1214
- let g;
1215
- f.length === 5 ? g = f(e, t, s, i, l) : g = f(e, t, s, i), g && typeof g.then == "function" ? g.then((h) => o(null, h)).catch(o) : o(null, g);
1216
- } catch (g) {
1217
- o(g);
1218
- }
1219
- else
1220
- f(e, t, s, i, o, l);
1221
- }
1222
- !e || !e[0] || this.store.addResource(e[0], t, s, i);
1223
- }
1224
- }
1225
- }
1226
- function ie() {
1227
- return {
1228
- debug: !1,
1229
- initImmediate: !0,
1230
- ns: ["translation"],
1231
- defaultNS: ["translation"],
1232
- fallbackLng: ["dev"],
1233
- fallbackNS: !1,
1234
- supportedLngs: !1,
1235
- nonExplicitSupportedLngs: !1,
1236
- load: "all",
1237
- preload: !1,
1238
- simplifyPluralSuffix: !0,
1239
- keySeparator: ".",
1240
- nsSeparator: ":",
1241
- pluralSeparator: "_",
1242
- contextSeparator: "_",
1243
- partialBundledLanguages: !1,
1244
- saveMissing: !1,
1245
- updateMissing: !1,
1246
- saveMissingTo: "fallback",
1247
- saveMissingPlurals: !0,
1248
- missingKeyHandler: !1,
1249
- missingInterpolationHandler: !1,
1250
- postProcess: !1,
1251
- postProcessPassResolved: !1,
1252
- returnNull: !1,
1253
- returnEmptyString: !0,
1254
- returnObjects: !1,
1255
- joinArrays: !1,
1256
- returnedObjectHandler: !1,
1257
- parseMissingKeyHandler: !1,
1258
- appendNamespaceToMissingKey: !1,
1259
- appendNamespaceToCIMode: !1,
1260
- overloadTranslationOptionHandler: function(e) {
1261
- let t = {};
1262
- if (typeof e[1] == "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
1263
- const s = e[3] || e[2];
1264
- Object.keys(s).forEach((i) => {
1265
- t[i] = s[i];
1266
- });
1267
- }
1268
- return t;
1269
- },
1270
- interpolation: {
1271
- escapeValue: !0,
1272
- format: (r) => r,
1273
- prefix: "{{",
1274
- suffix: "}}",
1275
- formatSeparator: ",",
1276
- unescapePrefix: "-",
1277
- nestingPrefix: "$t(",
1278
- nestingSuffix: ")",
1279
- nestingOptionsSeparator: ",",
1280
- maxReplaces: 1e3,
1281
- skipOnVariables: !0
1282
- }
1283
- };
1284
- }
1285
- function re(r) {
1286
- return typeof r.ns == "string" && (r.ns = [r.ns]), typeof r.fallbackLng == "string" && (r.fallbackLng = [r.fallbackLng]), typeof r.fallbackNS == "string" && (r.fallbackNS = [r.fallbackNS]), r.supportedLngs && r.supportedLngs.indexOf("cimode") < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), r;
1287
- }
1288
- function K() {
1289
- }
1290
- function je(r) {
1291
- Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
1292
- typeof r[t] == "function" && (r[t] = r[t].bind(r));
1293
- });
1294
- }
1295
- class A extends J {
1296
- constructor() {
1297
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
1298
- if (super(), this.options = re(e), this.services = {}, this.logger = N, this.modules = {
1299
- external: []
1300
- }, je(this), t && !this.isInitialized && !e.isClone) {
1301
- if (!this.options.initImmediate)
1302
- return this.init(e, t), this;
1303
- setTimeout(() => {
1304
- this.init(e, t);
1305
- }, 0);
1306
- }
1307
- }
1308
- init() {
1309
- var e = this;
1310
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
1311
- typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
1312
- const i = ie();
1313
- this.options = {
1314
- ...i,
1315
- ...this.options,
1316
- ...re(t)
1317
- }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
1318
- ...i.interpolation,
1319
- ...this.options.interpolation
1320
- }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
1321
- function n(g) {
1322
- return g ? typeof g == "function" ? new g() : g : null;
1323
- }
1324
- if (!this.options.isClone) {
1325
- this.modules.logger ? N.init(n(this.modules.logger), this.options) : N.init(null, this.options);
1326
- let g;
1327
- this.modules.formatter ? g = this.modules.formatter : typeof Intl < "u" && (g = Ce);
1328
- const h = new ee(this.options);
1329
- this.store = new q(this.options.resources, this.options);
1330
- const u = this.services;
1331
- u.logger = N, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new Ne(h, {
1332
- prepend: this.options.pluralSeparator,
1333
- compatibilityJSON: this.options.compatibilityJSON,
1334
- simplifyPluralSuffix: this.options.simplifyPluralSuffix
1335
- }), g && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (u.formatter = n(g), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Re(this.options), u.utils = {
1336
- hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1337
- }, u.backendConnector = new ke(n(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
1338
- for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
1339
- d[m - 1] = arguments[m];
1340
- e.emit(p, ...d);
1341
- }), this.modules.languageDetector && (u.languageDetector = n(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = n(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new z(this.services, this.options), this.translator.on("*", function(p) {
1342
- for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
1343
- d[m - 1] = arguments[m];
1344
- e.emit(p, ...d);
1345
- }), this.modules.external.forEach((p) => {
1346
- p.init && p.init(this);
1347
- });
1348
- }
1349
- if (this.format = this.options.interpolation.format, s || (s = K), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1350
- const g = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1351
- g.length > 0 && g[0] !== "dev" && (this.options.lng = g[0]);
1352
- }
1353
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((g) => {
1354
- this[g] = function() {
1355
- return e.store[g](...arguments);
1356
- };
1357
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((g) => {
1358
- this[g] = function() {
1359
- return e.store[g](...arguments), e;
1360
- };
1361
- });
1362
- const l = F(), f = () => {
1363
- const g = (h, u) => {
1364
- this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(u), s(h, u);
1365
- };
1366
- if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
1367
- return g(null, this.t.bind(this));
1368
- this.changeLanguage(this.options.lng, g);
1369
- };
1370
- return this.options.resources || !this.options.initImmediate ? f() : setTimeout(f, 0), l;
1371
- }
1372
- loadResources(e) {
1373
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : K;
1374
- const i = typeof e == "string" ? e : this.language;
1375
- if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
1376
- if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
1377
- return s();
1378
- const n = [], a = (o) => {
1379
- if (!o || o === "cimode")
1380
- return;
1381
- this.services.languageUtils.toResolveHierarchy(o).forEach((f) => {
1382
- f !== "cimode" && n.indexOf(f) < 0 && n.push(f);
1383
- });
1384
- };
1385
- i ? a(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => a(l)), this.options.preload && this.options.preload.forEach((o) => a(o)), this.services.backendConnector.load(n, this.options.ns, (o) => {
1386
- !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
1387
- });
1388
- } else
1389
- s(null);
1390
- }
1391
- reloadResources(e, t, s) {
1392
- const i = F();
1393
- return e || (e = this.languages), t || (t = this.options.ns), s || (s = K), this.services.backendConnector.reload(e, t, (n) => {
1394
- i.resolve(), s(n);
1395
- }), i;
1396
- }
1397
- use(e) {
1398
- if (!e)
1399
- throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1400
- if (!e.type)
1401
- throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1402
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ae.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1403
- }
1404
- setResolvedLanguage(e) {
1405
- if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
1406
- for (let t = 0; t < this.languages.length; t++) {
1407
- const s = this.languages[t];
1408
- if (!(["cimode", "dev"].indexOf(s) > -1) && this.store.hasLanguageSomeTranslations(s)) {
1409
- this.resolvedLanguage = s;
1410
- break;
1411
- }
1412
- }
1413
- }
1414
- changeLanguage(e, t) {
1415
- var s = this;
1416
- this.isLanguageChangingTo = e;
1417
- const i = F();
1418
- this.emit("languageChanging", e);
1419
- const n = (l) => {
1420
- this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
1421
- }, a = (l, f) => {
1422
- f ? (n(f), this.translator.changeLanguage(f), this.isLanguageChangingTo = void 0, this.emit("languageChanged", f), this.logger.log("languageChanged", f)) : this.isLanguageChangingTo = void 0, i.resolve(function() {
1423
- return s.t(...arguments);
1424
- }), t && t(l, function() {
1425
- return s.t(...arguments);
1426
- });
1427
- }, o = (l) => {
1428
- !e && !l && this.services.languageDetector && (l = []);
1429
- const f = typeof l == "string" ? l : this.services.languageUtils.getBestMatchFromCodes(l);
1430
- f && (this.language || n(f), this.translator.language || this.translator.changeLanguage(f), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(f)), this.loadResources(f, (g) => {
1431
- a(g, f);
1432
- });
1433
- };
1434
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), i;
1435
- }
1436
- getFixedT(e, t, s) {
1437
- var i = this;
1438
- const n = function(a, o) {
1439
- let l;
1440
- if (typeof o != "object") {
1441
- for (var f = arguments.length, g = new Array(f > 2 ? f - 2 : 0), h = 2; h < f; h++)
1442
- g[h - 2] = arguments[h];
1443
- l = i.options.overloadTranslationOptionHandler([a, o].concat(g));
1444
- } else
1445
- l = {
1446
- ...o
1447
- };
1448
- l.lng = l.lng || n.lng, l.lngs = l.lngs || n.lngs, l.ns = l.ns || n.ns, l.keyPrefix = l.keyPrefix || s || n.keyPrefix;
1449
- const u = i.options.keySeparator || ".";
1450
- let p;
1451
- return l.keyPrefix && Array.isArray(a) ? p = a.map((c) => `${l.keyPrefix}${u}${c}`) : p = l.keyPrefix ? `${l.keyPrefix}${u}${a}` : a, i.t(p, l);
1452
- };
1453
- return typeof e == "string" ? n.lng = e : n.lngs = e, n.ns = t, n.keyPrefix = s, n;
1454
- }
1455
- t() {
1456
- return this.translator && this.translator.translate(...arguments);
1457
- }
1458
- exists() {
1459
- return this.translator && this.translator.exists(...arguments);
1460
- }
1461
- setDefaultNamespace(e) {
1462
- this.options.defaultNS = e;
1463
- }
1464
- hasLoadedNamespace(e) {
1465
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1466
- if (!this.isInitialized)
1467
- return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
1468
- if (!this.languages || !this.languages.length)
1469
- return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1470
- const s = t.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, n = this.languages[this.languages.length - 1];
1471
- if (s.toLowerCase() === "cimode")
1472
- return !0;
1473
- const a = (o, l) => {
1474
- const f = this.services.backendConnector.state[`${o}|${l}`];
1475
- return f === -1 || f === 2;
1476
- };
1477
- if (t.precheck) {
1478
- const o = t.precheck(this, a);
1479
- if (o !== void 0)
1480
- return o;
1481
- }
1482
- return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(s, e) && (!i || a(n, e)));
1483
- }
1484
- loadNamespaces(e, t) {
1485
- const s = F();
1486
- return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((i) => {
1487
- this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1488
- }), this.loadResources((i) => {
1489
- s.resolve(), t && t(i);
1490
- }), s) : (t && t(), Promise.resolve());
1491
- }
1492
- loadLanguages(e, t) {
1493
- const s = F();
1494
- typeof e == "string" && (e = [e]);
1495
- const i = this.options.preload || [], n = e.filter((a) => i.indexOf(a) < 0);
1496
- return n.length ? (this.options.preload = i.concat(n), this.loadResources((a) => {
1497
- s.resolve(), t && t(a);
1498
- }), s) : (t && t(), Promise.resolve());
1499
- }
1500
- dir(e) {
1501
- if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
1502
- return "rtl";
1503
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new ee(ie());
1504
- return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1505
- }
1506
- static createInstance() {
1507
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
1508
- return new A(e, t);
1509
- }
1510
- cloneInstance() {
1511
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : K;
1512
- const s = e.forkResourceStore;
1513
- s && delete e.forkResourceStore;
1514
- const i = {
1515
- ...this.options,
1516
- ...e,
1517
- isClone: !0
1518
- }, n = new A(i);
1519
- return (e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
1520
- n[o] = this[o];
1521
- }), n.services = {
1522
- ...this.services
1523
- }, n.services.utils = {
1524
- hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
1525
- }, s && (n.store = new q(this.store.data, i), n.services.resourceStore = n.store), n.translator = new z(n.services, i), n.translator.on("*", function(o) {
1526
- for (var l = arguments.length, f = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
1527
- f[g - 1] = arguments[g];
1528
- n.emit(o, ...f);
1529
- }), n.init(i, t), n.translator.options = i, n.translator.backendConnector.services.utils = {
1530
- hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
1531
- }, n;
1532
- }
1533
- toJSON() {
1534
- return {
1535
- options: this.options,
1536
- store: this.store,
1537
- language: this.language,
1538
- languages: this.languages,
1539
- resolvedLanguage: this.resolvedLanguage
1540
- };
1541
- }
1542
- }
1543
- const x = A.createInstance();
1544
- x.createInstance = A.createInstance;
1545
- x.createInstance;
1546
- x.dir;
1547
- x.init;
1548
- x.loadResources;
1549
- x.reloadResources;
1550
- x.use;
1551
- x.changeLanguage;
1552
- x.getFixedT;
1553
- x.t;
1554
- x.exists;
1555
- x.setDefaultNamespace;
1556
- x.hasLoadedNamespace;
1557
- x.loadNamespaces;
1558
- x.loadLanguages;
1559
4
  export {
1560
- x as default
5
+ e as useLayoutEffect
1561
6
  };
1562
7
  //# sourceMappingURL=index.es112.js.map