graphdb-workbench 2.8.0 → 2.8.1-TR1

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 (889) hide show
  1. package/dist/0.ae02baa403fbd1a7cc93.bundle.js +25 -0
  2. package/dist/1.d11629dd3d4ac454a102.bundle.js +1 -0
  3. package/dist/10.55bd5dc8999bc1cb1bcc.bundle.js +1 -0
  4. package/dist/100.3abbd576e5536d4292f3.bundle.js +1 -0
  5. package/dist/101.b68d884189e2d782f9db.bundle.js +1 -0
  6. package/dist/102.fd735d839ebbc2f9d40b.bundle.js +1 -0
  7. package/dist/103.41f921c4a65160dce11a.bundle.js +1 -0
  8. package/dist/104.56df8dfc430d6245d0fd.bundle.js +1 -0
  9. package/dist/105.18a79e9a55d9a7506d01.bundle.js +1 -0
  10. package/dist/106.cd544c47e948789ee528.bundle.js +1 -0
  11. package/dist/107.0acbdea31c1be05780a6.bundle.js +1 -0
  12. package/dist/108.131328ca1d67057fdb43.bundle.js +1 -0
  13. package/dist/109.ab2007ce0897221e9dc7.bundle.js +1 -0
  14. package/dist/11.89e2336d213a154b77f8.bundle.js +1 -0
  15. package/dist/110.66e0266aa1d8819e4956.bundle.js +1 -0
  16. package/dist/111.79d8512ffc6546c7d07a.bundle.js +1 -0
  17. package/dist/112.642f037985264473114e.bundle.js +1 -0
  18. package/dist/113.f57327392686a0436c59.bundle.js +1 -0
  19. package/dist/114.0b6bf50017f3a18cb2bb.bundle.js +1 -0
  20. package/dist/115.0bef2edf8104cfe9fcb1.bundle.js +1 -0
  21. package/dist/116.5098c4d565f343d82aa7.bundle.js +1 -0
  22. package/dist/117.f8e9008ec361c561359c.bundle.js +1 -0
  23. package/dist/118.cf2c44198e836a0b9ba0.bundle.js +1 -0
  24. package/dist/119.f10b6373c066a482c1f9.bundle.js +1 -0
  25. package/dist/12.10e84465b7ad808dad8b.bundle.js +1 -0
  26. package/dist/120.8595c6770e907e21f0fd.bundle.js +1 -0
  27. package/dist/121.2f6de9cd737026fda3b2.bundle.js +1 -0
  28. package/dist/122.b3177006c337fb555c21.bundle.js +1 -0
  29. package/dist/123.65cd6a98a6c3e27a1e60.bundle.js +1 -0
  30. package/dist/124.e89e3fee558b4edf4bad.bundle.js +1 -0
  31. package/dist/125.de1c18a0eb08e22e3624.bundle.js +1 -0
  32. package/dist/126.fb13c3af04bb0f1577cc.bundle.js +1 -0
  33. package/dist/127.32f4a1c4a2ed2e324f4d.bundle.js +1 -0
  34. package/dist/128.01074ce4644234d25596.bundle.js +1 -0
  35. package/dist/129.e0661aa4cfee8e2aaf06.bundle.js +1 -0
  36. package/dist/13.88cfe4e5391b6b678cd8.bundle.js +1 -0
  37. package/dist/130.0ce3a70e7e5705e61670.bundle.js +1 -0
  38. package/dist/131.5b9e755403cd78bf2b2f.bundle.js +1 -0
  39. package/dist/132.25094e9c07f5efcb34b2.bundle.js +1 -0
  40. package/dist/133.254cc76bc5e6850ff2e8.bundle.js +1 -0
  41. package/dist/134.61834d7c29cc4312afb9.bundle.js +1 -0
  42. package/dist/135.a9fc7400422a5a15a95f.bundle.js +1 -0
  43. package/dist/136.7fe96393bad12fb51207.bundle.js +1 -0
  44. package/dist/137.50d3f73e37365e6d1927.bundle.js +1 -0
  45. package/dist/138.f33533d8b2eba5d8ec0d.bundle.js +1 -0
  46. package/dist/139.c050f1e6081b3519d83e.bundle.js +1 -0
  47. package/dist/14.92d6b6761ef6cd70b36d.bundle.js +73 -0
  48. package/dist/140.8ae98afa44c78803dd4e.bundle.js +1 -0
  49. package/dist/141.b7e2e629537686c8cac8.bundle.js +1 -0
  50. package/dist/142.092408f98ed8dbe207c9.bundle.js +1 -0
  51. package/dist/143.8b89f3d9b87ee69267a9.bundle.js +1 -0
  52. package/dist/144.d51f731d7bc6cdfe08eb.bundle.js +1 -0
  53. package/dist/145.28e851b70237b9b3e33e.bundle.js +1 -0
  54. package/dist/146.2830d16d8a9bc73aa0eb.bundle.js +1 -0
  55. package/dist/147.7b3e99b032b256496ea8.bundle.js +1 -0
  56. package/dist/148.81254fa8e58524a4f382.bundle.js +1 -0
  57. package/dist/149.cc98899ce3a16ecf43c2.bundle.js +1 -0
  58. package/dist/15.e804c8ea193f9f0401c0.bundle.js +1 -0
  59. package/dist/150.39a1061a85b84c1b7dd3.bundle.js +1 -0
  60. package/dist/151.ce6630508d2265e89d34.bundle.js +1 -0
  61. package/dist/152.219c9e850d8847ddfa60.bundle.js +1 -0
  62. package/dist/153.c2c3d34c96b4bb7c2bdb.bundle.js +1 -0
  63. package/dist/154.96c6a0b9aa0e3297cd9d.bundle.js +1 -0
  64. package/dist/155.824842fa18302aebe5a4.bundle.js +1 -0
  65. package/dist/156.550f4d5775a92a66350d.bundle.js +1 -0
  66. package/dist/157.b0c4feabee929ccf8a5c.bundle.js +1 -0
  67. package/dist/158.ad2422d97d11cf851db5.bundle.js +1 -0
  68. package/dist/159.0eaaf667316687f57ded.bundle.js +1 -0
  69. package/dist/16.e7b01ccdf70c5485402f.bundle.js +1 -0
  70. package/dist/160.ec43997746f31cbcb3c0.bundle.js +1 -0
  71. package/dist/161.0ca082da47c2c380b3fb.bundle.js +1 -0
  72. package/dist/162.4462cbff9f2deceb8d55.bundle.js +1 -0
  73. package/dist/163.9b606dc8b334c4590e80.bundle.js +1 -0
  74. package/dist/164.6fbbef35e36e128626c1.bundle.js +1 -0
  75. package/dist/165.8c936f8350a0352fe33a.bundle.js +1 -0
  76. package/dist/166.52d6a35cba64be7d7d3e.bundle.js +1 -0
  77. package/dist/167.51430f40df772b3a70dd.bundle.js +1 -0
  78. package/dist/168.38dbbebd88da57b3ae35.bundle.js +1 -0
  79. package/dist/169.245ee4b967e1b8879358.bundle.js +1 -0
  80. package/dist/17.fd8a9a8ebe5f4d9e2f11.bundle.js +1 -0
  81. package/dist/170.e253c0170034a3f97336.bundle.js +1 -0
  82. package/dist/171.fb19b792123f0251daaf.bundle.js +1 -0
  83. package/dist/172.c2999c73126f04810b46.bundle.js +1 -0
  84. package/dist/173.f10cc8249c5c6bd4a853.bundle.js +1 -0
  85. package/dist/174.6ae0de8881f3c2379c53.bundle.js +1 -0
  86. package/dist/175.3da8cdc348e5341ca1c9.bundle.js +1 -0
  87. package/dist/176.f78a6898f07f2d523227.bundle.js +1 -0
  88. package/dist/177.88a27f82ee6835f26e09.bundle.js +1 -0
  89. package/dist/178.0fa14533f1a361282a18.bundle.js +1 -0
  90. package/dist/179.507b9f6d22b008299110.bundle.js +1 -0
  91. package/dist/18.c79beb000f78666dc1ea.bundle.js +2 -0
  92. package/dist/180.58fe04c74100d9f113f2.bundle.js +1 -0
  93. package/dist/181.50637e050234a6966c94.bundle.js +1 -0
  94. package/dist/182.4f990626ad1fd98ce257.bundle.js +1 -0
  95. package/dist/183.53e87e91190814612b6e.bundle.js +1 -0
  96. package/dist/184.3fd50441f089e2201a51.bundle.js +1 -0
  97. package/dist/185.b8ca04cdc7a919e8ef0c.bundle.js +1 -0
  98. package/dist/186.2c2a3daf2e31a391bc75.bundle.js +1 -0
  99. package/dist/187.255f4746e6f1c0c48c35.bundle.js +1 -0
  100. package/dist/188.7949088dd5b10c4c99f5.bundle.js +1 -0
  101. package/dist/189.8cbd6dbda31320678237.bundle.js +1 -0
  102. package/dist/19.d93a2a4183d72e8cb0d6.bundle.js +1 -0
  103. package/dist/190.673e03d17a314b96e12b.bundle.js +1 -0
  104. package/dist/191.c981e0fba087d2e799a6.bundle.js +1 -0
  105. package/dist/192.60efcfbb8ae8f134a396.bundle.js +1 -0
  106. package/dist/193.4c02ced7a1c44850598f.bundle.js +1 -0
  107. package/dist/194.7ec15a64658c1f97c8eb.bundle.js +1 -0
  108. package/dist/195.9049135a54192e8d8254.bundle.js +1 -0
  109. package/dist/196.ef896ced6d6a055931ee.bundle.js +1 -0
  110. package/dist/197.2a0f5d280127e30e6a21.bundle.js +1 -0
  111. package/dist/198.ea0abe93c519289fb8be.bundle.js +1 -0
  112. package/dist/199.4cf122243f582e12bffa.bundle.js +1 -0
  113. package/dist/2.900ef83c7a6b380aca5e.bundle.js +2 -0
  114. package/dist/20.4e8e5f274166f7216846.bundle.js +1 -0
  115. package/dist/200.5f869906cf7cd298c139.bundle.js +1 -0
  116. package/dist/201.ecd6f5a0b1e07259609b.bundle.js +1 -0
  117. package/dist/202.940493f04e558c20ebeb.bundle.js +1 -0
  118. package/dist/203.e6fa0158b83067a522b6.bundle.js +1 -0
  119. package/dist/204.90c80b56283809b7025e.bundle.js +1 -0
  120. package/dist/205.a3cb6b3f5907d142cf95.bundle.js +1 -0
  121. package/dist/206.24181d86be3eff88d52c.bundle.js +1 -0
  122. package/dist/207.439cff6991fd256e5aa1.bundle.js +1 -0
  123. package/dist/208.c653cb276b43b29cce49.bundle.js +1 -0
  124. package/dist/209.8285dee1da75e605749e.bundle.js +1 -0
  125. package/dist/21.e71d40f83086661e7f61.bundle.js +1 -0
  126. package/dist/210.a2ea30efd2122d5a8f2f.bundle.js +1 -0
  127. package/dist/211.de53552e0b8e59e26d71.bundle.js +1 -0
  128. package/dist/212.f80d06d279d2dc0aae74.bundle.js +1 -0
  129. package/dist/213.3b1ed0016e75a097798d.bundle.js +1 -0
  130. package/dist/214.e66c5e02cd8628abb86d.bundle.js +1 -0
  131. package/dist/215.bd7d215f0b4c30c41150.bundle.js +1 -0
  132. package/dist/216.596ffaba4897a3b8f57e.bundle.js +1 -0
  133. package/dist/217.f23953e7013fe9628984.bundle.js +1 -0
  134. package/dist/218.c9ebeca0a0601cbfdd49.bundle.js +1 -0
  135. package/dist/219.49b7f67206dc1b550fcd.bundle.js +1 -0
  136. package/dist/22.26828925f52d93debe51.bundle.js +7 -0
  137. package/dist/220.60aae5815d2081a0e83a.bundle.js +1 -0
  138. package/dist/221.9ddd6a25f2977a63833b.bundle.js +1 -0
  139. package/dist/222.ca41fa6721e4e66ed399.bundle.js +1 -0
  140. package/dist/223.54c4cac06e4519e3efb0.bundle.js +1 -0
  141. package/dist/224.f7199477314a1768db47.bundle.js +1 -0
  142. package/dist/225.6a3fe206268377dad69d.bundle.js +1 -0
  143. package/dist/226.7924f3c96e16c5e72c5b.bundle.js +1 -0
  144. package/dist/227.ae93e62e09fd4d381d07.bundle.js +1 -0
  145. package/dist/228.2c598157be22f2119a80.bundle.js +1 -0
  146. package/dist/229.7a0284ae7edfa27eb8a1.bundle.js +1 -0
  147. package/dist/23.543c375f0f86d771dbf0.bundle.js +3 -0
  148. package/dist/230.1d9ce4dbc6dc22371a26.bundle.js +1 -0
  149. package/dist/231.c353755e4c1b58e65ec4.bundle.js +1 -0
  150. package/dist/232.5a8fdf0f56be1ae7cc82.bundle.js +1 -0
  151. package/dist/233.d6ef0f5bb2b6375bd52f.bundle.js +1 -0
  152. package/dist/234.0a6bc5430424d7ca0803.bundle.js +1 -0
  153. package/dist/235.cdfa5405484e4f6e1645.bundle.js +1 -0
  154. package/dist/236.bff8d95f9f4986ce7f76.bundle.js +1 -0
  155. package/dist/237.377279922b3917eb2125.bundle.js +1 -0
  156. package/dist/238.dbeb2c0bf3dccf39339b.bundle.js +1 -0
  157. package/dist/239.6b9bf48532f001f4c735.bundle.js +1 -0
  158. package/dist/24.d7b7127e0cd0c8bbef98.bundle.js +2 -0
  159. package/dist/240.727e415c23c389be7664.bundle.js +1 -0
  160. package/dist/241.9226188eb93223b74add.bundle.js +1 -0
  161. package/dist/242.bd036e6b1bdd54dd1ae7.bundle.js +1 -0
  162. package/dist/243.684335d32b3e2db71742.bundle.js +1 -0
  163. package/dist/244.4a6251926a6647e4835d.bundle.js +1 -0
  164. package/dist/245.fdb7b2fe10dcea472879.bundle.js +1 -0
  165. package/dist/246.c8b41d4b12b1250e01ed.bundle.js +1 -0
  166. package/dist/247.37b6eb2ecc53b255c33a.bundle.js +1 -0
  167. package/dist/248.0c33aa07abd48a74725d.bundle.js +1 -0
  168. package/dist/249.88fea9574f0fce1953cf.bundle.js +1 -0
  169. package/dist/25.3a2036abc3774ed24148.bundle.js +2 -0
  170. package/dist/250.137f3fe61ea786d8f59d.bundle.js +1 -0
  171. package/dist/251.59720f599bbb696550e4.bundle.js +1 -0
  172. package/dist/252.93d6b6a7e44fb9741804.bundle.js +1 -0
  173. package/dist/253.930cda0de4ec25344bff.bundle.js +1 -0
  174. package/dist/254.62b9a64574f43df868d2.bundle.js +1 -0
  175. package/dist/255.20192dfc724463dab127.bundle.js +1 -0
  176. package/dist/256.0ea3fb2a99a478742080.bundle.js +1 -0
  177. package/dist/257.e14524fd21f234ac1f42.bundle.js +1 -0
  178. package/dist/258.5e650bcb69718b27339f.bundle.js +1 -0
  179. package/dist/259.d1e40e9081a9dc913ad9.bundle.js +1 -0
  180. package/dist/26.2393280351ab069f6f30.bundle.js +3 -0
  181. package/dist/260.db455f2124cbe43df61c.bundle.js +1 -0
  182. package/dist/261.9c82a592fef22b855787.bundle.js +1 -0
  183. package/dist/262.c9dea482117872e4b07c.bundle.js +1 -0
  184. package/dist/263.9313cb2696d2d844849a.bundle.js +1 -0
  185. package/dist/264.bc7ad7396bfced9e76ef.bundle.js +1 -0
  186. package/dist/265.ffbab37e1a761ec07b60.bundle.js +1 -0
  187. package/dist/266.a96fe8809d67e0eac7e5.bundle.js +1 -0
  188. package/dist/267.c07b3f034458a2331538.bundle.js +1 -0
  189. package/dist/268.bce40e9eab7d39e60750.bundle.js +1 -0
  190. package/dist/269.8e8d3873f1c7018bedbc.bundle.js +1 -0
  191. package/dist/27.b9a244767f6c3482fdb8.bundle.js +2 -0
  192. package/dist/270.4ccea89d95972bf06d46.bundle.js +1 -0
  193. package/dist/271.f24ebd16b309e6f32e37.bundle.js +1 -0
  194. package/dist/272.c8862e179fb9241e5bc2.bundle.js +1 -0
  195. package/dist/273.4c4d99e6c4378d9822ac.bundle.js +1 -0
  196. package/dist/274.0bfb73e6f7b0a64435f6.bundle.js +1 -0
  197. package/dist/275.9fb6914974d62188bb11.bundle.js +1 -0
  198. package/dist/276.3e3057cfdd25bc12ab02.bundle.js +1 -0
  199. package/dist/277.0797f2c46650c7afe350.bundle.js +1 -0
  200. package/dist/278.b2ecdbeb6efe166a4138.bundle.js +1 -0
  201. package/dist/279.a9cab23ebf26fca2a9cf.bundle.js +1 -0
  202. package/dist/28.b587ba8cc784632a83fc.bundle.js +1 -0
  203. package/dist/280.5c4b2ddc7618a469c7fe.bundle.js +1 -0
  204. package/dist/281.da8c8f1fe4d4bb38d1e2.bundle.js +1 -0
  205. package/dist/282.e2cbab0c480d7b8dfa6a.bundle.js +1 -0
  206. package/dist/283.983f0f381134b6bdcb04.bundle.js +1 -0
  207. package/dist/284.f361457d23176846d939.bundle.js +1 -0
  208. package/dist/285.ef26d39638b16bacab4c.bundle.js +1 -0
  209. package/dist/286.34a20634e387664f2a6d.bundle.js +1 -0
  210. package/dist/287.f7bc3db6a00eb98cf7b5.bundle.js +1 -0
  211. package/dist/288.efa7e26e063c5b6f875d.bundle.js +1 -0
  212. package/dist/289.4e5af5efc77a8ba6f954.bundle.js +1 -0
  213. package/dist/29.19532418f4f5cf80a5a5.bundle.js +1 -0
  214. package/dist/290.eacfa7804d4617359162.bundle.js +1 -0
  215. package/dist/291.34e6e289ace8f72b99b0.bundle.js +1 -0
  216. package/dist/292.5a049771b8c51d82bdc7.bundle.js +1 -0
  217. package/dist/293.7607c41b310a02aebfd3.bundle.js +1 -0
  218. package/dist/294.39c3b65bcd461dd1b7cb.bundle.js +1 -0
  219. package/dist/295.495163add3be67d633b4.bundle.js +1 -0
  220. package/dist/296.c15d4b1955a9cae0e972.bundle.js +1 -0
  221. package/dist/297.044db6bb92a9a96f6817.bundle.js +1 -0
  222. package/dist/298.672e33981e1947a19e26.bundle.js +1 -0
  223. package/dist/299.6f683f57d08083d34d24.bundle.js +1 -0
  224. package/dist/3.6563d17b2cd41128890b.bundle.js +1 -0
  225. package/dist/30.c95fbd1f309468fbcb34.bundle.js +1 -0
  226. package/dist/300.c62fd23507752ba6daba.bundle.js +1 -0
  227. package/dist/301.5939b5c8326708c4f387.bundle.js +1 -0
  228. package/dist/302.05370654ff61fd4a2554.bundle.js +1 -0
  229. package/dist/303.81dc35aa6f7747755f19.bundle.js +1 -0
  230. package/dist/304.f306e53916885bda3c4b.bundle.js +1 -0
  231. package/dist/305.5835c4a6e2f972ee490f.bundle.js +1 -0
  232. package/dist/306.4776f920572ba67d87f7.bundle.js +1 -0
  233. package/dist/307.a8f42225ca98e3ebf656.bundle.js +1 -0
  234. package/dist/308.2be4226a575d34b0cd73.bundle.js +1 -0
  235. package/dist/309.c84682804a521a8b2a77.bundle.js +1 -0
  236. package/dist/31.e88ecb2b45e6f4de62d3.bundle.js +1 -0
  237. package/dist/310.e6762b117cb6ae5ad44f.bundle.js +1 -0
  238. package/dist/311.1eb3449e915d4daf5c1d.bundle.js +1 -0
  239. package/dist/312.c4b2d6fa63a3389f22d3.bundle.js +1 -0
  240. package/dist/313.1ebabec29606c0b5c29e.bundle.js +1 -0
  241. package/dist/314.366b9d03d5e93dd8779d.bundle.js +1 -0
  242. package/dist/315.3579a19e49a159f01af3.bundle.js +1 -0
  243. package/dist/316.1714889dd79b839b2c13.bundle.js +1 -0
  244. package/dist/317.03873f861bdb32a06fd1.bundle.js +1 -0
  245. package/dist/318.f165089ab6a2347d6270.bundle.js +1 -0
  246. package/dist/319.6551554a97d7ae4741a3.bundle.js +1 -0
  247. package/dist/32.6f28c2b0829f31822825.bundle.js +1 -0
  248. package/dist/320.68be8ddd757494458e92.bundle.js +1 -0
  249. package/dist/321.4b5c5975a3eb3290576a.bundle.js +1 -0
  250. package/dist/322.37874a32a3b840b2bc18.bundle.js +1 -0
  251. package/dist/323.e4db3f0a06377f6d5ffd.bundle.js +1 -0
  252. package/dist/324.19edead008e4e4ed38de.bundle.js +1 -0
  253. package/dist/325.f5af4954c4c7b5edd6b5.bundle.js +1 -0
  254. package/dist/326.104705396eb92eb1ad1d.bundle.js +1 -0
  255. package/dist/327.bf1af0af04aa7aff6074.bundle.js +1 -0
  256. package/dist/328.341f20bda7f187c90eae.bundle.js +1 -0
  257. package/dist/329.3531904303a06d96871a.bundle.js +1 -0
  258. package/dist/33.a0d9678fb193cff2d255.bundle.js +1 -0
  259. package/dist/330.f4a8e20c39fcf8a6329e.bundle.js +1 -0
  260. package/dist/336.530f8a7a8a94a6f90e10.bundle.js +1 -0
  261. package/dist/337.ca72e3a0564046837b16.bundle.js +1 -0
  262. package/dist/338.374161b39b10166c9383.bundle.js +1 -0
  263. package/dist/339.d60015ae962cb45f5c9f.bundle.js +1 -0
  264. package/dist/34.63bcd4f233c8c700d893.bundle.js +1 -0
  265. package/dist/340.d7764886e9fa2462e226.bundle.js +1 -0
  266. package/dist/341.2f072aee67e9e07bdd9f.bundle.js +1 -0
  267. package/dist/342.38fb6bf2b408a6d47190.bundle.js +1 -0
  268. package/dist/343.2d31c04a850624d7b8f0.bundle.js +1 -0
  269. package/dist/344.bdb757ea72b5f4f5b3aa.bundle.js +1 -0
  270. package/dist/345.546419e39affcfcd1852.bundle.js +1 -0
  271. package/dist/346.d32c26eea6a80b8cc37c.bundle.js +1 -0
  272. package/dist/347.57ed4a385e855cad7c0b.bundle.js +1 -0
  273. package/dist/348.2af6c86e359a89205966.bundle.js +1 -0
  274. package/dist/349.c408af02db127f8869f1.bundle.js +1 -0
  275. package/dist/35.f556eeb37786469e255c.bundle.js +1 -0
  276. package/dist/350.5e899a92f38c16489e02.bundle.js +1 -0
  277. package/dist/351.c09d36a810cf40b9c25f.bundle.js +1 -0
  278. package/dist/352.55911f19f713e462dbad.bundle.js +1 -0
  279. package/dist/353.bca7ad8f953be01367f2.bundle.js +1 -0
  280. package/dist/354.9817814cea17732668b8.bundle.js +1 -0
  281. package/dist/355.ad0bf431f6c11d1ae224.bundle.js +1 -0
  282. package/dist/356.5a005a80d3da9112a320.bundle.js +1 -0
  283. package/dist/357.7153867a09520f642644.bundle.js +1 -0
  284. package/dist/358.48b6152e563fe4c8f16a.bundle.js +1 -0
  285. package/dist/359.f3d0c391ee07446ccb3e.bundle.js +1 -0
  286. package/dist/36.1d7577b17840cacdf0cc.bundle.js +1 -0
  287. package/dist/360.abbeb351a52651620fcd.bundle.js +1 -0
  288. package/dist/361.ed52a00185c531e08c48.bundle.js +1 -0
  289. package/dist/362.efb136eaecbd5340f6ed.bundle.js +1 -0
  290. package/dist/363.63d642cc9d857de99c9d.bundle.js +1 -0
  291. package/dist/364.f2cb7cb3a22233473def.bundle.js +1 -0
  292. package/dist/365.2f51a94cafaa642980ca.bundle.js +1 -0
  293. package/dist/366.ad3baaa586d05913abe3.bundle.js +1 -0
  294. package/dist/367.4211395aff6ef7bf4849.bundle.js +1 -0
  295. package/dist/368.c47ba2c9fff8b9f81b5c.bundle.js +1 -0
  296. package/dist/369.aea9209ff82df8dcf091.bundle.js +1 -0
  297. package/dist/37.ca1a4d87ac7adf39ed4b.bundle.js +1 -0
  298. package/dist/370.6926f2217ab428187508.bundle.js +1 -0
  299. package/dist/371.7d843569095a7b1c0ddf.bundle.js +1 -0
  300. package/dist/372.c77982eeb32da732bb18.bundle.js +1 -0
  301. package/dist/373.d1af1eb63f347c74a705.bundle.js +1 -0
  302. package/dist/374.4e6e769c5c54037fb87a.bundle.js +1 -0
  303. package/dist/375.98162ba8ec236ad62a94.bundle.js +1 -0
  304. package/dist/376.f1a33b8eac5cba3b866a.bundle.js +1 -0
  305. package/dist/377.add679f2b5606f856749.bundle.js +1 -0
  306. package/dist/378.a6934451c464b146fc17.bundle.js +1 -0
  307. package/dist/379.189bd477d9aa69f43690.bundle.js +1 -0
  308. package/dist/38.1cc8c47552b3606e309f.bundle.js +1 -0
  309. package/dist/380.dc7f6c4f308e03531407.bundle.js +1 -0
  310. package/dist/381.9c2eb155a9c97c017380.bundle.js +1 -0
  311. package/dist/382.3ab1a4612dbcf4892073.bundle.js +1 -0
  312. package/dist/383.5da272f5acd1fac32aad.bundle.js +1 -0
  313. package/dist/384.5fcf059ada3b8a42d706.bundle.js +1 -0
  314. package/dist/385.9c0b96788faa18f9e560.bundle.js +1 -0
  315. package/dist/386.ef99a1daa887f9994e02.bundle.js +1 -0
  316. package/dist/387.a4e4d616ffd96e2fadab.bundle.js +1 -0
  317. package/dist/388.5886ae70a4fa56638410.bundle.js +1 -0
  318. package/dist/389.af5d3bd2d739b142bc81.bundle.js +1 -0
  319. package/dist/39.038879a8833f3817093d.bundle.js +1 -0
  320. package/dist/390.a85b5054ed766528011f.bundle.js +1 -0
  321. package/dist/391.306af114af5986fd635d.bundle.js +1 -0
  322. package/dist/392.8672da919405465e4104.bundle.js +1 -0
  323. package/dist/393.c5d035ecc740781c04d7.bundle.js +1 -0
  324. package/dist/394.3e722468bccbfdd42b01.bundle.js +1 -0
  325. package/dist/395.34e869837c0dfc05fc52.bundle.js +1 -0
  326. package/dist/396.b4940df42a9388a1fa65.bundle.js +1 -0
  327. package/dist/397.b25d94494ea955deb1e0.bundle.js +1 -0
  328. package/dist/398.dce5ba48d746a385c600.bundle.js +1 -0
  329. package/dist/399.bb00f12527eb3e8488bb.bundle.js +1 -0
  330. package/dist/4.f88e5bb228972375cc28.bundle.js +1 -0
  331. package/dist/40.05a9805a5b07c189df24.bundle.js +1 -0
  332. package/dist/400.43f8b04da11b234ec8b1.bundle.js +1 -0
  333. package/dist/401.c44df443cf8caf6d4d6b.bundle.js +1 -0
  334. package/dist/402.a27c7d3020fb83fd9603.bundle.js +1 -0
  335. package/dist/403.340a87b8c2061a671b16.bundle.js +1 -0
  336. package/dist/404.5a27d40ab9205fafb83a.bundle.js +1 -0
  337. package/dist/405.b8d7877478a3993e20ff.bundle.js +1 -0
  338. package/dist/406.8b992547c2ab764d77a5.bundle.js +1 -0
  339. package/dist/407.2d842a4b317f06b71c7f.bundle.js +1 -0
  340. package/dist/408.7e584653eb94469c494e.bundle.js +1 -0
  341. package/dist/409.fa5069507e3bec5dfa50.bundle.js +1 -0
  342. package/dist/41.fa23b31a4328e38c548e.bundle.js +1 -0
  343. package/dist/410.3ce11777a703060d76f3.bundle.js +1 -0
  344. package/dist/411.3c7dd0b42a140940c407.bundle.js +1 -0
  345. package/dist/412.d5252e14455696e1b76a.bundle.js +1 -0
  346. package/dist/413.88a5f43d77d65cb580f4.bundle.js +1 -0
  347. package/dist/414.67b4c86161dbd68e0b2a.bundle.js +1 -0
  348. package/dist/415.9ce7901f1e74412c17a9.bundle.js +1 -0
  349. package/dist/416.750f6233af2097d0fa6e.bundle.js +1 -0
  350. package/dist/417.d48c24e509334bf68dfd.bundle.js +1 -0
  351. package/dist/42.d7d9449579c0f3794663.bundle.js +1 -0
  352. package/dist/43.ea28943c80d79daa0649.bundle.js +1 -0
  353. package/dist/44.de4dcb467d772c868306.bundle.js +1 -0
  354. package/dist/45.805cb81e8bd5e16d6614.bundle.js +1 -0
  355. package/dist/46.8519664b24972b0782c8.bundle.js +1 -0
  356. package/dist/47.4c05c24b7972bf3f4cf6.bundle.js +1 -0
  357. package/dist/48.279b5e18079ae3236125.bundle.js +1 -0
  358. package/dist/49.994126a85737bdb7b895.bundle.js +1 -0
  359. package/dist/5.48db74b2d08bc31e6609.bundle.js +1 -0
  360. package/dist/50.b67a8bf19f5ba40d211d.bundle.js +1 -0
  361. package/dist/51.3a62c4f9dd49b6f26247.bundle.js +1 -0
  362. package/dist/52.10366c2c972b0c368dd5.bundle.js +1 -0
  363. package/dist/53.1c209e38bc652bc802a3.bundle.js +1 -0
  364. package/dist/54.7e75dbcdbc39dbec90c4.bundle.js +1 -0
  365. package/dist/55.55159c353664aaa65f20.bundle.js +1 -0
  366. package/dist/56.cad4e885a180e8f5ba16.bundle.js +1 -0
  367. package/dist/57.628c8edb7f3ea7559aeb.bundle.js +1 -0
  368. package/dist/58.ff52db4cd6651f271ee6.bundle.js +1 -0
  369. package/dist/59.e24c0d3a5a2e99964322.bundle.js +1 -0
  370. package/dist/6.feadde6ea1b3951e6ffc.bundle.js +1 -0
  371. package/dist/60.73f28fb466ff93ea8c99.bundle.js +1 -0
  372. package/dist/61.d7dbf4e7c0e4c9e8c961.bundle.js +1 -0
  373. package/dist/62.64013e3b3891db8e214b.bundle.js +1 -0
  374. package/dist/63.42acb9c680477bb60dda.bundle.js +1 -0
  375. package/dist/64.cb099060a9e5142b2a34.bundle.js +1 -0
  376. package/dist/65.7374263e745ee8ac5e5f.bundle.js +1 -0
  377. package/dist/66.3b2834055886e18be670.bundle.js +1 -0
  378. package/dist/67.e57d5c01f9c358ce95c4.bundle.js +2 -0
  379. package/dist/68.bfe1be4722764506c724.bundle.js +2 -0
  380. package/dist/69.6a091bc2232315eb1162.bundle.js +1 -0
  381. package/dist/7.26ca23aa2fc78c5134fa.bundle.js +1 -0
  382. package/dist/70.379b070afa69e89fc19d.bundle.js +1 -0
  383. package/dist/71.a5708253786dc076b748.bundle.js +1 -0
  384. package/dist/72.9b46af75f4baffcb308d.bundle.js +1 -0
  385. package/dist/73.b9b252f90e6eb21b4555.bundle.js +1 -0
  386. package/dist/74.49f8cf2b5302352d9954.bundle.js +1 -0
  387. package/dist/75.1eaa235bbff5daf4df2d.bundle.js +1 -0
  388. package/dist/76.461a1852e8e09de07620.bundle.js +1 -0
  389. package/dist/77.edb359682edd6fa840f5.bundle.js +1 -0
  390. package/dist/78.c2c29a6779cc45af6d80.bundle.js +1 -0
  391. package/dist/79.fc5434d77790bf63fb1d.bundle.js +1 -0
  392. package/dist/8.3e745f7c7feea8ef0d89.bundle.js +1 -0
  393. package/dist/80.640f01c06722e92cc871.bundle.js +1 -0
  394. package/dist/81.8499c3cd340fbbdab7ba.bundle.js +1 -0
  395. package/dist/82.6fddce14fa5db6d3d2e4.bundle.js +2 -0
  396. package/dist/83.f53e5a2963a770c3b641.bundle.js +1 -0
  397. package/dist/84.9c2217ed7d51b9587b34.bundle.js +1 -0
  398. package/dist/85.f5022d593fa18e7b6e2f.bundle.js +1 -0
  399. package/dist/86.b1867ffb28ea1d2ee860.bundle.js +1 -0
  400. package/dist/87.a2d4ca7f2399981400e7.bundle.js +1 -0
  401. package/dist/88.1d5fba0d6977f63971c0.bundle.js +1 -0
  402. package/dist/89.f6e7f0c79bf4e83e25d3.bundle.js +1 -0
  403. package/dist/9.456bbf3bb8220ce89c06.bundle.js +1 -0
  404. package/dist/90.f8be0eeac11bfa1fccb5.bundle.js +1 -0
  405. package/dist/91.bce03a05674b18e50d4e.bundle.js +1 -0
  406. package/dist/92.ffa46df6b348e925334a.bundle.js +1 -0
  407. package/dist/93.9435148522ff648ea355.bundle.js +1 -0
  408. package/dist/94.dd874799e2cc8044e246.bundle.js +1 -0
  409. package/dist/95.d15d8c36116342281f3a.bundle.js +1 -0
  410. package/dist/96.b0ae820f47d0afb0c2c0.bundle.js +1 -0
  411. package/dist/97.82170f92dbcfc1351625.bundle.js +1 -0
  412. package/dist/98.8eacc969d96df474a5d1.bundle.js +1 -0
  413. package/dist/99.42e89f1af83b86c2838e.bundle.js +1 -0
  414. package/dist/bundle.ef9d667043403016bf13.bundle.js +95 -0
  415. package/dist/css/create-similarity-index.css +6 -0
  416. package/dist/css/ttyg/chat-list.css +1 -1
  417. package/dist/i18n/languages.json +7 -0
  418. package/dist/i18n/locale-en.json +3 -2
  419. package/dist/i18n/locale-fr.json +3 -2
  420. package/dist/index.html +3 -3
  421. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  422. package/dist/js/angular/core/directives/inline-editable-text/templates/inline-editable-text.template.html +2 -2
  423. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  424. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +4 -3
  425. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  426. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  427. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  428. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  429. package/dist/js/angular/security/templates/user.html +1 -1
  430. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  431. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  432. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  433. package/dist/js/angular/ttyg/templates/chat-list.html +4 -2
  434. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  435. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  436. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +1 -1
  437. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  438. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  439. package/dist/license-checker.json +2 -2
  440. package/dist/main.b38aec450958f3ee4f14.bundle.js +1 -0
  441. package/dist/pages/aclmanagement.html +7 -7
  442. package/dist/pages/autocomplete.html +1 -1
  443. package/dist/pages/choose-repository-type.html +1 -1
  444. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  445. package/dist/pages/create-index.html +13 -5
  446. package/dist/pages/dependencies.html +1 -1
  447. package/dist/pages/domainRangeInfo.html +2 -2
  448. package/dist/pages/edit.html +1 -1
  449. package/dist/pages/explore.html +1 -1
  450. package/dist/pages/export.html +1 -1
  451. package/dist/pages/find.html +1 -1
  452. package/dist/pages/graph-config/saveGraphConfig.html +10 -10
  453. package/dist/pages/graphs-visualizations.html +11 -11
  454. package/dist/pages/guides.html +1 -1
  455. package/dist/pages/home.html +2 -2
  456. package/dist/pages/import.html +2 -2
  457. package/dist/pages/jdbc-create.html +1 -1
  458. package/dist/pages/monitor/backup-and-restore.html +1 -1
  459. package/dist/pages/monitor/queries.html +1 -1
  460. package/dist/pages/monitor/resources.html +1 -1
  461. package/dist/pages/namespaces.html +2 -2
  462. package/dist/pages/plugins.html +1 -1
  463. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  464. package/dist/pages/rdfrank.html +2 -2
  465. package/dist/pages/repositories.html +1 -1
  466. package/dist/pages/repository.html +1 -1
  467. package/dist/pages/similarity-indexes.html +13 -13
  468. package/dist/pages/sparql-editor.html +1 -1
  469. package/dist/pages/sparql-template-create.html +1 -1
  470. package/dist/pages/ux-test1.html +2 -2
  471. package/dist/pages/webapi.html +2 -2
  472. package/dist/plugins.js +2 -3
  473. package/dist/polyfills-dom.00375ac99a037cb2ab69.bundle.js +19 -0
  474. package/dist/res/swagger5/index.html +12 -12
  475. package/dist/vendor.29baf59ddf58b8e375ed.bundle.js +27 -0
  476. package/dist/vendors~polyfills-core-js.bf6de4f5103f78d69ccf.bundle.js +1 -0
  477. package/package.json +2 -1
  478. package/dist/0.b18306b2cadb110a4706.bundle.js +0 -25
  479. package/dist/1.448206bdf418ae6f4bb1.bundle.js +0 -1
  480. package/dist/10.68a799e9740094ae6dca.bundle.js +0 -1
  481. package/dist/100.09a30a5e44435c837f2a.bundle.js +0 -1
  482. package/dist/101.caacc7236547367b3490.bundle.js +0 -1
  483. package/dist/102.4eeca7f968a33676bd37.bundle.js +0 -1
  484. package/dist/103.51d530c22201d78caa93.bundle.js +0 -1
  485. package/dist/104.38201bee605ebc344d8a.bundle.js +0 -1
  486. package/dist/105.e11b21c6d94f5df2b6c0.bundle.js +0 -1
  487. package/dist/106.9f79d102d74f6c666426.bundle.js +0 -1
  488. package/dist/107.57f4a826dcecb39b5cff.bundle.js +0 -1
  489. package/dist/108.685698b895a5e16ba92f.bundle.js +0 -1
  490. package/dist/109.7e1872c8dc363801a73a.bundle.js +0 -1
  491. package/dist/11.fb254db6ab09d415273d.bundle.js +0 -1
  492. package/dist/110.be87cfc050d9a4f51e6c.bundle.js +0 -1
  493. package/dist/111.2ce44854edbaa2238fa4.bundle.js +0 -1
  494. package/dist/112.28febaaf610eba64128b.bundle.js +0 -1
  495. package/dist/113.9ad88652dd2d85f3dd2e.bundle.js +0 -1
  496. package/dist/114.f68e86a5c96abb1ee21c.bundle.js +0 -1
  497. package/dist/115.a627783d082869bde43e.bundle.js +0 -1
  498. package/dist/116.37799a5fbee1455a6a54.bundle.js +0 -1
  499. package/dist/117.aee330b983bf5c50f8c1.bundle.js +0 -1
  500. package/dist/118.97b6ec864fd41bc2aed8.bundle.js +0 -1
  501. package/dist/119.fb10ef86ec9300396424.bundle.js +0 -1
  502. package/dist/12.aea46cc96155a0219494.bundle.js +0 -1
  503. package/dist/120.c5617b13f324abddd2eb.bundle.js +0 -1
  504. package/dist/121.6064dd0a23e54b173692.bundle.js +0 -1
  505. package/dist/122.d09e905c00bfdc8e819c.bundle.js +0 -1
  506. package/dist/123.277f71995a92fc780150.bundle.js +0 -1
  507. package/dist/124.5546d1169cf1cd85a80a.bundle.js +0 -1
  508. package/dist/125.577c4efc0f0f4aaf6104.bundle.js +0 -1
  509. package/dist/126.40a15e56f739d5afeb9a.bundle.js +0 -1
  510. package/dist/127.883c16bae272fa231f2a.bundle.js +0 -1
  511. package/dist/128.a7f9973153bcb25c1f8f.bundle.js +0 -1
  512. package/dist/129.52e5b0f138bd41938143.bundle.js +0 -1
  513. package/dist/13.a4143780b628e2fa079e.bundle.js +0 -1
  514. package/dist/130.d6d5350813d4be3f4bb9.bundle.js +0 -1
  515. package/dist/131.18d1d6707a36a49acf81.bundle.js +0 -1
  516. package/dist/132.288cfa82dc82357a8f20.bundle.js +0 -1
  517. package/dist/133.6269f897deb2b5d1b734.bundle.js +0 -1
  518. package/dist/134.9d6ec1c346ccc0d29367.bundle.js +0 -1
  519. package/dist/135.1003cea170e7cc563d7e.bundle.js +0 -1
  520. package/dist/136.5903c06aaa6c3e2ffb94.bundle.js +0 -1
  521. package/dist/137.7aee8a081b5b3bb40453.bundle.js +0 -1
  522. package/dist/138.aa34288a887f892ec5b8.bundle.js +0 -1
  523. package/dist/139.f941d14574b513055316.bundle.js +0 -1
  524. package/dist/14.fcda4963e80d7ed89952.bundle.js +0 -73
  525. package/dist/140.984ea48adce39951c9c6.bundle.js +0 -1
  526. package/dist/141.842ee11d12b8205bf779.bundle.js +0 -1
  527. package/dist/142.80cbe981daac3fadb374.bundle.js +0 -1
  528. package/dist/143.b9e266bdae34f5807898.bundle.js +0 -1
  529. package/dist/144.6ac9bf46ac40bef252a6.bundle.js +0 -1
  530. package/dist/145.54e47d651b85080af814.bundle.js +0 -1
  531. package/dist/146.06eb1f7fad6a997ce599.bundle.js +0 -1
  532. package/dist/147.a79ce7406724d200aa40.bundle.js +0 -1
  533. package/dist/148.f858b14c733ac66234f2.bundle.js +0 -1
  534. package/dist/149.8ea2179cbd2b37bd7fc9.bundle.js +0 -1
  535. package/dist/15.8a1172142b37104705f4.bundle.js +0 -1
  536. package/dist/150.a89bf930768b00296cf2.bundle.js +0 -1
  537. package/dist/151.341d3c1e0a807ea028ff.bundle.js +0 -1
  538. package/dist/152.cb606b2e29d0ed211393.bundle.js +0 -1
  539. package/dist/153.05a8742cb29b3a462a16.bundle.js +0 -1
  540. package/dist/154.6e565221bccc175c1108.bundle.js +0 -1
  541. package/dist/155.72bb7cc06d05273c5c80.bundle.js +0 -1
  542. package/dist/156.cd11334661dc42349670.bundle.js +0 -1
  543. package/dist/157.40975d0dfdc019625f93.bundle.js +0 -1
  544. package/dist/158.db6a06ef20338c27bbe8.bundle.js +0 -1
  545. package/dist/159.db706dea000e1f0bb7b6.bundle.js +0 -1
  546. package/dist/16.63883919105a1da4d0f2.bundle.js +0 -1
  547. package/dist/160.3d8e18b58dc2fa30620c.bundle.js +0 -1
  548. package/dist/161.e7b42e2e61898d16340b.bundle.js +0 -1
  549. package/dist/162.177a114825eb9bb2f64c.bundle.js +0 -1
  550. package/dist/163.5632f146b007b7c5b651.bundle.js +0 -1
  551. package/dist/164.39225bdfaec366b1e002.bundle.js +0 -1
  552. package/dist/165.c998450dcdfb148f9437.bundle.js +0 -1
  553. package/dist/166.fdd8b408b4ffc6613106.bundle.js +0 -1
  554. package/dist/167.eafc82608c6dc1f2b1f4.bundle.js +0 -1
  555. package/dist/168.ae99c3d32903e94a4fdc.bundle.js +0 -1
  556. package/dist/169.b7caec5f442177ac9af4.bundle.js +0 -1
  557. package/dist/17.2a66a1b22ee5fd2e5188.bundle.js +0 -2
  558. package/dist/170.539e36297ae66e786055.bundle.js +0 -1
  559. package/dist/171.5042692bf21358d4cc13.bundle.js +0 -1
  560. package/dist/172.4a5a1655f275c1e76a8e.bundle.js +0 -1
  561. package/dist/173.8f37db05a2eccb1338e1.bundle.js +0 -1
  562. package/dist/174.3a835bc4586dd3be2127.bundle.js +0 -1
  563. package/dist/175.a295324d2a50b9f3788f.bundle.js +0 -1
  564. package/dist/176.4894021d44b59a93d0c5.bundle.js +0 -1
  565. package/dist/177.fc36db9ae6d2d507633e.bundle.js +0 -1
  566. package/dist/178.45843921d2eeb59d94ad.bundle.js +0 -1
  567. package/dist/179.dacbc3288deaea6b4b2d.bundle.js +0 -1
  568. package/dist/18.68db9e46f52c336f9882.bundle.js +0 -1
  569. package/dist/180.5c117f9cff77d6b25ea5.bundle.js +0 -1
  570. package/dist/181.4e8ff24fbb350c7b3b56.bundle.js +0 -1
  571. package/dist/182.78cd0ca67c114d4083b0.bundle.js +0 -1
  572. package/dist/183.a923584c5000b5a438e3.bundle.js +0 -1
  573. package/dist/184.9a0b9a3991efda186ea4.bundle.js +0 -1
  574. package/dist/185.7ab1c7b6eeeb6781cd99.bundle.js +0 -1
  575. package/dist/186.4a9ff497b3db9ea494e2.bundle.js +0 -1
  576. package/dist/187.ef6208e299a07f5f0334.bundle.js +0 -1
  577. package/dist/188.3029a2fc07ee161ffaeb.bundle.js +0 -1
  578. package/dist/189.012126382569e603f621.bundle.js +0 -1
  579. package/dist/19.ef19be06bbc801cb999f.bundle.js +0 -1
  580. package/dist/190.56e27ca9cbda2c67173e.bundle.js +0 -1
  581. package/dist/191.bcb776be3822dfe4cde1.bundle.js +0 -1
  582. package/dist/192.eefdfa8a64adc02ad0b4.bundle.js +0 -1
  583. package/dist/193.d4e1ad5cb8479a52d46b.bundle.js +0 -1
  584. package/dist/194.2a55ba6912d19408b435.bundle.js +0 -1
  585. package/dist/195.e941fc5e7f9378c8ab17.bundle.js +0 -1
  586. package/dist/196.71a74578eb6a02973e37.bundle.js +0 -1
  587. package/dist/197.3d35c2ec219cd3d7bfb8.bundle.js +0 -1
  588. package/dist/198.41a1c12d702b8eea05cb.bundle.js +0 -1
  589. package/dist/199.307a221895d1caf18a5c.bundle.js +0 -1
  590. package/dist/2.0a0dec9390b72e19b311.bundle.js +0 -2
  591. package/dist/20.1e1f5194b0bf7ee695ef.bundle.js +0 -1
  592. package/dist/200.bef000050c58e422e7c2.bundle.js +0 -1
  593. package/dist/201.973002fd688954a9c8d3.bundle.js +0 -1
  594. package/dist/202.eee2a68f67f81d75f2bb.bundle.js +0 -1
  595. package/dist/203.1cbd8dfff56ca2ec7ede.bundle.js +0 -1
  596. package/dist/204.7ebfdc337e93ae87170b.bundle.js +0 -1
  597. package/dist/205.e1eb8d6a79d414e06380.bundle.js +0 -1
  598. package/dist/206.a553de5fdb17b24c8dc2.bundle.js +0 -1
  599. package/dist/207.fb14c8bf4459323e849d.bundle.js +0 -1
  600. package/dist/208.19f9c901ae486326fc98.bundle.js +0 -1
  601. package/dist/209.d8063aa7350f75bac278.bundle.js +0 -1
  602. package/dist/21.de32d5c65457afa2851e.bundle.js +0 -7
  603. package/dist/210.5304eabe571eec1c2b81.bundle.js +0 -1
  604. package/dist/211.f9a5cdef1f2ddeb689b1.bundle.js +0 -1
  605. package/dist/212.ccea27a7be519d5f0757.bundle.js +0 -1
  606. package/dist/213.0eca28ecfc4802e125de.bundle.js +0 -1
  607. package/dist/214.e040526722e17347d84c.bundle.js +0 -1
  608. package/dist/215.b800566c0700c7b8c4cd.bundle.js +0 -1
  609. package/dist/216.b9fda0a7848f41ed40ab.bundle.js +0 -1
  610. package/dist/217.6d32c1bed20438834a78.bundle.js +0 -1
  611. package/dist/218.104544e4b49e62764ca5.bundle.js +0 -1
  612. package/dist/219.15c1b79bf625228f47cb.bundle.js +0 -1
  613. package/dist/22.13bcebaa12a3b6a7fc1f.bundle.js +0 -3
  614. package/dist/220.f4ba0c5153acc78befc4.bundle.js +0 -1
  615. package/dist/221.5639c32db29b47e60ceb.bundle.js +0 -1
  616. package/dist/222.431a31dfc100558127d2.bundle.js +0 -1
  617. package/dist/223.8fdcf71c23342ad508e3.bundle.js +0 -1
  618. package/dist/224.a07c2cd53365458b55a4.bundle.js +0 -1
  619. package/dist/225.c840f4a43ed6003b1c16.bundle.js +0 -1
  620. package/dist/226.24e3e9d84938a6a6eabf.bundle.js +0 -1
  621. package/dist/227.1a67bed102a40f2f9ec0.bundle.js +0 -1
  622. package/dist/228.22e230cd5fc561469a69.bundle.js +0 -1
  623. package/dist/229.d3761019da85e0658fff.bundle.js +0 -1
  624. package/dist/23.4d6fe6188090079288b3.bundle.js +0 -2
  625. package/dist/230.e4296329f772553ad850.bundle.js +0 -1
  626. package/dist/231.225bd343729ebbe1e0d5.bundle.js +0 -1
  627. package/dist/232.78a074ea22fd72fb8ef8.bundle.js +0 -1
  628. package/dist/233.bc36adcaeb1cbf7be85f.bundle.js +0 -1
  629. package/dist/234.02a294874e6cd8a3c262.bundle.js +0 -1
  630. package/dist/235.af02bcdf218e584a9303.bundle.js +0 -1
  631. package/dist/236.4b4edf5ad5693dbd5abf.bundle.js +0 -1
  632. package/dist/237.cb3f9d5743c45490a7fa.bundle.js +0 -1
  633. package/dist/238.19c1a0889632baadd488.bundle.js +0 -1
  634. package/dist/239.bad995b4d6f03d272bdf.bundle.js +0 -1
  635. package/dist/24.1415927663d7b3630b0c.bundle.js +0 -2
  636. package/dist/240.0dec87a0f31102e36391.bundle.js +0 -1
  637. package/dist/241.6e91c98c8555ff376e83.bundle.js +0 -1
  638. package/dist/242.047a0d8236c488473600.bundle.js +0 -1
  639. package/dist/243.96f2f187d39b4125760e.bundle.js +0 -1
  640. package/dist/244.6079a1e8227c55deca7b.bundle.js +0 -1
  641. package/dist/245.a83f7acd7d8871aada1f.bundle.js +0 -1
  642. package/dist/246.8f1b7dcf59027abbee88.bundle.js +0 -1
  643. package/dist/247.69933abdb3ac6473f39a.bundle.js +0 -1
  644. package/dist/248.d0a8b9678a6b7f6ca48e.bundle.js +0 -1
  645. package/dist/249.9a21eb19f42a0137d9ca.bundle.js +0 -1
  646. package/dist/25.80e686f280eafd8c7664.bundle.js +0 -3
  647. package/dist/250.afa8def1fef396da6206.bundle.js +0 -1
  648. package/dist/251.44f0ad72f2e2ae880b1f.bundle.js +0 -1
  649. package/dist/252.798aa3fa53ade809df13.bundle.js +0 -1
  650. package/dist/253.490a4f5bc8f155fa0fc2.bundle.js +0 -1
  651. package/dist/254.7a4d2839c0aae9ac6883.bundle.js +0 -1
  652. package/dist/255.706cb4baf3519dfba49c.bundle.js +0 -1
  653. package/dist/256.0a1b5a98ab0f964c8ef2.bundle.js +0 -1
  654. package/dist/257.d99c4d31a05376c3f843.bundle.js +0 -1
  655. package/dist/258.89724a72f0d594fd807f.bundle.js +0 -1
  656. package/dist/259.5be44d1f2b55d67f3607.bundle.js +0 -1
  657. package/dist/26.0ee8122dea38e7d63213.bundle.js +0 -2
  658. package/dist/260.783eff3ffb08e7fa4a8a.bundle.js +0 -1
  659. package/dist/261.0ce68d027610b2847725.bundle.js +0 -1
  660. package/dist/262.371d0ce39c547830ad1c.bundle.js +0 -1
  661. package/dist/263.c7acda74d3dbb1cd304b.bundle.js +0 -1
  662. package/dist/264.aedec62c0dc39d44b4ad.bundle.js +0 -1
  663. package/dist/265.c0ea38a64927308a1b7a.bundle.js +0 -1
  664. package/dist/266.052b282e1b16c6e72836.bundle.js +0 -1
  665. package/dist/267.d0d17712a0f80512c8a3.bundle.js +0 -1
  666. package/dist/268.aa19ee9c8013f92dcb37.bundle.js +0 -1
  667. package/dist/269.920b703620f5aee4db65.bundle.js +0 -1
  668. package/dist/27.8856a51632932276e7e5.bundle.js +0 -1
  669. package/dist/270.b78ec99c364f8f1a6b0d.bundle.js +0 -1
  670. package/dist/271.a3dbddf9fea6e4dfd1a8.bundle.js +0 -1
  671. package/dist/272.7cf9ca0b8223d413db9b.bundle.js +0 -1
  672. package/dist/273.9748c07378184f419d9f.bundle.js +0 -1
  673. package/dist/274.502fae4622f3761e659b.bundle.js +0 -1
  674. package/dist/275.0513f0175abb80c78611.bundle.js +0 -1
  675. package/dist/276.386a0e533ebd0cd3cdad.bundle.js +0 -1
  676. package/dist/277.ca2031feaeed71250acf.bundle.js +0 -1
  677. package/dist/278.4e762ecad5dfb540582c.bundle.js +0 -1
  678. package/dist/279.7d3222c1187c2a8af6c1.bundle.js +0 -1
  679. package/dist/28.6275b1d899c2bb12f8b3.bundle.js +0 -1
  680. package/dist/280.f7c9c937a5ad4df3c776.bundle.js +0 -1
  681. package/dist/281.6d164e70a537421f3583.bundle.js +0 -1
  682. package/dist/282.436cb89900efb14f0e27.bundle.js +0 -1
  683. package/dist/283.9103fa93e7c82c62ec66.bundle.js +0 -1
  684. package/dist/284.5019105aee7925d4b092.bundle.js +0 -1
  685. package/dist/285.fdc130b4c824ec5d1cbe.bundle.js +0 -1
  686. package/dist/286.5dc436a24b127c95da4a.bundle.js +0 -1
  687. package/dist/287.2b3402507a7d4a71726d.bundle.js +0 -1
  688. package/dist/288.27cfaf5bc952ebe4de86.bundle.js +0 -1
  689. package/dist/289.e86c412b657356e1b345.bundle.js +0 -1
  690. package/dist/29.95ab7220eb7def6e7416.bundle.js +0 -1
  691. package/dist/290.705bec39ac6fcd67ad8a.bundle.js +0 -1
  692. package/dist/291.311b21c6a3479a6da0c7.bundle.js +0 -1
  693. package/dist/292.c23eb4ce9a64e6043123.bundle.js +0 -1
  694. package/dist/293.99ab6c45e68e7ecad9e8.bundle.js +0 -1
  695. package/dist/294.8270fa1ffb8203ca1cc3.bundle.js +0 -1
  696. package/dist/295.7bad90be385fcda06014.bundle.js +0 -1
  697. package/dist/296.f92f730629029a0dc6f5.bundle.js +0 -1
  698. package/dist/297.58bfbc1ea7dff42e109d.bundle.js +0 -1
  699. package/dist/298.b86326f23cf40ce223ad.bundle.js +0 -1
  700. package/dist/299.4d8ae690d0fa6d898b37.bundle.js +0 -1
  701. package/dist/3.24d929991cd69f80ef8b.bundle.js +0 -1
  702. package/dist/30.1ec37731f3b0df265413.bundle.js +0 -1
  703. package/dist/300.471c4c0c346532201460.bundle.js +0 -1
  704. package/dist/301.cea05be97634a58db214.bundle.js +0 -1
  705. package/dist/302.ede2bb7d60ffdccb3abf.bundle.js +0 -1
  706. package/dist/303.01161175bae4fe4fb327.bundle.js +0 -1
  707. package/dist/304.f81c644b70d285cb155c.bundle.js +0 -1
  708. package/dist/305.37546faea1450e64fd64.bundle.js +0 -1
  709. package/dist/306.f340b1965ea84420e5ca.bundle.js +0 -1
  710. package/dist/307.99fa859b8ddf91742c05.bundle.js +0 -1
  711. package/dist/308.32808960941dcf27889e.bundle.js +0 -1
  712. package/dist/309.50dba7f6704e28502a25.bundle.js +0 -1
  713. package/dist/31.1dc7125bd98d362a1c3a.bundle.js +0 -1
  714. package/dist/310.9d9091c885408782ded3.bundle.js +0 -1
  715. package/dist/311.b1fa5974a44a860981bb.bundle.js +0 -1
  716. package/dist/312.a7d1eaf803d04f490dda.bundle.js +0 -1
  717. package/dist/313.9892d397a1ef74dc3246.bundle.js +0 -1
  718. package/dist/314.8fada0aa3e9615994573.bundle.js +0 -1
  719. package/dist/315.c59f4c4ee0f446eb3ad2.bundle.js +0 -1
  720. package/dist/316.988d54f02efb8211aed0.bundle.js +0 -1
  721. package/dist/317.e288b28fe2a995c47a1d.bundle.js +0 -1
  722. package/dist/318.01ae6d6ab01df5a8323e.bundle.js +0 -1
  723. package/dist/319.c1530887f9ceae9c73a1.bundle.js +0 -1
  724. package/dist/32.6006167b7a4dd794eedd.bundle.js +0 -1
  725. package/dist/320.9371c672401796d6edbc.bundle.js +0 -1
  726. package/dist/321.a4b79742c85844545a6d.bundle.js +0 -1
  727. package/dist/322.2909303415e952e92a19.bundle.js +0 -1
  728. package/dist/323.e16e96761d188a8833a3.bundle.js +0 -1
  729. package/dist/324.d4da0726bd089f2452b2.bundle.js +0 -1
  730. package/dist/33.ee00b23e5898b06e9d39.bundle.js +0 -1
  731. package/dist/330.3cda043d8a4f43d52219.bundle.js +0 -1
  732. package/dist/331.c2de2e82638496ea5d94.bundle.js +0 -1
  733. package/dist/332.eb7968637b591e432b40.bundle.js +0 -1
  734. package/dist/333.5080aa875f7a9c9dcc6a.bundle.js +0 -1
  735. package/dist/334.84d54c19de812615fd02.bundle.js +0 -1
  736. package/dist/335.5214afe77fa497f009d2.bundle.js +0 -1
  737. package/dist/336.6d785bb54171657c30ff.bundle.js +0 -1
  738. package/dist/337.758b1a71933d97eda859.bundle.js +0 -1
  739. package/dist/338.7bcd3c70a017970cc3e5.bundle.js +0 -1
  740. package/dist/339.40c538257c91895af690.bundle.js +0 -1
  741. package/dist/34.5fc9a74572694e984363.bundle.js +0 -1
  742. package/dist/340.5982841392c052586445.bundle.js +0 -1
  743. package/dist/341.6eb6b427ced82f22560b.bundle.js +0 -1
  744. package/dist/342.8ae2e43b4a5a15e9d447.bundle.js +0 -1
  745. package/dist/343.0a7a71474836fc8e64bb.bundle.js +0 -1
  746. package/dist/344.b79958d7e67bc51ac74a.bundle.js +0 -1
  747. package/dist/345.ad526192db3541576676.bundle.js +0 -1
  748. package/dist/346.e4e76912b08faedc1ad9.bundle.js +0 -1
  749. package/dist/347.118ca575ab87cb19ce76.bundle.js +0 -1
  750. package/dist/348.b66e869463d89757632c.bundle.js +0 -1
  751. package/dist/349.2b88eb8ae560d7ba5291.bundle.js +0 -1
  752. package/dist/35.1a48bf64f65cd345abc2.bundle.js +0 -1
  753. package/dist/350.c8218ae833103bf52abf.bundle.js +0 -1
  754. package/dist/351.8a5f28a009ef04d0167d.bundle.js +0 -1
  755. package/dist/352.739323a4a0d80fa64a83.bundle.js +0 -1
  756. package/dist/353.e9821df37c8a8f529f2b.bundle.js +0 -1
  757. package/dist/354.5b2d83dbc08d59ece66c.bundle.js +0 -1
  758. package/dist/355.698a8825eb6c8c14c900.bundle.js +0 -1
  759. package/dist/356.64b32e22c857ec1941a8.bundle.js +0 -1
  760. package/dist/357.633f1ec2bb4f7aaad08c.bundle.js +0 -1
  761. package/dist/358.712444d717ab6016e061.bundle.js +0 -1
  762. package/dist/359.f490d1cd5bd0129ff5b8.bundle.js +0 -1
  763. package/dist/36.aac2ef57fe3df2918f1b.bundle.js +0 -1
  764. package/dist/360.62558fe8ea27dda9b767.bundle.js +0 -1
  765. package/dist/361.6a61caaca065617b2b20.bundle.js +0 -1
  766. package/dist/362.ddbdb2c98ca0050223c1.bundle.js +0 -1
  767. package/dist/363.8162d94c452625b7dba2.bundle.js +0 -1
  768. package/dist/364.df576cf78783fbda560d.bundle.js +0 -1
  769. package/dist/365.c1b330bbee71b66c6e7d.bundle.js +0 -1
  770. package/dist/366.f274b147f1fd2385edc4.bundle.js +0 -1
  771. package/dist/367.ccc2198ed5d2d9b56917.bundle.js +0 -1
  772. package/dist/368.d1bda6a51fc34a479b56.bundle.js +0 -1
  773. package/dist/369.feb0175b8dfd9bd143c2.bundle.js +0 -1
  774. package/dist/37.0a225dfd2f11c5b53ed5.bundle.js +0 -1
  775. package/dist/370.07d42a26f84b75cacf05.bundle.js +0 -1
  776. package/dist/371.5fd92bdd8f8ffb242213.bundle.js +0 -1
  777. package/dist/372.4a22dee44a456abedd3d.bundle.js +0 -1
  778. package/dist/373.ce1c01e608feb5cd354f.bundle.js +0 -1
  779. package/dist/374.3ae6c657ff865c4644c7.bundle.js +0 -1
  780. package/dist/375.a5c32971453bb62103f5.bundle.js +0 -1
  781. package/dist/376.1721960c5ff0e6307090.bundle.js +0 -1
  782. package/dist/377.17de81e958f2f38140c9.bundle.js +0 -1
  783. package/dist/378.e81f14ca32cdeb91b857.bundle.js +0 -1
  784. package/dist/379.371dd8bf3cb796582e68.bundle.js +0 -1
  785. package/dist/38.e4bbd711edc6129814be.bundle.js +0 -1
  786. package/dist/380.cbfd2023e142f3a48c34.bundle.js +0 -1
  787. package/dist/381.31836243f690cac41488.bundle.js +0 -1
  788. package/dist/382.b191c3409d24e5b84db3.bundle.js +0 -1
  789. package/dist/383.7d3c8474dcabceb72ad2.bundle.js +0 -1
  790. package/dist/384.d092675a415f87c59ebb.bundle.js +0 -1
  791. package/dist/385.1b48f8fd2a6c13372310.bundle.js +0 -1
  792. package/dist/386.f7eba8712e0146432fae.bundle.js +0 -1
  793. package/dist/387.f20ac43e9573d1bf2cc0.bundle.js +0 -1
  794. package/dist/388.dbe8b4a8d674906030c2.bundle.js +0 -1
  795. package/dist/389.d757e5bcb889385da864.bundle.js +0 -1
  796. package/dist/39.7b2fb34ede6e3eb03543.bundle.js +0 -1
  797. package/dist/390.fb3d315def37abb72c83.bundle.js +0 -1
  798. package/dist/391.e91eb0dad6c7507f1d9e.bundle.js +0 -1
  799. package/dist/392.08902ee038af0130a1bb.bundle.js +0 -1
  800. package/dist/393.ab19e87c78f15a1efa4a.bundle.js +0 -1
  801. package/dist/394.bd6cf8a58a6125028809.bundle.js +0 -1
  802. package/dist/395.679acc45f1c3ec6e8e86.bundle.js +0 -1
  803. package/dist/396.64e6e967b19be45aaf42.bundle.js +0 -1
  804. package/dist/397.fb643ad79378b15ce832.bundle.js +0 -1
  805. package/dist/398.86b51249d3390a580fc0.bundle.js +0 -1
  806. package/dist/399.313a67359a2156ac8034.bundle.js +0 -1
  807. package/dist/4.7869e46dd1e461d2a308.bundle.js +0 -1
  808. package/dist/40.12ff537a70c56a4d7db6.bundle.js +0 -1
  809. package/dist/400.10fd33b06610a0992944.bundle.js +0 -1
  810. package/dist/401.46048116cf65befbce56.bundle.js +0 -1
  811. package/dist/402.5fd9fff1cbe21d970ebe.bundle.js +0 -1
  812. package/dist/403.3841f7aaaae7caf2255f.bundle.js +0 -1
  813. package/dist/404.4dc9ee7188b9d2893515.bundle.js +0 -1
  814. package/dist/405.676926ad412a22f2fbeb.bundle.js +0 -1
  815. package/dist/406.fac49242989bf5bd6c3c.bundle.js +0 -1
  816. package/dist/407.c6e72e1d06d9a88ff0ef.bundle.js +0 -1
  817. package/dist/408.e4b580b91a4d2e7bae39.bundle.js +0 -1
  818. package/dist/409.ef1fe0a86ae00924b36f.bundle.js +0 -1
  819. package/dist/41.40c3d7b8512190b33ab8.bundle.js +0 -1
  820. package/dist/410.64c4c5bca0fd1177632a.bundle.js +0 -1
  821. package/dist/411.f14f388ae0c6938b2d78.bundle.js +0 -1
  822. package/dist/42.be35a3551bb3d2f3ea0d.bundle.js +0 -1
  823. package/dist/43.7f0c15d16cdac0a2da0e.bundle.js +0 -1
  824. package/dist/44.252d834ea9ffc35b6598.bundle.js +0 -1
  825. package/dist/45.c51d3862fd2d47236bc5.bundle.js +0 -1
  826. package/dist/46.9d389b688ec36cd263bf.bundle.js +0 -1
  827. package/dist/47.19dbb262272e0b7157ef.bundle.js +0 -1
  828. package/dist/48.eb684d0a5125b4b18d93.bundle.js +0 -1
  829. package/dist/49.73257e723398975ed270.bundle.js +0 -1
  830. package/dist/5.9a97267eba2b4178729d.bundle.js +0 -1
  831. package/dist/50.f5224b94dfc174541293.bundle.js +0 -1
  832. package/dist/51.2fc2a5a0b09cbb966ac5.bundle.js +0 -1
  833. package/dist/52.8a2a53097a771b3e9669.bundle.js +0 -1
  834. package/dist/53.482592db08b5d952a441.bundle.js +0 -1
  835. package/dist/54.dd9da0061488636aab94.bundle.js +0 -2
  836. package/dist/55.e3907bcbd21994967f06.bundle.js +0 -1
  837. package/dist/56.9ae2a535fe8e01907992.bundle.js +0 -1
  838. package/dist/57.0959ae1c799c1763d134.bundle.js +0 -1
  839. package/dist/58.3796144f75d9bdebed5a.bundle.js +0 -1
  840. package/dist/59.4be5c7e1550359c21a9f.bundle.js +0 -1
  841. package/dist/6.7cc41abda36b65ad5840.bundle.js +0 -1
  842. package/dist/60.b1461706f705563364df.bundle.js +0 -1
  843. package/dist/61.e42f998a53a0b7fee628.bundle.js +0 -1
  844. package/dist/62.f4381093d6b3e08c9f09.bundle.js +0 -1
  845. package/dist/63.7aae8d391a169e4e0222.bundle.js +0 -1
  846. package/dist/64.4ce03b3d619cbd788a73.bundle.js +0 -1
  847. package/dist/65.5d65a68f261af60ac82d.bundle.js +0 -2
  848. package/dist/66.6b2f8fb2e77bd6368832.bundle.js +0 -1
  849. package/dist/67.d58cfe3f39280b74aabe.bundle.js +0 -1
  850. package/dist/68.5c5c07ecddafaa87139a.bundle.js +0 -1
  851. package/dist/69.c4a95cb341a5ddff6f63.bundle.js +0 -1
  852. package/dist/7.5bb100322bb46a0283b5.bundle.js +0 -1
  853. package/dist/70.8796413c83479a2d289a.bundle.js +0 -1
  854. package/dist/71.300bfdede485053ff6ad.bundle.js +0 -1
  855. package/dist/72.a3507db36af0a119f134.bundle.js +0 -1
  856. package/dist/73.549bd6b48569d03fff6f.bundle.js +0 -1
  857. package/dist/74.2bb76c2b1fec4bf3904d.bundle.js +0 -1
  858. package/dist/75.4179bf924060f596b5c3.bundle.js +0 -1
  859. package/dist/76.1dc77d16d009a3a60dc6.bundle.js +0 -1
  860. package/dist/77.1fef81e5ff349d22a31e.bundle.js +0 -1
  861. package/dist/78.66a9b8f60dcb519e6e18.bundle.js +0 -1
  862. package/dist/79.6a9dac3c4299fbea231e.bundle.js +0 -1
  863. package/dist/8.5945491c614f0a5ebdd3.bundle.js +0 -1
  864. package/dist/80.c3e98de533be05d33c4e.bundle.js +0 -2
  865. package/dist/81.4ca4b112b1a9acda1067.bundle.js +0 -1
  866. package/dist/82.196dffd2af62f257a06e.bundle.js +0 -1
  867. package/dist/83.57f7c159d51528ed6e0f.bundle.js +0 -1
  868. package/dist/84.582c7b1e0e8d9560c896.bundle.js +0 -1
  869. package/dist/85.a5896df819bc62ed857b.bundle.js +0 -1
  870. package/dist/86.59cd3fc7143e513de9d8.bundle.js +0 -1
  871. package/dist/87.ba5b94f7848cbf41a1b0.bundle.js +0 -1
  872. package/dist/88.a9bf78d48bafff308c64.bundle.js +0 -1
  873. package/dist/89.39f3e479004eac9fe1f7.bundle.js +0 -1
  874. package/dist/9.0aeb629f3625bc6f0777.bundle.js +0 -1
  875. package/dist/90.47d51a7e5dda73f6112f.bundle.js +0 -1
  876. package/dist/91.8e7ab09b3702954f26de.bundle.js +0 -1
  877. package/dist/92.6b310a47587f1c0e73cc.bundle.js +0 -1
  878. package/dist/93.2f4ad7230e90ecddb840.bundle.js +0 -1
  879. package/dist/94.c9dff0ba2448d2a26193.bundle.js +0 -1
  880. package/dist/95.7bb038bae141529ed428.bundle.js +0 -1
  881. package/dist/96.67f668289fbf473429e8.bundle.js +0 -1
  882. package/dist/97.416025b95def8b73233e.bundle.js +0 -1
  883. package/dist/98.36c45849b797f091484c.bundle.js +0 -1
  884. package/dist/99.ef2db01f95590908fab6.bundle.js +0 -1
  885. package/dist/bundle.a7e07d5231025abafc4d.bundle.js +0 -95
  886. package/dist/main.0e3d6114868b1818d519.bundle.js +0 -1
  887. package/dist/polyfills-dom.d30d58efeadc8ed60dd0.bundle.js +0 -19
  888. package/dist/vendor.567467e33e9cfc654cb6.bundle.js +0 -27
  889. package/dist/vendors~polyfills-core-js.1aeb97dbe0d90dbb7983.bundle.js +0 -1
@@ -0,0 +1,95 @@
1
+ !function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,u=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={331:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({333:"polyfills-dom",335:"vendors~polyfills-core-js"}[e]||e)+"."+{0:"ae02baa403fbd1a7cc93",1:"d11629dd3d4ac454a102",2:"900ef83c7a6b380aca5e",3:"6563d17b2cd41128890b",4:"f88e5bb228972375cc28",5:"48db74b2d08bc31e6609",6:"feadde6ea1b3951e6ffc",7:"26ca23aa2fc78c5134fa",8:"3e745f7c7feea8ef0d89",9:"456bbf3bb8220ce89c06",10:"55bd5dc8999bc1cb1bcc",11:"89e2336d213a154b77f8",12:"10e84465b7ad808dad8b",13:"88cfe4e5391b6b678cd8",14:"92d6b6761ef6cd70b36d",15:"e804c8ea193f9f0401c0",16:"e7b01ccdf70c5485402f",17:"fd8a9a8ebe5f4d9e2f11",18:"c79beb000f78666dc1ea",19:"d93a2a4183d72e8cb0d6",20:"4e8e5f274166f7216846",21:"e71d40f83086661e7f61",22:"26828925f52d93debe51",23:"543c375f0f86d771dbf0",24:"d7b7127e0cd0c8bbef98",25:"3a2036abc3774ed24148",26:"2393280351ab069f6f30",27:"b9a244767f6c3482fdb8",28:"b587ba8cc784632a83fc",29:"19532418f4f5cf80a5a5",30:"c95fbd1f309468fbcb34",31:"e88ecb2b45e6f4de62d3",32:"6f28c2b0829f31822825",33:"a0d9678fb193cff2d255",34:"63bcd4f233c8c700d893",35:"f556eeb37786469e255c",36:"1d7577b17840cacdf0cc",37:"ca1a4d87ac7adf39ed4b",38:"1cc8c47552b3606e309f",39:"038879a8833f3817093d",40:"05a9805a5b07c189df24",41:"fa23b31a4328e38c548e",42:"d7d9449579c0f3794663",43:"ea28943c80d79daa0649",44:"de4dcb467d772c868306",45:"805cb81e8bd5e16d6614",46:"8519664b24972b0782c8",47:"4c05c24b7972bf3f4cf6",48:"279b5e18079ae3236125",49:"994126a85737bdb7b895",50:"b67a8bf19f5ba40d211d",51:"3a62c4f9dd49b6f26247",52:"10366c2c972b0c368dd5",53:"1c209e38bc652bc802a3",54:"7e75dbcdbc39dbec90c4",55:"55159c353664aaa65f20",56:"cad4e885a180e8f5ba16",57:"628c8edb7f3ea7559aeb",58:"ff52db4cd6651f271ee6",59:"e24c0d3a5a2e99964322",60:"73f28fb466ff93ea8c99",61:"d7dbf4e7c0e4c9e8c961",62:"64013e3b3891db8e214b",63:"42acb9c680477bb60dda",64:"cb099060a9e5142b2a34",65:"7374263e745ee8ac5e5f",66:"3b2834055886e18be670",67:"e57d5c01f9c358ce95c4",68:"bfe1be4722764506c724",69:"6a091bc2232315eb1162",70:"379b070afa69e89fc19d",71:"a5708253786dc076b748",72:"9b46af75f4baffcb308d",73:"b9b252f90e6eb21b4555",74:"49f8cf2b5302352d9954",75:"1eaa235bbff5daf4df2d",76:"461a1852e8e09de07620",77:"edb359682edd6fa840f5",78:"c2c29a6779cc45af6d80",79:"fc5434d77790bf63fb1d",80:"640f01c06722e92cc871",81:"8499c3cd340fbbdab7ba",82:"6fddce14fa5db6d3d2e4",83:"f53e5a2963a770c3b641",84:"9c2217ed7d51b9587b34",85:"f5022d593fa18e7b6e2f",86:"b1867ffb28ea1d2ee860",87:"a2d4ca7f2399981400e7",88:"1d5fba0d6977f63971c0",89:"f6e7f0c79bf4e83e25d3",90:"f8be0eeac11bfa1fccb5",91:"bce03a05674b18e50d4e",92:"ffa46df6b348e925334a",93:"9435148522ff648ea355",94:"dd874799e2cc8044e246",95:"d15d8c36116342281f3a",96:"b0ae820f47d0afb0c2c0",97:"82170f92dbcfc1351625",98:"8eacc969d96df474a5d1",99:"42e89f1af83b86c2838e",100:"3abbd576e5536d4292f3",101:"b68d884189e2d782f9db",102:"fd735d839ebbc2f9d40b",103:"41f921c4a65160dce11a",104:"56df8dfc430d6245d0fd",105:"18a79e9a55d9a7506d01",106:"cd544c47e948789ee528",107:"0acbdea31c1be05780a6",108:"131328ca1d67057fdb43",109:"ab2007ce0897221e9dc7",110:"66e0266aa1d8819e4956",111:"79d8512ffc6546c7d07a",112:"642f037985264473114e",113:"f57327392686a0436c59",114:"0b6bf50017f3a18cb2bb",115:"0bef2edf8104cfe9fcb1",116:"5098c4d565f343d82aa7",117:"f8e9008ec361c561359c",118:"cf2c44198e836a0b9ba0",119:"f10b6373c066a482c1f9",120:"8595c6770e907e21f0fd",121:"2f6de9cd737026fda3b2",122:"b3177006c337fb555c21",123:"65cd6a98a6c3e27a1e60",124:"e89e3fee558b4edf4bad",125:"de1c18a0eb08e22e3624",126:"fb13c3af04bb0f1577cc",127:"32f4a1c4a2ed2e324f4d",128:"01074ce4644234d25596",129:"e0661aa4cfee8e2aaf06",130:"0ce3a70e7e5705e61670",131:"5b9e755403cd78bf2b2f",132:"25094e9c07f5efcb34b2",133:"254cc76bc5e6850ff2e8",134:"61834d7c29cc4312afb9",135:"a9fc7400422a5a15a95f",136:"7fe96393bad12fb51207",137:"50d3f73e37365e6d1927",138:"f33533d8b2eba5d8ec0d",139:"c050f1e6081b3519d83e",140:"8ae98afa44c78803dd4e",141:"b7e2e629537686c8cac8",142:"092408f98ed8dbe207c9",143:"8b89f3d9b87ee69267a9",144:"d51f731d7bc6cdfe08eb",145:"28e851b70237b9b3e33e",146:"2830d16d8a9bc73aa0eb",147:"7b3e99b032b256496ea8",148:"81254fa8e58524a4f382",149:"cc98899ce3a16ecf43c2",150:"39a1061a85b84c1b7dd3",151:"ce6630508d2265e89d34",152:"219c9e850d8847ddfa60",153:"c2c3d34c96b4bb7c2bdb",154:"96c6a0b9aa0e3297cd9d",155:"824842fa18302aebe5a4",156:"550f4d5775a92a66350d",157:"b0c4feabee929ccf8a5c",158:"ad2422d97d11cf851db5",159:"0eaaf667316687f57ded",160:"ec43997746f31cbcb3c0",161:"0ca082da47c2c380b3fb",162:"4462cbff9f2deceb8d55",163:"9b606dc8b334c4590e80",164:"6fbbef35e36e128626c1",165:"8c936f8350a0352fe33a",166:"52d6a35cba64be7d7d3e",167:"51430f40df772b3a70dd",168:"38dbbebd88da57b3ae35",169:"245ee4b967e1b8879358",170:"e253c0170034a3f97336",171:"fb19b792123f0251daaf",172:"c2999c73126f04810b46",173:"f10cc8249c5c6bd4a853",174:"6ae0de8881f3c2379c53",175:"3da8cdc348e5341ca1c9",176:"f78a6898f07f2d523227",177:"88a27f82ee6835f26e09",178:"0fa14533f1a361282a18",179:"507b9f6d22b008299110",180:"58fe04c74100d9f113f2",181:"50637e050234a6966c94",182:"4f990626ad1fd98ce257",183:"53e87e91190814612b6e",184:"3fd50441f089e2201a51",185:"b8ca04cdc7a919e8ef0c",186:"2c2a3daf2e31a391bc75",187:"255f4746e6f1c0c48c35",188:"7949088dd5b10c4c99f5",189:"8cbd6dbda31320678237",190:"673e03d17a314b96e12b",191:"c981e0fba087d2e799a6",192:"60efcfbb8ae8f134a396",193:"4c02ced7a1c44850598f",194:"7ec15a64658c1f97c8eb",195:"9049135a54192e8d8254",196:"ef896ced6d6a055931ee",197:"2a0f5d280127e30e6a21",198:"ea0abe93c519289fb8be",199:"4cf122243f582e12bffa",200:"5f869906cf7cd298c139",201:"ecd6f5a0b1e07259609b",202:"940493f04e558c20ebeb",203:"e6fa0158b83067a522b6",204:"90c80b56283809b7025e",205:"a3cb6b3f5907d142cf95",206:"24181d86be3eff88d52c",207:"439cff6991fd256e5aa1",208:"c653cb276b43b29cce49",209:"8285dee1da75e605749e",210:"a2ea30efd2122d5a8f2f",211:"de53552e0b8e59e26d71",212:"f80d06d279d2dc0aae74",213:"3b1ed0016e75a097798d",214:"e66c5e02cd8628abb86d",215:"bd7d215f0b4c30c41150",216:"596ffaba4897a3b8f57e",217:"f23953e7013fe9628984",218:"c9ebeca0a0601cbfdd49",219:"49b7f67206dc1b550fcd",220:"60aae5815d2081a0e83a",221:"9ddd6a25f2977a63833b",222:"ca41fa6721e4e66ed399",223:"54c4cac06e4519e3efb0",224:"f7199477314a1768db47",225:"6a3fe206268377dad69d",226:"7924f3c96e16c5e72c5b",227:"ae93e62e09fd4d381d07",228:"2c598157be22f2119a80",229:"7a0284ae7edfa27eb8a1",230:"1d9ce4dbc6dc22371a26",231:"c353755e4c1b58e65ec4",232:"5a8fdf0f56be1ae7cc82",233:"d6ef0f5bb2b6375bd52f",234:"0a6bc5430424d7ca0803",235:"cdfa5405484e4f6e1645",236:"bff8d95f9f4986ce7f76",237:"377279922b3917eb2125",238:"dbeb2c0bf3dccf39339b",239:"6b9bf48532f001f4c735",240:"727e415c23c389be7664",241:"9226188eb93223b74add",242:"bd036e6b1bdd54dd1ae7",243:"684335d32b3e2db71742",244:"4a6251926a6647e4835d",245:"fdb7b2fe10dcea472879",246:"c8b41d4b12b1250e01ed",247:"37b6eb2ecc53b255c33a",248:"0c33aa07abd48a74725d",249:"88fea9574f0fce1953cf",250:"137f3fe61ea786d8f59d",251:"59720f599bbb696550e4",252:"93d6b6a7e44fb9741804",253:"930cda0de4ec25344bff",254:"62b9a64574f43df868d2",255:"20192dfc724463dab127",256:"0ea3fb2a99a478742080",257:"e14524fd21f234ac1f42",258:"5e650bcb69718b27339f",259:"d1e40e9081a9dc913ad9",260:"db455f2124cbe43df61c",261:"9c82a592fef22b855787",262:"c9dea482117872e4b07c",263:"9313cb2696d2d844849a",264:"bc7ad7396bfced9e76ef",265:"ffbab37e1a761ec07b60",266:"a96fe8809d67e0eac7e5",267:"c07b3f034458a2331538",268:"bce40e9eab7d39e60750",269:"8e8d3873f1c7018bedbc",270:"4ccea89d95972bf06d46",271:"f24ebd16b309e6f32e37",272:"c8862e179fb9241e5bc2",273:"4c4d99e6c4378d9822ac",274:"0bfb73e6f7b0a64435f6",275:"9fb6914974d62188bb11",276:"3e3057cfdd25bc12ab02",277:"0797f2c46650c7afe350",278:"b2ecdbeb6efe166a4138",279:"a9cab23ebf26fca2a9cf",280:"5c4b2ddc7618a469c7fe",281:"da8c8f1fe4d4bb38d1e2",282:"e2cbab0c480d7b8dfa6a",283:"983f0f381134b6bdcb04",284:"f361457d23176846d939",285:"ef26d39638b16bacab4c",286:"34a20634e387664f2a6d",287:"f7bc3db6a00eb98cf7b5",288:"efa7e26e063c5b6f875d",289:"4e5af5efc77a8ba6f954",290:"eacfa7804d4617359162",291:"34e6e289ace8f72b99b0",292:"5a049771b8c51d82bdc7",293:"7607c41b310a02aebfd3",294:"39c3b65bcd461dd1b7cb",295:"495163add3be67d633b4",296:"c15d4b1955a9cae0e972",297:"044db6bb92a9a96f6817",298:"672e33981e1947a19e26",299:"6f683f57d08083d34d24",300:"c62fd23507752ba6daba",301:"5939b5c8326708c4f387",302:"05370654ff61fd4a2554",303:"81dc35aa6f7747755f19",304:"f306e53916885bda3c4b",305:"5835c4a6e2f972ee490f",306:"4776f920572ba67d87f7",307:"a8f42225ca98e3ebf656",308:"2be4226a575d34b0cd73",309:"c84682804a521a8b2a77",310:"e6762b117cb6ae5ad44f",311:"1eb3449e915d4daf5c1d",312:"c4b2d6fa63a3389f22d3",313:"1ebabec29606c0b5c29e",314:"366b9d03d5e93dd8779d",315:"3579a19e49a159f01af3",316:"1714889dd79b839b2c13",317:"03873f861bdb32a06fd1",318:"f165089ab6a2347d6270",319:"6551554a97d7ae4741a3",320:"68be8ddd757494458e92",321:"4b5c5975a3eb3290576a",322:"37874a32a3b840b2bc18",323:"e4db3f0a06377f6d5ffd",324:"19edead008e4e4ed38de",325:"f5af4954c4c7b5edd6b5",326:"104705396eb92eb1ad1d",327:"bf1af0af04aa7aff6074",328:"341f20bda7f187c90eae",329:"3531904303a06d96871a",330:"f4a8e20c39fcf8a6329e",333:"00375ac99a037cb2ab69",335:"bf6de4f5103f78d69ccf",336:"530f8a7a8a94a6f90e10",337:"ca72e3a0564046837b16",338:"374161b39b10166c9383",339:"d60015ae962cb45f5c9f",340:"d7764886e9fa2462e226",341:"2f072aee67e9e07bdd9f",342:"38fb6bf2b408a6d47190",343:"2d31c04a850624d7b8f0",344:"bdb757ea72b5f4f5b3aa",345:"546419e39affcfcd1852",346:"d32c26eea6a80b8cc37c",347:"57ed4a385e855cad7c0b",348:"2af6c86e359a89205966",349:"c408af02db127f8869f1",350:"5e899a92f38c16489e02",351:"c09d36a810cf40b9c25f",352:"55911f19f713e462dbad",353:"bca7ad8f953be01367f2",354:"9817814cea17732668b8",355:"ad0bf431f6c11d1ae224",356:"5a005a80d3da9112a320",357:"7153867a09520f642644",358:"48b6152e563fe4c8f16a",359:"f3d0c391ee07446ccb3e",360:"abbeb351a52651620fcd",361:"ed52a00185c531e08c48",362:"efb136eaecbd5340f6ed",363:"63d642cc9d857de99c9d",364:"f2cb7cb3a22233473def",365:"2f51a94cafaa642980ca",366:"ad3baaa586d05913abe3",367:"4211395aff6ef7bf4849",368:"c47ba2c9fff8b9f81b5c",369:"aea9209ff82df8dcf091",370:"6926f2217ab428187508",371:"7d843569095a7b1c0ddf",372:"c77982eeb32da732bb18",373:"d1af1eb63f347c74a705",374:"4e6e769c5c54037fb87a",375:"98162ba8ec236ad62a94",376:"f1a33b8eac5cba3b866a",377:"add679f2b5606f856749",378:"a6934451c464b146fc17",379:"189bd477d9aa69f43690",380:"dc7f6c4f308e03531407",381:"9c2eb155a9c97c017380",382:"3ab1a4612dbcf4892073",383:"5da272f5acd1fac32aad",384:"5fcf059ada3b8a42d706",385:"9c0b96788faa18f9e560",386:"ef99a1daa887f9994e02",387:"a4e4d616ffd96e2fadab",388:"5886ae70a4fa56638410",389:"af5d3bd2d739b142bc81",390:"a85b5054ed766528011f",391:"306af114af5986fd635d",392:"8672da919405465e4104",393:"c5d035ecc740781c04d7",394:"3e722468bccbfdd42b01",395:"34e869837c0dfc05fc52",396:"b4940df42a9388a1fa65",397:"b25d94494ea955deb1e0",398:"dce5ba48d746a385c600",399:"bb00f12527eb3e8488bb",400:"43f8b04da11b234ec8b1",401:"c44df443cf8caf6d4d6b",402:"a27c7d3020fb83fd9603",403:"340a87b8c2061a671b16",404:"5a27d40ab9205fafb83a",405:"b8d7877478a3993e20ff",406:"8b992547c2ab764d77a5",407:"2d842a4b317f06b71c7f",408:"7e584653eb94469c494e",409:"fa5069507e3bec5dfa50",410:"3ce11777a703060d76f3",411:"3c7dd0b42a140940c407",412:"d5252e14455696e1b76a",413:"88a5f43d77d65cb580f4",414:"67b4c86161dbd68e0b2a",415:"9ce7901f1e74412c17a9",416:"750f6233af2097d0fa6e",417:"d48c24e509334bf68dfd"}[e]+".bundle.js"}(e);var l=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;i(i.s=0)}({0:function(e,t,n){"use strict";n.r(t),n.d(t,"decodeHTML",(function(){return a}));n(9),n(58),n(71),n(446),n(84),n(447),n(52),n(53),n(72),n(73),n(74),n(75),n(76),n(77),n(78),n(79),n(80),n(81);var r=n(45);const i=(e,t)=>"undefined"==typeof window?Promise.resolve():Object(r.f)().then(()=>Object(r.b)([["ontotext-download-as",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["keyboard-shortcuts-dialog",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["alert-box",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["copy-resource-link-button",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["loader-component",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["ontotext-editable-text-field",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["ontotext-pagination",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["confirmation-dialog_9",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],renderingMode:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],yasqeBtnLabel:[32],yasguiBtnLabel:[32],yasrBtnLabel:[32],changeRenderMode:[64],setQuery:[64],query:[64],getQuery:[64],isQueryValid:[64],openTab:[64],getQueryMode:[64],getQueryType:[64],getEmbeddedResultAsJson:[64],getEmbeddedResultAsCSV:[64],hideYasqeActionButton:[64],showYasqeActionButton:[64],getOngoingRequestsInfo:[64],abortQuery:[64],abortAllRequests:[64],reInitYasgui:[64],isQueryDirty:[64]},[[9,"resize","onResize"],[8,"beforeunload","onBeforeunloadHandler"],[0,"internalCreateSavedQueryEvent","saveQueryHandler"],[0,"internalSaveQueryEvent","createSavedQueryHandler"],[0,"internalUpdateQueryEvent","updateSavedQueryHandler"],[0,"internalSaveQueryDialogClosedEvent","closeSaveDialogHandler"],[0,"internalShowSavedQueriesEvent","showSavedQueriesHandler"],[0,"internalSaveQuerySelectedEvent","savedQuerySelectedHandler"],[0,"internalEditSavedQueryEvent","editSavedQueryHandler"],[0,"internalSavedQuerySelectedForDeleteEvent","savedQuerySelectedForEditHandler"],[0,"internalConfirmationApprovedEvent","deleteSavedQueryHandler"],[0,"internalConfirmationRejectedEvent","closeSavedQueryDeleteConfirmationHandler"],[0,"internalCloseSavedQueriesPopupEvent","closeSavedQueriesPopupHandler"],[0,"internalSavedQuerySelectedForShareEvent","savedQuerySelectedForShareHandler"],[0,"internalShareQueryEvent","shareQueryHandler"],[0,"internalQueryShareLinkCopiedEvent","savedQueryShareLinkCopiedHandler"],[0,"internalShareQueryDialogClosedEvent","closeShareQueryDialogHandler"],[0,"internalResourceLinkDialogClosedEvent","resourceLinkDialogClosedHandler"],[0,"internalResourceLinkCopiedEvent","resourceLinkCopiedHandler"],[0,"internalShowResourceCopyLinkDialogEvent","showResourceCopyLinkDialogHandler"],[0,"internalDownloadAsEvent","onDownloadAsEventHandler"],[0,"internalNotificationMessageEvent","notificationMessageHandler"],[0,"internalQueryEvent","onQuery"],[0,"internalQueryExecuted","onInternalQueryExecuted"],[0,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"],[0,"internalRequestAbortedEvent","onQueryAborted"]]],[0,"copy-resource-link-dialog",{serviceFactory:[16],resourceLink:[1,"resource-link"]}],[0,"share-query-dialog",{config:[16],serviceFactory:[16]}],[0,"save-query-dialog",{serviceFactory:[16],data:[16],queryName:[32],query:[32],isPublic:[32],isNew:[32],isSaveAllowed:[32]},[[8,"keydown","keydownListener"]]],[0,"confirmation-dialog",{translationService:[16],config:[16]},[[8,"keydown","keydownListener"]]],[0,"saved-queries-popup",{config:[16],serviceFactory:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]}],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]},[[4,"keydown","keydownListener"]]]]],["ontotext-dropdown",[[0,"ontotext-dropdown",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],iconClass:[1,"icon-class"],open:[32],showTooltip:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]]],t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();var o=n(31),s=n(14);const a=function(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value},l=["ngRoute","graphdb.workbench.se.controllers","graphdb.framework.core","angularCancelOnNavigateModule","oc.lazyLoad","pascalprecht.translate","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.interceptors.authentication","graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch","graphdb.framework.core.directives.languageselector.languageselector","graphdb.framework.core.directives.copytoclipboard.copytoclipboard","graphdb.framework.core.directives.angular-tooltips","graphdb.framework.core.directives.uppercased","graphdb.framework.core.directives.prop-indeterminate","graphdb.framework.core.directives.page-info-tooltip","graphdb.framework.guides.services","graphdb.framework.core.directives.operationsstatusesmonitor","graphdb.framework.core.directives.autocomplete","ngCustomElement","graphdb.framework.core.services.language-service"],u=["$routeProvider","$locationProvider","$menuItemsProvider","toastrConfig","localStorageServiceProvider","$uibTooltipProvider","$httpProvider","$templateRequestProvider","$translateProvider","$languageServiceProvider"];function c(e){return $.getJSON(`i18n/locale-${e}.json?v=2.8.1-TR1`).then((function(t){return{language:e,data:t}})).fail((function(){return console.error("Failed to load translation file for: "+e),null}))}function h(e){$.get("rest/info/version?local=1",(function(t){const r=t.productVersion.match(/^(\d+\.\d+)/);r.length?t.productShortVersion=r[1]:t.productShortVersion=t.productVersion;const c=t.productVersion.match(/(-.*?)(-|$)/);c&&c.length&&(t.productShortVersion=t.productShortVersion+c[1]),function(e,t){i();const r=angular.module("graphdb.workbench",l);r.config([...u,function(r,i,o,s,a,l,u,c,h,p){t&&Object.keys(t).length>0?Object.keys(t).forEach(e=>{h.translations(e,t[e])}):(h.useStaticFilesLoader({prefix:"i18n/locale-",suffix:".json?v=2.8.1-TR1"}),h.preferredLanguage(p.getDefaultLanguage())),h.useSanitizeValueStrategy("escape"),angular.extend(s,{timeOut:5e3,positionClass:"toast-bottom-right",tapToDismiss:!1,extendedTimeOut:5e3}),a.setStorageType("localStorage").setNotify(!0,!0);const d=r.$get[r.$get.length-1]({$on:function(){}});r.when("_openid_implicit_",{controller:function(){},template:"<div></div>"}),d.routes._openid_implicit_.regexp=/[&/](?:id_token=.*&access_token=|access_token=.*&id_token=)/;let f=PluginRegistry.get("route");angular.forEach(f,(function(e){r.when(e.url,{controller:e.controller,templateUrl:e.templateUrl,title:e.title,helpInfo:e.helpInfo,documentationUrl:e.documentationUrl,reloadOnSearch:void 0===e.reloadOnSearch||e.reloadOnSearch,resolve:{preload:["$ocLazyLoad","$q",function(t,r){return e.path?n(449)("./"+e.path).then(n=>{t.inject(e.module)}):r.defer().resolve()}]}})})),r.otherwise({templateUrl:"pages/not_found.html"}),i.html5Mode(!0),l.setTriggers({show:"hide"}),l.options({appendToBody:!0}),o.setProductInfo(e),PluginRegistry.get("main.menu").forEach((function(e){e.items.forEach((function(e){o.addItem(e)}))})),u.interceptors.push("$unauthorizedInterceptor"),u.interceptors.push("$authenticationInterceptor");const g=c.$get[3];"function"==typeof g&&(c.$get[3]=function(e,t,n){const r=g(e,t,n);return function(t,n){return e.get(t)||(t+="?v=2.8.1-TR1"),r(t,n)}})}]),r.constant("productInfo",e),r.run(["$rootScope","$route","toastr","$sce","$translate","ThemeService","WorkbenchSettingsStorageService","LSKeys","GuidesService",function(t,n,r,i,o,l,u,c,h){function p(){n.current.title?document.title=a(o.instant(n.current.title))+" | GraphDB Workbench":document.title="GraphDB Workbench",t.helpInfo=n.current.helpInfo&&i.trustAsHtml(a(o.instant(n.current.helpInfo))),t.title=a(o.instant(n.current.title)),t.documentationUrl=s.DocumentationUrlResolver.getDocumentationUrl(e.productShortVersion,n.current.documentationUrl)}t.$on("$routeChangeSuccess",(function(){p(),r.clear()})),t.$on("$translateChangeSuccess",(function(){p()}));const d=u.getThemeName();l.applyTheme(d),l.applyDarkThemeMode(),h.init()}]),r.filter("titlecase",(function(){return function(e){const t=""+e;return t.charAt(0).toUpperCase()+t.slice(1)}})),r.filter("prettyJSON",()=>e=>angular.toJson(e,!0)),r.filter("humanReadableSize",()=>e=>Object(o.convertToHumanReadable)(e)),r.filter("trustAsHtml",["$translate","$sce",(e,t)=>e=>t.trustAsHtml(a(e))]),angular.bootstrap(document,["graphdb.workbench"])}(t,e)}))}!function(){const e=[{key:"en",name:"English"},{key:"fr",name:"Français"}].map(e=>e.key).map(c),t={};Promise.all(e).then(e=>{e.forEach(e=>{e&&(t[e.language]=e.data)}),h(t)}).catch(()=>{console.error("Failed to load one or more translation files."),h(t)})}()},1:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_GROUP_TYPE",(function(){return r}));const r={IMPORT_OPERATION:"IMPORT_OPERATION",QUERIES_OPERATION:"QUERIES_OPERATION",BACKUP_AND_RESTORE_OPERATION:"BACKUP_AND_RESTORE_OPERATION",CLUSTER_OPERATION:"CLUSTER_OPERATION"}},10:function(e,t,n){"use strict";n.r(t),n.d(t,"RepositoryInfoModel",(function(){return r})),n.d(t,"RepositoryConfigModel",(function(){return i})),n.d(t,"RepositoryParams",(function(){return o})),n.d(t,"RepositoryParam",(function(){return s})),n.d(t,"REPOSITORY_PARAMS",(function(){return a}));class r{constructor(e={}){this._id=e.id,this._title=e.title,this._type=e.type,this._sesameType=e.sesameType,this._uri=e.uri,this._externalUrl=e.externalUrl,this._location=e.location,this._state=e.state,this._local=e.local,this._readable=e.readable,this._writable=e.writable,this._unsupported=e.unsupported}get id(){return this._id}set id(e){this._id=e}get title(){return this._title}set title(e){this._title=e}get type(){return this._type}set type(e){this._type=e}get sesameType(){return this._sesameType}set sesameType(e){this._sesameType=e}get uri(){return this._uri}set uri(e){this._uri=e}get externalUrl(){return this._externalUrl}set externalUrl(e){this._externalUrl=e}get location(){return this._location}set location(e){this._location=e}get state(){return this._state}set state(e){this._state=e}get local(){return this._local}set local(e){this._local=e}get readable(){return this._readable}set readable(e){this._readable=e}get writable(){return this._writable}set writable(e){this._writable=e}get unsupported(){return this._unsupported}set unsupported(e){this._unsupported=e}}class i{constructor(e={}){this._id=e.id,this._title=e.title,this._type=e.type,this._sesameType=e.sesameType,this._location=e.location,this._params=e.params}getParam(e){return this._params.getParam(e)}getParamValue(e){return this._params.getParamValue(e)}get id(){return this._id}set id(e){this._id=e}get title(){return this._title}set title(e){this._title=e}get type(){return this._type}set type(e){this._type=e}get sesameType(){return this._sesameType}set sesameType(e){this._sesameType=e}get location(){return this._location}set location(e){this._location=e}get params(){return this._params}set params(e){this._params=e}}class o{constructor(e={}){this._params=e}get params(){return this._params}set params(e){this._params=e}addParam(e){this._params[e.name]=e}getParam(e){return this._params[e]}getParamValue(e){if(this._params[e])return this._params[e].getValue()}}class s{constructor(e={}){this._name=e.name,this._label=e.label,this._value=e.value}getValue(){return"true"===this._value||"false"!==this._value&&(isNaN(this._value)?this._value:Number(this._value))}get name(){return this._name}set name(e){this._name=e}get label(){return this._label}set label(e){this._label=e}get value(){return this._value}set value(e){this._value=e}}const a={queryTimeout:"queryTimeout",cacheSelectNodes:"cacheSelectNodes",rdfsSubClassReasoning:"rdfsSubClassReasoning",validationEnabled:"validationEnabled",ftsStringLiteralsIndex:"ftsStringLiteralsIndex",shapesGraph:"shapesGraph",parallelValidation:"parallelValidation",checkForInconsistencies:"checkForInconsistencies",performanceLogging:"performanceLogging",disableSameAs:"disableSameAs",ftsIrisIndex:"ftsIrisIndex",entityIndexSize:"entityIndexSize",dashDataShapes:"dashDataShapes",queryLimitResults:"queryLimitResults",throwQueryEvaluationExceptionOnTimeout:"throwQueryEvaluationExceptionOnTimeout",member:"member",storageFolder:"storageFolder",validationResultsLimitPerConstraint:"validationResultsLimitPerConstraint",enablePredicateList:"enablePredicateList",transactionalValidationLimit:"transactionalValidationLimit",ftsIndexes:"ftsIndexes",logValidationPlans:"logValidationPlans",imports:"imports",isShacl:"isShacl",inMemoryLiteralProperties:"inMemoryLiteralProperties",ruleset:"ruleset",readOnly:"readOnly",enableLiteralIndex:"enableLiteralIndex",enableFtsIndex:"enableFtsIndex",defaultNS:"defaultNS",enableContextIndex:"enableContextIndex",baseURL:"baseURL",logValidationViolations:"logValidationViolations",globalLogValidationExecution:"globalLogValidationExecution",entityIdSize:"entityIdSize",repositoryType:"repositoryType",eclipseRdf4jShaclExtensions:"eclipseRdf4jShaclExtensions",validationResultsLimitTotal:"validationResultsLimitTotal"}},11:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationModel",(function(){return i}));var r=n(4);class i{constructor(){this.operationGroup=void 0,this.runningOperationCount=0,this.status=r.OPERATION_STATUS.INFORMATION,this.type=void 0,this.titleLabelKey="",this.monitoringViewUrl=""}}},12:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_MONITORING_CONSTANTS",(function(){return r}));const r={IMPORT_MONITORING_URL:"import",QUERIES_MONITORING_URL:"monitor/queries",BACKUP_AND_RESTORE_MONITORING_URL:"monitor/backup-and-restore",CLUSTER_MONITORING_URL:"cluster"}},13:function(e,t){function n(e,t){return{get:function(t){return e.get(t)},set:function(t,n){e.set(t,n)},keys:n,remove:r,clearAll:function(){e.clearAll()},clearClassHieararchyState:function(){n().forEach((function(e){0!==e.indexOf("classHierarchy-")||e===t.CLASS_HIERARCHY_HIDE_PREFIXES||e.startsWith("classHierarchy-selectedGraph-")||r(e)}))}};function n(){return e.keys()}function r(t){e.remove(t)}}angular.module("graphdb.framework.utils.localstorageadapter",[]).factory("LocalStorageAdapter",n).value("LSKeys",{TABS_STATE:"tabs-state",TABS_STATE_CURRENT_ID:"tabs-state-currentid",TABS_STATE_MAXID:"tabs-state-maxid",VIEW_MODE:"viewMode",CLASS_HIERARCHY_HIDE_PREFIXES:"classHierarchy-hidePrefixes",CLASS_HIERARCHY_CURRENT_SLIDER_VALUE:"classHierarchy-currentSliderValue",CLASS_HIERARCHY_SWITCH_PREFIXES:"classHierarchy-switchPrefixes",CLASS_HIERARCHY_LAST_SELECTED_CLASS:"classHierarchy-lastSelectedClass",DOMAIN_RANGE_WENT_BACK:"domainRange-wentBack",DOMAIN_RANGE_COLLAPSE_EDGES:"domainRange-collapseEdges",HIDE_SIMILARITY_HELP:"hide-similarity-help",TUTORIAL_STATE:"tutorial-state",MENU_STATE:"menu-state",HIDE_GRAPH_CONFIG_HELP:"hide-graph-config-help",GRAPHS_VIZ:"graphs-viz",AUTOCOMPLETE_ENABLED:"autocomplete.enabled",RDF_SEARCH_TYPE:"rdf-search.search-type",RDF_SEARCH_INPUT:"rdf-search.search-input",RDF_SEARCH_EXPANDED_URI:"rdf-search.search-expanded-uri",RDF_RESOURCE_DESCRIPTION:"rdf-search.resource-description",PREFERRED_LANG:"preferred-language",WORKBENCH_SETTINGS:"workbench-settings",REPOSITORY_ID:"repository-id",REPOSITORY_LOCATION:"repository-location",JSONLD_EXPORT_SETTINGS:"jsonld-export-settings",IMPORT_VIEW:"import-view",SPARQL_LAST_REPO:"sparql-last-repo",TTYG:"ttyg"}),n.$inject=["localStorageService","LSKeys"]},14:function(e,t,n){"use strict";n.r(t),n.d(t,"DocumentationUrlResolver",(function(){return r}));class r{static getDocumentationUrl(e,t){if(!t)return;const n=e.includes("-");return`https://graphdb.ontotext.com/documentation/${window.wbDevMode||n?"master":e}/${t}`}}},15:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},16:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryMode",(function(){return r}));const r={UPDATE:"update",QUERY:"query"}},17:function(e,t,n){"use strict";n.r(t),n.d(t,"GUIDE_ID",(function(){return un})),n.d(t,"GUIDE_CURRENT_STEP_ID",(function(){return cn})),n.d(t,"GUIDE_STEP_HISTORY",(function(){return hn})),n.d(t,"GUIDE_PAUSE",(function(){return pn}));var r=n(2),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};
2
+ /*! shepherd.js 11.2.0 */var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function l(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&l(e).forEach((function(t){r[t]=s(e[t],n)})),l(t).forEach((function(i){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(u(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return h;var n=t.customMerge(e);return"function"==typeof n?n:h}(i,n)(e[i],t[i],n):r[i]=s(t[i],n))})),r}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):s(t,n)}h.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return h(e,n,t)}),{})};var p=h;function d(e){return e instanceof HTMLElement}function f(e){return"function"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}class v{on(e,t,n,r=!1){return m(this.bindings)&&(this.bindings={}),m(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r}),this}once(e,t,n){return this.on(e,t,n,!0)}off(e,t){return m(this.bindings)||m(this.bindings[e])||(m(t)?delete this.bindings[e]:this.bindings[e].forEach((n,r)=>{n.handler===t&&this.bindings[e].splice(r,1)})),this}trigger(e,...t){return!m(this.bindings)&&this.bindings[e]&&this.bindings[e].forEach((n,r)=>{const{ctx:i,handler:o,once:s}=n,a=i||this;o.apply(a,t),s&&this.bindings[e].splice(r,1)}),this}}function y(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];"constructor"!==r&&"function"==typeof i&&(e[r]=i.bind(e))}return e}function b(e){const{event:t,selector:n}=e.options.advanceOn||{};if(!t)return console.error("advanceOn was defined, but no event name was passed.");{const r=function(e,t){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!m(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}(n,e);let i;try{i=document.querySelector(n)}catch(e){}if(!m(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: "+n);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}}function $(e){return g(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function w(e){return null==e||(!e.element||!e.on)}function x(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const C=Math.min,A=Math.max,T=Math.round,F=Math.floor,k=e=>({x:e,y:e}),D={left:"right",right:"left",bottom:"top",top:"bottom"},R={start:"end",end:"start"};function I(e,t,n){return A(e,C(t,n))}function P(e,t){return"function"==typeof e?e(t):e}function O(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function L(e){return"y"===e?"height":"width"}function N(e){return["top","bottom"].includes(O(e))?"y":"x"}function M(e){return j(N(e))}function B(e){return e.replace(/start|end/g,e=>R[e])}function H(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}function U(e){return"number"!=typeof e?function(e){return S({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function V(e){return S({},e,{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}const q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],z=["mainAxis","crossAxis","limiter"];function K(e,t,n){let{reference:r,floating:i}=e;const o=N(t),s=M(t),a=L(s),l=O(t),u="y"===o,c=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-i.width,y:h};break;default:d={x:r.x,y:r.y}}switch(_(t)){case"start":d[s]-=p*(n&&u?-1:1);break;case"end":d[s]+=p*(n&&u?-1:1)}return d}async function G(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=P(t,e),f=U(d),g=a[p?"floating"===h?"reference":"floating":h],m=V(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===h?S({},s.floating,{x:r,y:i}):s.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},$=V(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(m.top-$.top+f.top)/b.y,bottom:($.bottom-m.bottom+f.bottom)/b.y,left:(m.left-$.left+f.left)/b.x,right:($.right-m.right+f.right)/b.x}}const W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=t,u=P(e,t),{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0}=u,m=E(u,q),v=O(r),y=O(s)===s,b=await(null==a.isRTL?void 0:a.isRTL(l.floating)),$=p||(y||!g?[H(s)]:function(e){const t=H(e);return[B(e),t,B(t)]}(s));p||"none"===f||$.push(...function(e,t,n,r){const i=_(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}(O(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(B)))),o}(s,g,f,b));const w=[s,...$],x=await G(t,m),S=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&S.push(x[v]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=_(e),i=M(e),o=L(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=H(s)),[s,H(s)]}(r,o,b);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every(e=>e<=0)){var A,T;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(d){case"bestFit":{var F;const e=null==(F=C.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Y=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=P(e,t),c={x:n,y:r},h=N(i),p=j(h);let d=c[p],f=c[h];const g=P(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:S({mainAxis:0,crossAxis:0},g);if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+m.mainAxis,n=o.reference[p]+o.reference[e]-m.mainAxis;d<t?d=t:d>n&&(d=n)}if(u){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(O(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(v=s.offset)?void 0:v[h])||0)+(t?0:m.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[h])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:d,[h]:f}}}};function J(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Q(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return e instanceof Node||e instanceof X(e).Node}function ee(e){return e instanceof Element||e instanceof X(e).Element}function te(e){return e instanceof HTMLElement||e instanceof X(e).HTMLElement}function ne(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof X(e).ShadowRoot)}function re(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ie(e){return["table","td","th"].includes(J(e))}function oe(e){const t=se(),n=le(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function se(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(e){return["html","body","#document"].includes(J(e))}function le(e){return X(e).getComputedStyle(e)}function ue(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ce(e){if("html"===J(e))return e;const t=e.assignedSlot||e.parentNode||ne(e)&&e.host||Q(e);return ne(t)?t.host:t}function he(e,t){var n;void 0===t&&(t=[]);const r=function e(t){const n=ce(t);return ae(n)?t.ownerDocument?t.ownerDocument.body:t.body:te(n)&&re(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=X(r);return i?t.concat(o,o.visualViewport||[],re(r)?r:[]):t.concat(r,he(r))}function pe(e){const t=le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=te(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=T(n)!==o||T(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function de(e){return ee(e)?e:e.contextElement}function fe(e){const t=de(e);if(!te(t))return k(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=pe(t);let s=(o?T(n.width):n.width)/r,a=(o?T(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ge=k(0);function me(e){const t=X(e);return se()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ge}function ve(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=de(e);let s=k(1);t&&(r?ee(r)&&(s=fe(r)):s=fe(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==X(e))&&t}(o,n,r)?me(o):k(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,h=i.height/s.y;if(o){const e=X(o),t=r&&ee(r)?X(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=fe(n),t=n.getBoundingClientRect(),r=le(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,h*=e.y,l+=i,u+=o,n=X(n).frameElement}}return V({width:c,height:h,x:l,y:u})}function ye(e){return ve(Q(e)).left+ue(e).scrollLeft}function be(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=X(e),r=Q(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const e=se();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Q(e),n=ue(e),r=e.ownerDocument.body,i=A(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=A(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ye(e);const a=-n.scrollTop;return"rtl"===le(r).direction&&(s+=A(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(Q(e));else if(ee(t))r=function(e,t){const n=ve(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=te(e)?fe(e):k(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=me(e);r=S({},t,{x:t.x-n.x,y:t.y-n.y})}return V(r)}function $e(e,t){const n=ce(e);return!(n===t||!ee(n)||ae(n))&&("fixed"===le(n).position||$e(n,t))}function we(e,t,n){const r=te(t),i=Q(t),o="fixed"===n,s=ve(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=k(0);if(r||!r&&!o)if(("body"!==J(t)||re(i))&&(a=ue(t)),r){const e=ve(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ye(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function xe(e,t){return te(e)&&"fixed"!==le(e).position?t?t(e):e.offsetParent:null}function Se(e,t){const n=X(e);if(!te(e))return n;let r=xe(e,t);for(;r&&ie(r)&&"static"===le(r).position;)r=xe(r,t);return r&&("html"===J(r)||"body"===J(r)&&"static"===le(r).position&&!oe(r))?n:r||function(e){let t=ce(e);for(;te(t)&&!ae(t);){if(oe(t))return t;t=ce(t)}return null}(e)||n}const Ee={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=te(n),o=Q(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a=k(1);const l=k(0);if((i||!i&&"fixed"!==r)&&(("body"!==J(n)||re(o))&&(s=ue(n)),te(n))){const e=ve(n);a=fe(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Q,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=he(e).filter(e=>ee(e)&&"body"!==J(e)),i=null;const o="fixed"===le(e).position;let s=o?ce(e):e;for(;ee(s)&&!ae(s);){const t=le(s),n=oe(s);n||"fixed"!==t.position||(i=null);(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||re(s)&&!n&&$e(e,s))?r=r.filter(e=>e!==s):i=t,s=ce(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=be(t,n,i);return e.top=A(r.top,e.top),e.right=C(r.right,e.right),e.bottom=C(r.bottom,e.bottom),e.left=A(r.left,e.left),e},be(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Se,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Se,o=this.getDimensions;return{reference:we(t,await i(n),r),floating:S({x:0,y:0},await o(n))}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return pe(e)},getScale:fe,isElement:ee,isRTL:function(e){return"rtl"===le(e).direction}};function Ce(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=de(e),c=i||o?[...u?he(u):[],...he(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const h=u&&a?function(e,t){let n,r=null;const i=Q(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const{left:u,top:c,width:h,height:p}=e.getBoundingClientRect();if(a||t(),!h||!p)return;const d={rootMargin:-F(c)+"px "+-F(i.clientWidth-(u+h))+"px "+-F(i.clientHeight-(c+p))+"px "+-F(u)+"px",threshold:A(0,C(1,l))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}f=!1}try{r=new IntersectionObserver(g,S({},d,{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(g,d)}r.observe(e)}(!0),o}(u,n):null;let p,d=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g=l?ve(e):null;return l&&function t(){const r=ve(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),h&&h(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Ae=(e,t,n)=>{const r=new Map,i=S({platform:Ee},n),o=S({},i.platform,{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=K(u,r,l),p=r,d={},f=0;for(let n=0;n<a.length;n++){const{name:o,fn:g}=a[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=m?m:c,h=null!=v?v:h,d=S({},d,{[o]:S({},d[o],y)}),b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:h}=K(u,p,l))),n=-1)}return{x:c,y:h,placement:p,strategy:i,middlewareData:d}})(e,t,S({},i,{platform:o}))};function Te(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=function(e,t){const n={strategy:"absolute",middleware:[]},r=function(e){if(e.options.arrow&&e.el)return e.el.querySelector(".shepherd-arrow");return!1}(t);w(e)||(n.middleware.push(W(),function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=P(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,u=E(o,z),c={x:n,y:r},h=await G(t,u),p=N(O(i)),d=j(p);let f=c[d],g=c[p];if(s){const e="y"===d?"bottom":"right";f=I(f+h["y"===d?"top":"left"],f,f-h[e])}if(a){const e="y"===p?"bottom":"right";g=I(g+h["y"===p?"top":"left"],g,g-h[e])}const m=l.fn(S({},t,{[d]:f,[p]:g}));return S({},m,{data:{x:m.x-n,y:m.y-r}})}}}({limiter:Y(),crossAxis:!0})),r&&n.middleware.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a}=t,{element:l,padding:u=0}=P(e,t)||{};if(null==l)return{};const c=U(u),h={x:n,y:r},p=M(i),d=L(p),f=await s.getDimensions(l),g="y"===p,m=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",b=o.reference[d]+o.reference[p]-h[p]-o.floating[d],$=h[p]-o.reference[p],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let x=w?w[y]:0;x&&await(null==s.isElement?void 0:s.isElement(w))||(x=a.floating[y]||o.floating[d]);const S=b/2-$/2,E=x/2-f[d]/2-1,A=C(c[m],E),T=C(c[v],E),F=A,k=x-f[d]-T,D=x/2-f[d]/2+S,R=I(F,D,k),O=null!=_(i)&&D!=R&&o.reference[d]/2-(D<F?A:T)-f[d]/2<0?D<F?F-D:k-D:0;return{[p]:h[p]-O,data:{[p]:R,centerOffset:D-R+O}}}}))({element:r})),n.placement=e.on);return p(t.options.floatingUIOptions||{},n)}(t,e),i=w(t);if(i){n=document.body;e.shepherdElementComponent.getElement().classList.add("shepherd-centered")}return e.cleanup=Ce(n,e.el,()=>{e.el?function(e,t,n,r){Ae(e,t.el,n).then(function(e,t){return({x:n,y:r,placement:i,middlewareData:o})=>e.el?(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:n+"px",top:r+"px"}),e.el.dataset.popperPlacement=i,function(e,t){const n=e.querySelector(".shepherd-arrow");if(n&&t.arrow){const{x:e,y:r}=t.arrow;Object.assign(n.style,{left:null!=e?e+"px":"",top:null!=r?r+"px":""})}}(e.el,o),e):e}(t,r)).then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{e&&e.el&&e.el.focus({preventScroll:!0})})}(n,e,r,i):e.cleanup()}),e.target=t.element,r}function Fe(){}function ke(e,t){for(const n in t)e[n]=t[n];return e}function De(e){return e()}function Re(){return Object.create(null)}function Ie(e){e.forEach(De)}function Pe(e){return"function"==typeof e}function Oe(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function _e(e,t){e.appendChild(t)}function je(e,t,n){e.insertBefore(t,n||null)}function Le(e){e.parentNode&&e.parentNode.removeChild(e)}function Ne(e){return document.createElement(e)}function Me(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Be(e){return document.createTextNode(e)}function He(){return Be(" ")}function Ue(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ve(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const qe=["width","height"];function ze(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===qe.indexOf(r)?e[r]=t[r]:Ve(e,r,t[r])}function Ke(e,t,n){e.classList[n?"add":"remove"](t)}let Ge;function We(e){Ge=e}function Ye(){if(!Ge)throw new Error("Function called outside component initialization");return Ge}function Je(e){Ye().$$.after_update.push(e)}const Xe=[],Qe=[];let Ze=[];const et=[],tt=Promise.resolve();let nt=!1;function rt(e){Ze.push(e)}const it=new Set;let ot=0;function st(){if(0!==ot)return;const e=Ge;do{try{for(;ot<Xe.length;){const e=Xe[ot];ot++,We(e),at(e.$$)}}catch(e){throw Xe.length=0,ot=0,e}for(We(null),Xe.length=0,ot=0;Qe.length;)Qe.pop()();for(let e=0;e<Ze.length;e+=1){const t=Ze[e];it.has(t)||(it.add(t),t())}Ze.length=0}while(Xe.length);for(;et.length;)et.pop()();nt=!1,it.clear(),We(e)}function at(e){if(null!==e.fragment){e.update(),Ie(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(rt)}}const lt=new Set;let ut;function ct(){ut={r:0,c:[],p:ut}}function ht(){ut.r||Ie(ut.c),ut=ut.p}function pt(e,t){e&&e.i&&(lt.delete(e),e.i(t))}function dt(e,t,n,r){if(e&&e.o){if(lt.has(e))return;lt.add(e),ut.c.push(()=>{lt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function ft(e){e&&e.c()}function gt(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||rt(()=>{const t=e.$$.on_mount.map(De).filter(Pe);e.$$.on_destroy?e.$$.on_destroy.push(...t):Ie(t),e.$$.on_mount=[]}),o.forEach(rt)}function mt(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];Ze.forEach(r=>-1===e.indexOf(r)?t.push(r):n.push(r)),n.forEach(e=>e()),Ze=t}(n.after_update),Ie(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function vt(e,t){-1===e.$$.dirty[0]&&(Xe.push(e),nt||(nt=!0,tt.then(st)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function yt(e,t,n,r,i,o,s,a=[-1]){const l=Ge;We(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Fe,not_equal:i,bound:Re(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Re(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=n?n(e,t.props||{},(t,n,...r)=>{const o=r.length?r[0]:n;return u.ctx&&i(u.ctx[t],u.ctx[t]=o)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](o),c&&vt(e,t)),n}):[],u.update(),c=!0,Ie(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){const e=(h=t.target,Array.from(h.childNodes));u.fragment&&u.fragment.l(e),e.forEach(Le)}else u.fragment&&u.fragment.c();t.intro&&pt(e.$$.fragment),gt(e,t.target,t.anchor,t.customElement),st()}var h;We(l)}class bt{$destroy(){mt(this,1),this.$destroy=Fe}$on(e,t){if(!Pe(t))return Fe;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function $t(e){let t,n,r,i,o;return{c(){t=Ne("button"),Ve(t,"aria-label",n=e[3]?e[3]:null),Ve(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],Ve(t,"tabindex","0")},m(n,r){je(n,t,r),t.innerHTML=e[5],i||(o=Ue(t,"click",(function(){Pe(e[0])&&e[0].apply(this,arguments)})),i=!0)},p(i,[o]){e=i,32&o&&(t.innerHTML=e[5]),8&o&&n!==(n=e[3]?e[3]:null)&&Ve(t,"aria-label",n),18&o&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&Ve(t,"class",r),4&o&&(t.disabled=e[2])},i:Fe,o:Fe,d(e){e&&Le(t),i=!1,o()}}}function wt(e,t,n){let r,i,o,s,a,l,{config:u,step:c}=t;function h(e){return f(e)?e.call(c):e}return e.$$set=e=>{"config"in e&&n(6,u=e.config),"step"in e&&n(7,c=e.step)},e.$$.update=()=>{192&e.$$.dirty&&(n(0,r=u.action?u.action.bind(c.tour):null),n(1,i=u.classes),n(2,o=!!u.disabled&&h(u.disabled)),n(3,s=u.label?h(u.label):null),n(4,a=u.secondary),n(5,l=u.text?h(u.text):null))},[r,i,o,s,a,l,u,c]}class xt extends bt{constructor(e){super(),yt(this,e,wt,$t,Oe,{config:6,step:7})}}function St(e,t,n){const r=e.slice();return r[2]=t[n],r}function Et(e){let t,n,r=e[1],i=[];for(let t=0;t<r.length;t+=1)i[t]=Ct(St(e,r,t));const o=e=>dt(i[e],1,1,()=>{i[e]=null});return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Be("")},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);je(e,t,r),n=!0},p(e,n){if(3&n){let s;for(r=e[1],s=0;s<r.length;s+=1){const o=St(e,r,s);i[s]?(i[s].p(o,n),pt(i[s],1)):(i[s]=Ct(o),i[s].c(),pt(i[s],1),i[s].m(t.parentNode,t))}for(ct(),s=r.length;s<i.length;s+=1)o(s);ht()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)pt(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)dt(i[e]);n=!1},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(i,e),e&&Le(t)}}}function Ct(e){let t,n;return t=new xt({props:{config:e[2],step:e[0]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.config=e[2]),1&n&&(r.step=e[0]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function At(e){let t,n,r=e[1]&&Et(e);return{c(){t=Ne("footer"),r&&r.c(),Ve(t,"class","shepherd-footer")},m(e,i){je(e,t,i),r&&r.m(t,null),n=!0},p(e,[n]){e[1]?r?(r.p(e,n),2&n&&pt(r,1)):(r=Et(e),r.c(),pt(r,1),r.m(t,null)):r&&(ct(),dt(r,1,1,()=>{r=null}),ht())},i(e){n||(pt(r),n=!0)},o(e){dt(r),n=!1},d(e){e&&Le(t),r&&r.d()}}}function Tt(e,t,n){let r,{step:i}=t;return e.$$set=e=>{"step"in e&&n(0,i=e.step)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=i.options.buttons)},[i,r]}class Ft extends bt{constructor(e){super(),yt(this,e,Tt,At,Oe,{step:0})}}function kt(e){let t,n,r,i,o;return{c(){t=Ne("button"),n=Ne("span"),n.textContent="×",Ve(n,"aria-hidden","true"),Ve(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),Ve(t,"class","shepherd-cancel-icon"),Ve(t,"type","button")},m(r,s){je(r,t,s),_e(t,n),i||(o=Ue(t,"click",e[1]),i=!0)},p(e,[n]){1&n&&r!==(r=e[0].label?e[0].label:"Close Tour")&&Ve(t,"aria-label",r)},i:Fe,o:Fe,d(e){e&&Le(t),i=!1,o()}}}function Dt(e,t,n){let{cancelIcon:r,step:i}=t;return e.$$set=e=>{"cancelIcon"in e&&n(0,r=e.cancelIcon),"step"in e&&n(2,i=e.step)},[r,e=>{e.preventDefault(),i.cancel()},i]}class Rt extends bt{constructor(e){super(),yt(this,e,Dt,kt,Oe,{cancelIcon:0,step:2})}}function It(e){let t;return{c(){t=Ne("h3"),Ve(t,"id",e[1]),Ve(t,"class","shepherd-title")},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:Fe,o:Fe,d(n){n&&Le(t),e[3](null)}}}function Pt(e,t,n){let{labelId:r,element:i,title:o}=t;return Je(()=>{f(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)}),e.$$set=e=>{"labelId"in e&&n(1,r=e.labelId),"element"in e&&n(0,i=e.element),"title"in e&&n(2,o=e.title)},[i,r,o,function(e){Qe[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class Ot extends bt{constructor(e){super(),yt(this,e,Pt,It,Oe,{labelId:1,element:0,title:2})}}function _t(e){let t,n;return t=new Ot({props:{labelId:e[0],title:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.labelId=e[0]),4&n&&(r.title=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function jt(e){let t,n;return t=new Rt({props:{cancelIcon:e[3],step:e[1]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.cancelIcon=e[3]),2&n&&(r.step=e[1]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Lt(e){let t,n,r,i=e[2]&&_t(e),o=e[3]&&e[3].enabled&&jt(e);return{c(){t=Ne("header"),i&&i.c(),n=He(),o&&o.c(),Ve(t,"class","shepherd-header")},m(e,s){je(e,t,s),i&&i.m(t,null),_e(t,n),o&&o.m(t,null),r=!0},p(e,[r]){e[2]?i?(i.p(e,r),4&r&&pt(i,1)):(i=_t(e),i.c(),pt(i,1),i.m(t,n)):i&&(ct(),dt(i,1,1,()=>{i=null}),ht()),e[3]&&e[3].enabled?o?(o.p(e,r),8&r&&pt(o,1)):(o=jt(e),o.c(),pt(o,1),o.m(t,null)):o&&(ct(),dt(o,1,1,()=>{o=null}),ht())},i(e){r||(pt(i),pt(o),r=!0)},o(e){dt(i),dt(o),r=!1},d(e){e&&Le(t),i&&i.d(),o&&o.d()}}}function Nt(e,t,n){let r,i,{labelId:o,step:s}=t;return e.$$set=e=>{"labelId"in e&&n(0,o=e.labelId),"step"in e&&n(1,s=e.step)},e.$$.update=()=>{2&e.$$.dirty&&(n(2,r=s.options.title),n(3,i=s.options.cancelIcon))},[o,s,r,i]}class Mt extends bt{constructor(e){super(),yt(this,e,Nt,Lt,Oe,{labelId:0,step:1})}}function Bt(e){let t;return{c(){t=Ne("div"),Ve(t,"class","shepherd-text"),Ve(t,"id",e[1])},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:Fe,o:Fe,d(n){n&&Le(t),e[3](null)}}}function Ht(e,t,n){let{descriptionId:r,element:i,step:o}=t;return Je(()=>{let{text:e}=o.options;f(e)&&(e=e.call(o)),d(e)?i.appendChild(e):n(0,i.innerHTML=e,i)}),e.$$set=e=>{"descriptionId"in e&&n(1,r=e.descriptionId),"element"in e&&n(0,i=e.element),"step"in e&&n(2,o=e.step)},[i,r,o,function(e){Qe[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class Ut extends bt{constructor(e){super(),yt(this,e,Ht,Bt,Oe,{descriptionId:1,element:0,step:2})}}function Vt(e){let t,n;return t=new Mt({props:{labelId:e[1],step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.labelId=e[1]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function qt(e){let t,n;return t=new Ut({props:{descriptionId:e[0],step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.descriptionId=e[0]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function zt(e){let t,n;return t=new Ft({props:{step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Kt(e){let t,n,r,i,o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,s=!m(e[2].options.text),a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,l=o&&Vt(e),u=s&&qt(e),c=a&&zt(e);return{c(){t=Ne("div"),l&&l.c(),n=He(),u&&u.c(),r=He(),c&&c.c(),Ve(t,"class","shepherd-content")},m(e,o){je(e,t,o),l&&l.m(t,null),_e(t,n),u&&u.m(t,null),_e(t,r),c&&c.m(t,null),i=!0},p(e,[i]){4&i&&(o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled),o?l?(l.p(e,i),4&i&&pt(l,1)):(l=Vt(e),l.c(),pt(l,1),l.m(t,n)):l&&(ct(),dt(l,1,1,()=>{l=null}),ht()),4&i&&(s=!m(e[2].options.text)),s?u?(u.p(e,i),4&i&&pt(u,1)):(u=qt(e),u.c(),pt(u,1),u.m(t,r)):u&&(ct(),dt(u,1,1,()=>{u=null}),ht()),4&i&&(a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length),a?c?(c.p(e,i),4&i&&pt(c,1)):(c=zt(e),c.c(),pt(c,1),c.m(t,null)):c&&(ct(),dt(c,1,1,()=>{c=null}),ht())},i(e){i||(pt(l),pt(u),pt(c),i=!0)},o(e){dt(l),dt(u),dt(c),i=!1},d(e){e&&Le(t),l&&l.d(),u&&u.d(),c&&c.d()}}}function Gt(e,t,n){let{descriptionId:r,labelId:i,step:o}=t;return e.$$set=e=>{"descriptionId"in e&&n(0,r=e.descriptionId),"labelId"in e&&n(1,i=e.labelId),"step"in e&&n(2,o=e.step)},[r,i,o]}class Wt extends bt{constructor(e){super(),yt(this,e,Gt,Kt,Oe,{descriptionId:0,labelId:1,step:2})}}function Yt(e){let t;return{c(){t=Ne("div"),Ve(t,"class","shepherd-arrow"),Ve(t,"data-popper-arrow","")},m(e,n){je(e,t,n)},d(e){e&&Le(t)}}}function Jt(e){let t,n,r,i,o,s,a,l,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&Yt();r=new Wt({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let c=[{"aria-describedby":i=m(e[4].options.text)?null:e[2]},{"aria-labelledby":o=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],h={};for(let e=0;e<c.length;e+=1)h=ke(h,c[e]);return{c(){t=Ne("div"),u&&u.c(),n=He(),ft(r.$$.fragment),ze(t,h),Ke(t,"shepherd-has-cancel-icon",e[5]),Ke(t,"shepherd-has-title",e[6]),Ke(t,"shepherd-element",!0)},m(i,o){je(i,t,o),u&&u.m(t,null),_e(t,n),gt(r,t,null),e[13](t),s=!0,a||(l=Ue(t,"keydown",e[7]),a=!0)},p(e,[a]){e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on?u||(u=Yt(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const l={};4&a&&(l.descriptionId=e[2]),8&a&&(l.labelId=e[3]),16&a&&(l.step=e[4]),r.$set(l),ze(t,h=function(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const e in s)e in a||(r[e]=1);for(const e in a)i[e]||(n[e]=a[e],i[e]=1);e[o]=a}else for(const e in s)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}(c,[(!s||20&a&&i!==(i=m(e[4].options.text)?null:e[2]))&&{"aria-describedby":i},(!s||24&a&&o!==(o=e[4].options.title?e[3]:null))&&{"aria-labelledby":o},2&a&&e[1],{role:"dialog"},{tabindex:"0"}])),Ke(t,"shepherd-has-cancel-icon",e[5]),Ke(t,"shepherd-has-title",e[6]),Ke(t,"shepherd-element",!0)},i(e){s||(pt(r.$$.fragment,e),s=!0)},o(e){dt(r.$$.fragment,e),s=!1},d(n){n&&Le(t),u&&u.d(),mt(r),e[13](null),a=!1,l()}}}function Xt(e){return e.split(" ").filter(e=>!!e.length)}function Qt(e,t,n){let r,i,o,{classPrefix:s,element:a,descriptionId:l,firstFocusableElement:u,focusableElements:c,labelId:h,lastFocusableElement:p,step:d,dataStepId:f}=t;var m;m=()=>{n(1,f={[`data-${s}shepherd-step-id`]:d.id}),n(9,c=a.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,u=c[0]),n(10,p=c[c.length-1])},Ye().$$.on_mount.push(m),Je(()=>{o!==d.options.classes&&(function(e){if(g(e)){const t=Xt(e);t.length&&a.classList.remove(...t)}}(o),o=d.options.classes,function(e){if(g(e)){const t=Xt(e);t.length&&a.classList.add(...t)}}(o))});return e.$$set=e=>{"classPrefix"in e&&n(11,s=e.classPrefix),"element"in e&&n(0,a=e.element),"descriptionId"in e&&n(2,l=e.descriptionId),"firstFocusableElement"in e&&n(8,u=e.firstFocusableElement),"focusableElements"in e&&n(9,c=e.focusableElements),"labelId"in e&&n(3,h=e.labelId),"lastFocusableElement"in e&&n(10,p=e.lastFocusableElement),"step"in e&&n(4,d=e.step),"dataStepId"in e&&n(1,f=e.dataStepId)},e.$$.update=()=>{16&e.$$.dirty&&(n(5,r=d.options&&d.options.cancelIcon&&d.options.cancelIcon.enabled),n(6,i=d.options&&d.options.title))},[a,f,l,h,d,r,i,e=>{const{tour:t}=d;switch(e.keyCode){case 9:if(0===c.length){e.preventDefault();break}e.shiftKey?(document.activeElement===u||document.activeElement.classList.contains("shepherd-element"))&&(e.preventDefault(),p.focus()):document.activeElement===p&&(e.preventDefault(),u.focus());break;case 27:t.options.exitOnEsc&&(e.stopPropagation(),d.cancel());break;case 37:t.options.keyboardNavigation&&(e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.stopPropagation(),t.next())}},u,c,p,s,()=>a,function(e){Qe[e?"unshift":"push"](()=>{a=e,n(0,a)})}]}class Zt extends bt{constructor(e){super(),yt(this,e,Qt,Jt,Oe,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class en extends v{constructor(e,t={}){return super(e,t),this.tour=e,this.classPrefix=this.tour.options?$(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,y(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){var e;(e=this).cleanup&&e.cleanup(),e.cleanup=null,d(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(f(n.element)&&(n.element=n.element.call(e)),g(n.element)){try{n.element=document.querySelector(n.element)}catch(e){}n.element||console.error("The element for this Shepherd step was not found "+t.element)}return n}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return f(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=this.id+"-description",t=this.id+"-label";return this.shepherdElementComponent=new Zt({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:t}=this._getResolvedAttachToOptions();f(this.options.scrollToHandler)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){const t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:"",r=t&&t.classes?t.classes:"",i=[...n.split(" "),...r.split(" ")],o=new Set(i);return Array.from(o).join(" ").trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=p({},t||{}),this.options=Object.assign({arrow:!0},t,e,function(e,t){return{floatingUIOptions:p(e.floatingUIOptions||{},t.floatingUIOptions||{})}}(t,e));const{when:n}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||"step-"+x(),n&&Object.keys(n).forEach(e=>{this.on(e,n[e],this)})}_setupElements(){m(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&b(this),Te(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const e=this.shepherdElementComponent.getElement(),t=this.target||document.body;t.classList.add(this.classPrefix+"shepherd-enabled"),t.classList.add(this.classPrefix+"shepherd-target"),e.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const t=e.target;t&&(e.options.highlightClass&&t.classList.add(e.options.highlightClass),t.classList.remove("shepherd-target-click-disabled"),!1===e.options.canClickTarget&&t.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")}}function tn(e){let t,n,r,i,o;return{c(){t=Me("svg"),n=Me("path"),Ve(n,"d",e[2]),Ve(t,"class",r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(r,s){je(r,t,s),_e(t,n),e[11](t),i||(o=Ue(t,"touchmove",e[3]),i=!0)},p(e,[i]){4&i&&Ve(n,"d",e[2]),2&i&&r!==(r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Ve(t,"class",r)},i:Fe,o:Fe,d(n){n&&Le(t),e[11](null),i=!1,o()}}}function nn(e,t,n){let{element:r,openingProperties:i}=t;x();let o,s=!1,a=void 0;l();function l(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function u(){n(1,s=!1),d()}function c(e=0,t=0,r,o){if(o){const{y:s,height:a}=function(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const e=t.getBoundingClientRect(),n=e.y||e.top,o=e.bottom||n+e.height;r=Math.max(r,n),i=Math.min(i,o)}return{y:r,height:Math.max(i-r,0)}}(o,r),{x:l,width:u,left:c}=o.getBoundingClientRect();n(4,i={width:u+2*e,height:a+2*e,x:(l||c)-e,y:s-e,r:t})}else l()}function h(){n(1,s=!0)}const p=e=>{e.preventDefault()};function d(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",p,{passive:!1})}return e.$$set=e=>{"element"in e&&n(0,r=e.element),"openingProperties"in e&&n(4,i=e.openingProperties)},e.$$.update=()=>{16&e.$$.dirty&&n(2,o=function({width:e,height:t,x:n=0,y:r=0,r:i=0}){const{innerWidth:o,innerHeight:s}=window,{topLeft:a=0,topRight:l=0,bottomRight:u=0,bottomLeft:c=0}="number"==typeof i?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${o},${s}H0V0H${o}V${s}ZM${n+a},${r}a${a},${a},0,0,0-${a},${a}V${t+r-c}a${c},${c},0,0,0,${c},${c}H${e+n-u}a${u},${u},0,0,0,${u}-${u}V${r+l}a${l},${l},0,0,0-${l}-${l}Z`}(i))},[r,s,o,e=>{e.stopPropagation()},i,()=>r,l,u,c,function(e){d(),e.tour.options.useModalOverlay?(!function(e){const{modalOverlayOpeningPadding:t,modalOverlayOpeningRadius:n}=e.options,r=function e(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentElement)}(e.target),i=()=>{a=void 0,c(t,n,r,e.target),a=requestAnimationFrame(i)};i(),window.addEventListener("touchmove",p,{passive:!1})}(e),h()):u()},h,function(e){Qe[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}class rn extends bt{constructor(e){super(),yt(this,e,nn,tn,Oe,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const on=new v;class sn extends v{constructor(e={}){super(e),y(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=$(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(e=>{(e=>{this.on(e,t=>{(t=t||{}).tour=this,on.trigger(e,t)})})(e)}),this._setTourID(),this}addStep(e,t){let n=e;return n instanceof en?n.tour=this:n=new en(this,n),m(t)?this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e="function"==typeof this.options.confirmCancel,t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";(e?await this.options.confirmCancel():window.confirm(t))&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return on.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const t=this.getCurrentStep();this.steps.some((t,n)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){const n=g(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();f(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(e){const t=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(e){if(e){const{steps:t}=e;t.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(e,{index:t}),on.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===e||"complete"===e)&&this.modal){const e=document.querySelector(".shepherd-modal-overlay-container");e&&e.remove()}d(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),on.activeTour=this}_setupModal(){this.modal=new rn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(e,t){const n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const e=t?n+1:n-1;this.show(e,t)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const e=this.options.tourName||"tour";this.id=`${e}--${x()}`}}const an="undefined"==typeof window;class ln{constructor(){}}an?Object.assign(on,{Tour:ln,Step:ln}):Object.assign(on,{Tour:sn,Step:en});const un="shepherd.guide_id",cn="shepherd.guide.current.step.id",hn="shepherd.guide.step.history",pn="shepherd.guide.pause";function dn(e,t,n,i,o,s,a){this.guideCancelSubscription=void 0,this.onPause=()=>{},this.onCancel=()=>{},this.startGuide=(e,t,r,i=!0)=>{if(i&&n.remove(hn),!t)return;const o=this._createGuide(e);this._addGuideSteps(o,t),this._startGuide(o,r)},this.resumeGuide=(e,t,r)=>{n.set(pn,!1),this.startGuide(e,t,r,!1)},this.isActive=()=>on.activeTour&&!this.isPaused(),this.isPaused=()=>"true"===n.get(pn),this.getGuideId=()=>n.get(un),this.getCurrentStepId=()=>n.get(cn),this.subscribeToGuideCancel=e=>{angular.isFunction(e)&&(this.onCancel=e)},this.subscribeToGuidePause=e=>{angular.isFunction(e)&&(this.onPause=e)},this._createGuide=e=>(this._subscribeToGuideCanceled(),new on.Tour({name:e,useModalOverlay:!0,confirmCancel:!0,confirmCancelMessage:t.instant("guide.confirm.cancel.message"),defaultStepOptions:{classes:"shadow-md bg-purple-dark",scrollTo:!0}})),this._addGuideSteps=(e,t)=>{if(t.length>0&&e.addStep(this._getFirstStep(e,t)),t.length>2)for(let n=1;n<t.length-1;n++)e.addStep(this._getMiddleStep(e,t,n));t.length>1&&e.addStep(this._getLastStep(e,t))},this._startGuide=(o,a)=>{n.remove(pn);let l=o.steps.findIndex(e=>e.options.id===a);l<0&&(l=0);const u=o.steps[l],c=u.options.url;c&&(e.url(c),i.reload()),u.options.attachTo?r.GuideUtils.waitFor(u.options.attachTo.element,u.options.maxWaitTime).then(()=>o.show(l)).catch(e=>{console.log(e),s.error(t.instant("guide.start.unexpected.error.message"))}):o.show(l)},this._subscribeToGuideCanceled=()=>{this.guideCancelSubscription||(this.guideCancelSubscription=on.on("cancel",()=>{this._clearLocaleStorage();const e=on.activeTour.getCurrentStep();e&&angular.isFunction(e.hide)&&e.hide(),this.onCancel&&this.onCancel()}))},this._getFirstStep=function(e,t){const n=t.length>1?t[1]:void 0;return this._toGuideStep(e,void 0,t[0],n)},this._getMiddleStep=(e,t,n)=>this._toGuideStep(e,t[n-1],t[n],t[n+1]),this._getLastStep=(e,t)=>{const n=this._toGuideStep(e,null,t[t.length-1]);return n.buttons.push(this._getBackToGuidesButton(e)),n.buttons.push(this._getCancelButton(e)),n},this._getBackToGuidesButton=e=>this._getButton(t.instant("back.to.guides.btn"),()=>this._backToGuidesButton(e),!0),this._getCancelButton=e=>this._getButton(t.instant("common.close"),()=>this._cancelGuide(e,!1),!0),this._backToGuidesButton=t=>{e.path("guides"),this._cancelGuide(t,!1)},this._cancelGuide=(e,t=!0)=>{e.options.confirmCancel=t,e.cancel(),this.onCancel()&&this.onCancel()},this._toGuideStep=(e,n,r,i)=>{const o=this._toBaseGuideStep(e,t,r,()=>this._updateLocalStorage()),s=[];return r.skipPoint&&s.push(this._getSkipButton(e)),n&&s.push(this._getPreviousButton(e)),i&&s.push(this._getNextButton(e,r,i)),o.buttons=s,o},this._getPauseButton=e=>this._getButton(t.instant("pause.btn"),()=>this._pauseGuide(e),!0),this._getSkipButton=e=>this._getButton(t.instant("skip.btn"),()=>this._skipSteps(e),!0),this._skipSteps=e=>{const t=e.getCurrentStep(),n=e.steps.findIndex(e=>t.id===e.id);this._startGuide(e,this._getNextSkipPointId(e.steps,n))},this._getNextSkipPointId=(e,t)=>{for(let n=t+1;n<e.length;n++){const t=e.at(n);if(t.options.skipPoint)return t.id}return e.at(e.length-1).id},this._pauseGuide=e=>{e.hide();const t=this._getStepWhichCanBePaused(e.steps,e.getCurrentStep().id);this._saveStep(t),n.set(pn,!0);let r=!1;for(;!r;){const e=this._getHistory();e&&e.length>0&&e.at(e.length-1)!==t.options.id?this._removeLastStepFromHistory():r=!0}this.onPause()&&this.onPause()},this._getStepWhichCanBePaused=(e,t)=>{const n=e.findIndex(e=>e.id===t),r=e[n];return r.options.canBePaused?r:n>0?this._getStepWhichCanBePaused(e,e[n-1].id):void 0},this._getPreviousButton=e=>{const n=t.instant("previous.btn"),r=this._getPreviousButtonAction(e);return this._getButton(n,r)},this._getPreviousButtonAction=n=>()=>{const i=this._getPreviousStepIdFromHistory();let o;o=-1===i?n.steps.at(0):n.steps.find(e=>e.options.id===i);const a=n.getCurrentStep();a.hide(),a.options.initPreviousStep({GuideUtils:r.GuideUtils,ShepherdService:this},a.options.id).then(()=>{angular.isFunction(a.options.onPreviousClick)?a.options.onPreviousClick(n).then(e=>{!angular.isUndefined(e)&&null!==e&&e||(a.hide(),n.show(o.id))}).catch(e=>{console.log(e),s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)}):((o.options.forceReload||o.options.url&&o.options.url!==a.options.url)&&e.path(o.options.url),a.hide(),n.show(o.id))}).catch(e=>{console.log(e),s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)})},this._getNextButton=(e,n,r)=>{const i=t.instant("next.btn"),o=l(e,n,r);return this._getButton(i,o)};const l=(n,r,i)=>()=>{r.onNextValidate(r).then(o=>{if(o)if(angular.isFunction(r.onNextClick)){const e=r.onNextClick(n,r);e instanceof Promise&&e.catch(e=>{s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)})}else(i.forceReload||i.url&&i.url!==r.url)&&e.path(i.url),n.next()})};this._updateLocalStorage=()=>{const e=on.activeTour;if(!e)return;const t=e.getCurrentStep();if(t.options.skipFromHistory)return void console.log("Current step: ",t.options.skipFromHistory);const n=e.steps.findIndex(e=>e.id===t.id),r=this.getCurrentStepId(),i=e.steps.findIndex(e=>e.id===r);n>i?this._addStepToHistory(t):i>n&&this._removeLastStepFromHistory(),this._saveStep(t)},this._saveStep=e=>{e&&(n.set(un,e.tour.options.name),n.set(cn,e.options.id))},this._addStepToHistory=e=>{const t=this._getHistory();t.push(e.options.id),n.set(hn,t)},this._getHistory=()=>{const e=n.get(hn);return e||[]},this._removeLastStepFromHistory=()=>{const e=this._getHistory();e.splice(e.length-1,1),n.set(hn,e)},this._getPreviousStepIdFromHistory=e=>{const t=this._getHistory()||[];if(e){const n=t.findIndex(t=>t===e);if(n>0)return t.at(n-1)}else if(t.length>1)return t.at(t.length-2);return-1},this.getPreviousStepFromHistory=e=>{const t=this._getPreviousStepIdFromHistory(e);return on.activeTour.steps.find(e=>e.id===t)},this._clearLocaleStorage=()=>{n.remove(un),n.remove(pn),n.remove(cn),n.remove(hn)},this._toBaseGuideStep=(e,t,n,i)=>{let s;n.elementSelector&&(s={element:n.elementSelector,on:n.placement});const a=r.GuideUtils.unescapeHtml(r.GuideUtils.translateLocalMessage(t,o,n.title,n));let l="";if(n.stepsTotalN>1){const e=document.createElement("span");e.setAttribute("gdb-tooltip",t.instant("guide.block.progress.tooltip",{action:a})),e.setAttribute("tooltip-placement","bottom"),e.innerText=t.instant("guide.block.progress",{n:n.stepN+1,nn:n.stepsTotalN}),l="&nbsp;&mdash;&nbsp;"+e.outerHTML}const u="readonly"!==n.type,c=n.extraPadding?n.extraPadding:0,h={id:n.id,title:a+l,text:()=>{const e=this._toParagraph(r.GuideUtils.translateLocalMessage(t,o,n.content,n));let i="";return n.extraContent&&(i=r.GuideUtils.translateLocalMessage(t,o,n.extraContent,n),i=this._toParagraph(i,n.extraContentClass)),e+i},url:n.url,maxWaitTime:n.maxWaitTime,cancelIcon:{enabled:!0},attachTo:s,modalOverlayOpeningPadding:c,modalOverlayOpeningRadius:0,canBePaused:n.canBePaused,advanceOn:n.advanceOn,showOn:n.showOn,scrollToHandler:n.scrollToHandler,classes:"guide-dialog "+n.class,beforeShowPromise:n.beforeShowPromise,canClickTarget:u,keyboardNavigation:!1,skipPoint:n.skipPoint,skipFromHistory:n.skipFromHistory,onPreviousClick:n.onPreviousClick,initPreviousStep:n.initPreviousStep,when:{show:this._getShowFunction(e,n,i)}};return angular.isFunction(n.hide)&&(h.when.hide=n.hide(e)),h},this._getShowFunction=(e,t,n)=>angular.isFunction(t.show)?()=>{t.show(e)(),n(),this._whenStepShow(t)}:()=>{n(),this._whenStepShow(t)},this._whenStepShow=e=>{const t=on.activeTour.getCurrentStep(),n=t.getElement();this._addTotalProgress(t,n),this._addTypeIcon(n,e);const r=angular.element(n).scope();angular.isFunction(e.onScope)&&e.onScope(r),setTimeout(()=>r.$apply(()=>a(n)(r)))},this._toParagraph=(e,t)=>{if(e){const n=document.createElement("p");return t&&(n.className=t),n.innerHTML=e,n.outerHTML}return""},this._addTotalProgress=(e,n)=>{const r=on.activeTour.steps,i=n.querySelector(".shepherd-content"),o=document.createElement("div");o.className="shepherd-progress";const s=document.createElement("span");s.className="text-muted",s.innerText=t.instant("guide.total.progress",{n:r.indexOf(e)+1,nn:r.length}),s.setAttribute("gdb-tooltip",t.instant("guide.total.progress.tooltip")),s.setAttribute("tooltip-placement","left"),o.appendChild(s),i.appendChild(o)},this._addTypeIcon=(e,n)=>{let r,i;switch(n.type){case"clickable":r="focus",i="mouse";break;case"input":r="edit",i="input";break;default:r="info",i="info"}const o=document.createElement("span");o.className="shepherd-step-type icon-"+r+" icon-1-25x",o.setAttribute("gdb-tooltip",t.instant("guide.step-type."+i)),o.setAttribute("tooltip-placement","bottom-right"),angular.element(e.querySelector(".shepherd-header")).prepend(o)},this._getButton=(e,t,n)=>{const r={text:e,classes:n?"btn btn-secondary":"btn btn-primary",action:e=>{e.stopPropagation(),t()}};return r}}angular.module("graphdb.framework.guides.shepherd.services",["graphdb.framework.utils.localstorageadapter"]).service("ShepherdService",dn),dn.$inject=["$location","$translate","LocalStorageAdapter","$route","$interpolate","toastr","$compile"]},18:function(e,t,n){(function(e,r){var i;
3
+ /**
4
+ * @license
5
+ * Lodash <https://lodash.com/>
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ * Released under MIT license <https://lodash.com/license>
8
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10
+ */(function(){var o="Expected a function",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",p="[object Error]",d="[object Function]",f="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",$="[object String]",w="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",A="[object Float64Array]",T="[object Int8Array]",F="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",R="[object Uint16Array]",I="[object Uint32Array]",P=/\b__p \+= '';/g,O=/\b(__p \+=) '' \+/g,_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,N=RegExp(j.source),M=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,G=RegExp(K.source),W=/^\s+/,Y=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,he=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fe="[\\ud800-\\udfff]",ge="["+de+"]",me="["+pe+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",$e="[^\\ud800-\\udfff"+de+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+be+"|"+$e+")",Te="(?:"+Ce+"|"+$e+")",Fe="(?:"+me+"|"+we+")"+"?",ke="[\\ufe0e\\ufe0f]?"+Fe+("(?:\\u200d(?:"+[xe,Se,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Fe+")*"),De="(?:"+[ye,Se,Ee].join("|")+")"+ke,Re="(?:"+[xe+me+"?",me,Se,Ee,fe].join("|")+")",Ie=RegExp("['’]","g"),Pe=RegExp(me,"g"),Oe=RegExp(we+"(?="+we+")|"+Re+ke,"g"),_e=RegExp([Ce+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Ce,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Ce+Ae,"$"].join("|")+")",Ce+"?"+Ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,De].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Me=-1,Be={};Be[C]=Be[A]=Be[T]=Be[F]=Be[k]=Be[D]=Be["[object Uint8ClampedArray]"]=Be[R]=Be[I]=!0,Be[l]=Be[u]=Be[S]=Be[c]=Be[E]=Be[h]=Be[p]=Be[d]=Be[g]=Be[m]=Be[v]=Be[y]=Be[b]=Be[$]=Be[x]=!1;var He={};He[l]=He[u]=He[S]=He[E]=He[c]=He[h]=He[C]=He[A]=He[T]=He[F]=He[k]=He[g]=He[m]=He[v]=He[y]=He[b]=He[$]=He[w]=He[D]=He["[object Uint8ClampedArray]"]=He[R]=He[I]=!0,He[p]=He[d]=He[x]=!1;var Ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,qe=parseInt,ze="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,Ge=ze||Ke||Function("return this")(),We=t&&!t.nodeType&&t,Ye=We&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ye&&Ye.exports===We,Xe=Je&&ze.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,it=Qe&&Qe.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function st(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function at(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function ht(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ft(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=Ct("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function $t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,St,n)}function xt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function St(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?Ft(e,t)/n:NaN}function Ct(e){return function(t){return null==t?void 0:t[e]}}function At(e){return function(t){return null==e?void 0:e[t]}}function Tt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Ft(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dt(e){return e?e.slice(0,Wt(e)+1).replace(W,""):e}function Rt(e){return function(t){return e(t)}}function It(e,t){return dt(t,(function(t){return e[t]}))}function Pt(e,t){return e.has(t)}function Ot(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function _t(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=At({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Nt=At({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Mt(e){return"\\"+Ue[e]}function Bt(e){return je.test(e)}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ut(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Kt(e){return Bt(e)?function(e){var t=Oe.lastIndex=0;for(;Oe.test(e);)++t;return t}(e):yt(e)}function Gt(e){return Bt(e)?function(e){return e.match(Oe)||[]}(e):function(e){return e.split("")}(e)}function Wt(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var Yt=At({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Jt=function e(t){var n,r=(t=null==t?Ge:Jt.defaults(Ge.Object(),t,Jt.pick(Ge,Ne))).Array,i=t.Date,Y=t.Error,pe=t.Function,de=t.Math,fe=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,ye=r.prototype,be=pe.prototype,$e=fe.prototype,we=t["__core-js_shared__"],xe=be.toString,Se=$e.hasOwnProperty,Ee=0,Ce=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ae=$e.toString,Te=xe.call(fe),Fe=Ge._,ke=ge("^"+xe.call(Se).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=Je?t.Buffer:void 0,Re=t.Symbol,Oe=t.Uint8Array,je=De?De.allocUnsafe:void 0,Ue=Ut(fe.getPrototypeOf,fe),ze=fe.create,Ke=$e.propertyIsEnumerable,We=ye.splice,Ye=Re?Re.isConcatSpreadable:void 0,Xe=Re?Re.iterator:void 0,Qe=Re?Re.toStringTag:void 0,yt=function(){try{var e=eo(fe,"defineProperty");return e({},"",{}),e}catch(e){}}(),At=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,Xt=i&&i.now!==Ge.Date.now&&i.now,Qt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Zt=de.ceil,en=de.floor,tn=fe.getOwnPropertySymbols,nn=De?De.isBuffer:void 0,rn=t.isFinite,on=ye.join,sn=Ut(fe.keys,fe),an=de.max,ln=de.min,un=i.now,cn=t.parseInt,hn=de.random,pn=ye.reverse,dn=eo(t,"DataView"),fn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),yn=eo(fe,"create"),bn=vn&&new vn,$n={},wn=Fo(dn),xn=Fo(fn),Sn=Fo(gn),En=Fo(mn),Cn=Fo(vn),An=Re?Re.prototype:void 0,Tn=An?An.valueOf:void 0,Fn=An?An.toString:void 0;function kn(e){if(zs(e)&&!Os(e)&&!(e instanceof Pn)){if(e instanceof In)return e;if(Se.call(e,"__wrapped__"))return ko(e)}return new In(e)}var Dn=function(){function e(){}return function(t){if(!qs(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Rn(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function On(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function Nn(e){var t=this.__data__=new _n(e);this.size=t.size}function Mn(e,t){var n=Os(e),r=!n&&Ps(e),i=!n&&!r&&Ns(e),o=!n&&!r&&!i&&Zs(e),s=n||r||i||o,a=s?kt(e.length,me):[],l=a.length;for(var u in e)!t&&!Se.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ao(u,l))||a.push(u);return a}function Bn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Hn(e,t){return Co(yi(e),Jn(t,0,e.length))}function Un(e){return Co(yi(e))}function Vn(e,t,n){(void 0!==n&&!Ds(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function qn(e,t,n){var r=e[t];Se.call(e,t)&&Ds(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if(Ds(e[n][0],t))return n;return-1}function Kn(e,t,n,r){return tr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Gn(e,t){return e&&bi(t,wa(t),e)}function Wn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,i=t.length,o=r(i),s=null==e;++n<i;)o[n]=s?void 0:ma(e,t[n]);return o}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,i,o){var s,a=1&t,u=2&t,p=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),void 0!==s)return s;if(!qs(e))return e;var x=Os(e);if(x){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return yi(e,s)}else{var P=ro(e),O=P==d||P==f;if(Ns(e))return pi(e,a);if(P==v||P==l||O&&!i){if(s=u||O?{}:oo(e),!a)return u?function(e,t){return bi(e,no(e),t)}(e,function(e,t){return e&&bi(t,xa(t),e)}(s,e)):function(e,t){return bi(e,to(e),t)}(e,Gn(s,e))}else{if(!He[P])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case S:return di(e);case c:case h:return new r(+e);case E:return function(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case C:case A:case T:case F:case k:case D:case"[object Uint8ClampedArray]":case R:case I:return fi(e,n);case g:return new r;case m:case $:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Tn?fe(Tn.call(i)):{}}var i}(e,P,a)}}o||(o=new Nn);var _=o.get(e);if(_)return _;o.set(e,s),Js(e)?e.forEach((function(r){s.add(Xn(r,t,n,r,e,o))})):Ks(e)&&e.forEach((function(r,i){s.set(i,Xn(r,t,n,i,e,o))}));var j=x?void 0:(p?u?Gi:Ki:u?xa:wa)(e);return at(j||e,(function(r,i){j&&(r=e[i=r]),qn(s,i,Xn(r,t,n,i,e,o))})),s}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=fe(e);r--;){var i=n[r],o=t[i],s=e[i];if(void 0===s&&!(i in e)||!o(s))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=ht,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=dt(t,Rt(n))),r?(o=pt,s=!1):t.length>=200&&(o=Pt,s=!1,t=new Ln(t));e:for(;++i<a;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&h==h){for(var p=u;p--;)if(t[p]===h)continue e;l.push(c)}else o(t,h,r)||l.push(c)}return l}kn.templateSettings={escape:B,evaluate:H,interpolate:U,variable:"",imports:{_:kn}},kn.prototype=Rn.prototype,kn.prototype.constructor=kn,In.prototype=Dn(Rn.prototype),In.prototype.constructor=In,Pn.prototype=Dn(Rn.prototype),Pn.prototype.constructor=Pn,On.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},On.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},On.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},On.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:Se.call(t,e)},On.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},_n.prototype.clear=function(){this.__data__=[],this.size=0},_n.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():We.call(t,n,1),--this.size,!0)},_n.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},_n.prototype.has=function(e){return zn(this.__data__,e)>-1},_n.prototype.set=function(e,t){var n=this.__data__,r=zn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(fn||_n),string:new On}},jn.prototype.delete=function(e){var t=Qi(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return Qi(this,e).get(e)},jn.prototype.has=function(e){return Qi(this,e).has(e)},jn.prototype.set=function(e,t){var n=Qi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.clear=function(){this.__data__=new _n,this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nn.prototype.get=function(e){return this.__data__.get(e)},Nn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!fn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var tr=xi(ur),nr=xi(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(void 0===a?s==s&&!Qs(s):n(s,a)))var a=s,l=o}return l}function or(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function sr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=so),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?sr(a,t-1,n,r,i):ft(i,a):r||(i[i.length]=a)}return i}var ar=Si(),lr=Si(!0);function ur(e,t){return e&&ar(e,t,wa)}function cr(e,t){return e&&lr(e,t,wa)}function hr(e,t){return ct(t,(function(t){return Hs(e[t])}))}function pr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n<r;)e=e[To(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Os(e)?r:ft(r,n(e))}function fr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qe&&Qe in fe(e)?function(e){var t=Se.call(e,Qe),n=e[Qe];try{e[Qe]=void 0;var r=!0}catch(e){}var i=Ae.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Ae.call(e)}(e)}function gr(e,t){return e>t}function mr(e,t){return null!=e&&Se.call(e,t)}function vr(e,t){return null!=e&&t in fe(e)}function yr(e,t,n){for(var i=n?pt:ht,o=e[0].length,s=e.length,a=s,l=r(s),u=1/0,c=[];a--;){var h=e[a];a&&t&&(h=dt(h,Rt(t))),u=ln(h.length,u),l[a]=!n&&(t||o>=120&&h.length>=120)?new Ln(a&&h):void 0}h=e[0];var p=-1,d=l[0];e:for(;++p<o&&c.length<u;){var f=h[p],g=t?t(f):f;if(f=n||0!==f?f:0,!(d?Pt(d,g):i(c,g,n))){for(a=s;--a;){var m=l[a];if(!(m?Pt(m,g):i(e[a],g,n)))continue e}d&&d.push(g),c.push(f)}}return c}function br(e,t,n){var r=null==(e=vo(e,t=li(t,e)))?e:e[To(Bo(t))];return null==r?void 0:ot(r,e,n)}function $r(e){return zs(e)&&fr(e)==l}function wr(e,t,n,r,i){return e===t||(null==e||null==t||!zs(e)&&!zs(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var s=Os(e),a=Os(t),d=s?u:ro(e),f=a?u:ro(t),x=(d=d==l?v:d)==v,C=(f=f==l?v:f)==v,A=d==f;if(A&&Ns(e)){if(!Ns(t))return!1;s=!0,x=!1}if(A&&!x)return o||(o=new Nn),s||Zs(e)?qi(e,t,n,r,i,o):function(e,t,n,r,i,o,s){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Oe(e),new Oe(t)));case c:case h:case m:return Ds(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case $:return e==t+"";case g:var a=Ht;case b:var l=1&r;if(a||(a=qt),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var d=qi(a(e),a(t),r,i,o,s);return s.delete(e),d;case w:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,d,n,r,i,o);if(!(1&n)){var T=x&&Se.call(e,"__wrapped__"),F=C&&Se.call(t,"__wrapped__");if(T||F){var k=T?e.value():e,D=F?t.value():t;return o||(o=new Nn),i(k,D,n,r,o)}}if(!A)return!1;return o||(o=new Nn),function(e,t,n,r,i,o){var s=1&n,a=Ki(e),l=a.length,u=Ki(t).length;if(l!=u&&!s)return!1;var c=l;for(;c--;){var h=a[c];if(!(s?h in t:Se.call(t,h)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);var g=s;for(;++c<l;){h=a[c];var m=e[h],v=t[h];if(r)var y=s?r(v,m,h,t,e,o):r(m,v,h,e,t,o);if(!(void 0===y?m===v||i(m,v,n,r,o):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var b=e.constructor,$=t.constructor;b==$||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof $&&$ instanceof $||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o)}(e,t,n,r,wr,i))}function xr(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=fe(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var l=(a=n[i])[0],u=e[l],c=a[1];if(s&&a[2]){if(void 0===u&&!(l in e))return!1}else{var h=new Nn;if(r)var p=r(u,c,l,e,t,h);if(!(void 0===p?wr(c,u,3,r,h):p))return!1}}return!0}function Sr(e){return!(!qs(e)||(t=e,Ce&&Ce in t))&&(Hs(e)?ke:se).test(Fo(e));var t}function Er(e){return"function"==typeof e?e:null==e?Ga:"object"==typeof e?Os(e)?Dr(e[0],e[1]):kr(e):nl(e)}function Cr(e){if(!po(e))return sn(e);var t=[];for(var n in fe(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e){if(!qs(e))return function(e){var t=[];if(null!=e)for(var n in fe(e))t.push(n);return t}(e);var t=po(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Fr(e,t){var n=-1,i=js(e)?r(e.length):[];return tr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function kr(e){var t=Zi(e);return 1==t.length&&t[0][2]?go(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}}function Dr(e,t){return uo(e)&&fo(t)?go(To(e),t):function(n){var r=ma(n,e);return void 0===r&&r===t?va(n,e):wr(t,r,3)}}function Rr(e,t,n,r,i){e!==t&&ar(t,(function(o,s){if(i||(i=new Nn),qs(o))!function(e,t,n,r,i,o,s){var a=bo(e,n),l=bo(t,n),u=s.get(l);if(u)return void Vn(e,n,u);var c=o?o(a,l,n+"",e,t,s):void 0,h=void 0===c;if(h){var p=Os(l),d=!p&&Ns(l),f=!p&&!d&&Zs(l);c=l,p||d||f?Os(a)?c=a:Ls(a)?c=yi(a):d?(h=!1,c=pi(l,!0)):f?(h=!1,c=fi(l,!0)):c=[]:Ws(l)||Ps(l)?(c=a,Ps(a)?c=aa(a):qs(a)&&!Hs(a)||(c=oo(l))):h=!1}h&&(s.set(l,c),i(c,l,r,o,s),s.delete(l));Vn(e,n,c)}(e,t,s,n,Rr,r,i);else{var a=r?r(bo(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),Vn(e,s,a)}}),xa)}function Ir(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Pr(e,t,n){t=t.length?dt(t,(function(e){return Os(e)?function(t){return pr(t,1===e.length?e[0]:e)}:e})):[Ga];var r=-1;return t=dt(t,Rt(Xi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,(function(e,n,i){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=gi(i[r],o[r]);if(l){if(r>=a)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Or(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=pr(e,s);n(a,s)&&Ur(o,li(s,e),a)}return o}function _r(e,t,n,r){var i=r?xt:wt,o=-1,s=t.length,a=e;for(e===t&&(t=yi(t)),n&&(a=dt(e,Rt(n)));++o<s;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==e&&We.call(a,l,1),We.call(e,l,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?We.call(e,i,1):ei(e,i)}}return e}function Lr(e,t){return e+en(hn()*(t-e+1))}function Nr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Mr(e,t){return xo(mo(e,t,Ga),e+"")}function Br(e){return Bn(Da(e))}function Hr(e,t){var n=Da(e);return Co(n,Jn(t,0,n.length))}function Ur(e,t,n,r){if(!qs(e))return e;for(var i=-1,o=(t=li(t,e)).length,s=o-1,a=e;null!=a&&++i<o;){var l=To(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var c=a[l];void 0===(u=r?r(c,l,a):void 0)&&(u=qs(c)?c:ao(t[i+1])?[]:{})}qn(a,l,u),a=a[l]}return e}var Vr=bn?function(e,t){return bn.set(e,t),e}:Ga,qr=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:qa(t),writable:!0})}:Ga;function zr(e){return Co(Da(e))}function Kr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function Gr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!Qs(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Yr(e,t,Ga,n)}function Yr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,a=null===t,l=Qs(t),u=void 0===t;i<o;){var c=en((i+o)/2),h=n(e[c]),p=void 0!==h,d=null===h,f=h==h,g=Qs(h);if(s)var m=r||f;else m=u?f&&(r||p):a?f&&p&&(r||!d):l?f&&p&&!d&&(r||!g):!d&&!g&&(r?h<=t:h<t);m?i=c+1:o=c}return ln(o,4294967294)}function Jr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Ds(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Xr(e){return"number"==typeof e?e:Qs(e)?NaN:+e}function Qr(e){if("string"==typeof e)return e;if(Os(e))return dt(e,Qr)+"";if(Qs(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zr(e,t,n){var r=-1,i=ht,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=pt;else if(o>=200){var u=t?null:Ni(e);if(u)return qt(u);s=!1,i=Pt,l=new Ln}else l=t?[]:a;e:for(;++r<o;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),a.push(c)}else i(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function ei(e,t){return null==(e=vo(e,t=li(t,e)))||delete e[To(Bo(t))]}function ti(e,t,n,r){return Ur(e,t,n(pr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Kr(e,r?0:o,r?o+1:i):Kr(e,r?o+1:0,r?i:o)}function ri(e,t){var n=e;return n instanceof Pn&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,ft([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Zr(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=er(s[o]||a,e[l],t,n));return Zr(sr(s,1),t,n)}function oi(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var a=r<o?t[r]:void 0;n(s,e[r],a)}return s}function si(e){return Ls(e)?e:[]}function ai(e){return"function"==typeof e?e:Ga}function li(e,t){return Os(e)?e:uo(e,t)?[e]:Ao(la(e))}var ui=Mr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Kr(e,t,n)}var hi=At||function(e){return Ge.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function di(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function fi(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Qs(e),s=void 0!==t,a=null===t,l=t==t,u=Qs(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!l)return-1}return 0}function mi(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,u=t.length,c=an(s-a,0),h=r(u+c),p=!i;++l<u;)h[l]=t[l];for(;++o<a;)(p||o<s)&&(h[n[o]]=e[o]);for(;c--;)h[l++]=e[o++];return h}function vi(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,h=an(s-l,0),p=r(h+c),d=!i;++o<h;)p[o]=e[o];for(var f=o;++u<c;)p[f+u]=t[u];for(;++a<l;)(d||o<s)&&(p[f+n[a]]=e[o++]);return p}function yi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),i?Wn(n,a,l):qn(n,a,l)}return n}function $i(e,t){return function(n,r){var i=Os(n)?st:Kn,o=t?t():{};return i(n,e,Xi(r,2),o)}}function wi(e){return Mr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&lo(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=fe(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t}))}function xi(e,t){return function(n,r){if(null==n)return n;if(!js(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=fe(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Si(e){return function(t,n,r){for(var i=-1,o=fe(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Ei(e){return function(t){var n=Bt(t=la(t))?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Ci(e){return function(t){return gt(Ha(Pa(t).replace(Ie,"")),e,"")}}function Ai(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Dn(e.prototype),r=e.apply(n,t);return qs(r)?r:n}}function Ti(e){return function(t,n,r){var i=fe(t);if(!js(t)){var o=Xi(n,3);t=wa(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}function Fi(e){return zi((function(t){var n=t.length,r=n,i=In.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ve(o);if(i&&!a&&"wrapper"==Yi(s))var a=new In([],!0)}for(r=a?r:n;++r<n;){var l=Yi(s=t[r]),u="wrapper"==l?Wi(s):void 0;a=u&&co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[Yi(u[0])].apply(a,u[3]):1==s.length&&co(s)?a[l]():a.thru(s)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Os(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function ki(e,t,n,i,o,s,a,l,u,c){var h=128&t,p=1&t,d=2&t,f=24&t,g=512&t,m=d?void 0:Ai(e);return function v(){for(var y=arguments.length,b=r(y),$=y;$--;)b[$]=arguments[$];if(f)var w=Ji(v),x=jt(b,w);if(i&&(b=mi(b,i,o,f)),s&&(b=vi(b,s,a,f)),y-=x,f&&y<c){var S=Vt(b,w);return ji(e,t,ki,v.placeholder,n,b,S,l,u,c-y)}var E=p?n:this,C=d?E[e]:e;return y=b.length,l?b=yo(b,l):g&&y>1&&b.reverse(),h&&u<y&&(b.length=u),this&&this!==Ge&&this instanceof v&&(C=m||Ai(C)),C.apply(E,b)}}function Di(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Ri(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Qr(n),r=Qr(r)):(n=Xr(n),r=Xr(r)),i=e(n,r)}return i}}function Ii(e){return zi((function(t){return t=dt(t,Rt(Xi())),Mr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Pi(e,t){var n=(t=void 0===t?" ":Qr(t)).length;if(n<2)return n?Nr(t,e):t;var r=Nr(t,Zt(e/Kt(t)));return Bt(t)?ci(Gt(r),0,e).join(""):r.slice(0,e)}function Oi(e){return function(t,n,i){return i&&"number"!=typeof i&&lo(t,n,i)&&(n=i=void 0),t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n,i){for(var o=-1,s=an(Zt((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,i=void 0===i?t<n?1:-1:ra(i),e)}}function _i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=sa(t),n=sa(n)),e(t,n)}}function ji(e,t,n,r,i,o,s,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,i,c?o:void 0,c?s:void 0,c?void 0:o,c?void 0:s,a,l,u],p=n.apply(void 0,h);return co(e)&&$o(p,h),p.placeholder=r,So(p,e,t)}function Li(e){var t=de[e];return function(e,n){if(e=sa(e),(n=null==n?0:ln(ia(n),292))&&rn(e)){var r=(la(e)+"e").split("e");return+((r=(la(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ni=mn&&1/qt(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Qa;function Mi(e){return function(t){var n=ro(t);return n==g?Ht(t):n==b?zt(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Bi(e,t,n,i,a,l,u,c){var h=2&t;if(!h&&"function"!=typeof e)throw new ve(o);var p=i?i.length:0;if(p||(t&=-97,i=a=void 0),u=void 0===u?u:an(ia(u),0),c=void 0===c?c:ia(c),p-=a?a.length:0,64&t){var d=i,f=a;i=a=void 0}var g=h?void 0:Wi(e),m=[e,t,n,i,a,d,f,l,u,c];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?mi(u,l,t[4]):l,e[4]=u?Vt(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?vi(u,l,t[6]):l,e[6]=u?Vt(e[5],s):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(m,g),e=m[0],t=m[1],n=m[2],i=m[3],a=m[4],!(c=m[9]=void 0===m[9]?h?0:e.length:an(m[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var i=Ai(e);return function o(){for(var s=arguments.length,a=r(s),l=s,u=Ji(o);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:Vt(a,u);if((s-=c.length)<n)return ji(e,t,ki,o.placeholder,void 0,a,c,void 0,void 0,n-s);var h=this&&this!==Ge&&this instanceof o?i:e;return ot(h,this,a)}}(e,t,c):32!=t&&33!=t||a.length?ki.apply(void 0,m):function(e,t,n,i){var o=1&t,s=Ai(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),p=this&&this!==Ge&&this instanceof t?s:e;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++a];return ot(p,o?n:this,h)}}(e,t,n,i);else var v=function(e,t,n){var r=1&t,i=Ai(e);return function t(){var o=this&&this!==Ge&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return So((g?Vr:$o)(v,m),e,t)}function Hi(e,t,n,r){return void 0===e||Ds(e,$e[n])&&!Se.call(r,n)?t:e}function Ui(e,t,n,r,i,o){return qs(e)&&qs(t)&&(o.set(t,e),Rr(e,t,void 0,Ui,o),o.delete(t)),e}function Vi(e){return Ws(e)?void 0:e}function qi(e,t,n,r,i,o){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var h=-1,p=!0,d=2&n?new Ln:void 0;for(o.set(e,t),o.set(t,e);++h<a;){var f=e[h],g=t[h];if(r)var m=s?r(g,f,h,t,e,o):r(f,g,h,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(d){if(!vt(t,(function(e,t){if(!Pt(d,t)&&(f===e||i(f,e,n,r,o)))return d.push(t)}))){p=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function zi(e){return xo(mo(e,void 0,_o),e+"")}function Ki(e){return dr(e,wa,to)}function Gi(e){return dr(e,xa,no)}var Wi=bn?function(e){return bn.get(e)}:Qa;function Yi(e){for(var t=e.name+"",n=$n[t],r=Se.call($n,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ji(e){return(Se.call(kn,"placeholder")?kn:e).placeholder}function Xi(){var e=kn.iteratee||Wa;return e=e===Wa?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Qi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Zi(e){for(var t=wa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fo(i)]}return t}function eo(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Sr(n)?n:void 0}var to=tn?function(e){return null==e?[]:(e=fe(e),ct(tn(e),(function(t){return Ke.call(e,t)})))}:ol,no=tn?function(e){for(var t=[];e;)ft(t,to(e)),e=Ue(e);return t}:ol,ro=fr;function io(e,t,n){for(var r=-1,i=(t=li(t,e)).length,o=!1;++r<i;){var s=To(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Vs(i)&&ao(s,i)&&(Os(e)||Ps(e))}function oo(e){return"function"!=typeof e.constructor||po(e)?{}:Dn(Ue(e))}function so(e){return Os(e)||Ps(e)||!!(Ye&&e&&e[Ye])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function lo(e,t,n){if(!qs(n))return!1;var r=typeof t;return!!("number"==r?js(n)&&ao(t,n.length):"string"==r&&t in n)&&Ds(n[t],e)}function uo(e,t){if(Os(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Qs(e))||(q.test(e)||!V.test(e)||null!=t&&e in fe(t))}function co(e){var t=Yi(e),n=kn[t];if("function"!=typeof n||!(t in Pn.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(dn&&ro(new dn(new ArrayBuffer(1)))!=E||fn&&ro(new fn)!=g||gn&&"[object Promise]"!=ro(gn.resolve())||mn&&ro(new mn)!=b||vn&&ro(new vn)!=x)&&(ro=function(e){var t=fr(e),n=t==v?e.constructor:void 0,r=n?Fo(n):"";if(r)switch(r){case wn:return E;case xn:return g;case Sn:return"[object Promise]";case En:return b;case Cn:return x}return t});var ho=we?Hs:sl;function po(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)}function fo(e){return e==e&&!qs(e)}function go(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in fe(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=an(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),ot(e,this,l)}}function vo(e,t){return t.length<2?e:pr(e,Kr(t,0,-1))}function yo(e,t){for(var n=e.length,r=ln(t.length,n),i=yi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var $o=Eo(Vr),wo=Qt||function(e,t){return Ge.setTimeout(e,t)},xo=Eo(qr);function So(e,t,n){var r=t+"";return xo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!ht(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Q):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Co(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Lr(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ao=function(e){var t=Es(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function To(e){if("string"==typeof e||Qs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ko(e){if(e instanceof Pn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=yi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Do=Mr((function(e,t){return Ls(e)?er(e,sr(t,1,Ls,!0)):[]})),Ro=Mr((function(e,t){var n=Bo(t);return Ls(n)&&(n=void 0),Ls(e)?er(e,sr(t,1,Ls,!0),Xi(n,2)):[]})),Io=Mr((function(e,t){var n=Bo(t);return Ls(n)&&(n=void 0),Ls(e)?er(e,sr(t,1,Ls,!0),void 0,n):[]}));function Po(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),$t(e,Xi(t,3),i)}function Oo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ia(n),i=n<0?an(r+i,0):ln(i,r-1)),$t(e,Xi(t,3),i,!0)}function _o(e){return(null==e?0:e.length)?sr(e,1):[]}function jo(e){return e&&e.length?e[0]:void 0}var Lo=Mr((function(e){var t=dt(e,si);return t.length&&t[0]===e[0]?yr(t):[]})),No=Mr((function(e){var t=Bo(e),n=dt(e,si);return t===Bo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Xi(t,2)):[]})),Mo=Mr((function(e){var t=Bo(e),n=dt(e,si);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function Bo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ho=Mr(Uo);function Uo(e,t){return e&&e.length&&t&&t.length?_r(e,t):e}var Vo=zi((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return jr(e,dt(t,(function(e){return ao(e,n)?+e:e})).sort(gi)),r}));function qo(e){return null==e?e:pn.call(e)}var zo=Mr((function(e){return Zr(sr(e,1,Ls,!0))})),Ko=Mr((function(e){var t=Bo(e);return Ls(t)&&(t=void 0),Zr(sr(e,1,Ls,!0),Xi(t,2))})),Go=Mr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,Zr(sr(e,1,Ls,!0),void 0,t)}));function Wo(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Ls(e))return t=an(e.length,t),!0})),kt(t,(function(t){return dt(e,Ct(t))}))}function Yo(e,t){if(!e||!e.length)return[];var n=Wo(e);return null==t?n:dt(n,(function(e){return ot(t,void 0,e)}))}var Jo=Mr((function(e,t){return Ls(e)?er(e,t):[]})),Xo=Mr((function(e){return ii(ct(e,Ls))})),Qo=Mr((function(e){var t=Bo(e);return Ls(t)&&(t=void 0),ii(ct(e,Ls),Xi(t,2))})),Zo=Mr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,ii(ct(e,Ls),void 0,t)})),es=Mr(Wo);var ts=Mr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yo(e,n)}));function ns(e){var t=kn(e);return t.__chain__=!0,t}function rs(e,t){return t(e)}var is=zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:rs,args:[i],thisArg:void 0}),new In(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var os=$i((function(e,t,n){Se.call(e,n)?++e[n]:Wn(e,n,1)}));var ss=Ti(Po),as=Ti(Oo);function ls(e,t){return(Os(e)?at:tr)(e,Xi(t,3))}function us(e,t){return(Os(e)?lt:nr)(e,Xi(t,3))}var cs=$i((function(e,t,n){Se.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var hs=Mr((function(e,t,n){var i=-1,o="function"==typeof t,s=js(e)?r(e.length):[];return tr(e,(function(e){s[++i]=o?ot(t,e,n):br(e,t,n)})),s})),ps=$i((function(e,t,n){Wn(e,n,t)}));function ds(e,t){return(Os(e)?dt:Fr)(e,Xi(t,3))}var fs=$i((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var gs=Mr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,sr(t,1),[])})),ms=Xt||function(){return Ge.Date.now()};function vs(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ys(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=ia(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bs=Mr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Ji(bs));r|=32}return Bi(e,r,t,n,i)})),$s=Mr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Ji($s));r|=32}return Bi(t,r,e,n,i)}));function ws(e,t,n){var r,i,s,a,l,u,c=0,h=!1,p=!1,d=!0;if("function"!=typeof e)throw new ve(o);function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function g(e){return c=e,l=wo(v,t),h?f(e):a}function m(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-c>=s}function v(){var e=ms();if(m(e))return y(e);l=wo(v,function(e){var n=t-(e-u);return p?ln(n,s-(e-c)):n}(e))}function y(e){return l=void 0,d&&r?f(e):(r=i=void 0,a)}function b(){var e=ms(),n=m(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return g(u);if(p)return hi(l),l=wo(v,t),f(u)}return void 0===l&&(l=wo(v,t)),a}return t=sa(t)||0,qs(n)&&(h=!!n.leading,s=(p="maxWait"in n)?an(sa(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==l&&hi(l),c=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?a:y(ms())},b}var xs=Mr((function(e,t){return Zn(e,1,t)})),Ss=Mr((function(e,t,n){return Zn(e,sa(t)||0,n)}));function Es(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Es.Cache||jn),n}function Cs(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Es.Cache=jn;var As=ui((function(e,t){var n=(t=1==t.length&&Os(t[0])?dt(t[0],Rt(Xi())):dt(sr(t,1),Rt(Xi()))).length;return Mr((function(r){for(var i=-1,o=ln(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ts=Mr((function(e,t){return Bi(e,32,void 0,t,Vt(t,Ji(Ts)))})),Fs=Mr((function(e,t){return Bi(e,64,void 0,t,Vt(t,Ji(Fs)))})),ks=zi((function(e,t){return Bi(e,256,void 0,void 0,void 0,t)}));function Ds(e,t){return e===t||e!=e&&t!=t}var Rs=_i(gr),Is=_i((function(e,t){return e>=t})),Ps=$r(function(){return arguments}())?$r:function(e){return zs(e)&&Se.call(e,"callee")&&!Ke.call(e,"callee")},Os=r.isArray,_s=Ze?Rt(Ze):function(e){return zs(e)&&fr(e)==S};function js(e){return null!=e&&Vs(e.length)&&!Hs(e)}function Ls(e){return zs(e)&&js(e)}var Ns=nn||sl,Ms=et?Rt(et):function(e){return zs(e)&&fr(e)==h};function Bs(e){if(!zs(e))return!1;var t=fr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ws(e)}function Hs(e){if(!qs(e))return!1;var t=fr(e);return t==d||t==f||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Us(e){return"number"==typeof e&&e==ia(e)}function Vs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zs(e){return null!=e&&"object"==typeof e}var Ks=tt?Rt(tt):function(e){return zs(e)&&ro(e)==g};function Gs(e){return"number"==typeof e||zs(e)&&fr(e)==m}function Ws(e){if(!zs(e)||fr(e)!=v)return!1;var t=Ue(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Te}var Ys=nt?Rt(nt):function(e){return zs(e)&&fr(e)==y};var Js=rt?Rt(rt):function(e){return zs(e)&&ro(e)==b};function Xs(e){return"string"==typeof e||!Os(e)&&zs(e)&&fr(e)==$}function Qs(e){return"symbol"==typeof e||zs(e)&&fr(e)==w}var Zs=it?Rt(it):function(e){return zs(e)&&Vs(e.length)&&!!Be[fr(e)]};var ea=_i(Tr),ta=_i((function(e,t){return e<=t}));function na(e){if(!e)return[];if(js(e))return Xs(e)?Gt(e):yi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ro(e);return(t==g?Ht:t==b?qt:Da)(e)}function ra(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ia(e){var t=ra(e),n=t%1;return t==t?n?t-n:t:0}function oa(e){return e?Jn(ia(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Qs(e))return NaN;if(qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Dt(e);var n=oe.test(e);return n||ae.test(e)?qe(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function aa(e){return bi(e,xa(e))}function la(e){return null==e?"":Qr(e)}var ua=wi((function(e,t){if(po(t)||js(t))bi(t,wa(t),e);else for(var n in t)Se.call(t,n)&&qn(e,n,t[n])})),ca=wi((function(e,t){bi(t,xa(t),e)})),ha=wi((function(e,t,n,r){bi(t,xa(t),e,r)})),pa=wi((function(e,t,n,r){bi(t,wa(t),e,r)})),da=zi(Yn);var fa=Mr((function(e,t){e=fe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=xa(o),a=-1,l=s.length;++a<l;){var u=s[a],c=e[u];(void 0===c||Ds(c,$e[u])&&!Se.call(e,u))&&(e[u]=o[u])}return e})),ga=Mr((function(e){return e.push(void 0,Ui),ot(Ea,void 0,e)}));function ma(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function va(e,t){return null!=e&&io(e,t,vr)}var ya=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),qa(Ga)),ba=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Xi),$a=Mr(br);function wa(e){return js(e)?Mn(e):Cr(e)}function xa(e){return js(e)?Mn(e,!0):Ar(e)}var Sa=wi((function(e,t,n){Rr(e,t,n)})),Ea=wi((function(e,t,n,r){Rr(e,t,n,r)})),Ca=zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=li(t,e),r||(r=t.length>1),t})),bi(e,Gi(e),n),r&&(n=Xn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var Aa=zi((function(e,t){return null==e?{}:function(e,t){return Or(e,t,(function(t,n){return va(e,n)}))}(e,t)}));function Ta(e,t){if(null==e)return{};var n=dt(Gi(e),(function(e){return[e]}));return t=Xi(t),Or(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Mi(wa),ka=Mi(xa);function Da(e){return null==e?[]:It(e,wa(e))}var Ra=Ci((function(e,t,n){return t=t.toLowerCase(),e+(n?Ia(t):t)}));function Ia(e){return Ba(la(e).toLowerCase())}function Pa(e){return(e=la(e))&&e.replace(ue,Lt).replace(Pe,"")}var Oa=Ci((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),_a=Ci((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ja=Ei("toLowerCase");var La=Ci((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Na=Ci((function(e,t,n){return e+(n?" ":"")+Ba(t)}));var Ma=Ci((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ba=Ei("toUpperCase");function Ha(e,t,n){return e=la(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(_e)||[]}(e):function(e){return e.match(Z)||[]}(e):e.match(t)||[]}var Ua=Mr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Bs(e)?e:new Y(e)}})),Va=zi((function(e,t){return at(t,(function(t){t=To(t),Wn(e,t,bs(e[t],e))})),e}));function qa(e){return function(){return e}}var za=Fi(),Ka=Fi(!0);function Ga(e){return e}function Wa(e){return Er("function"==typeof e?e:Xn(e,1))}var Ya=Mr((function(e,t){return function(n){return br(n,e,t)}})),Ja=Mr((function(e,t){return function(n){return br(e,n,t)}}));function Xa(e,t,n){var r=wa(t),i=hr(t,r);null!=n||qs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=hr(t,wa(t)));var o=!(qs(n)&&"chain"in n&&!n.chain),s=Hs(e);return at(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ft([this.value()],arguments))})})),e}function Qa(){}var Za=Ii(dt),el=Ii(ut),tl=Ii(vt);function nl(e){return uo(e)?Ct(To(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=Oi(),il=Oi(!0);function ol(){return[]}function sl(){return!1}var al=Ri((function(e,t){return e+t}),0),ll=Li("ceil"),ul=Ri((function(e,t){return e/t}),1),cl=Li("floor");var hl,pl=Ri((function(e,t){return e*t}),1),dl=Li("round"),fl=Ri((function(e,t){return e-t}),0);return kn.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=ia(e),function(){if(--e<1)return t.apply(this,arguments)}},kn.ary=vs,kn.assign=ua,kn.assignIn=ca,kn.assignInWith=ha,kn.assignWith=pa,kn.at=da,kn.before=ys,kn.bind=bs,kn.bindAll=Va,kn.bindKey=$s,kn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Os(e)?e:[e]},kn.chain=ns,kn.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:an(ia(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=r(Zt(i/t));o<i;)a[s++]=Kr(e,o,o+=t);return a},kn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},kn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ft(Os(n)?yi(n):[n],sr(t,1))},kn.cond=function(e){var t=null==e?0:e.length,n=Xi();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ve(o);return[n(e[0]),e[1]]})):[],Mr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},kn.conforms=function(e){return function(e){var t=wa(e);return function(n){return Qn(n,e,t)}}(Xn(e,1))},kn.constant=qa,kn.countBy=os,kn.create=function(e,t){var n=Dn(e);return null==t?n:Gn(n,t)},kn.curry=function e(t,n,r){var i=Bi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},kn.curryRight=function e(t,n,r){var i=Bi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},kn.debounce=ws,kn.defaults=fa,kn.defaultsDeep=ga,kn.defer=xs,kn.delay=Ss,kn.difference=Do,kn.differenceBy=Ro,kn.differenceWith=Io,kn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=n||void 0===t?1:ia(t))<0?0:t,r):[]},kn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,0,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t):[]},kn.dropRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0,!0):[]},kn.dropWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0):[]},kn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&lo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ia(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:ia(r))<0&&(r+=i),r=n>r?0:oa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},kn.filter=function(e,t){return(Os(e)?ct:or)(e,Xi(t,3))},kn.flatMap=function(e,t){return sr(ds(e,t),1)},kn.flatMapDeep=function(e,t){return sr(ds(e,t),1/0)},kn.flatMapDepth=function(e,t,n){return n=void 0===n?1:ia(n),sr(ds(e,t),n)},kn.flatten=_o,kn.flattenDeep=function(e){return(null==e?0:e.length)?sr(e,1/0):[]},kn.flattenDepth=function(e,t){return(null==e?0:e.length)?sr(e,t=void 0===t?1:ia(t)):[]},kn.flip=function(e){return Bi(e,512)},kn.flow=za,kn.flowRight=Ka,kn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},kn.functions=function(e){return null==e?[]:hr(e,wa(e))},kn.functionsIn=function(e){return null==e?[]:hr(e,xa(e))},kn.groupBy=cs,kn.initial=function(e){return(null==e?0:e.length)?Kr(e,0,-1):[]},kn.intersection=Lo,kn.intersectionBy=No,kn.intersectionWith=Mo,kn.invert=ya,kn.invertBy=ba,kn.invokeMap=hs,kn.iteratee=Wa,kn.keyBy=ps,kn.keys=wa,kn.keysIn=xa,kn.map=ds,kn.mapKeys=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},kn.mapValues=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},kn.matches=function(e){return kr(Xn(e,1))},kn.matchesProperty=function(e,t){return Dr(e,Xn(t,1))},kn.memoize=Es,kn.merge=Sa,kn.mergeWith=Ea,kn.method=Ya,kn.methodOf=Ja,kn.mixin=Xa,kn.negate=Cs,kn.nthArg=function(e){return e=ia(e),Mr((function(t){return Ir(t,e)}))},kn.omit=Ca,kn.omitBy=function(e,t){return Ta(e,Cs(Xi(t)))},kn.once=function(e){return ys(2,e)},kn.orderBy=function(e,t,n,r){return null==e?[]:(Os(t)||(t=null==t?[]:[t]),Os(n=r?void 0:n)||(n=null==n?[]:[n]),Pr(e,t,n))},kn.over=Za,kn.overArgs=As,kn.overEvery=el,kn.overSome=tl,kn.partial=Ts,kn.partialRight=Fs,kn.partition=fs,kn.pick=Aa,kn.pickBy=Ta,kn.property=nl,kn.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},kn.pull=Ho,kn.pullAll=Uo,kn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_r(e,t,Xi(n,2)):e},kn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_r(e,t,void 0,n):e},kn.pullAt=Vo,kn.range=rl,kn.rangeRight=il,kn.rearg=ks,kn.reject=function(e,t){return(Os(e)?ct:or)(e,Cs(Xi(t,3)))},kn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Xi(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return jr(e,i),n},kn.rest=function(e,t){if("function"!=typeof e)throw new ve(o);return Mr(e,t=void 0===t?t:ia(t))},kn.reverse=qo,kn.sampleSize=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:ia(t),(Os(e)?Hn:Hr)(e,t)},kn.set=function(e,t,n){return null==e?e:Ur(e,t,n)},kn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Ur(e,t,n,r)},kn.shuffle=function(e){return(Os(e)?Un:zr)(e)},kn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&lo(e,t,n)?(t=0,n=r):(t=null==t?0:ia(t),n=void 0===n?r:ia(n)),Kr(e,t,n)):[]},kn.sortBy=gs,kn.sortedUniq=function(e){return e&&e.length?Jr(e):[]},kn.sortedUniqBy=function(e,t){return e&&e.length?Jr(e,Xi(t,2)):[]},kn.split=function(e,t,n){return n&&"number"!=typeof n&&lo(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=la(e))&&("string"==typeof t||null!=t&&!Ys(t))&&!(t=Qr(t))&&Bt(e)?ci(Gt(e),0,n):e.split(t,n):[]},kn.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:an(ia(t),0),Mr((function(n){var r=n[t],i=ci(n,0,t);return r&&ft(i,r),ot(e,this,i)}))},kn.tail=function(e){var t=null==e?0:e.length;return t?Kr(e,1,t):[]},kn.take=function(e,t,n){return e&&e.length?Kr(e,0,(t=n||void 0===t?1:ia(t))<0?0:t):[]},kn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t,r):[]},kn.takeRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!1,!0):[]},kn.takeWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3)):[]},kn.tap=function(e,t){return t(e),e},kn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return qs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ws(e,t,{leading:r,maxWait:t,trailing:i})},kn.thru=rs,kn.toArray=na,kn.toPairs=Fa,kn.toPairsIn=ka,kn.toPath=function(e){return Os(e)?dt(e,To):Qs(e)?[e]:yi(Ao(la(e)))},kn.toPlainObject=aa,kn.transform=function(e,t,n){var r=Os(e),i=r||Ns(e)||Zs(e);if(t=Xi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:qs(e)&&Hs(o)?Dn(Ue(e)):{}}return(i?at:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},kn.unary=function(e){return vs(e,1)},kn.union=zo,kn.unionBy=Ko,kn.unionWith=Go,kn.uniq=function(e){return e&&e.length?Zr(e):[]},kn.uniqBy=function(e,t){return e&&e.length?Zr(e,Xi(t,2)):[]},kn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},kn.unset=function(e,t){return null==e||ei(e,t)},kn.unzip=Wo,kn.unzipWith=Yo,kn.update=function(e,t,n){return null==e?e:ti(e,t,ai(n))},kn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,ai(n),r)},kn.values=Da,kn.valuesIn=function(e){return null==e?[]:It(e,xa(e))},kn.without=Jo,kn.words=Ha,kn.wrap=function(e,t){return Ts(ai(t),e)},kn.xor=Xo,kn.xorBy=Qo,kn.xorWith=Zo,kn.zip=es,kn.zipObject=function(e,t){return oi(e||[],t||[],qn)},kn.zipObjectDeep=function(e,t){return oi(e||[],t||[],Ur)},kn.zipWith=ts,kn.entries=Fa,kn.entriesIn=ka,kn.extend=ca,kn.extendWith=ha,Xa(kn,kn),kn.add=al,kn.attempt=Ua,kn.camelCase=Ra,kn.capitalize=Ia,kn.ceil=ll,kn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sa(n))==n?n:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Jn(sa(e),t,n)},kn.clone=function(e){return Xn(e,4)},kn.cloneDeep=function(e){return Xn(e,5)},kn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},kn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},kn.conformsTo=function(e,t){return null==t||Qn(e,t,wa(t))},kn.deburr=Pa,kn.defaultTo=function(e,t){return null==e||e!=e?t:e},kn.divide=ul,kn.endsWith=function(e,t,n){e=la(e),t=Qr(t);var r=e.length,i=n=void 0===n?r:Jn(ia(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},kn.eq=Ds,kn.escape=function(e){return(e=la(e))&&M.test(e)?e.replace(L,Nt):e},kn.escapeRegExp=function(e){return(e=la(e))&&G.test(e)?e.replace(K,"\\$&"):e},kn.every=function(e,t,n){var r=Os(e)?ut:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Xi(t,3))},kn.find=ss,kn.findIndex=Po,kn.findKey=function(e,t){return bt(e,Xi(t,3),ur)},kn.findLast=as,kn.findLastIndex=Oo,kn.findLastKey=function(e,t){return bt(e,Xi(t,3),cr)},kn.floor=cl,kn.forEach=ls,kn.forEachRight=us,kn.forIn=function(e,t){return null==e?e:ar(e,Xi(t,3),xa)},kn.forInRight=function(e,t){return null==e?e:lr(e,Xi(t,3),xa)},kn.forOwn=function(e,t){return e&&ur(e,Xi(t,3))},kn.forOwnRight=function(e,t){return e&&cr(e,Xi(t,3))},kn.get=ma,kn.gt=Rs,kn.gte=Is,kn.has=function(e,t){return null!=e&&io(e,t,mr)},kn.hasIn=va,kn.head=jo,kn.identity=Ga,kn.includes=function(e,t,n,r){e=js(e)?e:Da(e),n=n&&!r?ia(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Xs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},kn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},kn.inRange=function(e,t,n){return t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n){return e>=ln(t,n)&&e<an(t,n)}(e=sa(e),t,n)},kn.invoke=$a,kn.isArguments=Ps,kn.isArray=Os,kn.isArrayBuffer=_s,kn.isArrayLike=js,kn.isArrayLikeObject=Ls,kn.isBoolean=function(e){return!0===e||!1===e||zs(e)&&fr(e)==c},kn.isBuffer=Ns,kn.isDate=Ms,kn.isElement=function(e){return zs(e)&&1===e.nodeType&&!Ws(e)},kn.isEmpty=function(e){if(null==e)return!0;if(js(e)&&(Os(e)||"string"==typeof e||"function"==typeof e.splice||Ns(e)||Zs(e)||Ps(e)))return!e.length;var t=ro(e);if(t==g||t==b)return!e.size;if(po(e))return!Cr(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},kn.isEqual=function(e,t){return wr(e,t)},kn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?wr(e,t,void 0,n):!!r},kn.isError=Bs,kn.isFinite=function(e){return"number"==typeof e&&rn(e)},kn.isFunction=Hs,kn.isInteger=Us,kn.isLength=Vs,kn.isMap=Ks,kn.isMatch=function(e,t){return e===t||xr(e,t,Zi(t))},kn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,xr(e,t,Zi(t),n)},kn.isNaN=function(e){return Gs(e)&&e!=+e},kn.isNative=function(e){if(ho(e))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sr(e)},kn.isNil=function(e){return null==e},kn.isNull=function(e){return null===e},kn.isNumber=Gs,kn.isObject=qs,kn.isObjectLike=zs,kn.isPlainObject=Ws,kn.isRegExp=Ys,kn.isSafeInteger=function(e){return Us(e)&&e>=-9007199254740991&&e<=9007199254740991},kn.isSet=Js,kn.isString=Xs,kn.isSymbol=Qs,kn.isTypedArray=Zs,kn.isUndefined=function(e){return void 0===e},kn.isWeakMap=function(e){return zs(e)&&ro(e)==x},kn.isWeakSet=function(e){return zs(e)&&"[object WeakSet]"==fr(e)},kn.join=function(e,t){return null==e?"":on.call(e,t)},kn.kebabCase=Oa,kn.last=Bo,kn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ia(n))<0?an(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,St,i,!0)},kn.lowerCase=_a,kn.lowerFirst=ja,kn.lt=ea,kn.lte=ta,kn.max=function(e){return e&&e.length?ir(e,Ga,gr):void 0},kn.maxBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),gr):void 0},kn.mean=function(e){return Et(e,Ga)},kn.meanBy=function(e,t){return Et(e,Xi(t,2))},kn.min=function(e){return e&&e.length?ir(e,Ga,Tr):void 0},kn.minBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),Tr):void 0},kn.stubArray=ol,kn.stubFalse=sl,kn.stubObject=function(){return{}},kn.stubString=function(){return""},kn.stubTrue=function(){return!0},kn.multiply=pl,kn.nth=function(e,t){return e&&e.length?Ir(e,ia(t)):void 0},kn.noConflict=function(){return Ge._===this&&(Ge._=Fe),this},kn.noop=Qa,kn.now=ms,kn.pad=function(e,t,n){e=la(e);var r=(t=ia(t))?Kt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Pi(en(i),n)+e+Pi(Zt(i),n)},kn.padEnd=function(e,t,n){e=la(e);var r=(t=ia(t))?Kt(e):0;return t&&r<t?e+Pi(t-r,n):e},kn.padStart=function(e,t,n){e=la(e);var r=(t=ia(t))?Kt(e):0;return t&&r<t?Pi(t-r,n)+e:e},kn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(la(e).replace(W,""),t||0)},kn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&lo(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ra(e),void 0===t?(t=e,e=0):t=ra(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=hn();return ln(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Lr(e,t)},kn.reduce=function(e,t,n){var r=Os(e)?gt:Tt,i=arguments.length<3;return r(e,Xi(t,4),n,i,tr)},kn.reduceRight=function(e,t,n){var r=Os(e)?mt:Tt,i=arguments.length<3;return r(e,Xi(t,4),n,i,nr)},kn.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:ia(t),Nr(la(e),t)},kn.replace=function(){var e=arguments,t=la(e[0]);return e.length<3?t:t.replace(e[1],e[2])},kn.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[To(t[r])];void 0===o&&(r=i,o=n),e=Hs(o)?o.call(e):o}return e},kn.round=dl,kn.runInContext=e,kn.sample=function(e){return(Os(e)?Bn:Br)(e)},kn.size=function(e){if(null==e)return 0;if(js(e))return Xs(e)?Kt(e):e.length;var t=ro(e);return t==g||t==b?e.size:Cr(e).length},kn.snakeCase=La,kn.some=function(e,t,n){var r=Os(e)?vt:Gr;return n&&lo(e,t,n)&&(t=void 0),r(e,Xi(t,3))},kn.sortedIndex=function(e,t){return Wr(e,t)},kn.sortedIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2))},kn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&Ds(e[r],t))return r}return-1},kn.sortedLastIndex=function(e,t){return Wr(e,t,!0)},kn.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2),!0)},kn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(Ds(e[n],t))return n}return-1},kn.startCase=Na,kn.startsWith=function(e,t,n){return e=la(e),n=null==n?0:Jn(ia(n),0,e.length),t=Qr(t),e.slice(n,n+t.length)==t},kn.subtract=fl,kn.sum=function(e){return e&&e.length?Ft(e,Ga):0},kn.sumBy=function(e,t){return e&&e.length?Ft(e,Xi(t,2)):0},kn.template=function(e,t,n){var r=kn.templateSettings;n&&lo(e,t,n)&&(t=void 0),e=la(e),t=ha({},t,r,Hi);var i,o,s=ha({},t.imports,r.imports,Hi),a=wa(s),l=It(s,a),u=0,c=t.interpolate||ce,h="__p += '",p=ge((t.escape||ce).source+"|"+c.source+"|"+(c===U?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),d="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Me+"]")+"\n";e.replace(p,(function(t,n,r,s,a,l){return r||(r=s),h+=e.slice(u,l).replace(he,Mt),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var f=Se.call(t,"variable")&&t.variable;if(f){if(ee.test(f))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(P,""):h).replace(O,"$1").replace(_,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ua((function(){return pe(a,d+"return "+h).apply(void 0,l)}));if(g.source=h,Bs(g))throw g;return g},kn.times=function(e,t){if((e=ia(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=kt(r,t=Xi(t));++n<e;)t(n);return i},kn.toFinite=ra,kn.toInteger=ia,kn.toLength=oa,kn.toLower=function(e){return la(e).toLowerCase()},kn.toNumber=sa,kn.toSafeInteger=function(e){return e?Jn(ia(e),-9007199254740991,9007199254740991):0===e?e:0},kn.toString=la,kn.toUpper=function(e){return la(e).toUpperCase()},kn.trim=function(e,t,n){if((e=la(e))&&(n||void 0===t))return Dt(e);if(!e||!(t=Qr(t)))return e;var r=Gt(e),i=Gt(t);return ci(r,Ot(r,i),_t(r,i)+1).join("")},kn.trimEnd=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.slice(0,Wt(e)+1);if(!e||!(t=Qr(t)))return e;var r=Gt(e);return ci(r,0,_t(r,Gt(t))+1).join("")},kn.trimStart=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.replace(W,"");if(!e||!(t=Qr(t)))return e;var r=Gt(e);return ci(r,Ot(r,Gt(t))).join("")},kn.truncate=function(e,t){var n=30,r="...";if(qs(t)){var i="separator"in t?t.separator:i;n="length"in t?ia(t.length):n,r="omission"in t?Qr(t.omission):r}var o=(e=la(e)).length;if(Bt(e)){var s=Gt(e);o=s.length}if(n>=o)return e;var a=n-Kt(r);if(a<1)return r;var l=s?ci(s,0,a).join(""):e.slice(0,a);if(void 0===i)return l+r;if(s&&(a+=l.length-a),Ys(i)){if(e.slice(a).search(i)){var u,c=l;for(i.global||(i=ge(i.source,la(re.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?a:h)}}else if(e.indexOf(Qr(i),a)!=a){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},kn.unescape=function(e){return(e=la(e))&&N.test(e)?e.replace(j,Yt):e},kn.uniqueId=function(e){var t=++Ee;return la(e)+t},kn.upperCase=Ma,kn.upperFirst=Ba,kn.each=ls,kn.eachRight=us,kn.first=jo,Xa(kn,(hl={},ur(kn,(function(e,t){Se.call(kn.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),kn.VERSION="4.17.21",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){kn[e].placeholder=kn})),at(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Ga)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Mr((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Cs(Xi(e)))},Pn.prototype.slice=function(e,t){e=ia(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ia(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},ur(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=kn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(kn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,a=t instanceof Pn,l=s[0],u=a||Os(t),c=function(e){var t=i.apply(kn,ft([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var h=this.__chain__,p=!!this.__actions__.length,d=o&&!h,f=a&&!p;if(!o&&u){t=f?t:new Pn(this);var g=e.apply(t,s);return g.__actions__.push({func:rs,args:[c],thisArg:void 0}),new In(g,h)}return d&&f?e.apply(this,s):(g=this.thru(c),d?r?g.value()[0]:g.value():g)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);kn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Os(i)?i:[],e)}return this[n]((function(n){return t.apply(Os(n)?n:[],e)}))}})),ur(Pn.prototype,(function(e,t){var n=kn[t];if(n){var r=n.name+"";Se.call($n,r)||($n[r]=[]),$n[r].push({name:t,func:n})}})),$n[ki(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Os(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=ln(t,e+s);break;case"takeRight":e=an(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,h=c.length,p=0,d=ln(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return ri(e,this.__actions__);var f=[];e:for(;l--&&p<d;){for(var g=-1,m=e[u+=t];++g<h;){var v=c[g],y=v.iteratee,b=v.type,$=y(m);if(2==b)m=$;else if(!$){if(1==b)continue e;break e}}f[p++]=m}return f},kn.prototype.at=is,kn.prototype.chain=function(){return ns(this)},kn.prototype.commit=function(){return new In(this.value(),this.__chain__)},kn.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},kn.prototype.plant=function(e){for(var t,n=this;n instanceof Rn;){var r=ko(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},kn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:rs,args:[qo],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(qo)},kn.prototype.toJSON=kn.prototype.valueOf=kn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},kn.prototype.first=kn.prototype.head,Xe&&(kn.prototype[Xe]=function(){return this}),kn}();Ge._=Jt,void 0===(i=function(){return Jt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(15),n(211)(e))},19:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponentDirectiveUtil",(function(){return i})),n.d(t,"YasqeButtonsBuilder",(function(){return o})),n.d(t,"YasqeButtonName",(function(){return s})),n.d(t,"DISABLE_YASQE_BUTTONS_CONFIGURATION",(function(){return a})),n.d(t,"INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION",(function(){return l}));const r=["var(--primary-color)","","var(--primary-color)"],i=function(){const e=e=>{const t=angular.element(document.querySelector(e));return angular.element(t).isolateScope()},t=(t,n=1)=>new Promise((r,i)=>{let o=e(t);o&&r(o.getOntotextYasguiElement());let s=1e3*n|1e3;const a=setInterval(()=>{o=e(t),o?(clearInterval(a),r(o.getOntotextYasguiElement())):(s-=100,s<0&&(clearInterval(a),console.log("YASGUI component is not found",t),i(new Error("Element is not found: "+t))))},100)}),n=(e,n)=>{let r=void 0;return t(e).then(e=>(r=e,e)).then(()=>r.setQuery(n)).then(()=>r)},o=e=>{if(!e||!e.yasgui||!e.yasgui.tabElements)return;const t=e.yasgui.tabElements.get(e.getId());return t?t.tabEl:void 0};return{getOntotextYasguiElementController:e,getOntotextYasguiElement:e=>{const t=i.getOntotextYasguiElementController(e);if(t)return t.getOntotextYasguiElement()},getOntotextYasguiElementAsync:t,executeSparqlQuery:(e,t)=>{let r=void 0;return n(e,t).then(e=>(r=e,e)).then(()=>r.query()).then(()=>r)},setQuery:n,highlightTabName:e=>{const t=o(e);if(!t)return;let n=0,i=void 0;const s=()=>{t.style.color=r[n++],n>r.length&&(t.style.color="",clearInterval(i))};i=setInterval(s,400),s()}}}();class o{constructor(){this.createSavedQueryVisibility=!1,this.showSavedQueriesVisibility=!1,this.shareQueryVisibility=!1,this.includeInferredStatementsVisibility=!1}addCreateSavedQuery(){return this.createSavedQueryVisibility=!0,this}addShowSavedQueries(){return this.showSavedQueriesVisibility=!0,this}addShareQuery(){return this.shareQueryVisibility=!0,this}addIncludeInferredStatements(){return this.includeInferredStatementsVisibility=!0,this}build(){return[{name:s.CREATE_SAVED_QUERY,visible:this.createSavedQueryVisibility},{name:s.SHOW_SAVED_QUERIES,visible:this.showSavedQueriesVisibility},{name:s.SHARE_QUERY,visible:this.shareQueryVisibility},{name:s.INCLUDE_INFERRED_STATEMENTS,visible:this.includeInferredStatementsVisibility}]}}const s={CREATE_SAVED_QUERY:"createSavedQuery",SHOW_SAVED_QUERIES:"showSavedQueries",SHARE_QUERY:"shareQuery",EXPANDS_RESULTS:"expandResults",INFER_STATEMENTS:"inferStatements",INCLUDE_INFERRED_STATEMENTS:"includeInferredStatements"},a=(new o).build(),l=(new o).addIncludeInferredStatements().build()},2:function(e,t,n){"use strict";n.r(t),n.d(t,"GuideUtils",(function(){return r}));const r=function(){const e=function(e,t=1,n=!0){const r=a(e);return new Promise((function(e,i){let o=1e3*t|1e3;const s=setInterval(()=>{try{const t=document.querySelector(r);null!=t?!n||angular.element(t).is(":visible")?(clearInterval(s),setTimeout(()=>{e(angular.element(t))},0)):(o-=100,o<0&&(clearInterval(s),console.log("Element is not visible: "+r),i(new Error("Element is not visible: "+r)))):(o-=100,o<0&&(clearInterval(s),console.log("Element is not found: "+r),i(new Error("Element is not found: "+r))))}catch(e){clearInterval(s),console.log("Error when processing selector: "+r),console.log(e),i(e)}},100)}))},t=function(e){const t=document.querySelector(e);return t&&angular.element(t).is(":visible")},n=function(e,t){return`[guide-selector="${e}"] ${t||""}`},i=(e,t,n,r)=>{const i=e.use();let s;return angular.isObject(n)?(s=n[i],s||(s=n.en),s=t(s)(r)):s=o(e.instant(n,r)),s},o=e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText},s=e=>angular.element(e).is(":checked"),a=e=>angular.isFunction(e)?e():e;return{waitFor:e,getOrWaiteFor:(t,n=1,r=!0)=>{const i=a(t),o=document.querySelector(i);return null==o||r&&!angular.element(o).is(":visible")?e(t,n,r):Promise.resolve(o)},clickOnElement:function(t){return()=>e(t).then(e=>{e.click()})},clickOnGuideElement:function(e,t){return r.clickOnElement(r.getGuideElementSelector(e,t))},getGuideElementSelector:n,isVisible:t,isGuideElementVisible:function(e){return t(n(e))},awaitAlphaDropD3:function(e,n,r=2,i=.1){return()=>new Promise((function(o){t(e)?o():setTimeout(()=>{let e=1e3*r;const t=setInterval(()=>{n.d3alpha<i?(clearInterval(t),o()):(e-=100,e<0&&(clearInterval(t),o()))},100)},150)}))},graphVizExpandNode:function(e){const t=d3.select(e),n=new CustomEvent("gdb-expand-node",{detail:t.datum()});t.node().dispatchEvent(n)},graphVizShowNodeInfo:function(e){const t=d3.select(e),n=new CustomEvent("gdb-show-node-info",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyFocus:function(e){const t=d3.select(e),n=new CustomEvent("gdb-focus",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyZoom:function(e){const t=d3.select(e),n=new CustomEvent("gdb-zoom",{detail:t.datum()});t.node().dispatchEvent(n)},validateTextInput:function(e,t,n=!0){const r=$(e).val();return""===r&&n?($(e).val(t),$(e).trigger("change"),!0):r===t},translateLocalMessage:i,unescapeHtml:o,noNextErrorToast:(e,t,n,r,s)=>{e.error(o(i(t,n,r,s)),o(i(t,n,"guide.validate.no-next",s)),{allowHtml:!0})},deferredShow:e=>()=>new Promise((function(t){setTimeout(()=>{t()},e)})),scrollToTop:()=>{window.scrollTo(0,0)},removeWhiteSpaces:e=>e.replace(/\s+/g,""),getSparqlResultsSelectorForIri:e=>`${r.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR} a[title='${e}']`,getSparqlResultsSelectorForRow:e=>`${r.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR} tbody tr:nth-child(${e})`,isChecked:s,isGuideElementChecked:(e,t)=>s(r.getGuideElementSelector("autocompleteCheckbox",t)),defaultInitPreviousStep:(e,t)=>new Promise((function(n,r){const i=e.ShepherdService.getPreviousStepFromHistory(t);i?i.options.initPreviousStep(e,i.options.id).then(()=>n()).catch(e=>r(e)):n()})),getElementSelector:a,CSS_SELECTORS:{SPARQL_EDITOR_SELECTOR:".tabPanel.active .yasqe .CodeMirror-code",SPARQL_RESULTS_SELECTOR:".tabPanel.active .yasr_results",SPARQL_RESULTS_ROWS_SELECTOR:".tabPanel.active .yasr_results tbody",SPARQL_RUN_BUTTON_SELECTOR:".tabPanel.active .yasqe .yasqe_queryButton"}}}()},20:function(e,t,n){"use strict";n.r(t),n.d(t,"md5HashGenerator",(function(){return i}));var r=n(5);const i=()=>{const e=new r.KJUR.crypto.MessageDigest({alg:"md5",prov:"cryptojs"});return t=>e.digestString(t)}},21:function(e,t,n){"use strict";n.r(t);var r=n(29);angular.module("graphdb.framework.rest.repositories.service",[]).factory("RepositoriesRestService",i),i.$inject=["$http"];function i(e){return{getRepositories:function(t){return e.get("rest/repositories/all",{params:{location:t}})},getRepository:function(t){return e.get("rest/repositories/"+t.id,{params:{location:t.location}})},getRepositoryModel:function(t){return e.get("rest/repositories/"+t.id,{params:{location:t.location}}).then(e=>Object(r.repositoryConfigMapper)(e.data))},deleteRepository:function(t){return e.delete("rest/repositories/"+t.id,{params:{location:t.location}})},createRepository:function(t){return e.post("rest/repositories",t)},editRepository:function(t,n){return e.put("rest/repositories/"+t,n)},getRepositoryConfiguration:function(t){return e.get("rest/repositories/default-config/"+t)},getSize:function(t){return e.get(`rest/repositories/${t.id}/size`,{params:{location:t.location}})},getPrefix:function(t,n){return e.post(`rest/repositories/${t}/prefix`,null,{params:n})},getCluster:function(){return e.get("rest/repositories/cluster")},getRepositoryFileContent:function(t){return e.get("rest/repositories/file",{params:{fileLocation:t}})},updateRepositoryFileContent:function(t,n,r){return e.post("rest/repositories/file/update",JSON.stringify(n),{params:{fileLocation:t,location:r}})},validateOntopPropertiesConnection:function(t){return e.post("rest/repositories/ontop/test-connection",t.params.propertiesFile,{params:{location:t.location}})},restartRepository:function(t){return e.post(`rest/repositories/${t.id}/restart`,null,{params:{location:t.location}})},getSupportedDriversData:function(t){return e.get("rest/repositories/ontop/drivers",{params:{location:t.location}})},updatePropertiesFile:function(t,n,r,i){return e.post("rest/repositories/ontop/jdbc-properties",JSON.stringify(n),{params:{fileLocation:t,location:r,driverType:i}})},loadPropertiesFile:function(t,n,r){return e.get("rest/repositories/ontop/jdbc-properties",{params:{fileLocation:t,location:n,driverType:r}})},getRepositoriesFromKnownLocation:function(t){return e.get("rest/repositories?location="+t)},getRepositoryTurtleConfig:function(t){return e.get("rest/repositories/"+t.id,{headers:{Accept:"text/turtle"}})}}}},211:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},22:function(e,t){angular.module("graphdb.framework.utils.event-emitter-service",[]).factory("EventEmitterService",(function(){const e={},t={};return{subscribe:(t,n)=>(e[t]||(e[t]=[]),e[t].push(n),function(){const r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}),emit:(t,n,r)=>{(e[t]||[]).reduce((e,t)=>e.then(e=>t(e)),Promise.resolve(n)).then(()=>{angular.isFunction(r)&&r(n)})},subscribeSync:(e,n)=>(t[e]||(t[e]=[]),t[e].push(n),function(){const r=t[e].indexOf(n);-1!==r&&t[e].splice(r,1)}),emitSync:(e,n)=>{(t[e]||[]).forEach(t=>{angular.isFunction(t)?t(n):console.error(`Callback of "${e}" is not function:`,t)})}}}))},23:function(e,t,n){"use strict";n.r(t),n.d(t,"WorkbenchEventName",(function(){return i}));n(18),n(8);function r(e){let t=void 0,n=!1;const r=()=>t,o=()=>n;return{setAutocompleteEnabled:t=>{n!==t&&(n=t,e.emitSync(i.AUTOCOMPLETE_ENABLED_UPDATED,o()))},getAutocompleteEnabled:o,onAutocompleteEnabledUpdated:t=>(angular.isFunction(t)&&t(o()),e.subscribeSync(i.AUTOCOMPLETE_ENABLED_UPDATED,e=>t(e))),setSelectedRepositoryId:n=>{t!==n&&(t=n,e.emitSync(i.SELECTED_REPOSITORY_ID_UPDATED,r()))},getSelectedRepositoryId:r,onSelectedRepositoryIdUpdated:t=>(angular.isFunction(t)&&t(r()),e.subscribeSync(i.SELECTED_REPOSITORY_ID_UPDATED,e=>t(e))),resetContext:()=>{n=!1,t=void 0}}}angular.module("graphdb.core.services.workbench-context",[]).factory("WorkbenchContextService",r),r.$inject=["EventEmitterService"];const i={SELECTED_REPOSITORY_ID_UPDATED:"selectedRepositoryIdUpdated",AUTOCOMPLETE_ENABLED_UPDATED:"autocompleteEnabledUpdated",SELECTED_REPOSITORY_NAMESPACES_UPDATED:"selectedRepositoryNamespacesUpdated"}},24:function(e,t,n){"use strict";n.r(t),n.d(t,"mapNamespacesResponse",(function(){return o})),n.d(t,"namespaceModelMapper",(function(){return s})),n.d(t,"namespaceListModelMapper",(function(){return a}));var r=n(37),i=n(8);const o=e=>e&&e.data?e.data.results.bindings.map(e=>({prefix:e.prefix.value,uri:e.namespace.value})):[],s=e=>new r.NamespaceModel(e.prefix.value,e.namespace.value),a=e=>{const t=e?e.map(s):[];return new i.NamespacesListModel(t)}},25:function(e,t,n){"use strict";n.r(t),n.d(t,"FileUtils",(function(){return r}));class r{static convertBytesToMegabytes(e){return Math.floor(e/1048576)}static getFilenameAndExtension(e){const t=e.lastIndexOf(".");return{filename:e.substring(0,t),extension:e.substring(t+1)}}static downloadAsFile(e,t,n){const r=document.createElement("a");r.setAttribute("href",`data:${t};charset=utf-8,${encodeURIComponent(n)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},26:function(e,t){angular.module("graphdb.framework.rest.autocomplete.service",[]).factory("AutocompleteRestService",n);function n(e){return{checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")},refreshIndexStatus:function(){return e.get("rest/autocomplete/status")},refreshLabelConfig:function(){return e.get("rest/autocomplete/labels")},addLabelConfig:function(t){return e.put("rest/autocomplete/labels",t)},removeLabelConfig:function(t){return e.delete("rest/autocomplete/labels",{data:t,headers:{"Content-Type":"application/json;charset=utf-8"}})},toggleAutocomplete:function(t){return e.post("rest/autocomplete/enabled?enabled="+t)},refreshIndexIRIs:function(){return e.get("rest/autocomplete/iris")},toggleIndexIRIs:function(t){return e.post("rest/autocomplete/iris?enabled="+t)},buildIndex:function(){return e.post("rest/autocomplete/reindex")},interruptIndexing:function(){return e.post("rest/autocomplete/interrupt")},checkForPlugin:function(){return e.get("rest/autocomplete/plugin-found")},getAutocompleteSuggestions:function(t,n){return e.get("rest/autocomplete/query",{params:{q:t},timeout:n})}}}n.$inject=["$http"]},27:function(e,t){angular.module("graphdb.framework.rest.license.service",["ngFileUpload"]).factory("LicenseRestService",r),r.$inject=["$http","Upload"];const n="rest/graphdb-settings/license";function r(e,t){return{getLicenseInfo:function(){return e.get(n)},getHardcodedLicense:function(){return e.get(n+"/hardcoded")},sendLicenseToValidate:function(t){return e.post("rest/info/license/validate",t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},extractFromLicenseFile:function(e){return t.upload({url:"rest/info/license/to-base-64",file:e,headers:{Accept:"text/plain"}})},checkLicenseHardcoded:function(){return e.get(n+"/hardcoded")},registerLicense:function(t){const r=new Uint8Array(t.length);for(let e=0;e<r.length;e++)r[e]=t.charCodeAt(e);return e({method:"POST",url:n,headers:{"Content-Type":"application/octet-stream"},data:r,transformRequest:[]})},unregisterLicense:function(){return e({method:"DELETE",url:"rest/graphdb-settings/license"})},getInfo:function(){return e.get("rest/info/properties")},getVersion:function(t){return e.get("rest/info/version",{headers:{"X-GraphDB-Repository-Location":t}})},getStatistics:function(){return e.get("rest/graphdb-settings/statistics")},toggleStatistics:function(t){return e({method:"POST",url:"rest/graphdb-settings/statistics",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:"enabled="+t})}}}},28:function(e,t,n){"use strict";n.r(t),n.d(t,"RemoteLocationModel",(function(){return r})),n.d(t,"RemoteLocationType",(function(){return i})),n.d(t,"RemoteLocationAuthType",(function(){return o}));class r{constructor(e={}){this.uri=e.uri,this.label=e.label||"",this.username=e.username,this.password=e.password,this.authType=e.authType||"none",this.active=e.active,this.local=e.local,this.system=e.system,this.errorMsg=e.errorMsg,this.defaultRepository=e.defaultRepository,this.locationType=e.locationType||i.GRAPH_DB}isGraphDBLocation(){return i.GRAPH_DB===this.locationType}isOntopicLocation(){return i.ONTOPIC===this.locationType}isSparqlLocation(){return i.SPARQL===this.locationType}isBasicAuthType(){return o.BASIC===this.authType}isSignatureAuthType(){return o.SIGNATURE===this.authType}isNoneAuthType(){return o.NONE===this.authType}}const i={GRAPH_DB:"GDB",ONTOPIC:"ONTOPIC",SPARQL:"SPARQL"},o={NONE:"none",BASIC:"basic",SIGNATURE:"signature"}},29:function(e,t,n){"use strict";n.r(t),n.d(t,"repositoryConfigMapper",(function(){return i})),n.d(t,"repositoryInfoMapper",(function(){return s}));var r=n(10);const i=e=>new r.RepositoryConfigModel({id:e.id,title:e.title,type:e.type,sesameType:e.sesameType,location:e.location,params:o(e.params)});function o(e){const t=new r.RepositoryParams;return Object.keys(e).forEach(n=>{t.addParam(new r.RepositoryParam(e[n]))}),t}const s=e=>e?new r.RepositoryInfoModel({id:e.id,title:e.title,type:e.type,sesameType:e.sesameType,uri:e.uri,externalUrl:e.externalUrl,location:e.location,state:e.state,local:e.local,readable:e.readable,writable:e.writable,unsupported:e.unsupported}):null},3:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_TYPE",(function(){return r})),n.d(t,"OPERATION_TYPE_SORT_ORDER",(function(){return i}));const r={CLUSTER_STATUS:"clusterHealth",BACKUP_RESTORE:"backupAndRestore",QUERIES:"queries",UPDATES:"updates",IMPORTS:"imports"},i={clusterHealth:0,backupAndRestore:1,queries:3,updates:4,imports:2}},30:function(e,t,n){"use strict";n.r(t),n.d(t,"CookiePolicyModalController",(function(){return i}));var r=n(7);function i(e,t,n,i){let o=0;e.cookieConsent=void 0,e.ConsentTypes=r.ConsentTypes,e.toggleConsent=t=>{t===r.ConsentTypes.STATISTIC?e.cookieConsent.setStatisticConsent(!e.cookieConsent.getStatisticConsent()):t===r.ConsentTypes.THIRD_PARTY&&(o++,e.cookieConsent.setThirdPartyConsent(!e.cookieConsent.getThirdPartyConsent())),e.saveConsent()},e.saveConsent=()=>{i.updateCookieConsent(e.cookieConsent)},e.close=()=>{const t=o>1,n=e.cookieConsent.getThirdPartyConsent(),r=e.cookieConsent.getPolicyAccepted();e.$close(t&&n&&r)};i.getCookieConsent().then(t=>e.cookieConsent=t).catch(e=>{const r=getError(e.data,e.status);n.error(r,t.instant("common.error"))})}i.$inject=["$scope","$translate","toastr","TrackingService"]},31:function(e,t,n){"use strict";n.r(t),n.d(t,"convertToBytes",(function(){return s})),n.d(t,"convertToHumanReadable",(function(){return a}));const r={BYTES:1,KB:1024,MB:1048576,GB:1024**3,TB:1024**4,PB:1024**5},i=/^(\d+(?:\.\d+)?)\s*(bytes|KB|MB|GB|TB|PB)$/i,o=/^\d+$/,s=e=>{if(null==e)return 0;if("number"==typeof e)return e;if(e=e.trim(),o.test(e))return parseInt(e,10);const t=e.match(i);if(!t)return 0;const n=parseFloat(t[1]),s=t[2];return n*r[s.toUpperCase()]},a=e=>{if(!angular.isDefined(e))return"0 bytes";if(i.test(e))return e;if("string"==typeof e&&(e=parseFloat(e)),isNaN(e)||e<=0)return"0 bytes";const t=Object.keys(r).reverse();for(const n of t){const t=r[n];if(e>=t){const r=e/t;return`${Number.isInteger(r)?r:r.toFixed(2)} ${n.toLowerCase()}`}}return"0 bytes"}},313:function(e,t,n){var r,i,o;i=[n(85)],void 0===(o="function"==typeof(r=function(e){e.module("pageslide-directive",[]).directive("pageslide",["$document","$timeout",function(t,n){return{restrict:"EA",transclude:!1,scope:{psOpen:"=?",psAutoClose:"@",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psZindex:"@",psPush:"@",psContainer:"@",psKeyListener:"@",psBodyClass:"@",psClickOutside:"@",onopen:"&?",onclose:"&?"},link:function(r,i,o){var s={};s.side=r.psSide||"right",s.speed=r.psSpeed||"0.5",s.size=r.psSize||"300px",s.zindex=r.psZindex||1e3,s.className=r.psClass||"ng-pageslide",s.push="true"===r.psPush,s.container=r.psContainer||!1,s.keyListener="true"===r.psKeyListener,s.bodyClass=r.psBodyClass||!1,s.clickOutside="false"!==r.psClickOutside,s.autoClose=r.psAutoClose||!1,s.push=s.push&&!s.container,i.addClass(s.className);var a,l,u=!1;function c(e){var t=e.touches&&e.touches[0]||e.target;u&&l.contains(t)&&!a.contains(t)&&(u=!1,r.psOpen=!1,r.$apply()),r.psOpen&&(u=!0)}function h(e){if(s.bodyClass){var t=s.className+"-body",n=new RegExp(t+"-closed|"+t+"-open");l.className=l.className.replace(n,"");var r=t+"-"+e;" "!==l.className[l.className.length-1]?l.className+=" "+r:l.className+=r}}if(l=s.container?document.getElementById(s.container):document.body,"div"!==(a=i[0]).tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to <div> or <pageslide> elements");if(0===a.children.length)throw new Error("You need to have content inside the <pageslide>");function p(){r.psOpen?"function"==typeof r.onopen&&r.onopen()():"function"==typeof r.onclose&&r.onclose()()}function d(e,t){switch(t.side){case"right":case"left":e.style.width=t.size,e.style.height="100%",e.style.top="0px",e.style.bottom="0px";break;case"top":case"bottom":e.style.height=t.size,e.style.width="100%",e.style.left="0px",e.style.right="0px"}r.psOpen?g(e,t):f(e,t)}function f(e,n){switch(n.side){case"right":e.style.right="-"+n.size,n.push&&(l.style.right="0px",l.style.left="0px");break;case"left":e.style.left="-"+n.size,n.push&&(l.style.left="0px",l.style.right="0px");break;case"top":e.style.top="-"+n.size,n.push&&(l.style.top="0px",l.style.bottom="0px");break;case"bottom":e.style.bottom="-"+n.size,n.push&&(l.style.bottom="0px",l.style.top="0px")}n.keyListener&&t.off("keydown",m),n.clickOutside&&t.off("touchend click",c),u=!1,h("closed"),r.psOpen=!1}function g(e,n){switch(n.side){case"right":e.style.right="0px",n.push&&(l.style.right=n.size,l.style.left="-"+n.size);break;case"left":e.style.left="0px",n.push&&(l.style.left=n.size,l.style.right="-"+n.size);break;case"top":e.style.top="0px",n.push&&(l.style.top=n.size,l.style.bottom="-"+n.size);break;case"bottom":e.style.bottom="0px",n.push&&(l.style.bottom=n.size,l.style.top="-"+n.size)}r.psOpen=!0,n.keyListener&&t.on("keydown",m),n.clickOutside&&t.on("touchend click",c),h("open")}function m(e){27===(e.keyCode||e.which)&&(f(a,s),n((function(){r.$apply()})))}e.element(a.children),l.appendChild(a),a.style.zIndex=s.zindex,a.style.position="fixed",a.style.transitionDuration=s.speed+"s",a.style.webkitTransitionDuration=s.speed+"s",a.style.height=s.size,a.style.transitionProperty="top, bottom, left, right",s.push&&(l.style.position="absolute",l.style.transitionDuration=s.speed+"s",l.style.webkitTransitionDuration=s.speed+"s",l.style.transitionProperty="top, bottom, left, right"),s.container&&(a.style.position="absolute",l.style.position="relative",l.style.overflow="hidden"),a.addEventListener("transitionend",p),d(a,s),r.$watch("psOpen",(function(e){e?g(a,s):f(a,s)})),r.$watch("psSize",(function(e,t){t!==e&&(s.size=e,d(a,s))})),r.$on("$destroy",(function(){a.parentNode===l&&(s.clickOutside&&t.off("touchend click",c),l.removeChild(a)),a.removeEventListener("transitionend",p)})),s.autoClose&&(r.$on("$locationChangeStart",(function(){f(a,s)})),r.$on("$stateChangeStart",(function(){f(a,s)})))}}}])})?r.apply(t,i):r)||(e.exports=o)},32:function(e,t,n){"use strict";n.r(t),n.d(t,"mapBackupAndRestoreResponseToModel",(function(){return o})),n.d(t,"mapSnapshotOptionsResponseToModel",(function(){return s}));var r=n(33),i=n(34);const o=e=>{const t=[],n=new r.BackupAndRestoreInfo;return 0===Object.keys(e).length||(n.id=e.id,n.username=e.username,n.operation=e.operation,n.affectedRepositories=e.affectedRepositories,n.secondsSinceCreated=e.msSinceCreated/1e3,n.snapshotOptions=s(e.snapshotOptions),n.nodePerformingClusterBackup=e.nodePerformingClusterBackup,t.push(n)),t},s=e=>{const t=new i.SnapshotOptionInfo;return t.withRepositoryData=e.withRepositoryData,t.withSystemData=e.withSystemData,t.withClusterData=e.withClusterData,t.cleanDataDir=e.cleanDataDir,t.removeCluster=e.removeCluster,t.repositories=e.repositories,t.replicationTimeoutMs=e.replicationTimeoutMs,t}},321:function(e,t,n){"use strict";(function(e){
11
+ /*!
12
+ * The buffer module from node.js, for the browser.
13
+ *
14
+ * @author Feross Aboukhadijeh <http://feross.org>
15
+ * @license MIT
16
+ */
17
+ var r=n(442),i=n(443),o=n(444);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|d(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(c(t),e=a(e,t<0?0:0|d(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var h=!0,p=0;p<l;p++)if(u(e,o+p)!==u(t,p)){h=!1;break}if(h)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function $(e,t,n,r){return U(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return U(H(t),e,n,r)}function E(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),h=0;h<a;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return $(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=M(e[o]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function _(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||_(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||_(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=l.isBuffer(e)?e:B(new l(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(15))},322:function(e,t,n){var r,i,o;/*! angularjs-slider - v7.1.0 - (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> - https://github.com/angular-slider/angularjs-slider - 2022-05-26 */!function(s,a){"use strict";i=[n(85)],void 0===(o="function"==typeof(r=function(e){var t=e.module("rzSlider",[]).factory("RzSliderOptions",(function(){var t={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},n={},r={options:function(t){e.extend(n,t)},getOptions:function(r){return e.extend({},t,n,r)}};return r})).factory("rzThrottle",["$timeout",function(e){return function(t,n,r){var i,o,s,a=Date.now||function(){return(new Date).getTime()},l=null,u=0;r=r||{};var c=function(){u=a(),l=null,s=t.apply(i,o),i=o=null};return function(){var h=a(),p=n-(h-u);return i=this,o=arguments,0>=p?(e.cancel(l),l=null,u=h,s=t.apply(i,o),i=o=null):l||!1===r.trailing||(l=e(c,p)),s}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(t,n,r,i,o,s){var a=function(e,t){this.scope=e,this.lowValue=0,this.highValue=0,this.sliderElem=t,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return a.prototype={init:function(){var t,n,i=this,o=function(){i.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),e.element(r).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),t=s((function(){i.onLowHandleChange()}),i.options.interval),n=s((function(){i.onHighHandleChange()}),i.options.interval),this.scope.$on("rzSliderForceRender",(function(){i.resetLabelsValue(),t(),i.range&&n(),i.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(e,t){e!==t&&(i.applyOptions(),i.syncLowValue(),i.range&&i.syncHighValue(),i.resetSlider())})),this.scope.$watch("rzSliderModel",(function(e,n){i.internalChange||e!==n&&t()})),this.scope.$watch("rzSliderHigh",(function(e,t){i.internalChange||e!==t&&(null!=e&&n(),(i.range&&null==e||!i.range&&null!=e)&&(i.applyOptions(),i.resetSlider()))})),this.scope.$on("$destroy",(function(){i.unbindEvents(),e.element(r).off("resize",o),i.currentFocusElement=null}))},findStepIndex:function(t){for(var n=0,r=0;r<this.options.stepsArray.length;r++){var i=this.options.stepsArray[r];if(i===t){n=r;break}if(e.isDate(i)){if(i.getTime()===t.getTime()){n=r;break}}else if(e.isObject(i)&&(e.isDate(i.value)&&i.value.getTime()===t.getTime()||i.value===t)){n=r;break}}return n},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(t){var n=this.options.stepsArray[t];return e.isDate(n)?n:e.isObject(n)?n.value:n},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var t;t=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(t),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(e.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(e){return String(e)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(e){return this.options.bindIndexForStepsArray?this.getStepValue(e):e},this.getLegend=function(t){var n=this.options.stepsArray[t];return e.isObject(n)?n.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(t){var n=e.element(t);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=n;for(var r=t.parentElement,i=1;i<this.options.restrictedRange.length;i++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',r.appendChild(o),this.restrictedBar[i]=e.element(o)}}else t.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){e.forEach(this.sliderElem.children(),(function(t,n){var r=e.element(t);switch(n){case 0:this.leftOutSelBar=r;break;case 1:this.rightOutSelBar=r;break;case 2:this.fullBar=r;break;case 3:this.selBar=r;break;case 4:this.ensureRestrictedBarIsArray(t);break;case 5:this.minH=r;break;case 6:this.maxH=r;break;case 7:this.flrLab=r;break;case 8:this.ceilLab=r;break;case 9:this.minLab=r;break;case 10:this.maxLab=r;break;case 11:this.cmbLab=r;break;case 12:this.ticks=r}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var e=this.options.showTicksValues&&!this.intermediateTicks;for(var t in this.alwaysHide(this.minLab,e||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,e||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,e||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.restrictedBar)this.restrictedBar[t]&&this.alwaysHide(this.restrictedBar[t],!this.options.restrictedRange[t]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(e,t){e.rzAlwaysHide=t,t?this.hideEl(e):this.showEl(e)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(e,t,n,r){r=void 0===r||r;var i="",o=!1,s=t.hasClass("no-label-injection");r?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(e=this.getStepValue(e)),i=String(this.customTrFn(e,this.options.id,n))):i=String(e),(void 0===t.rzsv||t.rzsv.length!==i.length||t.rzsv.length>0&&0===t.rzsd)&&(o=!0,t.rzsv=i),s||t.html(i),this.scope[n+"Label"]=i,o&&this.getDimension(t)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var e=this.getDimension(this.minH);if(this.handleHalfDim=e/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-e,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var n=this;t((function(){n.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var t=this.options.ticksArray||this.getTicksArray(),n=this.options.vertical?"translateY":"translateX",r=this;this.options.rightToLeft&&t.reverse(),this.scope.ticks=t.map((function(t){var i=null;e.isObject(t)&&(i=t.legend,t=t.value);var o=r.valueToPosition(t);r.options.vertical&&(o=r.maxPos-o);var s=n+"("+Math.round(o)+"px)",a={legend:i,selected:r.isTickSelected(t),style:{"-webkit-transform":s,"-moz-transform":s,"-o-transform":s,"-ms-transform":s,transform:s}};return a.selected&&r.options.getSelectionBarColor&&(a.style["background-color"]=r.getSelectionBarColor()),!a.selected&&r.options.getTickColor&&(a.style["background-color"]=r.getTickColor(t)),r.options.ticksTooltip&&(a.tooltip=r.options.ticksTooltip(t),a.tooltipPlacement=r.options.vertical?"right":"top"),(!0===r.options.showTicksValues||t%r.options.showTicksValues==0)&&(a.value=r.getDisplayValue(t,"tick-value"),r.options.ticksValuesTooltip&&(a.valueTooltip=r.options.ticksValuesTooltip(t),a.valueTooltipPlacement=r.options.vertical?"right":"top")),r.getLegend&&((i=r.getLegend(t,r.options.id))&&(a.legend=i)),a}))}},getTicksArray:function(){var e=this.step,t=[];this.intermediateTicks&&(e=this.options.showTicks);for(var n=this.minValue;n<=this.maxValue;n+=e)t.push(n);return t},isTickSelected:function(e){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var t=this.options.showSelectionBarFromValue;if(this.lowValue>t&&e>=t&&e<=this.lowValue)return!0;if(this.lowValue<t&&t>=e&&e>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(e>=this.lowValue)return!0}else if(this.options.showSelectionBar&&e<=this.lowValue)return!0;return!!(this.range&&e>=this.lowValue&&e<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var e=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,e)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var e=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,e)},updateHandles:function(e,t){"lowValue"===e?this.updateLowHandle(t):this.updateHighHandle(t),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(e,t){var n=this[e].rzsd,r=t-n/2+this.handleHalfDim,i=this.barDimension-n;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===e||!this.options.rightToLeft&&"maxLab"===e?Math.min(r,i):Math.min(Math.max(r,0),i):r},updateLowHandle:function(e){if(this.setPosition(this.minH,e),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",e)),this.options.getPointerColor){var t=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(e){if(this.setPosition(this.maxH,e),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",e)),this.options.getPointerColor){var t=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var e=!1,t=!1,n=this.isLabelBelowFloorLab(this.minLab),r=this.isLabelAboveCeilLab(this.minLab),i=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),s=this.isLabelAboveCeilLab(this.cmbLab);if(n?(e=!0,this.hideEl(this.flrLab)):(e=!1,this.showEl(this.flrLab)),r?(t=!0,this.hideEl(this.ceilLab)):(t=!1,this.showEl(this.ceilLab)),this.range){var a=this.cmbLabelShown?s:i,l=this.cmbLabelShown?o:n;a?this.hideEl(this.ceilLab):t||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):e||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(e){var t=this.options.rightToLeft,n=e.rzsp,r=e.rzsd,i=this.flrLab.rzsp,o=this.flrLab.rzsd;return t?n+r>=i-2:i+o+2>=n},isLabelAboveCeilLab:function(e){var t=this.options.rightToLeft,n=e.rzsp,r=e.rzsd,i=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return t?i+o+2>=n:n+r>=i-2},updateRestrictionBar:function(){var e=0,t=0;if(this.options.restrictedRange)for(var n in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var r=this.valueToPosition(this.options.restrictedRange[n].from),i=this.valueToPosition(this.options.restrictedRange[n].to);t=Math.abs(i-r),e=this.options.rightToLeft?i+this.handleHalfDim:r+this.handleHalfDim,this.setDimension(this.restrictedBar[n],t),this.setPosition(this.restrictedBar[n],e)}},updateSelectionBar:function(){var e=0,t=0,n=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,r=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)t=Math.abs(this.maxH.rzsp-this.minH.rzsp),e=r;else if(null!==this.options.showSelectionBarFromValue){var i=this.options.showSelectionBarFromValue,o=this.valueToPosition(i);(this.options.rightToLeft?this.lowValue<=i:this.lowValue>i)?(t=this.minH.rzsp-o,e=o+this.handleHalfDim):(t=o-this.minH.rzsp,e=this.minH.rzsp+this.handleHalfDim)}else n?(t=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,e=this.minH.rzsp+this.handleHalfDim):(t=this.minH.rzsp+this.handleHalfDim,e=0);if(this.setDimension(this.selBar,t),this.setPosition(this.selBar,e),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,e),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(e+t)),this.setPosition(this.leftOutSelBar,e+t)):(this.setDimension(this.leftOutSelBar,e),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(e+t)),this.setPosition(this.rightOutSelBar,e+t))),this.options.getSelectionBarColor){var s=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:s}}else if(this.options.selectionBarGradient){var a=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=a-e>0^n,u=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+u+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(a+t+e+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=a-e+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(e){return"max"===e?this.options.getPointerColor(this.scope.rzSliderHigh,e):this.options.getPointerColor(this.scope.rzSliderModel,e)},getTickColor:function(e){return this.options.getTickColor(e)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var e,t=this.getDisplayValue(this.lowValue,"model"),n=this.getDisplayValue(this.highValue,"high");e=this.options.mergeRangeLabelsIfSame&&t===n?t:this.options.rightToLeft?n+this.options.labelOverlapSeparator+t:t+this.options.labelOverlapSeparator+n,this.translateFn(e,this.cmbLab,"cmb",!1);var r=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,r),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(e,t){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(e=this.getStepValue(e)),this.customTrFn(e,this.options.id,t)},roundStep:function(e,t){var n=t||this.step,r=parseFloat((e-this.minValue)/n).toPrecision(12);return r=Math.round(+r)*n,+(this.minValue+r).toFixed(this.precision)},hideEl:function(e){return e.css({visibility:"hidden"})},showEl:function(e){return e.rzAlwaysHide?e:e.css({visibility:"visible"})},setPosition:function(e,t){e.rzsp=t;var n={};return n[this.positionProperty]=Math.round(t)+"px",e.css(n),t},resetPosition:function(e){e.css({left:null,bottom:null})},getDimension:function(e){var t=e[0].getBoundingClientRect();return this.options.vertical?e.rzsd=(t.bottom-t.top)*this.options.scale:e.rzsd=(t.right-t.left)*this.options.scale,e.rzsd},setDimension:function(e,t){e.rzsd=t;var n={};return n[this.dimensionProperty]=Math.round(t)+"px",e.css(n),t},sanitizeValue:function(e){return Math.min(Math.max(e,this.minValue),this.maxValue)},valueToPosition:function(e){var t=this.linearValueToPosition;this.options.customValueToPosition?t=this.options.customValueToPosition:this.options.logScale&&(t=this.logValueToPosition);var n=t(e=this.sanitizeValue(e),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(n=1-n),n*this.maxPos},linearValueToPosition:function(e,t,n){return(e-t)/(n-t)},logValueToPosition:function(e,t,n){return((e=Math.log(e))-(t=Math.log(t)))/((n=Math.log(n))-t)},positionToValue:function(e){var t=e/this.maxPos;this.options.rightToLeft&&(t=1-t);var n=this.linearPositionToValue;return this.options.customPositionToValue?n=this.options.customPositionToValue:this.options.logScale&&(n=this.logPositionToValue),n(t,this.minValue,this.maxValue)||0},linearPositionToValue:function(e,t,n){return e*(n-t)+t},logPositionToValue:function(e,t,n){t=Math.log(t);var r=e*((n=Math.log(n))-t)+t;return Math.exp(r)},getEventAttr:function(e,t){return void 0===e.originalEvent?e[t]:e.originalEvent[t]},getEventXY:function(e,t){var n=this.options.vertical?"clientY":"clientX";if(void 0!==e[n])return e[n];var r=this.getEventAttr(e,"touches");if(void 0!==t)for(var i=0;i<r.length;i++)if(r[i].identifier===t)return r[i][n];return r[0][n]},getEventPosition:function(e,t){var n=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(e,t)+n:this.getEventXY(e,t)-n)*this.options.scale-this.handleHalfDim},getEventNames:function(e){var t={moveEvent:"",endEvent:""};return this.getEventAttr(e,"touches")?(t.moveEvent="touchmove",t.endEvent="touchend"):(t.moveEvent="mousemove",t.endEvent="mouseup"),t},getNearestHandle:function(e){if(!this.range)return this.minH;var t=this.getEventPosition(e),n=Math.abs(t-this.minH.rzsp),r=Math.abs(t-this.maxH.rzsp);return r>n?this.minH:n>r?this.maxH:this.options.rightToLeft?t>this.minH.rzsp?this.minH:this.maxH:t<this.minH.rzsp?this.minH:this.maxH},focusElement:function(e){e[0].focus()},bindEvents:function(){var t,n,r;this.options.draggableRange?(t="rzSliderDrag",n=this.onDragStart,r=this.onDragMove):(t="lowValue",n=this.onStart,r=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",e.bind(this,n,null,t)),this.selBar.on("mousedown",e.bind(this,r,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",e.bind(this,n,null,t)),this.maxH.on("mousedown",e.bind(this,n,null,t))):(this.minH.on("mousedown",e.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",e.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",e.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",e.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",e.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",e.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",e.bind(this,n,null,t)),this.selBar.on("touchstart",e.bind(this,r,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",e.bind(this,n,null,t)),this.maxH.on("touchstart",e.bind(this,n,null,t))):(this.minH.on("touchstart",e.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",e.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",e.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",e.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",e.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",e.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",e.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",e.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(t,r,i){var o,s,a=this.getEventNames(i);i.stopPropagation(),i.preventDefault(),this.calcViewDimensions(),t?this.tracking=r:(t=this.getNearestHandle(i),this.tracking=t===this.minH?"lowValue":"highValue"),t.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(t),o=e.bind(this,this.dragging.active?this.onDragMove:this.onMove,t),s=e.bind(this,this.onEnd,o),n.on(a.moveEvent,o),n.on(a.endEvent,s),this.endHandlerToBeRemovedOnEnd=s,this.callOnStart();var l=this.getEventAttr(i,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(t,n,r){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,o=this.getEventAttr(n,"changedTouches");if(o)for(var s=0;s<o.length;s++)if(o[s].identifier===this.touchId){i=o[s];break}if(!o||i){var a,l=this.getEventPosition(n,i?i.identifier:void 0),u=this.options.rightToLeft?this.minValue:this.maxValue,c=this.options.rightToLeft?this.maxValue:this.minValue;0>=l?a=c:l>=this.maxPos?a=u:(a=this.positionToValue(l),a=r&&e.isNumber(this.options.showTicks)?this.roundStep(a,this.options.showTicks):this.roundStep(a)),this.positionTrackingHandle(a)}},onEnd:function(e,t){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var r=this.getEventAttr(t,"changedTouches");if(!r||r[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var i=this.getEventNames(t);n.off(i.moveEvent,e),n.off(i.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(e,t){this.onMove(e,t,!0)},onPointerFocus:function(t,n){this.tracking=n,t.one("blur",e.bind(this,this.onPointerBlur,t)),t.on("keydown",e.bind(this,this.onKeyboardEvent)),t.on("keyup",e.bind(this,this.onKeyUp)),this.firstKeyDown=!0,t.addClass("rz-active"),this.currentFocusElement={pointer:t,ref:n}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(e){e.off("keydown"),e.off("keyup"),e.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(e,t){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var n in this.options.restrictedRange){var r=this.options.restrictedRange[n];if(0===r.from&&0===t&&[37,40].includes(e)||r.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&t>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(e))return t;r.to>t&&t>r.from&&(t=Math.abs(r.to-t)>Math.abs(r.from-t)?r.to:r.from)}return t},getKeyActions:function(e){var t=e+this.step,n=e-this.step,r=e+this.valueRange/10,i=e-this.valueRange/10;this.options.reversedControls&&(t=e-this.step,n=e+this.step,r=e-this.valueRange/10,i=e+this.valueRange/10);var o={UP:t,DOWN:n,LEFT:n,RIGHT:t,PAGEUP:r,PAGEDOWN:i,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=t,o.RIGHT=n,this.options.vertical&&(o.UP=n,o.DOWN=t)),o},onKeyboardEvent:function(e){var n=e.keyCode||e.which,r=this[this.tracking],i=this.getKeyActions(r)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[n]];if(null!=i&&""!==this.tracking){e.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;t((function(){var e=o.roundStep(o.sanitizeValue(i));if(e=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(n,e):e,o.options.draggableRangeOnly){var t,r,s=o.highValue-o.lowValue;"lowValue"===o.tracking?(t=e,(r=e+s)>o.maxValue&&(t=(r=o.maxValue)-s)):(r=e,(t=e-s)<o.minValue&&(r=(t=o.minValue)+s)),o.positionTrackingBar(t,r)}else o.positionTrackingHandle(e)}))}},onDragStart:function(e,t,n){var r=this.getEventPosition(n);this.dragging={active:!0,value:this.positionToValue(r),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-r:r-this.minH.rzsp,highLimit:this.options.rightToLeft?r-this.maxH.rzsp:this.maxH.rzsp-r},this.onStart(e,t,n)},getValue:function(e,t,n,r){var i,o=this.options.rightToLeft;return i="min"===e?n?r?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(t+this.dragging.lowLimit):this.positionToValue(t-this.dragging.lowLimit):n?r?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(t+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(t-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(i)},onDragMove:function(e,t){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var n,r,i,o,s,a,l,u,c=this.getEventPosition(t);if(this.options.rightToLeft?(i=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,u=this.minH):(i=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,u=this.maxH),s=o>=c,a=c>=this.maxPos-i,s){if(0===l.rzsp)return;n=this.getValue("min",c,!0,!1),r=this.getValue("max",c,!0,!1)}else if(a){if(u.rzsp===this.maxPos)return;r=this.getValue("max",c,!0,!0),n=this.getValue("min",c,!0,!0)}else n=this.getValue("min",c,!1),r=this.getValue("max",c,!1);this.positionTrackingBar(n,r)},positionTrackingBar:function(e,t){null!=this.options.minLimit&&e<this.options.minLimit&&(t=(e=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&t>this.options.maxLimit&&(e=(t=this.options.maxLimit)-this.dragging.difference),this.lowValue=e,this.highValue=t,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(e)),this.updateHandles("highValue",this.valueToPosition(t))},positionTrackingHandle:function(e){var t=!1;e=this.applyMinMaxLimit(e),e=this.applyRestrictedRange(e),this.range&&(this.options.pushRange?(e=this.applyPushRange(e),t=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&e>this.highValue?e=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&e<this.lowValue&&(e=this.applyMinMaxRange(this.lowValue))),e=this.applyMinMaxRange(e),"lowValue"===this.tracking&&e>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),t=!0):"highValue"===this.tracking&&e<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),t=!0))),this[this.tracking]!==e&&(this[this.tracking]=e,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(e)),this.updateAriaAttributes(),t=!0),t&&this.applyModel(!0)},applyMinMaxLimit:function(e){return null!=this.options.minLimit&&e<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&e>this.options.maxLimit?this.options.maxLimit:e},applyMinMaxRange:function(e){var t="lowValue"===this.tracking?this.highValue:this.lowValue,n=Math.abs(e-t);return null!=this.options.minRange&&n<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&n>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:e},applyRestrictedRange:function(e){for(var t in this.options.restrictedRange)if(null!=this.options.restrictedRange[t]&&e>this.options.restrictedRange[t].from&&e<this.options.restrictedRange[t].to){var n=(this.options.restrictedRange[t].to-this.options.restrictedRange[t].from)/2;if("lowValue"===this.tracking)return e>this.options.restrictedRange[t].from+n?this.options.restrictedRange[t].to:this.options.restrictedRange[t].from;if("highValue"===this.tracking)return e<this.options.restrictedRange[t].to-n?this.options.restrictedRange[t].from:this.options.restrictedRange[t].to}return e},applyPushRange:function(e){var t="lowValue"===this.tracking?this.highValue-e:e-this.lowValue,n=null!==this.options.minRange?this.options.minRange:this.options.step,r=this.options.maxRange;return n>t?("lowValue"===this.tracking?(this.highValue=Math.min(e+n,this.maxValue),e=this.highValue-n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(e-n,this.minValue),e=this.lowValue+n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==r&&t>r&&("lowValue"===this.tracking?(this.highValue=e+r,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=e-r,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),e},applyModel:function(e){this.internalChange=!0,this.scope.$apply(),e&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onStart(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}},callOnChange:function(){if(this.options.onChange){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onChange(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}},callOnEnd:function(){if(this.options.onEnd){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onEnd(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}this.scope.$emit("slideEnded")}},a}]).directive("rzslider",["RzSlider",function(e){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(e,t){return t.rzSliderTplUrl||"rzSliderTpl.html"},link:function(t,n){t.slider=new e(t,n)}}}]);return t.run(["$templateCache",function(e){e.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),t.name})?r.apply(t,i):r)||(e.exports=o)}()},33:function(e,t,n){"use strict";n.r(t),n.d(t,"BackupAndRestoreInfo",(function(){return r}));class r{constructor(){this.id=void 0,this.username="",this.operation="",this.affectedRepositories=[],this.secondsSinceCreated=0,this.snapshotOptions=[],this.nodePerformingClusterBackup=""}}},34:function(e,t,n){"use strict";n.r(t),n.d(t,"SnapshotOptionInfo",(function(){return r}));class r{constructor(){this.withRepositoryData=!1,this.withSystemData=!1,this.withClusterData=!1,this.cleanDataDir=!1,this.removeCluster=!1,this.repositories=[],this.replicationTimeoutMs=0}}},35:function(e,t,n){"use strict";n.r(t),n.d(t,"mapActiveOperationResponseToModel",(function(){return l})),n.d(t,"mapActiveOperationToActiveOperationInfoModel",(function(){return c})),n.d(t,"mapImportActiveOperationToActiveOperationInfoModel",(function(){return h})),n.d(t,"mapQueriesActiveOperationToActiveOperationInfoModel",(function(){return p})),n.d(t,"mapBackupAndRestoreActiveOperationToActiveOperationInfoModel",(function(){return d})),n.d(t,"mapClusterActiveOperationToActiveOperationInfoModel",(function(){return f}));var r=n(3),i=n(11),o=n(1),s=n(36),a=n(12);const l=e=>{const t=new s.ActiveOperationsModel;return t.status=e.status,t.operations=u(e.allRunningOperations),t},u=(e=[])=>{const t=[];return e.forEach(e=>t.push(c(e))),t},c=e=>{switch(e.type){case r.OPERATION_TYPE.IMPORTS:return h(e);case r.OPERATION_TYPE.QUERIES:case r.OPERATION_TYPE.UPDATES:return p(e);case r.OPERATION_TYPE.BACKUP_RESTORE:return d(e);case r.OPERATION_TYPE.CLUSTER_STATUS:return f(e)}},h=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.IMPORT_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.IMPORT_MONITORING_URL,t},p=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.QUERIES_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.QUERIES_MONITORING_URL,t},d=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.BACKUP_AND_RESTORE_MONITORING_URL,t},f=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.CLUSTER_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.CLUSTER_MONITORING_URL,t}},36:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationsModel",(function(){return o}));var r=n(4),i=n(1);class o{constructor(){this.operations=[],this.status=r.OPERATION_STATUS.INFORMATION}hasClusterOperation(){return!!this.operations&&this.operations.some(e=>i.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===e.operationGroup)}}},37:function(e,t,n){"use strict";n.r(t),n.d(t,"NamespaceModel",(function(){return r}));class r{constructor(e,t){this._prefix=e,this._uri=t}get prefix(){return this._prefix}set prefix(e){this._prefix=e}get uri(){return this._uri}set uri(e){this._uri=e}}},38:function(e,t,n){"use strict";n.r(t),n.d(t,"SequenceGeneratorUtil",(function(){return r}));class r{static getFibonacciSequenceGenerator(){return r.fibonacciSequenceGenerator()}static fibonacciSequenceGenerator(){let e=0,t=1;return{next:function(){const n=t;return t=e+t,e=n,n},reset:function(){e=0,t=1}}}}},39:function(e,t,n){"use strict";n.r(t),n.d(t,"mapUriAsNtripleAutocompleteResponse",(function(){return r}));const r=e=>e&&e.data&&e.data.suggestions?e.data.suggestions.map(e=>({type:e.type,value:e.value,description:e.description})):[]},4:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_STATUS",(function(){return r})),n.d(t,"OPERATION_STATUS_SORT_ORDER",(function(){return i}));const r={CRITICAL:"CRITICAL",WARNING:"WARNING",INFORMATION:"INFORMATION"},i={INFORMATION:0,WARNING:1,CRITICAL:2,getOrder:e=>{switch(e){case r.WARNING:return i.WARNING;case r.CRITICAL:return i.CRITICAL;default:return i.INFORMATION}}}},40:function(e,t,n){"use strict";n.r(t);n(13);var r=n(0);function i(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.8.1-TR1">{{\'common.loading\' | translate}}</object>'}}}function o(){return{template:function(e,t){let n="";return n=t.hideMessage?"":t.message?`<div>${t.message}</div>`:"<div>{{'common.loading' | translate}}<div>",`\n <object width="${t.size}" height="${t.size}" data="js/angular/templates/loader/ot-loader.svg?v=2.8.1-TR1"></object>\n ${n}\n `}}}function s(e){const t=function(e,n){n.timer=void 0,n.currentMessage=n.getMessage();const r=n.timeout[n.index%n.timeout.length];r&&(n.timer=e((function(){(n.index+1<n.message.length||0===n.message.length)&&(n.index++,t(e,n))}),1e3*r))};return{restrict:"EA",scope:{size:"@",trigger:"@",messageAttr:"=*message",timeoutAttr:"=*timeout",ngShow:"=",ngHide:"="},link:function(n){n.message=n.messageAttr,n.getMessage=function(){return n.message[n.index]},void 0===n.message?n.message=[""]:"function"==typeof n.message?(n.getMessage=n.message,n.message=[]):"object"!=typeof n.message&&(n.message=[n.message]),n.timeout=n.timeoutAttr,void 0===n.timeout?n.timeout=[0]:"object"!=typeof n.timeout&&(n.timeout=[n.timeout]),n.index=0,t(e,n);const r=function(r){n.timer&&e.cancel(n.timer),r&&(n.index=0,t(e,n))};n.$watch("ngShow",(function(e){r(e)})),n.$watch("ngHide",(function(e){r(!e)})),n.$on("$destroy",(function(){n.timer&&e.cancel(n.timer)}))},template:'<div class="ot-loader-new-content"><img width="{{size}}" height="{{size}}" src="js/angular/templates/loader/ot-loader.svg?v=2.8.1-TR1"/><div style="font-size: {{size/4}}px">{{currentMessage}}<div></div>'}}function a(e){return{restrict:"EA",transclude:!0,templateUrl:"js/angular/core/templates/core-errors.html",link:function(t,n,r){let i;t.$watch("getActiveRepository()",(function(e){e&&!t.isRestricted?n.hide():n.show()})),t.setAttrs(r),t.setRestricted(),t.showRemoteLocations=!1,t.toggleShowRemoteLocations=()=>{t.showRemoteLocations=!t.showRemoteLocations},t.getAccessibleRepositories=function(){let e=e=>!0;return t.showRemoteLocations||(e=e=>e.local),t.isRestricted?t.getWritableRepositories().filter(e):t.getReadableRepositories().filter(e)},t.showPopoverForRepo=function(n,r){t.hidePopoverForRepo(),t.setPopoverRepo(r),e((function(){const e=$(n.toElement).find(".popover-anchor")[0];i=e,e&&!t.getActiveRepository()&&e.dispatchEvent(new Event("show"))})),n.stopPropagation()},t.hidePopoverForRepo=function(t){if(t){let e=t.relatedTarget;for(;e;){if(0===e.className.indexOf("popover"))return;e=e.parentElement}}i&&e((function(){i&&(i.dispatchEvent(new Event("hide")),i=null)})),t&&t.stopPropagation()}}}}function l(){return function(e,t){$(t).click((function(e){e.preventDefault(),e.stopPropagation()}))}}function u(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.multiRequired||(e.multiRequired=[]);const i=n.multiRequireElement,o=function(t){i&&i%1==0&&(e.multiRequired[i-1]=t)},s=function(){let t=!1,n=!1;for(let r=0;r<e.multiRequired.length;r++)e.multiRequired[r]?t=!0:n=!0;r.$setValidity("multiRequire",!(t&&n))};r.$parsers.unshift((function(e){return o(e),s(),e})),r.$formatters.unshift((function(e){return o(e),s(),e})),$("[multi-required]").on("blur keyup change focusout",(function(){s()}))}}}angular.module("graphdb.framework.core.directives",["graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).directive("ontoLoader",i).directive("ontoLoaderFancy",o).directive("ontoLoaderNew",s).directive("coreErrors",a).directive("eatClick",l).directive("multiRequired",u).directive("searchResourceInput",h).directive("keyboardShortcuts",p).directive("inactivePluginDirective",d).directive("autoGrow",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){const i=function(){const e=r.$viewValue;e&&""!==e.trim()?(t[0].style.height="0px",t[0].style.height=t[0].scrollHeight+"px"):t[0].style.height="26px",t[0].style.overflow="hidden"};e.$watch((function(){return r.$viewValue}),(function(){i()})),t.bind("input change",(function(){i()}))}}})).directive("captureHeight",(function(){return{restrict:"A",scope:{rowIndex:"=captureHeight"},link:function(e,t,n){e.$watch((function(){return t[0].offsetHeight}),(function(t){e.$parent.rowHeights[e.rowIndex]=t+"px!important"}))}}})),i.$inject=[],o.$inject=[],s.$inject=["$timeout"],a.$inject=["$timeout"],l.$inject=[],u.$inject=[];const c={table:"table",visual:"visual"};function h(e,t,n,i,o,s,a,l,u,h,p,d){return{restrict:"EA",scope:{repositoryNamespaces:"=",isAutocompleteEnabled:"=",textButton:"@",visualButton:"@",textCallback:"&",visualCallback:"&",placeholder:"@",uriValidation:"@",preserveInput:"@",empty:"=",clear:"=?clear",openInNewTab:"@",preserveSearch:"@",radioButtons:"@",clearInputIcon:"@"},templateUrl:"js/angular/core/templates/search-resource-input.html",link:function(h,f,g){f.autoCompleteStatus=void 0,f.autoCompleteWarning=!1,h.empty=!1,h.clear=!1,h.searchDisplayType=c;const m="true"===h.preserveSearch,v=f.find(".view-res-input");let y,b;h.textButtonLabel=h.textButton||"query.editor.table.btn",h.visualButtonLabel=h.visualButton||"query.editor.visual.btn",h.showClearInputIcon=!1,h.searchType=l.get(u.RDF_SEARCH_TYPE)||c.table,h.searchInput="",h.changeSearchType=function(e){h.searchType=e,l.set(u.RDF_SEARCH_TYPE,h.searchType)},h.$on("addStartFixedNodeAutomatically",(function(e,t){h.searchInput||!t.startIRI?h.checkIfValidAndSearchText():h.visualCallback({uri:t.startIRI,label:""})})),h.clearInput=function(){h.searchInput="",h.selectedElementIndex=-1,h.autoCompleteUriResults=[],h.showClearInputIcon=!1,l.remove(u.RDF_SEARCH_INPUT),l.remove(u.RDF_SEARCH_EXPANDED_URI),l.remove(u.RDF_RESOURCE_DESCRIPTION)},h.$watch("repositoryNamespaces",(function(){f.namespaces=h.repositoryNamespaces?h.repositoryNamespaces.namespaces:[]})),h.$watch("isAutocompleteEnabled",(function(){f.autoCompleteStatus=!!h.isAutocompleteEnabled,""!==h.searchInput&&h.onChange()})),h.$watch("empty",(function(){m||(h.searchInput="",h.empty=!1)})),h.$watch("clear",(function(){h.clear&&(h.clearInput(),h.clear=!1)})),o.$on("$translateChangeSuccess",(function(){g.$attr.placeholder?h.placeholder=g.$attr.placeholder:h.placeholder=p.instant("search.resources.msg")+"..."}));const w=function(t){const n=t.type||"uri";"true"===h.openInNewTab?S(!1,t):e.path("resource").search(n,t.uri)},x=function(t){const n=t.type||"uri";"true"===h.openInNewTab?S(!0,t):e.path("graphs-visualizations").search(n,t.uri)},S=function(e,t){const n=e?"graphs-visualizations":"resource";window.open(`${n}?uri=${encodeURIComponent(t.uri)}`)};angular.isUndefined(g.$attr.textCallback)&&(h.textCallback=w),angular.isUndefined(g.$attr.visualCallback)&&(h.visualCallback=x),g.$attr.textButton&&!h.textButton?h.textCallback=h.visualCallback:g.$attr.visualButton&&!h.visualButton&&(h.visualCallback=h.textCallback),g.$attr.placeholder?h.placeholder=g.$attr.placeholder:h.placeholder=p.instant("search.resources.msg")+"...",angular.isDefined(g.$attr.uriValidation)?h.uriValidation=g.$attr.uriValidation:h.uriValidation="true",angular.isDefined(g.$attr.preserveInput)&&(h.preserveInput=g.$attr.preserveInput),h.getResultItemHtml=function(e){return a.trustAsHtml(e.description)},h.searchRdfResource=function(e,t){if("prefix"===e.type)h.searchInput=T(e.value+":"),v.focus(),h.onChange();else{let n;n=angular.isUndefined(e)?h.searchInput:"object"==typeof e?e.value:e;let r="";if(e.description){const t=e.description.indexOf("&lt;"+n+"&gt;");t>0&&(r=e.description.substring(0,t).replace(/<\/?b>/g,""))}t({uri:n,description:e.description,label:r,type:e.type}),m?(h.selectedElementIndex=h.activeSearchElm,l.set(u.RDF_SEARCH_EXPANDED_URI,y),l.set(u.RDF_SEARCH_INPUT,h.searchInput),l.set(u.RDF_RESOURCE_DESCRIPTION,e.description)):"true"===h.preserveInput?(h.searchInput=n,h.autoCompleteUriResults=[]):(h.searchInput="",h.autoCompleteUriResults=[])}},h.searchRdfResourceByEvent=function(e,t){h.searchType===c.visual||t.ctrlKey||t.metaKey?h.searchRdfResource(e,h.visualCallback):h.searchRdfResource(e,h.textCallback)};const E=function(e){const n=h.searchInput;""!==n?"false"!==h.uriValidation?f.autoCompleteStatus&&h.autoCompleteUriResults&&h.autoCompleteUriResults.length>0?"prefix"===h.autoCompleteUriResults[h.activeSearchElm].type?(h.searchInput=T(h.autoCompleteUriResults[h.activeSearchElm].value+":"),h.autoCompleteUriResults=[]):h.searchRdfResource(h.autoCompleteUriResults[h.activeSearchElm],e):A(n)?h.searchRdfResource(n,e):t.error(p.instant("invalid.uri.msg")):h.searchRdfResource(n,e):t.error(p.instant("fill.input.field.msg"))};function C(){let e=-1;const n=l.get(u.RDF_RESOURCE_DESCRIPTION);n&&h.autoCompleteUriResults&&(e=h.autoCompleteUriResults.findIndex(e=>e.description===n),h.selectedElementIndex=e,new Promise(e=>{const t=document.getElementById("auto-complete-results-wrapper").getBoundingClientRect();setTimeout(()=>{e(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))})}).then((function(){!function(){const e=$("#auto-complete-results-wrapper"),t=$("#auto_"+h.selectedElementIndex);e.animate({scrollTop:t.offset().top-e.offset().top+e.scrollTop()})}()})).catch((function(e){t.error(getError(e),p.instant("no.prev.search.element"))}))),h.activeSearchElm=-1===e?0:e}function A(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}function T(e){if(!/^<?(http|urn).*>?/.test(e)){const t=e.split(":"),r=t[0],i=t[1];if(!angular.isUndefined(i)){const e=n.getNamespaceUriForPrefix(f.namespaces,r);if(y=e!==y?e:y,y)return v.val(y),y+i}}return e}h.checkIfValidAndSearchText=function(){E(h.textCallback)},h.checkIfValidAndSearchVisual=function(){E(h.visualCallback)},h.checkIfValidAndSearchEvent=function(e){h.searchType===c.visual||e.ctrlKey||e.metaKey?E(h.visualCallback):E(h.textCallback)},h.onChange=function(){return h.showClearInputIcon=h.clearInputIcon,m&&l.set(u.RDF_SEARCH_INPUT,h.searchInput),"false"!==h.uriValidation&&(h.searchInput=T(h.searchInput),f.autoCompleteStatus)?function(e){let t=e.replace(y,y+";");if(f.autoCompleteStatus)return";"===t.charAt(0)&&(t=t.slice(1)),t=function(e){let t=e;if(-1===t.indexOf(";")&&A(t)){t=t.replace(/<|>/g,"");const e=/[^/^#]*$/.exec(t)[0];return t.split(e)[0]+";"+e}return t}(t),b&&b.resolve(),b=s.defer(),i.getAutocompleteSuggestions(t,b.promise).then((function(e){b=null,h.autoCompleteUriResults=e.data.suggestions,h.activeSearchElm=0}));return Promise.resolve()}(h.searchInput):Promise.resolve()},h.onKeyDown=function(e){if(13===e.keyCode){if(e.preventDefault(),d.isActive())return;"false"!==h.uriValidation?f.autoCompleteStatus?h.checkIfValidAndSearchEvent(e):A(e.target.value)?h.searchRdfResourceByEvent(e.target.value,e):t.error(p.instant("invalid.uri.msg")):h.searchRdfResourceByEvent(e.target.value,e)}else if(h.searchInput.length>0&&!f.autoCompleteWarning&&!f.autoCompleteStatus){f.autoCompleteWarning=!0;const e=Object(r.decodeHTML)(p.instant("explore.autocomplete.warning.msg"));t.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}if(f.autoCompleteStatus&&!angular.isUndefined(h.autoCompleteUriResults)){if(40===e.keyCode&&h.activeSearchElm<h.autoCompleteUriResults.length-1&&(h.activeSearchElm++,h.searchInput=h.autoCompleteUriResults[h.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-6-e.scrollTop()>170&&e.scrollTop(n[0].offsetTop-t.height()-6-170)}()),38===e.keyCode&&h.activeSearchElm>0&&(e.preventDefault(),h.activeSearchElm--,h.searchInput=h.autoCompleteUriResults[h.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-40<=e.scrollTop()&&e.scrollTop(e.scrollTop()-34)}()),27===e.keyCode){if(m)return;h.searchInput="",h.autoCompleteUriResults=[]}h.searchInput||h.clearInput()}},h.$on("rdfResourceSearchExpanded",(function(){(m?(h.preserveInput="true",h.searchInput=l.get(u.RDF_SEARCH_INPUT)||"",y=l.get(u.RDF_SEARCH_EXPANDED_URI),h.onChange()):Promise.resolve()).then((function(){C()}))})),h.setActiveClassOnMouseMove=function(e){f.autoCompleteStatus&&(h.activeSearchElm=e)}}}}function p(e){return{restrict:"AE",link:function(t,n,r){function i(e){27===e.keyCode&&(t.toggleCheatSheet(),t.$apply())}t.getTemplateUrl=function(){return r.templateUrl},t.shortcutsVisible=!1,t.toggleCheatSheet=function(){t.shortcutsVisible=!t.shortcutsVisible,t.shortcutsVisible?e.on("keydown",i):e.off("keydown",i)}},template:'<ng-include src="getTemplateUrl()" />'}}function d(e,t,n,i,o,s){return{restrict:"E",transclude:!0,scope:{loadSaved:"&",setPluginActive:"&",pluginName:"@",humanReadablePluginName:"@"},templateUrl:"js/angular/core/templates/inactive-plugin-warning-page.html",link:function(a){function l(){if(o.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType())return t.checkPluginIsActive(a.pluginName,i.getActiveRepository()).then((function({data:e}){a.pluginIsActive=e.indexOf("true")>0,a.setPluginActive({isPluginActive:a.pluginIsActive})})).catch((function(t){e.error(getError(t),s.instant("check.active.plugin.failure"))}))}a.pluginIsActive=!0,a.activatePlugin=function(){const o=Object(r.decodeHTML)(s.instant("activate.plugin.warning.msg",{humanReadablePluginName:a.humanReadablePluginName}));n.openSimpleModal({title:s.instant("activate.plugin.confirmation"),message:`<p>${o}</p>`,warning:!0}).result.then((function(){t.activatePlugin(a.pluginName,i.getActiveRepository()).then((function(){a.pluginIsActive=!0,a.setPluginActive({isPluginActive:a.pluginIsActive}),a.loadSaved()})).catch((function(t){e.error(getError(t),s.instant("activate.plugin.failure"))}))}))};const u=a.$on("repositoryIsSet",(function(){l()}));window.addEventListener("beforeunload",(function e(){u(),window.removeEventListener("beforeunload",e)})),a.$on("checkIsActive",l),l()}}}h.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$rootScope","$q","$sce","LocalStorageAdapter","LSKeys","$repositories","$translate","GuidesService"],p.$inject=["$document"],d.$inject=["toastr","RDF4JRepositoriesRestService","ModalService","$repositories","$licenseService","$translate"]},41:function(e,t,n){"use strict";n.r(t);n(9),n(21),n(50),n(27),n(82),n(83),n(22);var r=n(16),i=n(20),o=n(28);angular.module("graphdb.framework.core.services.repositories",["ngCookies","graphdb.framework.rest.repositories.service","graphdb.framework.rest.locations.service","graphdb.framework.rest.license.service","toastr","graphdb.framework.utils.event-emitter-service"]).service("$repositories",["toastr","$rootScope","$timeout","$location","productInfo","$jwtAuth","RepositoriesRestService","LocationsRestService","LicenseRestService","$translate","$q","LocalStorageAdapter","LSKeys","EventEmitterService","RDF4JRepositoriesRestService",function(e,t,n,s,a,l,u,c,h,p,d,f,g,m,v){this.location={uri:"",label:"Local",local:!0},this.locationError="",this.loading=!0,this.locations=[this.location],this.repositories=new Map,this.locationsShouldReload=!0;const y=this,b=function(t,n){y.loading=!1,t&&(y.location={},y.locationError=n,y.repositories=new Map,y.setRepository(""),t.statusText?e.error(t.statusText,p.instant("repositories.service.error.loading.location")):e.error(p.instant("repositories.service.error.loading.location")))};let w;this.resetActiveRepository=function(){const e=this.getActiveRepositoryObjectFromStorage(),n=y.repositories.get(e.location);let r=!1;n&&(r=n.find(t=>t.id===e.id)),r?l.canReadRepo(e)?t.$broadcast("repositoryIsSet",{newRepo:!1}):this.setRepository(""):this.setRepository(this.location.defaultRepository?{id:this.location.defaultRepository,location:this.location.uri}:"")},this.checkLocationsDegraded=function(e){this.locations.forEach(t=>{t.local||(t.errorMsg&&y.repositories.delete(t.uri)&&y.resetActiveRepository(),h.getVersion(t.uri).success((function(e){"object"==typeof e?e.productVersion!==a.productVersion&&(t.degradedReason=p.instant("repositories.service.different.gdb.version",{location:t.name})):t.degradedReason=p.instant("repositories.service.different.gdb.version",{location:t.name})})).error((function(n){t.errorMsg=n,e||(y.locationsShouldReload=!0)})))})},this.getDegradedReason=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.locations.find(t=>t.uri===e.location);return t?t.degradedReason:""},this.clearLocationErrorMsg=function(e){const t=this.locations.find(t=>t.uri===e);t&&t.errorMsg&&(t.errorMsg=null)},this.initQuick=function(){this.hasActiveLocation()&&this.init(null,null,!0)},this.assignHashesToRepositories=function(e){return e.map(e=>{const t=Object(i.md5HashGenerator)();return e.hash=t(JSON.stringify(e)),e})},this.init=function(e,n,r){return this.loading=!0,r||(this.locationsShouldReload=!0),c.getActiveLocation().then((function(i){if(i.data){const o=i.data;if(o.active)return u.getRepositories().then((function(n){y.location=o,Object.entries(n.data).forEach(([e,t])=>{const n=y.assignHashesToRepositories(t);y.clearLocationErrorMsg(e),y.repositories.set(e,n)}),y.resetActiveRepository(),b(),y.checkLocationsDegraded(r),t.globalLocation=y.location,t.globalRepositories=y.getRepositories(),e&&e()})).catch((function(e){b(e),n&&n()}))}else b(),r&&(y.locationsShouldReload=!0),y.location="",y.repositories=new Map,y.setRepository("");t.globalLocation=y.location,t.globalRepositories=y.getRepositories()})).catch((function(e){b(e),n&&n()}))},this.getLocations=function(e){if(this.locationsShouldReload||w)return w||(this.locationsShouldReload=!1,this.locations=[this.location],w=c.getLocations(e).then(e=>(y.locations=e.data.map(e=>new o.RemoteLocationModel(e)),this.locations)).catch((function(){n((function(){y.locationsShouldReload=!0}),2e3)})).finally(()=>{w=null})),w;const t=d.defer();return t.resolve(this.locations),t.promise},this.getActiveLocation=function(){return this.location},this.hasActiveLocation=function(){return!_.isEmpty(this.location)},this.getLocationError=function(){return this.locationError?this.locationError:p.instant("repositories.service.no.active.location")},this.isLoadingLocation=function(){return this.loading},this.getRepositories=function(){const e=[];return this.repositories.forEach(t=>e.push.apply(e,t)),e},this.getRepository=function(e){return this.getRepositories().find(t=>t.id===e)},this.getReadableRepositories=function(){return _.filter(this.getRepositories(),(function(e){return l.canReadRepo(e)}))},this.getReadableGraphdbRepositories=function(){return this.getReadableRepositories().filter(e=>"graphdb"===e.type)},this.getLocalReadableGraphdbRepositories=function(){return this.getReadableGraphdbRepositories().filter(e=>!0===e.local)},this.getLocalReadablGraphdbRepositoryIds=function(){return this.getLocalReadableGraphdbRepositories().map(e=>e.id)},this.getWritableRepositories=function(){const e=this;return _.filter(this.getRepositories(),(function(t){return l.canWriteRepo(t)&&!e.isActiveRepoOntopType(t)}))},this.getActiveRepositoryObjectFromStorage=function(){return{id:f.get(g.REPOSITORY_ID)||"",location:f.get(g.REPOSITORY_LOCATION)||""}},this.getActiveRepository=function(){return f.get(g.REPOSITORY_ID)||void 0},this.getActiveRepositoryObject=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.repositories.get(e.location);return t?t.find(t=>t.id===e.id):null},this.isSystemRepository=function(){return"SYSTEM"===this.getActiveRepositoryObjectFromStorage().id},this.isActiveRepoOntopType=function(e){const t=this;let n;return e||(e=t.getActiveRepositoryObject()),e&&(n=t.repositories.get(e.location).find(t=>t.id===e.id),n)?"graphdb:OntopRepository"===n.sesameType:void 0===n},this.isActiveRepoFedXType=function(){const e=this,t=e.getActiveRepositoryObject();let n;return t&&(n=e.repositories.get(t.location).find(e=>e.id===t.id),n)?"graphdb:FedXRepository"===n.sesameType:void 0===n},this.getLocationFromUri=function(e){return this.locations.find(t=>t.uri===e)},this.setRepositoryHeaders=function(e){$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers["X-GraphDB-Repository"]=e?e.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=e?e.location:void 0},this.setRepository=function(e){const n={oldRepository:this.repository,newRepository:e,cancel:!1};m.emit("repositoryWillChangeEvent",n,n=>{n.cancel||(e?(f.set(g.REPOSITORY_ID,e.id),f.set(g.REPOSITORY_LOCATION,e.location)):(f.remove(g.REPOSITORY_ID),f.remove(g.REPOSITORY_LOCATION)),this.setRepositoryHeaders(e),t.$broadcast("repositoryIsSet",{newRepo:!0}),e&&!l.canReadRepo(e)&&this.setRepository(""),t.deniedPermissions={})})},this.getDefaultRepository=function(){return this.hasActiveLocation()?this.location.defaultRepository:""},this.setDefaultRepository=function(t){if(!this.hasActiveLocation())return void e.error(p.instant("repositories.service.no.active.location"),p.instant("common.error"));const n=this;c.setDefaultRepository(t).success((function(){n.location.defaultRepository=t})).error((function(t){const n=getError(t);e.error(n,p.instant("common.error"))}))},this.deleteLocation=function(t){return c.deleteLocation(encodeURIComponent(t)).success((function(){const e=y.getActiveRepositoryObject();e&&e.location===t&&(y.location="",y.setRepository("")),y.init()})).error((function(t){const n=getError(t);e.error(n,p.instant("common.error"))}))},this.deleteRepository=function(t){return u.deleteRepository(t).success((function(){y.init()})).error((function(t){const n=getError(t);e.error(n,p.instant("common.error"))})).finally(()=>{const e=y.getActiveRepositoryObject();e&&e.id===t.id&&e.location===t.location&&y.setRepository("")})},this.restartRepository=function(t){return u.restartRepository(t).success((function(){e.success(p.instant("repositories.service.restarting.repo",{repositoryId:t.id})),y.initQuick()})).error((function(t){const n=getError(t);e.error(n,p.instant("common.error"))}))},this.getRepositoryTurtleConfig=function(e){return u.getRepositoryTurtleConfig(e)},this.isRepoActive=function(e){const t=this.getActiveRepositoryObjectFromStorage();return!!t.id&&(e.id===t.id&&e.location===t.location)},this.getRepositoriesFromLocation=function(e){return this.repositories.get(e)},this.getPrefixes=e=>v.getRepositoryNamespaces(e).then(e=>{const t={};return e.data.results.bindings.forEach((function(e){t[e.prefix.value]=e.namespace.value})),t}),this.resolveSparqlEndpoint=e=>e===r.QueryMode.UPDATE?`repositories/${this.getActiveRepository()}/statements`:e===r.QueryMode.QUERY?"repositories/"+this.getActiveRepository():void 0,t.$on("securityInit",(function(e,t,r,i){w=null,(!t||r||i)&&n((function(){y.init()}))})),t.$on("reloadLocations",(function(){y.locationsShouldReload=!0,y.getLocations().then(()=>y.initQuick())}))}])},42:function(e,t,n){"use strict";n.r(t);n(9),n(55),n(56);var r=n(6);angular.module("graphdb.framework.core.services.jwtauth",["toastr","graphdb.framework.rest.security.service","graphdb.framework.core.services.openIDService"]).service("$jwtAuth",["$http","toastr","$location","$rootScope","SecurityRestService","$openIDAuth","$translate","$q","AuthTokenService","LSKeys","LocalStorageAdapter",function(e,t,n,i,o,s,a,l,u,c,h){const p=this;i.deniedPermissions={},i.setPermissionDenied=function(e){return!("/login"===e||!p.isAuthenticated())&&(i.deniedPermissions[e]=!0,!0)},i.hasPermission=function(){const e=n.path();return!i.deniedPermissions[e]},this.updateReturnUrl=()=>{0!==n.url().indexOf("/login")&&(i.returnToUrl=n.url())},i.redirectToLogin=function(e,t){return p.authTokenIsType("Bearer")&&(e=!0),p.clearAuthenticationInternal(),p.updateReturnUrl(),n.path("/login"),t?n.search("noaccess"):e&&n.search("expired"),new Promise(e=>{setTimeout(()=>{e(!0)},100)})},i.hasExternalAuthUser=function(){return p.hasExternalAuthUser()},this.securityEnabled=!0,this.freeAccess=!1,this.hasOverrideAuth=!1,this.externalAuthUser=!1,this.securityInitialized=!1;const d=this;this.getAuthenticatedUserFromBackend=function(e,t){o.getAuthenticatedUser().success((function(e,t,n){const r=u.getAuthToken();r&&r.startsWith("GDB")?(d.externalAuthUser=!1,d.principal=e,i.$broadcast("securityInit",d.securityEnabled,!0,d.freeAccess)):d.openIDEnabled&&r&&r.startsWith("Bearer")?d.authenticate(e,r):(d.externalAuthUser=!0,d.authenticate(e,""))})).error((function(){e||!d.freeAccess?i.redirectToLogin(!1,t):(d.securityInitialized=!0,d.hasExplicitAuthentication()||d.clearAuthentication())}))},this.initSecurity=function(){this.securityInitialized=!1,o.getSecurityConfig().then((function(e){if(d.securityEnabled=e.data.enabled,d.externalAuth=e.data.hasExternalAuth,d.authImplementation=e.data.authImplementation,d.openIDEnabled=e.data.openIdEnabled,d.passwordLoginEnabled=e.data.passwordLoginEnabled,d.securityEnabled){const t=e.data.freeAccess;d.freeAccess=t.enabled,d.freeAccess&&(d.freeAccessPrincipal={authorities:t.authorities,appSettings:t.appSettings}),d.openIDEnabled?(d.openIDConfig=e.data.methodSettings.openid,d.gdbUrl=n.absUrl().replace(n.url().substr(1),""),s.initOpenId(d.openIDConfig,d.gdbUrl,(function(e){u.setAuthToken(s.authHeaderGraphDB()),console.log("oidc: set id/access token as GraphDB auth"),d.getAuthenticatedUserFromBackend(!0,e)}),(function(){console.log("oidc: not logged or login error"),d.authTokenIsType("Bearer")?setTimeout(()=>{i.redirectToLogin(!0)},0):d.getAuthenticatedUserFromBackend()}))):d.getAuthenticatedUserFromBackend()}else{u.clearAuthToken();const t=e.data.overrideAuth;if(d.hasOverrideAuth=t.enabled,!d.hasOverrideAuth)return o.getAdminUser().then((function(e){d.principal={username:"admin",appSettings:e.data.appSettings,authorities:e.data.grantedAuthorities},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}));d.principal={username:"overrideauth",authorities:t.authorities,appSettings:t.appSettings},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}}))},this.initSecurity(),this.reinitializeSecurity=function(){this.securityInitialized||this.initSecurity()},this.isSecurityEnabled=function(){return this.securityEnabled},this.hasExternalAuth=function(){return this.externalAuth},this.getAuthImplementation=function(){return this.authImplementation},this.isFreeAccessEnabled=function(){return this.freeAccess},this.isDefaultAuthEnabled=function(){return this.hasOverrideAuth&&this.principal&&"overrideauth"===this.principal.username},this.authTokenIsType=function(e){const t=u.getAuthToken();return t&&t.startsWith(e)},this.loginOpenID=function(){s.login(this.openIDConfig,this.gdbUrl)},this.toggleSecurity=function(e){return e!==this.securityEnabled?o.toggleSecurity(e).then((function(){t.success(a.instant("jwt.auth.security.status",{status:a.instant(e?"enabled.status":"disabled.status")})),u.clearAuthToken(),d.initSecurity(),d.securityEnabled=e})).catch((function(e){t.error(e.data,a.instant("common.error"))})):Promise.resolve()},this.toggleFreeAccess=function(e,n,r,s){(e!==this.freeAccess||s)&&(this.freeAccessPrincipal=e?{authorities:n,appSettings:r}:void 0,o.setFreeAccess({enabled:e?"true":"false",authorities:n,appSettings:r}).then((function(){this.freeAccess=e,s?t.success(a.instant("jwt.auth.free.access.updated.msg")):t.success(a.instant("jwt.auth.free.access.status",{status:a.instant(e?"enabled.status":"disabled.status")}))})).catch(e=>{t.error(e.data,a.instant("common.error"))}),i.$broadcast("securityInit",this.securityEnabled,this.hasExplicitAuthentication(),this.freeAccess))},this.authenticate=function(e,t){return new Promise(n=>{t?(u.setAuthToken(t),this.externalAuthUser=!1):u.clearAuthToken(),this.principal=e,i.deniedPermissions={},this.securityInitialized=!0;const r={id:h.get(c.REPOSITORY_ID)||"",location:h.get(c.REPOSITORY_LOCATION)||""};p.canReadRepo(r)||(h.remove(c.REPOSITORY_ID),h.remove(c.REPOSITORY_LOCATION),i.deniedPermissions={}),i.$broadcast("securityInit",this.securityEnabled,d.hasExplicitAuthentication(),this.freeAccess),setTimeout(()=>{n(!0)})})},this.authenticateOpenID=function(e){u.clearAuthToken(),e&&(u.setAuthToken(e),this.externalAuthUser=!1)},this.hasExternalAuthUser=function(){return this.externalAuthUser},this.hasExplicitAuthentication=function(){return null!=u.getAuthToken()||this.externalAuthUser},this.getPrincipal=function(){if(this.principal)return Promise.resolve(this.principal);const e=l.defer();return i.$on("securityInit",()=>{e.resolve(this.principal)}),e.promise},this.clearAuthenticationInternal=function(){s.softLogout(),this.principal=this.freeAccessPrincipal,u.clearAuthToken()},this.clearAuthentication=function(){this.clearAuthenticationInternal(),i.$broadcast("securityInit",this.securityEnabled,!1,this.freeAccess)},this.isAuthenticated=function(){return!this.securityEnabled||this.hasExplicitAuthentication()},this.hasPermission=function(){},this.hasRole=function(e){if(void 0!==e&&(this.securityEnabled||this.hasOverrideAuth)){"string"==typeof e&&(e=[e]);const t=!_.isEmpty(this.principal);return!!t&&("IS_AUTHENTICATED_FULLY"===e[0]?t:_.intersection(e,this.principal.authorities).length>0)}return!0},this.isAdmin=function(){return this.hasRole(r.UserRole.ROLE_ADMIN)},this.isRepoManager=function(){return this.hasRole(r.UserRole.ROLE_REPO_MANAGER)},this.hasRoleMonitor=function(){return this.hasRole(r.UserRole.ROLE_MONITORING)},this.checkForWrite=function(e,t){return"WRITE_REPO"===e?this.canWriteRepo(t):this.hasRole(e)},this.hasAdminRole=function(){return this.isAdmin()||this.isRepoManager()},this.canWriteRepo=function(e){return!!e&&(!this.securityEnabled&&!this.hasOverrideAuth||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"WRITE")))},this.canReadRepo=function(e){return!!e&&(!this.securityEnabled||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"READ")))},this.checkRights=function(e,t){if(e)for(let n=0;n<this.principal.authorities.length;n++){const r=this.principal.authorities[n],i=r.split("_",2),o=r.slice(i[0].length+i[1].length+2),s=e.location?`${e.id}@${e.location}`:e.id;if(i[0]===t&&(s===o||"SYSTEM"!==e.id&&"*"===o))return!0}return!1},this.updateUserData=e=>o.updateUserData(e)}])},43:function(e,t,n){"use strict";n.r(t);var r=n(32),i=n(35);angular.module("graphdb.framework.rest.monitoring.service",[]).factory("MonitoringRestService",o),o.$inject=["$http"];function o(e){return{monitorResources:function(){return e.get("rest/monitor/infrastructure")},monitorStructures:function(){return e.get("rest/monitor/structures")},monitorCluster:function(){return e.get("rest/monitor/cluster")},monitorGC:function(){return e.post("rest/monitor/infrastructure/gc")},monitorQuery:function(t){return e.get(`rest/monitor/repository/${t}/query/active`)},monitorBackup:function(){return e.get("rest/monitor/backup").then(e=>Object(r.mapBackupAndRestoreResponseToModel)(e.data))},monitorActiveOperations:function(t){return e.get(`rest/monitor/${t}/operations`).then(e=>Object(i.mapActiveOperationResponseToModel)(e.data))},deleteQuery:function(t,n){return e.delete(`rest/monitor/repository/${n}/query?query=${encodeURIComponent(t)}`)},getQueryCount:function(t){return e({url:`rest/monitor/repository/${t}/query/count`,method:"GET",timeout:1e4})},checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")},monitorQueryTransactionStatistics:function(t){return e.get("rest/monitor/repository/"+t)}}}},432:function(e,t){!function(e,t,n){"use strict";t.module("ngAnimate",["ng"]).directive("ngAnimateChildren",(function(){return function(e,n,r){r=r.ngAnimateChildren,t.isString(r)&&0===r.length?n.data("$$ngAnimateChildren",!0):e.$watch(r,(function(e){n.data("$$ngAnimateChildren",!!e)}))}})).factory("$$animateReflow",["$$rAF","$document",function(e,t){return function(t){return e((function(){t()}))}}]).config(["$provide","$animateProvider",function(r,i){function o(e){for(var t=0;t<e.length;t++){var n=e[t];if(1==n.nodeType)return n}}function s(e,t){return o(e)==o(t)}var a,l=t.noop,u=t.forEach,c=i.$$selectors,h=t.isArray,p=t.isString,d=t.isObject,f={running:!0};r.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest","$$jqLite",function(e,n,r,g,m,v,y,b,$,w){function x(e,t){var n=e.data("$$ngAnimateState")||{};return t&&(n.running=!0,n.structural=!0,e.data("$$ngAnimateState",n)),n.disabled||n.running&&n.structural}function S(e){var t,r=n.defer();return r.promise.$$cancelFn=function(){t&&t()},y.$$postDigest((function(){t=e((function(){r.resolve()}))})),r.promise}function E(e){if(d(e))return e.tempClasses&&p(e.tempClasses)&&(e.tempClasses=e.tempClasses.split(/\s+/)),e}function C(e,n,i,o){function s(e,t){var n=e[t],r=e["before"+t.charAt(0).toUpperCase()+t.substr(1)];if(n||r)return"leave"==t&&(r=n,n=null),E.push({event:t,fn:n}),w.push({event:t,fn:r}),!0}function a(t,n,r){var s=[];u(t,(function(e){e.fn&&s.push(e)}));var a=0;u(s,(function(t,u){var c=function(){e:{if(n){if((n[u]||l)(),++a<s.length)break e;n=null}r()}};switch(t.event){case"setClass":n.push(t.fn(e,d,f,c,o));break;case"animate":n.push(t.fn(e,i,o.from,o.to,c));break;case"addClass":n.push(t.fn(e,d||i,c,o));break;case"removeClass":n.push(t.fn(e,f||i,c,o));break;default:n.push(t.fn(e,c,o))}})),n&&0===n.length&&r()}var p=e[0];if(p){var d,f;o&&(o.to=o.to||{},o.from=o.from||{}),h(i)&&(d=i[0],f=i[1],d?f?i=d+" "+f:(i=d,n="addClass"):(i=f,n="removeClass"));var m="setClass"==n,v=m||"addClass"==n||"removeClass"==n||"animate"==n,y=e.attr("class")+" "+i;if(I(y)){var b=l,$=[],w=[],x=l,S=[],E=[];y=(" "+y).replace(/\s+/g,".");return u(function(e){if(e){var t=[],n={};e=e.substr(1).split("."),(g.transitions||g.animations)&&t.push(r.get(c[""]));for(var i=0;i<e.length;i++){var o=e[i],s=c[o];s&&!n[o]&&(t.push(r.get(s)),n[o]=!0)}return t}}(y),(function(e){!s(e,n)&&m&&(s(e,"addClass"),s(e,"removeClass"))})),{node:p,event:n,className:i,isClassBased:v,isSetClassOperation:m,applyStyles:function(){o&&e.css(t.extend(o.from||{},o.to||{}))},before:function(e){b=e,a(w,$,(function(){b=l,e()}))},after:function(e){x=e,a(E,S,(function(){x=l,e()}))},cancel:function(){$&&(u($,(function(e){(e||l)(!0)})),b(!0)),S&&(u(S,(function(e){(e||l)(!0)})),x(!0))}}}}}function A(e,n,r,i,o,c,h,p){function d(t){var i="$animate:"+t;x&&x[i]&&0<x[i].length&&v((function(){r.triggerHandler(i,{event:e,className:n})}))}function g(){d("before")}function y(){d("after")}function b(){b.hasBeenRun||(b.hasBeenRun=!0,c())}function $(){if(!$.hasBeenRun){w&&w.applyStyles(),$.hasBeenRun=!0,h&&h.tempClasses&&u(h.tempClasses,(function(e){a.removeClass(r,e)}));var e=r.data("$$ngAnimateState");e&&(w&&w.isClassBased?F(r,n):(v((function(){var e=r.data("$$ngAnimateState")||{};k==e.index&&F(r,n)})),r.data("$$ngAnimateState",e))),d("close"),p()}}var w=C(r,e,n,h);if(!w)return b(),g(),y(),$(),l;e=w.event,n=w.className;var x=(x=t.element._data(w.node))&&x.events;if(i||(i=o?o.parent():r.parent()),function(e,n){if(f.disabled)return!0;if(s(e,m))return f.running;var r,i,o;do{if(0===n.length)break;var a=s(n,m),l=a?f:n.data("$$ngAnimateState")||{};if(l.disabled)return!0;a&&(o=!0),!1!==r&&(a=n.data("$$ngAnimateChildren"),t.isDefined(a)&&(r=a)),i=i||l.running||l.last&&!l.last.isClassBased}while(n=n.parent());return!o||!r&&i}(r,i))return b(),g(),y(),$(),l;var S=(i=r.data("$$ngAnimateState")||{}).active||{},E=i.totalActive||0,A=i.last;if(o=!1,0<E){if(E=[],w.isClassBased)"setClass"==A.event?(E.push(A),F(r,n)):S[n]&&((T=S[n]).event==e?o=!0:(E.push(T),F(r,n)));else if("leave"==e&&S["ng-leave"])o=!0;else{for(var T in S)E.push(S[T]);i={},F(r,!0)}0<E.length&&u(E,(function(e){e.cancel()}))}if(!w.isClassBased||w.isSetClassOperation||"animate"==e||o||(o="addClass"==e==r.hasClass(n)),o)return b(),g(),y(),d("close"),p(),l;S=i.active||{},E=i.totalActive||0,"leave"==e&&r.one("$destroy",(function(e){var n=(e=t.element(this)).data("$$ngAnimateState");n&&(n=n.active["ng-leave"])&&(n.cancel(),F(e,"ng-leave"))})),a.addClass(r,"ng-animate"),h&&h.tempClasses&&u(h.tempClasses,(function(e){a.addClass(r,e)}));var k=D++;return E++,S[n]=w,r.data("$$ngAnimateState",{last:w,active:S,index:k,totalActive:E}),g(),w.before((function(t){var i=r.data("$$ngAnimateState");t=t||!i||!i.active[n]||w.isClassBased&&i.active[n].event!=e,b(),!0===t?$():(y(),w.after($))})),w.cancel}function T(e){(e=o(e))&&(e=t.isFunction(e.getElementsByClassName)?e.getElementsByClassName("ng-animate"):e.querySelectorAll(".ng-animate"),u(e,(function(e){(e=(e=t.element(e)).data("$$ngAnimateState"))&&e.active&&u(e.active,(function(e){e.cancel()}))})))}function F(e,t){if(s(e,m))f.disabled||(f.running=!1,f.structural=!1);else if(t){var n=e.data("$$ngAnimateState")||{},r=!0===t;!r&&n.active&&n.active[t]&&(n.totalActive--,delete n.active[t]),!r&&n.totalActive||(a.removeClass(e,"ng-animate"),e.removeData("$$ngAnimateState"))}}a=w,m.data("$$ngAnimateState",f);var k=y.$watch((function(){return $.totalPendingRequests}),(function(e,t){0===e&&(k(),y.$$postDigest((function(){y.$$postDigest((function(){f.running=!1}))})))})),D=0,R=i.classNameFilter(),I=R?function(e){return R.test(e)}:function(){return!0};return{animate:function(e,n,r,i,s){return i=i||"ng-inline-animate",(s=E(s)||{}).from=r?n:null,s.to=r||n,S((function(n){return A("animate",i,t.element(o(e)),null,null,l,s,n)}))},enter:function(n,r,i,s){return s=E(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),x(n,!0),e.enter(n,r,i),S((function(e){return A("enter","ng-enter",t.element(o(n)),r,i,l,s,e)}))},leave:function(n,r){return r=E(r),T(n=t.element(n)),x(n,!0),S((function(i){return A("leave","ng-leave",t.element(o(n)),null,null,(function(){e.leave(n)}),r,i)}))},move:function(n,r,i,s){return s=E(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),T(n),x(n,!0),e.move(n,r,i),S((function(e){return A("move","ng-move",t.element(o(n)),r,i,l,s,e)}))},addClass:function(e,t,n){return this.setClass(e,t,[],n)},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},setClass:function(n,r,i,s){if(s=E(s),n=t.element(n),x(n=t.element(o(n))))return e.$$setClassImmediately(n,r,i,s);var a,l=n.data("$$animateClasses"),c=!!l;return l||(l={classes:{}}),a=l.classes,r=h(r)?r:r.split(" "),u(r,(function(e){e&&e.length&&(a[e]=!0)})),i=h(i)?i:i.split(" "),u(i,(function(e){e&&e.length&&(a[e]=!1)})),c?(s&&l.options&&(l.options=t.extend(l.options||{},s)),l.promise):(n.data("$$animateClasses",l={classes:a,options:s}),l.promise=S((function(t){var r=n.parent(),i=o(n);if((s=i.parentNode)&&!s.$$NG_REMOVED&&!i.$$NG_REMOVED){i=n.data("$$animateClasses"),n.removeData("$$animateClasses");var s=n.data("$$ngAnimateState")||{},a=function(e,t,n){var r={};u(n=n||{},(function(e,t){u(t.split(" "),(function(t){r[t]=e}))}));var i=Object.create(null);u((e.attr("class")||"").split(/\s+/),(function(e){i[e]=!0}));var o=[],s=[];return u(t&&t.classes||[],(function(e,t){var n=i[t],a=r[t]||{};!1===e?(n||"addClass"==a.event)&&s.push(t):!0===e&&(n&&"removeClass"!=a.event||o.push(t))})),0<o.length+s.length&&[o.join(" "),s.join(" ")]}(n,i,s.active);return a?A("setClass",a,n,r,null,(function(){a[0]&&e.$$addClassImmediately(n,a[0]),a[1]&&e.$$removeClassImmediately(n,a[1])}),i.options,t):t()}t()})))},cancel:function(e){e.$$cancelFn()},enabled:function(e,t){switch(arguments.length){case 2:if(e)F(t);else{var n=t.data("$$ngAnimateState")||{};n.disabled=!0,t.data("$$ngAnimateState",n)}break;case 1:f.disabled=!e;break;default:e=!f.disabled}return!!e}}}]),i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,s,c){function d(){D||(D=c((function(){P=[],D=null,R={}})))}function f(e,t){D&&D(),P.push(t),D=c((function(){u(P,(function(e){e()})),P=[],D=null,R={}}))}function g(e,n){var r=o(e);e=t.element(r),j.push(e),(r=Date.now()+n)<=_||(s.cancel(O),_=r,O=s((function(){!function(e){u(e,(function(e){(e=e.data("$$ngAnimateCSS3Data"))&&u(e.closeAnimationFns,(function(e){e()}))}))}(j),j=[]}),n,!1))}function m(e,t){var n=t?R[t]:null;if(!n){var i=0,o=0,s=0,a=0;u(e,(function(e){if(1==e.nodeType){e=r.getComputedStyle(e)||{},i=Math.max(v(e[C+"Duration"]),i),o=Math.max(v(e[C+"Delay"]),o),a=Math.max(v(e[T+"Delay"]),a);var t=v(e[T+"Duration"]);0<t&&(t*=parseInt(e[T+"IterationCount"],10)||1),s=Math.max(t,s)}})),n={total:0,transitionDelay:o,transitionDuration:i,animationDelay:a,animationDuration:s},t&&(R[t]=n)}return n}function v(e){var t=0;return e=p(e)?e.split(/\s*,\s*/):[],u(e,(function(e){t=Math.max(parseFloat(e)||0,t)})),t}function y(e,t,n,r){var i;e=0<=["ng-enter","ng-leave","ng-move"].indexOf(n),(l=(s=t.parent()).data("$$ngAnimateKey"))||(s.data("$$ngAnimateKey",++I),l=I),i=l+"-"+o(t).getAttribute("class");var s,l,u={};0<(l=R[s=i+" "+n]?++R[s].total:0)&&((i=!R[u=i+" "+(c=n+"-stagger")])&&a.addClass(t,c),u=m(t,u),i&&a.removeClass(t,c));a.addClass(t,n);var c=t.data("$$ngAnimateCSS3Data")||{},h=m(t,s);return i=h.transitionDuration,h=h.animationDuration,e&&0===i&&0===h?(a.removeClass(t,n),!1):(n=r||e&&0<i,e=0<h&&0<u.animationDelay&&0===u.animationDuration,t.data("$$ngAnimateCSS3Data",{stagger:u,cacheKey:s,running:c.running||0,itemIndex:l,blockTransition:n,closeAnimationFns:c.closeAnimationFns||[]}),s=o(t),n&&(b(s,!0),r&&t.css(r)),e&&(s.style[T+"PlayState"]="paused"),!0)}function b(e,t){e.style[C+"Property"]=t?"none":""}function $(e,t,n,r){if(y(e,t,n,r))return function(e){e&&S(t,n)}}function w(e,t,n,r,i){if(t.data("$$ngAnimateCSS3Data"))return function(e,t,n,r,i){function l(){t.off(I,c),a.removeClass(t,p),a.removeClass(t,d),D&&s.cancel(D),S(t,n);var e,r=o(t);for(e in f)r.style.removeProperty(f[e])}function c(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-R,0)>=C&&t>=E&&r()}var h=o(t);if(e=t.data("$$ngAnimateCSS3Data"),-1!=h.getAttribute("class").indexOf(n)&&e){var p="",d="";u(n.split(" "),(function(e,t){var n=(0<t?" ":"")+e;p+=n+"-active",d+=n+"-pending"}));var f=[],v=e.itemIndex,y=e.stagger,$=0;if(0<v){$=0,0<y.transitionDelay&&0===y.transitionDuration&&($=y.transitionDelay*v);var w=0;0<y.animationDelay&&0===y.animationDuration&&(w=y.animationDelay*v,f.push(k+"animation-play-state")),$=Math.round(100*Math.max($,w))/100}$||(a.addClass(t,p),e.blockTransition&&b(h,!1));var x=m(t,e.cacheKey+" "+p),E=Math.max(x.transitionDuration,x.animationDuration);if(0!==E){!$&&i&&(x.transitionDuration||(t.css("transition",x.animationDuration+"s linear all"),f.push("transition")),t.css(i));var C=1e3*(v=Math.max(x.transitionDelay,x.animationDelay));0<f.length&&(";"!==(y=h.getAttribute("style")||"").charAt(y.length-1)&&(y+=";"),h.setAttribute("style",y+" "));var D,R=Date.now(),I=F+" "+A;v=1e3*($+1.5*(v+E));return 0<$&&(a.addClass(t,d),D=s((function(){D=null,0<x.transitionDuration&&b(h,!1),0<x.animationDuration&&(h.style[T+"PlayState"]=""),a.addClass(t,p),a.removeClass(t,d),i&&(0===x.transitionDuration&&t.css("transition",x.animationDuration+"s linear all"),t.css(i),f.push("transition"))}),1e3*$,!1)),t.on(I,c),e.closeAnimationFns.push((function(){l(),r()})),e.running++,g(t,v),l}a.removeClass(t,p),S(t,n),r()}else r()}(e,t,n,r,i);S(t,n),r()}function x(e,t,n,r,i){var o=$(e,t,n,i.from);if(o){var s=o;return f(0,(function(){s=w(e,t,n,r,i.to)})),function(e){(s||l)(e)}}d(),r()}function S(e,t){a.removeClass(e,t);var n=e.data("$$ngAnimateCSS3Data");n&&(n.running&&n.running--,n.running&&0!==n.running||e.removeData("$$ngAnimateCSS3Data"))}function E(e,t){var n="";return e=h(e)?e:e.split(/\s+/),u(e,(function(e,r){e&&0<e.length&&(n+=(0<r?" ":"")+e+t)})),n}var C,A,T,F,k="";e.ontransitionend===n&&e.onwebkittransitionend!==n?(k="-webkit-",C="WebkitTransition",A="webkitTransitionEnd transitionend"):(C="transition",A="transitionend"),e.onanimationend===n&&e.onwebkitanimationend!==n?(k="-webkit-",T="WebkitAnimation",F="webkitAnimationEnd animationend"):(T="animation",F="animationend");var D,R={},I=0,P=[],O=null,_=0,j=[];return{animate:function(e,t,n,r,i,o){return(o=o||{}).from=n,o.to=r,x("animate",e,t,i,o)},enter:function(e,t,n){return x("enter",e,"ng-enter",t,n=n||{})},leave:function(e,t,n){return x("leave",e,"ng-leave",t,n=n||{})},move:function(e,t,n){return x("move",e,"ng-move",t,n=n||{})},beforeSetClass:function(e,t,n,r,i){if(i=i||{},i=$("setClass",e,t=E(n,"-remove")+" "+E(t,"-add"),i.from))return f(0,r),i;d(),r()},beforeAddClass:function(e,t,n,r){if(r=r||{},t=$("addClass",e,E(t,"-add"),r.from))return f(0,n),t;d(),n()},beforeRemoveClass:function(e,t,n,r){if(r=r||{},t=$("removeClass",e,E(t,"-remove"),r.from))return f(0,n),t;d(),n()},setClass:function(e,t,n,r,i){return i=i||{},w("setClass",e,(n=E(n,"-remove"))+" "+(t=E(t,"-add")),r,i.to)},addClass:function(e,t,n,r){return r=r||{},w("addClass",e,E(t,"-add"),n,r.to)},removeClass:function(e,t,n,r){return r=r||{},w("removeClass",e,E(t,"-remove"),n,r.to)}}}])}])}(window,window.angular)},433:function(e,t){!function(e,t,n){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,n){var r,i={},o={},s=!1,a=t.copy,l=t.isUndefined;return n.addPollFn((function(){var t=n.cookies();r!=t&&(r=t,a(t,o),a(t,i),s&&e.$apply())}))(),s=!0,e.$watch((function(){var e,r,s;for(e in o)l(i[e])&&n.cookies(e,void 0);for(e in i)r=i[e],t.isString(r)||(r=""+r,i[e]=r),r!==o[e]&&(n.cookies(e,r),s=!0);if(s)for(e in r=n.cookies(),i)i[e]!==r[e]&&(l(r[e])?delete i[e]:i[e]=r[e])})),i}]).factory("$cookieStore",["$cookies",function(e){return{get:function(n){return(n=e[n])?t.fromJson(n):n},put:function(n,r){e[n]=t.toJson(r)},remove:function(t){delete e[t]}}}])}(window,window.angular)},434:function(e,t){!function(e,t,n){"use strict";function r(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,l){function u(){d&&(r.cancel(d),d=null),h&&(h.$destroy(),h=null),p&&((d=r.leave(p)).then((function(){d=null})),p=null)}function c(){var s=e.current&&e.current.locals;if(t.isDefined(s&&s.$template)){s=i.$new();var a=e.current;p=l(s,(function(e){r.enter(e,null,p||o).then((function(){!t.isDefined(f)||f&&!i.$eval(f)||n()})),u()})),(h=a.scope=s).$emit("$viewContentLoaded"),h.$eval(g)}else u()}var h,p,d,f=s.autoscroll,g=s.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function i(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=e(i.contents());o.controller&&(s.$scope=r,s=t(o.controller,s),o.controllerAs&&(r[o.controllerAs]=s),i.data("$ngControllerController",s),i.children().data("$ngControllerController",s)),a(r)}}}e=t.module("ngRoute",["ng"]).provider("$route",(function(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,(function(e,t,n,r){return e="?"===r?r:null,r="*"===r?r:null,i.push({name:n,optional:!!e}),t=t||"",(e?"":t)+"(?:"+(e?t:"")+(r?"(.+?)":"([^/]+)")+(e||"")+")"+(e||"")})).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var s="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[s]=t.extend({redirectTo:e},n(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,s,a,l,u,c){function h(o){var s=v.current;(g=(f=function(){var n,o;return t.forEach(r,(function(r,s){var a;if(a=!o){var l=i.path();a=r.keys;var u={};if(r.regexp)if(l=r.regexp.exec(l)){for(var c=1,h=l.length;c<h;++c){var p=a[c-1],d=l[c];p&&d&&(u[p.name]=d)}a=u}else a=null;else a=null;a=n=a}a&&((o=e(r,{params:t.extend({},i.search(),n),pathParams:n})).$$route=r)})),o||r.null&&e(r.null,{params:{},pathParams:{}})}())&&s&&f.$$route===s.$$route&&t.equals(f.pathParams,s.pathParams)&&!f.reloadOnSearch&&!m)||!s&&!f||n.$broadcast("$routeChangeStart",f,s).defaultPrevented&&o&&o.preventDefault()}function p(){var e=v.current,r=f;g?(e.params=r.params,t.copy(e.params,s),n.$broadcast("$routeUpdate",e)):(r||e)&&(m=!1,(v.current=r)&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(d(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then((function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,(function(e,n){i[n]=t.isString(e)?l.get(e):l.invoke(e,null,null,n)})),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),n=c.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=u(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}})).then((function(i){r==v.current&&(r&&(r.locals=i,t.copy(r.params,s)),n.$broadcast("$routeChangeSuccess",r,e))}),(function(t){r==v.current&&n.$broadcast("$routeChangeError",r,e,t)})))}function d(e,n){var r=[];return t.forEach((e||"").split(":"),(function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}})),r.join("")}var f,g,m=!1,v={routes:r,reload:function(){m=!0,n.$evalAsync((function(){h(),p()}))},updateParams:function(e){if(!this.current||!this.current.$$route)throw o("norout");var n={},r=this;t.forEach(Object.keys(e),(function(t){r.current.pathParams[t]||(n[t]=e[t])})),e=t.extend({},this.current.params,e),i.path(d(this.current.$$route.originalPath,e)),i.search(t.extend({},i.search(),n))}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),v}]}));var o=t.$$minErr("ngRoute");e.provider("$routeParams",(function(){this.$get=function(){return{}}})),e.directive("ngView",r),e.directive("ngView",i),r.$inject=["$route","$anchorScroll","$animate"],i.$inject=["$compile","$controller","$route"]}(window,window.angular)},435:function(e,t){
18
+ /**
19
+ * An Angular module that gives you access to the browsers local storage
20
+ * @version v0.1.5 - 2014-11-04
21
+ * @link https://github.com/grevory/angular-local-storage
22
+ * @author grevory <greg@gregpike.ca>
23
+ * @license MIT License, http://www.opensource.org/licenses/MIT
24
+ */
25
+ !function(e,t){"use strict";var n=t.isDefined,r=t.isUndefined,i=t.isNumber,o=t.isObject,s=t.isArray,a=t.extend,l=t.toJson,u=t.fromJson;t.module("LocalStorageModule",[]).provider("localStorageService",(function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/"},this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setStorageCookie=function(e,t){return this.cookie={expiry:e,path:t},this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse",function(e,t,c,h){var p,d=this,f=d.prefix,g=d.cookie,m=d.notify,v=d.storageType;c?c[0]&&(c=c[0]):c=document,"."!==f.substr(-1)&&(f=f?f+".":"");var y=function(e){return f+e},b=function(){try{var n=v in t&&null!==t[v],r=y("__"+Math.round(1e7*Math.random()));return n&&((p=t[v]).setItem(r,""),p.removeItem(r)),n}catch(t){return v="cookie",e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),$=function(t,n){if(r(n)?n=null:(o(n)||s(n)||i(+n||n))&&(n=l(n)),!b||"cookie"===d.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),m.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),E(t,n);try{(o(n)||s(n))&&(n=l(n)),p&&p.setItem(y(t),n),m.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:d.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),E(t,n)}return!0},w=function(t){if(!b||"cookie"===d.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),C(t);var n=p?p.getItem(y(t)):null;return n&&"null"!==n?"{"===n.charAt(0)||"["===n.charAt(0)||function(e){return/^-?\d+\.?\d*$/.test(e.replace(/["']/g,""))}(n)?u(n):n:null},x=function(t){if(!b||"cookie"===d.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),A(t);try{p.removeItem(y(t)),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:d.storageType})}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),A(t)}return!0},S=function(){try{return t.navigator.cookieEnabled||"cookie"in c&&(c.cookie.length>0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),E=function(t,n){if(r(n))return!1;if((s(n)||o(n))&&(n=l(n)),!S)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var i="",a=new Date,u="";if(null===n?(a.setTime(a.getTime()+-864e5),i="; expires="+a.toGMTString(),n=""):0!==g.expiry&&(a.setTime(a.getTime()+24*g.expiry*60*60*1e3),i="; expires="+a.toGMTString()),t){var h="; path="+g.path;g.domain&&(u="; domain="+g.domain),c.cookie=y(t)+"="+encodeURIComponent(n)+i+h+u}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},C=function(t){if(!S)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=c.cookie&&c.cookie.split(";")||[],r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(y(t)+"=")){var o=decodeURIComponent(i.substring(f.length+t.length+1,i.length));try{var s=JSON.parse(o);return u(s)}catch(e){return o}}}return null},A=function(e){E(e,null)},T=function(){for(var e=null,t=f.length,n=c.cookie.split(";"),r=0;r<n.length;r++){for(e=n[r];" "===e.charAt(0);)e=e.substring(1,e.length);var i=e.substring(t,e.indexOf("="));A(i)}};return{isSupported:b,getStorageType:function(){return v},set:$,add:$,get:w,keys:function(){if(!b)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;var t=f.length,n=[];for(var r in p)if(r.substr(0,t)===f)try{n.push(r.substr(t))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return n},remove:x,clearAll:function(t){t=t||"";var n=f.slice(0,-1),r=new RegExp(n+"."+t);if(!b||"cookie"===d.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),T();var i=f.length;for(var o in p)if(r.test(o))try{x(o.substr(i))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),T()}return!0},bind:function(e,t,r,i){var s=w(i=i||t);return null===s&&n(r)?s=r:o(s)&&o(r)&&(s=a(r,s)),h(t).assign(e,s),e.$watch(t,(function(e){$(i,e)}),o(e[t]))},deriveKey:y,length:function(){for(var e=0,n=t[v],r=0;r<n.length;r++)0===n.key(r).indexOf(f)&&e++;return e},cookie:{isSupported:S,set:E,add:E,get:C,remove:A,clearAll:T}}}]}))}(window,window.angular)},436:function(e,t){!function(e,t,n){"use strict";function r(e){var t,n={};for(e=e.split(","),t=0;t<e.length;t++)n[e[t]]=!0;return n}function i(e){if(!e)return"";var t=T.exec(e);e=t[1];var n=t[3];return(t=t[2])&&(A.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in A?A.textContent:A.innerText),e+t+n}function o(e){return e.replace(/&/g,"&amp;").replace(m,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+((e=e.charCodeAt(1))-56320)+65536)+";"})).replace(v,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,s,a){e=t.lowercase(e),!r&&x[e]&&(r=e),r||!0!==S[e]||(i("<"),i(e),t.forEach(s,(function(r,s){var a=t.lowercase(s),l="img"===e&&"src"===a||"background"===a;!0!==C[a]||!0===E[a]&&!n(r,l)||(i(" "),i(s),i('="'),i(o(r)),i('"'))})),i(a?"/>":">"))},end:function(e){e=t.lowercase(e),r||!0!==S[e]||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(o(e))}}}var a=t.$$minErr("$sanitize"),l=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,u=/^<\/\s*([\w:-]+)[^>]*>/,c=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,h=/^</,p=/^<\//,d=/\x3c!--(.*?)--\x3e/g,f=/<!DOCTYPE([^>]*?)>/i,g=/<!\[CDATA\[(.*?)]]\x3e/g,m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/([^\#-~| |!])/g,y=r("area,br,col,hr,img,wbr");e=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n=r("rp,rt");var b=t.extend({},n,e),$=t.extend({},e,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),w=t.extend({},n,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));e=r("animate,animateColor,animateMotion,animateTransform,circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,set,stop,svg,switch,text,title,tspan,use");var x=r("script,style"),S=t.extend({},y,$,w,b,e),E=r("background,cite,href,longdesc,src,usemap,xlink:href");e=r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"),n=r("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan");var C=t.extend({},E,n,e),A=document.createElement("pre"),T=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",(function(){this.$get=["$$sanitizeUri",function(e){return function(n){var r=[];return function(e,n){function r(e,r,s,a){if(r=t.lowercase(r),$[r])for(;S.last()&&w[S.last()];)o("",S.last());b[r]&&S.last()==r&&o("",r),(a=y[r]||!!a)||S.push(r);var l={};s.replace(c,(function(e,t,n,r,o){l[t]=i(n||r||o||"")})),n.start&&n.start(r,l,a)}function o(e,r){var i,o=0;if(r=t.lowercase(r))for(o=S.length-1;0<=o&&S[o]!=r;o--);if(0<=o){for(i=S.length-1;i>=o;i--)n.end&&n.end(S[i]);S.length=o}}"string"!=typeof e&&(e=null==e?"":""+e);var s,m,v,S=[],E=e;for(S.last=function(){return S[S.length-1]};e;){if(v="",m=!0,S.last()&&x[S.last()]?(e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+S.last()+"[^>]*>","i"),(function(e,t){return t=t.replace(d,"$1").replace(g,"$1"),n.chars&&n.chars(i(t)),""})),o(0,S.last())):(0===e.indexOf("\x3c!--")?0<=(s=e.indexOf("--",4))&&e.lastIndexOf("--\x3e",s)===s&&(n.comment&&n.comment(e.substring(4,s)),e=e.substring(s+3),m=!1):f.test(e)?(s=e.match(f))&&(e=e.replace(s[0],""),m=!1):p.test(e)?(s=e.match(u))&&(e=e.substring(s[0].length),s[0].replace(u,o),m=!1):h.test(e)&&((s=e.match(l))?(s[4]&&(e=e.substring(s[0].length),s[0].replace(l,r)),m=!1):(v+="<",e=e.substring(1))),m&&(v+=0>(s=e.indexOf("<"))?e:e.substring(0,s),e=0>s?"":e.substring(s),n.chars&&n.chars(i(v)))),e==E)throw a("badparse",e);E=e}o()}(n,s(r,(function(t,n){return!/^unsafe/.test(e(t,n))}))),r.join("")}}]})),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/,r=/^mailto:/;return function(i,o){function a(e){e&&d.push(function(e){var n=[];return s(n,t.noop).chars(e),n.join("")}(e))}function l(e,n){d.push("<a "),t.isDefined(o)&&d.push('target="',o,'" '),d.push('href="',e.replace(/"/g,"&quot;"),'">'),a(n),d.push("</a>")}if(!i)return i;for(var u,c,h,p=i,d=[];u=p.match(n);)c=u[0],u[2]||u[4]||(c=(u[3]?"http://":"mailto:")+c),h=u.index,a(p.substr(0,h)),l(c,u[0].replace(r,"")),p=p.substring(h+u[0].length);return a(p),e(d.join(""))}}])}(window,window.angular)},437:function(e,t,n){n(438),e.exports="toastr"},438:function(e,t){!function(){"use strict";function e(e,t,n,r,i,o,s){var a,l=0,u=[],c="",h={},p=s.defer();return{active:function(){return u.length},clear:function(e){if(1===arguments.length&&!e)return;if(e)d(e.toastId);else for(var t=0;t<u.length;t++)d(u[t].toastId)},error:function(e,t,n){return f(g().iconClasses.error,e,t,n)},info:function(e,t,n){return f(g().iconClasses.info,e,t,n)},remove:d,success:function(e,t,n){return f(g().iconClasses.success,e,t,n)},warning:function(e,t,n){return f(g().iconClasses.warning,e,t,n)},refreshTimer:function(e,t){e&&e.isOpened&&u.indexOf(e)>=0&&e.scope.refreshTimer(t)}};function d(t,n){var r=function(e){for(var t=0;t<u.length;t++)if(u[t].toastId===e)return u[t]}(t);r&&!r.deleting&&(r.deleting=!0,r.isOpened=!1,e.leave(r.el).then((function(){r.scope.options.onHidden&&r.scope.options.onHidden(!!n,r),r.scope.$destroy();var e=u.indexOf(r);delete h[r.scope.message],u.splice(e,1);var t=o.maxOpened;t&&u.length>=t&&u[t-1].open.resolve(),u.length||(a.remove(),a=null,p=s.defer())})))}function f(n,o,f,m){return angular.isObject(f)&&(m=f,f=null),function(n){var o=g();if(function(){var e=o.preventDuplicates&&n.message===c,t=o.preventOpenDuplicates&&h[n.message];if(e||t)return!0;return c=n.message,h[n.message]=!0,!1}())return;var f=function(){var e={toastId:l++,isOpened:!1,scope:r.$new(),open:s.defer()};e.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(o,function(e){for(var t=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,r=t.length;n<r;n++)delete e[t[n]];return e}(n.optionsOverride)),e.iconClass=n.optionsOverride.iconClass||e.iconClass);return function(e,t,n){n.allowHtml?(e.scope.allowHtml=!0,e.scope.title=i.trustAsHtml(t.title),e.scope.message=i.trustAsHtml(t.message)):(e.scope.title=t.title,e.scope.message=t.message);e.scope.toastType=e.iconClass,e.scope.toastId=e.toastId,e.scope.extraData=n.extraData,e.scope.options={extendedTimeOut:n.extendedTimeOut,messageClass:n.messageClass,onHidden:n.onHidden,onShown:r("onShown"),onTap:r("onTap"),progressBar:n.progressBar,tapToDismiss:n.tapToDismiss,timeOut:n.timeOut,titleClass:n.titleClass,toastClass:n.toastClass},n.closeButton&&(e.scope.options.closeHtml=n.closeHtml);function r(t){if(n[t])return function(){n[t](e)}}}(e,n,o),e.el=function(e){var n=angular.element("<div toast></div>");return t.get("$compile")(n)(e)}(e.scope),e}();if(u.push(f),function(){return o.autoDismiss&&o.maxOpened&&u.length>o.maxOpened}())for(var m=u.slice(0,u.length-o.maxOpened),v=0,y=m.length;v<y;v++)d(m[v].toastId);(o.maxOpened&&u.length<=o.maxOpened||!o.maxOpened)&&f.open.resolve();return f.open.promise.then((function(){(function(t){if(a)return p.promise;(a=angular.element("<div></div>")).attr("id",t.containerId),a.addClass(t.positionClass),a.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(t.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return e.enter(a,n).then((function(){p.resolve()})),p.promise})(o).then((function(){if(f.isOpened=!0,o.newestOnTop)e.enter(f.el,a).then((function(){f.scope.init()}));else{var t=a[0].lastChild?angular.element(a[0].lastChild):null;e.enter(f.el,a,t).then((function(){f.scope.init()}))}}))})),f}({iconClass:n,message:o,optionsOverride:m,title:f})}function g(){return angular.extend({},o)}}angular.module("toastr",[]).factory("toastr",e),e.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"<button>&times;</button>",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function e(e){return{require:"^toast",templateUrl:function(){return e.templates.progressbar},link:function(e,t,n,r){var i,o,s;function a(){var e=(s-(new Date).getTime())/o*100;t.css("width",e+"%")}r.progressBar=e,e.start=function(e){i&&clearInterval(i),o=parseFloat(e),s=(new Date).getTime()+o,i=setInterval(a,10)},e.stop=function(){i&&clearInterval(i)},e.$on("$destroy",(function(){clearInterval(i)}))}}}angular.module("toastr").directive("progressBar",e),e.$inject=["toastrConfig"]}(),function(){"use strict";angular.module("toastr").controller("ToastController",(function(){this.progressBar=null,this.startProgressBar=function(e){this.progressBar&&this.progressBar.start(e)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}))}(),function(){"use strict";function e(e,t,n,r){return{templateUrl:function(){return n.templates.toast},controller:"ToastController",link:function(n,i,o,s){var a;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,function(){return n.options.closeHtml}()){var l=angular.element(n.options.closeHtml),u=e.get("$compile");l.addClass("toast-close-button"),l.attr("ng-click","close(true, $event)"),u(l)(n),i.children().prepend(l)}function c(e){return s.startProgressBar(e),t((function(){s.stopProgressBar(),r.remove(n.toastId)}),e,1)}n.init=function(){n.options.timeOut&&(a=c(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",(function(){n.progressBar=!1,s.stopProgressBar(),a&&t.cancel(a)})),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(e,t){t&&angular.isFunction(t.stopPropagation)&&t.stopPropagation(),r.remove(n.toastId,e)},n.refreshTimer=function(e){a&&(t.cancel(a),a=c(e||n.options.timeOut))},i.on("mouseleave",(function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply((function(){n.progressBar=n.options.progressBar})),a=c(n.options.extendedTimeOut))}))}}}angular.module("toastr").directive("toast",e),e.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(e){e.put("directives/progressbar/progressbar.html",'<div class="toast-progress"></div>\n'),e.put("directives/toast/toast.html",'<div class="{{toastClass}} {{toastType}}" ng-click="tapToast()">\n <div ng-switch on="allowHtml">\n <div ng-switch-default ng-if="title" class="{{titleClass}}" aria-label="{{title}}">{{title}}</div>\n <div ng-switch-default class="{{messageClass}}" aria-label="{{message}}">{{message}}</div>\n <div ng-switch-when="true" ng-if="title" class="{{titleClass}}" ng-bind-html="title"></div>\n <div ng-switch-when="true" class="{{messageClass}}" ng-bind-html="message"></div>\n </div>\n <progress-bar ng-if="progressBar"></progress-bar>\n</div>\n')}])},439:function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$injector",function(e,t){var n=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,r,i){function o(){r.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),n?n(r,{addClass:"in",easing:"ease",to:{height:r[0].scrollHeight+"px"}}).start().finally(s):e.addClass(r,"in",{to:{height:r[0].scrollHeight+"px"}}).then(s)}function s(){r.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function a(){return r.hasClass("collapse")||r.hasClass("in")?(r.css({height:r[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(n?n(r,{removeClass:"in",to:{height:"0"}}).start().finally(l):e.removeClass(r,"in",{to:{height:"0"}}).then(l))):l()}function l(){r.css({height:"0"}),r.removeClass("collapsing").addClass("collapse")}t.$watch(i.uibCollapse,(function(e){e?a():o()}))}}}]),angular.module("ui.bootstrap.collapse").value("$collapseSuppressWarning",!1).directive("collapse",["$animate","$injector","$log","$collapseSuppressWarning",function(e,t,n,r){var i=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,o,s){function a(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(o,{easing:"ease",to:{height:o[0].scrollHeight+"px"}}).start().done(l):e.animate(o,{},{height:o[0].scrollHeight+"px"}).then(l)}function l(){o.removeClass("collapsing").addClass("collapse in").css({height:"auto"})}function u(){return o.hasClass("collapse")||o.hasClass("in")?(o.css({height:o[0].scrollHeight+"px"}).removeClass("collapse in").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(i?i(o,{to:{height:"0"}}).start().done(c):e.animate(o,{},{height:"0"}).then(c))):c()}function c(){o.css({height:"0"}),o.removeClass("collapsing").addClass("collapse")}r||n.warn("collapse is now deprecated. Use uib-collapse instead."),t.$watch(s.collapse,(function(e){e?u():a()}))}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(e){e!==r&&(e.isOpen=!1)}))},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",(function(n){t.removeGroup(e)}))},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",(function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"}}})).directive("uibAccordionGroup",(function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass,e.$watch("isOpen",(function(n){t.toggleClass(e.openClass,!!n),n&&r.closeOthers(e)})),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)}}}})).directive("uibAccordionHeading",(function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}})).directive("uibAccordionTransclude",(function(){return{require:["?^uibAccordionGroup","?^accordionGroup"],link:function(e,t,n,r){r=r[0]?r[0]:r[1],e.$watch((function(){return r[n.uibAccordionTransclude]}),(function(e){e&&(t.find("span").html(""),t.find("span").append(e))}))}}})),angular.module("ui.bootstrap.accordion").value("$accordionSuppressWarning",!1).controller("AccordionController",["$scope","$attrs","$controller","$log","$accordionSuppressWarning",function(e,t,n,r,i){i||r.warn("AccordionController is now deprecated. Use UibAccordionController instead."),angular.extend(this,n("UibAccordionController",{$scope:e,$attrs:t}))}]).directive("accordion",["$log","$accordionSuppressWarning",function(e,t){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"},link:function(){t||e.warn("accordion is now deprecated. Use uib-accordion instead.")}}}]).directive("accordionGroup",["$log","$accordionSuppressWarning",function(e,t){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(n,r,i,o){t||e.warn("accordion-group is now deprecated. Use uib-accordion-group instead."),o.addGroup(n),n.openClass=i.openClass||"panel-open",n.panelClass=i.panelClass,n.$watch("isOpen",(function(e){r.toggleClass(n.openClass,!!e),e&&o.closeOthers(n)})),n.toggleOpen=function(e){n.isDisabled||e&&32!==e.which||(n.isOpen=!n.isOpen)}}}}]).directive("accordionHeading",["$log","$accordionSuppressWarning",function(e,t){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,r,i,o,s){t||e.warn("accordion-heading is now deprecated. Use uib-accordion-heading instead."),o.setHeading(s(n,angular.noop))}}}]).directive("accordionTransclude",["$log","$accordionSuppressWarning",function(e,t){return{require:"^accordionGroup",link:function(n,r,i,o){t||e.warn("accordion-transclude is now deprecated. Use uib-accordion-transclude instead."),n.$watch((function(){return o[i.accordionTransclude]}),(function(e){e&&(r.find("span").html(""),r.find("span").append(e))}))}}}]),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,r){e.closeable=!!t.close;var i=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;i&&r((function(){e.close()}),parseInt(i,10))}]).directive("uibAlert",(function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}})),angular.module("ui.bootstrap.alert").value("$alertSuppressWarning",!1).controller("AlertController",["$scope","$attrs","$controller","$log","$alertSuppressWarning",function(e,t,n,r,i){i||r.warn("AlertController is now deprecated. Use UibAlertController instead."),angular.extend(this,n("UibAlertController",{$scope:e,$attrs:t}))}]).directive("alert",["$log","$alertSuppressWarning",function(e,t){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"},link:function(){t||e.warn("alert is now deprecated. Use uib-alert instead.")}}}]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",(function(){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,t,n,r){var i=r[0],o=r[1];t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(i.activeClass,angular.equals(o.$modelValue,e.$eval(n.uibBtnRadio)))},t.on(i.toggleEvent,(function(){if(!n.disabled){var r=t.hasClass(i.activeClass);(!r||angular.isDefined(n.uncheckable))&&e.$apply((function(){o.$setViewValue(r?null:e.$eval(n.uibBtnRadio)),o.$render()}))}}))}}})).directive("uibBtnCheckbox",(function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,r){function i(){return o(n.btnCheckboxTrue,!0)}function o(t,n){return angular.isDefined(t)?e.$eval(t):n}var s=r[0],a=r[1];t.find("input").css({display:"none"}),a.$render=function(){t.toggleClass(s.activeClass,angular.equals(a.$modelValue,i()))},t.on(s.toggleEvent,(function(){n.disabled||e.$apply((function(){a.$setViewValue(t.hasClass(s.activeClass)?o(n.btnCheckboxFalse,!1):i()),a.$render()}))}))}}})),angular.module("ui.bootstrap.buttons").value("$buttonsSuppressWarning",!1).controller("ButtonsController",["$controller","$log","$buttonsSuppressWarning",function(e,t,n){n||t.warn("ButtonsController is now deprecated. Use UibButtonsController instead."),angular.extend(this,e("UibButtonsController"))}]).directive("btnRadio",["$log","$buttonsSuppressWarning",function(e,t){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(n,r,i,o){t||e.warn("btn-radio is now deprecated. Use uib-btn-radio instead.");var s=o[0],a=o[1];r.find("input").css({display:"none"}),a.$render=function(){r.toggleClass(s.activeClass,angular.equals(a.$modelValue,n.$eval(i.btnRadio)))},r.bind(s.toggleEvent,(function(){if(!i.disabled){var e=r.hasClass(s.activeClass);(!e||angular.isDefined(i.uncheckable))&&n.$apply((function(){a.$setViewValue(e?null:n.$eval(i.btnRadio)),a.$render()}))}}))}}}]).directive("btnCheckbox",["$document","$log","$buttonsSuppressWarning",function(e,t,n){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(r,i,o,s){function a(){return u(o.btnCheckboxTrue,!0)}function l(){return u(o.btnCheckboxFalse,!1)}function u(e,t){var n=r.$eval(e);return angular.isDefined(n)?n:t}n||t.warn("btn-checkbox is now deprecated. Use uib-btn-checkbox instead.");var c=s[0],h=s[1];i.find("input").css({display:"none"}),h.$render=function(){i.toggleClass(c.activeClass,angular.equals(h.$modelValue,a()))},i.bind(c.toggleEvent,(function(){o.disabled||r.$apply((function(){h.$setViewValue(i.hasClass(c.activeClass)?l():a()),h.$render()}))})),i.on("keypress",(function(t){o.disabled||32!==t.which||e[0].activeElement!==i[0]||r.$apply((function(){h.$setViewValue(i.hasClass(c.activeClass)?l():a()),h.$render()}))}))}}}]),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$animate",function(e,t,n,r){function i(t,n,i){m||(angular.extend(t,{direction:i,active:!0}),angular.extend(h.currentSlide||{},{direction:i,active:!1}),r.enabled()&&!e.noTransition&&!e.$currentTransition&&t.$element&&h.slides.length>1&&(t.$element.data(f,t.direction),h.currentSlide&&h.currentSlide.$element&&h.currentSlide.$element.data(f,t.direction),e.$currentTransition=!0,d?r.on("addClass",t.$element,(function(t,n){"close"===n&&(e.$currentTransition=null,r.off("addClass",t))})):t.$element.one("$animate:close",(function(){e.$currentTransition=null}))),h.currentSlide=t,g=n,s())}function o(e){if(angular.isUndefined(p[e].index))return p[e];var t;for(p.length,t=0;t<p.length;++t)if(p[t].index==e)return p[t]}function s(){a();var t=+e.interval;!isNaN(t)&&t>0&&(u=n(l,t))}function a(){u&&(n.cancel(u),u=null)}function l(){var t=+e.interval;c&&!isNaN(t)&&t>0&&p.length?e.next():e.pause()}var u,c,h=this,p=h.slides=e.slides=[],d=angular.version.minor>=4,f="uib-slideDirection",g=-1;h.currentSlide=null;var m=!1;h.select=e.select=function(t,n){var r=e.indexOfSlide(t);void 0===n&&(n=r>h.getCurrentIndex()?"next":"prev"),t&&t!==h.currentSlide&&!e.$currentTransition&&i(t,r,n)},e.$on("$destroy",(function(){m=!0})),h.getCurrentIndex=function(){return h.currentSlide&&angular.isDefined(h.currentSlide.index)?+h.currentSlide.index:g},e.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:p.indexOf(e)},e.next=function(){var t=(h.getCurrentIndex()+1)%p.length;return 0===t&&e.noWrap()?void e.pause():h.select(o(t),"next")},e.prev=function(){var t=h.getCurrentIndex()-1<0?p.length-1:h.getCurrentIndex()-1;return e.noWrap()&&t===p.length-1?void e.pause():h.select(o(t),"prev")},e.isActive=function(e){return h.currentSlide===e},e.$watch("interval",s),e.$watchCollection("slides",(function(t){t.length||(e.$currentTransition=null)})),e.$on("$destroy",a),e.play=function(){c||(c=!0,s())},e.pause=function(){e.noPause||(c=!1,a())},h.addSlide=function(t,n){t.$element=n,p.push(t),1===p.length||t.active?(h.select(p[p.length-1]),1===p.length&&e.play()):t.active=!1},h.removeSlide=function(e){angular.isDefined(e.index)&&p.sort((function(e,t){return+e.index>+t.index}));var t=p.indexOf(e);p.splice(t,1),p.length>0&&e.active?t>=p.length?h.select(p[t-1]):h.select(p[t]):g>t&&g--,0===p.length&&(h.currentSlide=null)},e.$watch("noTransition",(function(e){t.data("uib-noTransition",e)}))}]).directive("uibCarousel",[function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("uibSlide",(function(){return{require:"^uibCarousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t),e.$on("$destroy",(function(){r.removeSlide(e)})),e.$watch("active",(function(t){t&&r.select(e)}))}}})).animation(".item",["$injector","$animate",function(e,t){function n(e,t,n){e.removeClass(t),n&&n()}var r="uib-noTransition",i="uib-slideDirection",o=null;return e.has("$animateCss")&&(o=e.get("$animateCss")),{beforeAddClass:function(e,s,a){if("active"==s&&e.parent()&&e.parent().parent()&&!e.parent().parent().data(r)){var l=!1,u=e.data(i),c="next"==u?"left":"right",h=n.bind(this,e,c+" "+u,a);return e.addClass(u),o?o(e,{addClass:c}).start().done(h):t.addClass(e,c).then((function(){l||h(),a()})),function(){l=!0}}a()},beforeRemoveClass:function(e,s,a){if("active"===s&&e.parent()&&e.parent().parent()&&!e.parent().parent().data(r)){var l=!1,u="next"==e.data(i)?"left":"right",c=n.bind(this,e,u,a);return o?o(e,{addClass:u}).start().done(c):t.addClass(e,u).then((function(){l||c(),a()})),function(){l=!0}}a()}}}]),angular.module("ui.bootstrap.carousel").value("$carouselSuppressWarning",!1).controller("CarouselController",["$scope","$element","$controller","$log","$carouselSuppressWarning",function(e,t,n,r,i){i||r.warn("CarouselController is now deprecated. Use UibCarouselController instead."),angular.extend(this,n("UibCarouselController",{$scope:e,$element:t}))}]).directive("carousel",["$log","$carouselSuppressWarning",function(e,t){return{transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"},link:function(){t||e.warn("carousel is now deprecated. Use uib-carousel instead.")}}}]).directive("slide",["$log","$carouselSuppressWarning",function(e,t){return{require:"^carousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(n,r,i,o){t||e.warn("slide is now deprecated. Use uib-slide instead."),o.addSlide(n,r),n.$on("$destroy",(function(){o.removeSlide(n)})),n.$watch("active",(function(e){e&&o.select(n)}))}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(e,t,n){function r(e){var t=[],r=e.split("");return angular.forEach(o,(function(n,i){var o=e.indexOf(i);if(o>-1){e=e.split(""),r[o]="("+n.regex+")",e[o]="$";for(var s=o+1,a=o+i.length;a>s;s++)r[s]="",e[s]="$";e=e.join(""),t.push({index:o,apply:n.apply})}})),{regex:new RegExp("^"+r.join("")+"$"),map:n(t,"index")}}var i,o,s=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){i=t.id,this.parsers={},o={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},hh:{regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},h:{regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e}},mm:{regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},sss:{regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},ss:{regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}},a:{regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)}}}},this.init(),this.parse=function(n,o,a){if(!angular.isString(n)||!o)return n;o=(o=t.DATETIME_FORMATS[o]||o).replace(s,"\\$&"),t.id!==i&&this.init(),this.parsers[o]||(this.parsers[o]=r(o));var l=this.parsers[o],u=l.regex,c=l.map,h=n.match(u);if(h&&h.length){var p,d;angular.isDate(a)&&!isNaN(a.getTime())?p={year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),milliseconds:a.getMilliseconds()}:(a&&e.warn("dateparser:","baseDate is not a valid date"),p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var f=1,g=h.length;g>f;f++){var m=c[f-1];m.apply&&m.apply.call(p,h[f])}return function(e,t,n){return!(1>n)&&(1===t&&n>28?29===n&&(e%4==0&&e%100!=0||e%400==0):3!==t&&5!==t&&8!==t&&10!==t||31>n)}(p.year,p.month,p.date)&&(angular.isDate(a)&&!isNaN(a.getTime())?(d=new Date(a)).setFullYear(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0):d=new Date(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0)),d}}}]),angular.module("ui.bootstrap.dateparser").value("$dateParserSuppressWarning",!1).service("dateParser",["$log","$dateParserSuppressWarning","uibDateParser",function(e,t,n){t||e.warn("dateParser is now deprecated. Use uibDateParser instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){function n(e){return"static"===(function(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}(e,"position")||"static")}var r=function(t){for(var r=e[0],i=t.offsetParent||r;i&&i!==r&&n(i);)i=i.offsetParent;return i||r};return{position:function(t){var n=this.offset(t),i={top:0,left:0},o=r(t[0]);o!=e[0]&&((i=this.offset(angular.element(o))).top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var s=t[0].getBoundingClientRect();return{width:s.width||t.prop("offsetWidth"),height:s.height||t.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i,o,s,a,l=n.split("-"),u=l[0],c=l[1]||"center";i=r?this.offset(e):this.position(e),o=t.prop("offsetWidth"),s=t.prop("offsetHeight");var h={center:function(){return i.left+i.width/2-o/2},left:function(){return i.left},right:function(){return i.left+i.width}},p={center:function(){return i.top+i.height/2-s/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(u){case"right":a={top:p[c](),left:h[u]()};break;case"left":a={top:p[c](),left:i.left-o};break;case"bottom":a={top:p[u](),left:h[c]()};break;default:a={top:i.top-s,left:h[c]()}}return a}}}]),angular.module("ui.bootstrap.position").value("$positionSuppressWarning",!1).service("$position",["$log","$positionSuppressWarning","$uibPosition",function(e,t,n){t||e.warn("$position is now deprecated. Use $uibPosition instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError",function(e,t,n,r,i,o,s,a){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){l[n]=angular.isDefined(t[n])?6>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):s[n]})),angular.forEach(["minDate","maxDate"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(e){l[r]=e?new Date(e):null,l.refreshView()})):l[r]=s[r]?new Date(s[r]):null})),angular.forEach(["minMode","maxMode"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(n){l[r]=angular.isDefined(n)?n:t[r],e[r]=l[r],("minMode"==r&&l.modes.indexOf(e.datepickerMode)<l.modes.indexOf(l[r])||"maxMode"==r&&l.modes.indexOf(e.datepickerMode)>l.modes.indexOf(l[r]))&&(e.datepickerMode=l[r])})):(l[r]=s[r]||null,e[r]=l[r])})),e.datepickerMode=e.datepickerMode||s.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=e.$parent.$eval(t.initDate)||new Date,e.$parent.$watch(t.initDate,(function(e){e&&(u.$isEmpty(u.$modelValue)||u.$invalid)&&(l.activeDate=e,l.refreshView())}))):this.activeDate=new Date,e.isActive=function(t){return 0===l.compare(t.date,l.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){(u=e).$render=function(){l.render()}},this.render=function(){if(u.$viewValue){var e=new Date(u.$viewValue);!isNaN(e)?this.activeDate=e:a||i.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=u.$viewValue?new Date(u.$viewValue):null;u.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=u.$viewValue?new Date(u.$viewValue):null;return{date:e,label:o(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===l.minMode){var n=u.$viewValue?new Date(u.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),u.$setViewValue(n),u.$render()}else l.activeDate=t,e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=l.activeDate.getFullYear()+e*(l.step.years||0),n=l.activeDate.getMonth()+e*(l.step.months||0);l.activeDate.setFullYear(t,n,1),l.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===l.maxMode&&1===t||e.datepickerMode===l.minMode&&-1===t||(e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};e.$on("uib:datepicker.focus",(function(){l.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),l.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;e.select(l.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,t),l.refreshView()):e.toggleMode("up"===n?1:-1)}}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?o[t]:29}function i(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var o=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),o=0;t>o;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var t=this.activeDate.getFullYear(),r=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,r,1);var s=this.startingDay-o.getDay(),a=s>0?7-s:-s,l=new Date(o);a>0&&l.setDate(1-a);for(var u=this.getDates(l,42),c=0;42>c;c++)u[c]=angular.extend(this.createDateObject(u[c],this.formatDay),{secondary:u[c].getMonth()!==r,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var h=0;7>h;h++)e.labels[h]={abbr:n(u[h].date,this.formatDayHeader),full:n(u[h].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var p=(11-this.startingDay)%7,d=e.rows.length,f=0;d>f;f++)e.weekNumbers.push(i(e.rows[f][p].date))}},this.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(i,1),n=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,r=new Array(12),i=this.activeDate.getFullYear(),o=0;12>o;o++)(t=new Date(this.activeDate)).setFullYear(i,o,1),r[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(r,3)},this.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=3;else if("right"===e)n+=1;else if("down"===e)n+=3;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e){return parseInt((e-1)/i,10)*i+1}var i;this.element=t,this.yearpickerInit=function(){i=this.yearRange,this.step={years:i}},this._refreshView=function(){for(var t,n=new Array(i),o=0,s=r(this.activeDate.getFullYear());i>o;o++)(t=new Date(this.activeDate)).setFullYear(s+o,0,1),n[o]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+o});e.title=[n[0].label,n[i-1].label].join(" - "),e.rows=this.split(n,5)},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=5:"right"===e?n+=1:"down"===e?n+=5:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*this.step.years:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+i-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}})).directive("uibDaypicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/day.html"},require:["^?uibDatepicker","uibDaypicker","^?datepicker"],controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0]||r[2];r[1].init(i)}}})).directive("uibMonthpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/month.html"},require:["^?uibDatepicker","uibMonthpicker","^?datepicker"],controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0]||r[2];r[1].init(i)}}})).directive("uibYearpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/year.html"},require:["^?uibDatepicker","uibYearpicker","^?datepicker"],controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0]||r[2];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}})).constant("uibDatepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout",function(e,t,n,r,i,o,s,a,l,u,c,h){function p(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}function d(t){if(angular.isNumber(t)&&(t=new Date(t)),!t)return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var n=u.parse(t,v,e.date);return isNaN(n)?void 0:n}}function f(e,t){var r=e||t;if(!n.ngRequired&&!r)return!0;if(angular.isNumber(r)&&(r=new Date(r)),r){if(angular.isDate(r)&&!isNaN(r))return!0;if(angular.isString(r)){var i=u.parse(r,v);return!isNaN(i)}return!1}return!0}function g(n){var r=A[0],i=t[0].contains(n.target),o=void 0!==r.contains&&r.contains(n.target);!e.isOpen||i||o||e.$apply((function(){e.isOpen=!1}))}function m(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!1})),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!0})))}var v,y,b,$,w,x,S,E,C,A,T={},F=!1;e.watchData={},this.init=function(a){if(C=a,y=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):c.closeOnDateSelection,b=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):c.appendToBody,$=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):c.onOpenFocus,w=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:c.datepickerPopupTemplateUrl,x=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:c.datepickerTemplateUrl,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):c.showButtonBar,c.html5Types[n.type]?(v=c.html5Types[n.type],F=!0):(v=n.datepickerPopup||n.uibDatepickerPopup||c.datepickerPopup,n.$observe("uibDatepickerPopup",(function(e,t){var n=e||c.datepickerPopup;if(n!==v&&(v=n,C.$modelValue=null,!v))throw new Error("uibDatepickerPopup must have a date format specified.")}))),!v)throw new Error("uibDatepickerPopup must have a date format specified.");if(F&&n.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");if((S=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":w}),(E=angular.element(S.children()[0])).attr("template-url",x),F&&"month"===n.type&&(E.attr("datepicker-mode",'"month"'),E.attr("min-mode","month")),n.datepickerOptions){var h=e.$parent.$eval(n.datepickerOptions);h&&h.initDate&&(e.initDate=h.initDate,E.attr("init-date","initDate"),delete h.initDate),angular.forEach(h,(function(e,t){E.attr(p(t),e)}))}angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],(function(t){if(n[t]){var r=i(n[t]);if(e.$parent.$watch(r,(function(n){e.watchData[t]=n,("minDate"===t||"maxDate"===t)&&(T[t]=new Date(n))})),E.attr(p(t),"watchData."+t),"datepickerMode"===t){var o=r.assign;e.$watch("watchData."+t,(function(t,n){angular.isFunction(o)&&t!==n&&o(e.$parent,t)}))}}})),n.dateDisabled&&E.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),n.showWeeks&&E.attr("show-weeks",n.showWeeks),n.customClass&&E.attr("custom-class","customClass({ date: date, mode: mode })"),F?C.$formatters.push((function(t){return e.date=t,t})):(C.$$parserName="date",C.$validators.date=f,C.$parsers.unshift(d),C.$formatters.push((function(t){return e.date=t,C.$isEmpty(t)?t:l(t,v)}))),C.$viewChangeListeners.push((function(){e.date=u.parse(C.$viewValue,v,e.date)})),t.bind("keydown",m),A=r(S)(e),S.remove(),b?o.find("body").append(A):t.after(A),e.$on("$destroy",(function(){!0===e.isOpen&&(s.$$phase||e.$apply((function(){e.isOpen=!1}))),A.remove(),t.unbind("keydown",m),o.unbind("click",g)}))},e.getText=function(t){return e[t+"Text"]||c[t+"Text"]},e.isDisabled=function(t){return"today"===t&&(t=new Date),e.watchData.minDate&&e.compare(t,T.minDate)<0||e.watchData.maxDate&&e.compare(t,T.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){angular.isDefined(n)&&(e.date=n);var r=e.date?l(e.date,v):null;t.val(r),C.$setViewValue(r),y&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(e.isOpen=!1,t[0].focus())},e.select=function(t){if("today"===t){var n=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(n.getFullYear(),n.getMonth(),n.getDate()):t=new Date(n.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(){e.isOpen=!1,t[0].focus()},e.$watch("isOpen",(function(n){n?(e.position=b?a.offset(t):a.position(t),e.position.top=e.position.top+t.prop("offsetHeight"),h((function(){$&&e.$broadcast("uib:datepicker.focus"),o.bind("click",g)}),0,!1)):o.unbind("click",g)}))}]).directive("uibDatepickerPopup",(function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(e,t,n,r){var i=r[0];r[1].init(i)}}})).directive("uibDatepickerPopupWrap",(function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"}}})),angular.module("ui.bootstrap.datepicker").value("$datepickerSuppressWarning",!1).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","$datepickerSuppressWarning",function(e,t,n,r,i,o,s,a,l){l||i.warn("DatepickerController is now deprecated. Use UibDatepickerController instead.");var u=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){u[n]=angular.isDefined(t[n])?6>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):s[n]})),angular.forEach(["minDate","maxDate"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(e){u[r]=e?new Date(e):null,u.refreshView()})):u[r]=s[r]?new Date(s[r]):null})),angular.forEach(["minMode","maxMode"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(n){u[r]=angular.isDefined(n)?n:t[r],e[r]=u[r],("minMode"==r&&u.modes.indexOf(e.datepickerMode)<u.modes.indexOf(u[r])||"maxMode"==r&&u.modes.indexOf(e.datepickerMode)>u.modes.indexOf(u[r]))&&(e.datepickerMode=u[r])})):(u[r]=s[r]||null,e[r]=u[r])})),e.datepickerMode=e.datepickerMode||s.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=e.$parent.$eval(t.initDate)||new Date,e.$parent.$watch(t.initDate,(function(e){e&&(c.$isEmpty(c.$modelValue)||c.$invalid)&&(u.activeDate=e,u.refreshView())}))):this.activeDate=new Date,e.isActive=function(t){return 0===u.compare(t.date,u.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){(c=e).$render=function(){u.render()}},this.render=function(){if(c.$viewValue){var e=new Date(c.$viewValue);!isNaN(e)?this.activeDate=e:a||i.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=c.$viewValue?new Date(c.$viewValue):null;c.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=c.$viewValue?new Date(c.$viewValue):null;return{date:e,label:o(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},this.fixTimeZone=function(e){var t=e.getHours();e.setHours(23===t?t+2:0)},e.select=function(t){if(e.datepickerMode===u.minMode){var n=c.$viewValue?new Date(c.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),c.$setViewValue(n),c.$render()}else u.activeDate=t,e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=u.activeDate.getFullYear()+e*(u.step.years||0),n=u.activeDate.getMonth()+e*(u.step.months||0);u.activeDate.setFullYear(t,n,1),u.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===u.maxMode&&1===t||e.datepickerMode===u.minMode&&-1===t||(e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};e.$on("uib:datepicker.focus",(function(){u.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),u.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(u.isDisabled(u.activeDate))return;e.select(u.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(u.handleKeyDown(n,t),u.refreshView()):e.toggleMode("up"===n?1:-1)}}]).directive("datepicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(n,r,i,o){t||e.warn("datepicker is now deprecated. Use uib-datepicker instead.");var s=o[0],a=o[1];s.init(a)}}}]).directive("daypicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^datepicker","daypicker"],controller:"UibDaypickerController",link:function(n,r,i,o){t||e.warn("daypicker is now deprecated. Use uib-daypicker instead.");var s=o[0];o[1].init(s)}}}]).directive("monthpicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^datepicker","monthpicker"],controller:"UibMonthpickerController",link:function(n,r,i,o){t||e.warn("monthpicker is now deprecated. Use uib-monthpicker instead.");var s=o[0];o[1].init(s)}}}]).directive("yearpicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^datepicker","yearpicker"],controller:"UibYearpickerController",link:function(n,r,i,o){t||e.warn("yearpicker is now deprecated. Use uib-yearpicker instead.");var s=o[0];angular.extend(s,o[1]),s.yearpickerInit(),s.refreshView()}}}]).directive("datepickerPopup",["$log","$datepickerSuppressWarning",function(e,t){return{require:["ngModel","datepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(n,r,i,o){t||e.warn("datepicker-popup is now deprecated. Use uib-datepicker-popup instead.");var s=o[0];o[1].init(s)}}}]).directive("datepickerPopupWrap",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"},link:function(){t||e.warn("datepicker-popup-wrap is now deprecated. Use uib-datepicker-popup-wrap instead.")}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){n||(e.bind("click",r),e.bind("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t){n===t&&(n=null,e.unbind("click",r),e.unbind("keydown",i))};var r=function(e){if(n&&(!e||"disabled"!==n.getAutoClose())){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(n.focusToggleElement(),r()):n.isKeynavEnabled()&&/(38|40)/.test(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,r,i,o,s,a,l,u,c){var h,p,d=this,f=e.$new(),g=i.openClass,m=angular.noop,v=n.onToggle?r(n.onToggle):angular.noop,y=!1,b=!1;t.addClass("dropdown"),this.init=function(){n.isOpen&&(p=r(n.isOpen),m=p.assign,e.$watch(p,(function(e){f.isOpen=!!e}))),y=angular.isDefined(n.dropdownAppendToBody),b=angular.isDefined(n.uibKeyboardNav),y&&d.dropdownMenu&&(l.find("body").append(d.dropdownMenu),t.on("$destroy",(function(){d.dropdownMenu.remove()})))},this.toggle=function(e){return f.isOpen=arguments.length?!!e:!f.isOpen},this.isOpen=function(){return f.isOpen},f.getToggleElement=function(){return d.toggleElement},f.getAutoClose=function(){return n.autoClose||"always"},f.getElement=function(){return t},f.isKeynavEnabled=function(){return b},f.focusDropdownEntry=function(e){var n=d.dropdownMenu?angular.element(d.dropdownMenu).find("a"):angular.element(t).find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===n.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0;break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=n.length-1}n[d.selectedOption].focus()},f.getDropdownElement=function(){return d.dropdownMenu},f.focusToggleElement=function(){d.toggleElement&&d.toggleElement[0].focus()},f.$watch("isOpen",(function(n,r){if(y&&d.dropdownMenu){var i=a.positionElements(t,d.dropdownMenu,"bottom-left",!0),l={top:i.top+"px",display:n?"block":"none"};d.dropdownMenu.hasClass("dropdown-menu-right")?(l.left="auto",l.right=window.innerWidth-(i.left+t.prop("offsetWidth"))+"px"):(l.left=i.left+"px",l.right="auto"),d.dropdownMenu.css(l)}if(s[n?"addClass":"removeClass"](t,g).then((function(){angular.isDefined(n)&&n!==r&&v(e,{open:!!n})})),n)d.dropdownMenuTemplateUrl&&c(d.dropdownMenuTemplateUrl).then((function(e){h=f.$new(),u(e.trim())(h,(function(e){var t=e;d.dropdownMenu.replaceWith(t),d.dropdownMenu=t}))})),f.focusToggleElement(),o.open(f);else{if(d.dropdownMenuTemplateUrl){h&&h.$destroy();var p=angular.element('<ul class="dropdown-menu"></ul>');d.dropdownMenu.replaceWith(p),d.dropdownMenu=p}o.close(f),d.selectedOption=null}angular.isFunction(m)&&m(e,n)})),e.$on("$locationChangeSuccess",(function(){"disabled"!==f.getAutoClose()&&(f.isOpen=!1)}));var $=e.$on("$destroy",(function(){f.$destroy()}));f.$on("$destroy",$)}]).directive("uibDropdown",(function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}})).directive("uibDropdownMenu",(function(){return{restrict:"AC",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}})).directive("uibKeyboardNav",(function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){t.bind("keydown",(function(e){if(-1!==[38,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=r.dropdownMenu.find("a");switch(e.which){case 40:angular.isNumber(r.selectedOption)?r.selectedOption=r.selectedOption===t.length-1?r.selectedOption:r.selectedOption+1:r.selectedOption=0;break;case 38:angular.isNumber(r.selectedOption)?r.selectedOption=0===r.selectedOption?0:r.selectedOption-1:r.selectedOption=t.length-1}t[r.selectedOption].focus()}}))}}})).directive("uibDropdownToggle",(function(){return{require:"?^uibDropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply((function(){r.toggle()}))};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,(function(e){t.attr("aria-expanded",!!e)})),e.$on("$destroy",(function(){t.unbind("click",i)}))}}}})),angular.module("ui.bootstrap.dropdown").value("$dropdownSuppressWarning",!1).service("dropdownService",["$log","$dropdownSuppressWarning","uibDropdownService",function(e,t,n){t||e.warn("dropdownService is now deprecated. Use uibDropdownService instead."),angular.extend(this,n)}]).controller("DropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest","$log","$dropdownSuppressWarning",function(e,t,n,r,i,o,s,a,l,u,c,h,p){p||h.warn("DropdownController is now deprecated. Use UibDropdownController instead.");var d,f,g=this,m=e.$new(),v=i.openClass,y=angular.noop,b=n.onToggle?r(n.onToggle):angular.noop,$=!1,w=!1;t.addClass("dropdown"),this.init=function(){n.isOpen&&(f=r(n.isOpen),y=f.assign,e.$watch(f,(function(e){m.isOpen=!!e}))),$=angular.isDefined(n.dropdownAppendToBody),w=angular.isDefined(n.uibKeyboardNav),$&&g.dropdownMenu&&(l.find("body").append(g.dropdownMenu),t.on("$destroy",(function(){g.dropdownMenu.remove()})))},this.toggle=function(e){return m.isOpen=arguments.length?!!e:!m.isOpen},this.isOpen=function(){return m.isOpen},m.getToggleElement=function(){return g.toggleElement},m.getAutoClose=function(){return n.autoClose||"always"},m.getElement=function(){return t},m.isKeynavEnabled=function(){return w},m.focusDropdownEntry=function(e){var n=g.dropdownMenu?angular.element(g.dropdownMenu).find("a"):angular.element(t).find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(g.selectedOption)?g.selectedOption=g.selectedOption===n.length-1?g.selectedOption:g.selectedOption+1:g.selectedOption=0;break;case 38:angular.isNumber(g.selectedOption)?g.selectedOption=0===g.selectedOption?0:g.selectedOption-1:g.selectedOption=n.length-1}n[g.selectedOption].focus()},m.getDropdownElement=function(){return g.dropdownMenu},m.focusToggleElement=function(){g.toggleElement&&g.toggleElement[0].focus()},m.$watch("isOpen",(function(n,r){if($&&g.dropdownMenu){var i=a.positionElements(t,g.dropdownMenu,"bottom-left",!0),l={top:i.top+"px",display:n?"block":"none"};g.dropdownMenu.hasClass("dropdown-menu-right")?(l.left="auto",l.right=window.innerWidth-(i.left+t.prop("offsetWidth"))+"px"):(l.left=i.left+"px",l.right="auto"),g.dropdownMenu.css(l)}if(s[n?"addClass":"removeClass"](t,v).then((function(){angular.isDefined(n)&&n!==r&&b(e,{open:!!n})})),n)g.dropdownMenuTemplateUrl&&c(g.dropdownMenuTemplateUrl).then((function(e){d=m.$new(),u(e.trim())(d,(function(e){var t=e;g.dropdownMenu.replaceWith(t),g.dropdownMenu=t}))})),m.focusToggleElement(),o.open(m);else{if(g.dropdownMenuTemplateUrl){d&&d.$destroy();var h=angular.element('<ul class="dropdown-menu"></ul>');g.dropdownMenu.replaceWith(h),g.dropdownMenu=h}o.close(m),g.selectedOption=null}angular.isFunction(y)&&y(e,n)})),e.$on("$locationChangeSuccess",(function(){"disabled"!==m.getAutoClose()&&(m.isOpen=!1)}));var x=e.$on("$destroy",(function(){m.$destroy()}));m.$on("$destroy",x)}]).directive("dropdown",["$log","$dropdownSuppressWarning",function(e,t){return{controller:"DropdownController",link:function(n,r,i,o){t||e.warn("dropdown is now deprecated. Use uib-dropdown instead."),o.init()}}}]).directive("dropdownMenu",["$log","$dropdownSuppressWarning",function(e,t){return{restrict:"AC",require:"?^dropdown",link:function(n,r,i,o){if(o&&!angular.isDefined(i.dropdownNested)){t||e.warn("dropdown-menu is now deprecated. Use uib-dropdown-menu instead."),r.addClass("dropdown-menu");var s=i.templateUrl;s&&(o.dropdownMenuTemplateUrl=s),o.dropdownMenu||(o.dropdownMenu=r)}}}}]).directive("keyboardNav",["$log","$dropdownSuppressWarning",function(e,t){return{restrict:"A",require:"?^dropdown",link:function(n,r,i,o){t||e.warn("keyboard-nav is now deprecated. Use uib-keyboard-nav instead."),r.bind("keydown",(function(e){if(-1!==[38,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=o.dropdownMenu.find("a");switch(e.which){case 40:angular.isNumber(o.selectedOption)?o.selectedOption=o.selectedOption===t.length-1?o.selectedOption:o.selectedOption+1:o.selectedOption=0;break;case 38:angular.isNumber(o.selectedOption)?o.selectedOption=0===o.selectedOption?0:o.selectedOption-1:o.selectedOption=t.length-1}t[o.selectedOption].focus()}}))}}}]).directive("dropdownToggle",["$log","$dropdownSuppressWarning",function(e,t){return{require:"?^dropdown",link:function(n,r,i,o){if(t||e.warn("dropdown-toggle is now deprecated. Use uib-dropdown-toggle instead."),o){r.addClass("dropdown-toggle"),o.toggleElement=r;var s=function(e){e.preventDefault(),r.hasClass("disabled")||i.disabled||n.$apply((function(){o.toggle()}))};r.bind("click",s),r.attr({"aria-haspopup":!0,"aria-expanded":!1}),n.$watch(o.isOpen,(function(e){r.attr("aria-expanded",!!e)})),n.$on("$destroy",(function(){r.unbind("click",s)}))}}}}]),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",(function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t==e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}})),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",(function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map((function(t){return{key:t,value:e[t]}}))},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var r=e[t];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete e[t]}}}}}})).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function r(t,r,o){r.addClass("modal-backdrop"),o.modalInClass&&(i?i(r,{addClass:o.modalInClass}).start():e.addClass(r,o.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(t,n){var s=n();i?i(r,{removeClass:o.modalInClass}).start().then(s):e.removeClass(r,o.modalInClass).then(s)})))}var i=null;return t.has("$animateCss")&&(i=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$injector",function(e,t,n,r){var i=null;return r.has("$animateCss")&&(i=r.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,o,s){o.addClass(s.windowClass||""),o.addClass(s.windowTopClass||""),r.size=s.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},o.on("click",r.close),r.$isRendered=!0;var a=t.defer();s.$observe("modalRender",(function(e){"true"==e&&a.resolve()})),a.promise.then((function(){var a=null;s.modalInClass&&(a=i?i(o,{addClass:s.modalInClass}).start():n.addClass(o,s.modalInClass),r.$on(e.NOW_CLOSING_EVENT,(function(e,t){var r=t();i?i(o,{removeClass:s.modalInClass}).start().then(r):n.removeClass(o,s.modalInClass).then(r)}))),t.when(a).then((function(){var e=o[0].querySelector("[autofocus]");e?e.focus():o[0].focus()}));var l=e.getTop();l&&e.modalRendered(l.key)}))}}}]).directive("uibModalAnimationClass",(function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}})).directive("uibModalTransclude",(function(){return{link:function(e,t,n,r,i){i(e.$parent,(function(e){t.empty(),t.append(e)}))}}})).factory("$uibModalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(e,t,n,r,i,o,s,a,l){function u(){for(var e=-1,t=b.keys(),n=0;n<t.length;n++)b.get(t[n]).value.backdrop&&(e=n);return e}function c(e,t){var r=n.find("body").eq(0),i=b.get(e).value;b.remove(e),p(i.modalDomEl,i.modalScope,(function(){var t=i.openedClass||y;$.remove(t,e),r.toggleClass(t,$.hasKey(t)),h(!0)})),function(){if(g&&-1==u()){p(g,m,(function(){null})),g=void 0,m=void 0}}(),t&&t.focus?t.focus():r.focus()}function h(e){var t;b.length()>0&&(t=b.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function p(t,n,r){var i,s=null;return n.$broadcast(w.NOW_CLOSING_EVENT,(function(){return i||(i=o.defer(),s=i.promise),function(){i.resolve()}})),o.when(s).then((function i(){i.done||(i.done=!0,f?f(t,{event:"leave"}).start().then((function(){t.remove()})):e.leave(t),n.$destroy(),r&&r())}))}function d(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var f=null;s.has("$animateCss")&&(f=s.get("$animateCss"));var g,m,v,y="modal-open",b=l.createNew(),$=a.createNew(),w={NOW_CLOSING_EVENT:"modal.stack.now-closing"};return i.$watch(u,(function(e){m&&(m.index=e)})),n.bind("keydown",(function(e){if(e.isDefaultPrevented())return e;var t=b.top();if(t&&t.value.keyboard)switch(e.which){case 27:e.preventDefault(),i.$apply((function(){w.dismiss(t.key,"escape key press")}));break;case 9:w.loadFocusElementList(t);var n=!1;e.shiftKey?w.isFocusInFirstItem(e)&&(n=w.focusLastFocusableElement()):w.isFocusInLastItem(e)&&(n=w.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}})),w.open=function(e,t){var o=n[0].activeElement,s=t.openedClass||y;h(!1),b.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass}),$.put(s,e);var a=n.find("body").eq(0),l=u();if(l>=0&&!g){(m=i.$new(!0)).index=l;var c=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>');c.attr("backdrop-class",t.backdropClass),t.animation&&c.attr("modal-animation","true"),g=r(c)(m),a.append(g)}var p=angular.element('<div uib-modal-window="modal-window"></div>');p.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,"window-top-class":t.windowTopClass,size:t.size,index:b.length()-1,animate:"animate"}).html(t.content),t.animation&&p.attr("modal-animation","true");var d=r(p)(t.scope);b.top().value.modalDomEl=d,b.top().value.modalOpener=o,a.append(d),a.addClass(s),w.clearFocusListCache()},w.close=function(e,t){var n=b.get(e);return n&&d(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),c(e,n.value.modalOpener),!0):!n},w.dismiss=function(e,t){var n=b.get(e);return n&&d(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),c(e,n.value.modalOpener),!0):!n},w.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},w.getTop=function(){return b.top()},w.modalRendered=function(e){var t=b.get(e);t&&t.value.renderDeferred.resolve()},w.focusFirstFocusableElement=function(){return v.length>0&&(v[0].focus(),!0)},w.focusLastFocusableElement=function(){return v.length>0&&(v[v.length-1].focus(),!0)},w.isFocusInFirstItem=function(e){return v.length>0&&(e.target||e.srcElement)==v[0]},w.isFocusInLastItem=function(e){return v.length>0&&(e.target||e.srcElement)==v[v.length-1]},w.clearFocusListCache=function(){v=[],0},w.loadFocusElementList=function(e){if((void 0===v||!v.length)&&e){var t=e.value.modalDomEl;t&&t.length&&(v=t[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))}},w}]).provider("$uibModal",(function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$uibModalStack","$modalSuppressWarning","$log",function(t,n,r,i,o,s,a,l){function u(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function c(e){var n=[];return angular.forEach(e,(function(e){angular.isFunction(e)||angular.isArray(e)?n.push(r.when(t.invoke(e))):angular.isString(e)?n.push(r.when(t.get(e))):n.push(r.when(e))})),n}var h={},p=null;return h.getPromiseChain=function(){return p},h.open=function(t){function i(){return v}var h=r.defer(),d=r.defer(),f=r.defer(),g={result:h.promise,opened:d.promise,rendered:f.promise,close:function(e){return s.close(g,e)},dismiss:function(e){return s.dismiss(g,e)}};if((t=angular.extend({},e.options,t)).resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var m,v=r.all([u(t)].concat(c(t.resolve)));return m=p=r.all([p]).then(i,i).then((function(e){var r=(t.scope||n).$new();r.$close=g.close,r.$dismiss=g.dismiss,r.$on("$destroy",(function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")}));var i,u={},c=1;t.controller&&(u.$scope=r,u.$uibModalInstance=g,Object.defineProperty(u,"$modalInstance",{get:function(){return a||l.warn("$modalInstance is now deprecated. Use $uibModalInstance instead."),g}}),angular.forEach(t.resolve,(function(t,n){u[n]=e[c++]})),i=o(t.controller,u),t.controllerAs&&(t.bindToController&&angular.extend(i,r),r[t.controllerAs]=i)),s.open(g,{scope:r,deferred:h,renderDeferred:f,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowTopClass:t.windowTopClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size,openedClass:t.openedClass}),d.resolve(!0)}),(function(e){d.reject(e),h.reject(e)})).finally((function(){p===m&&(p=null)})),g},h}]};return e})),angular.module("ui.bootstrap.modal").value("$modalSuppressWarning",!1).directive("modalBackdrop",["$animate","$injector","$modalStack","$log","$modalSuppressWarning",function(e,t,n,r,i){function o(t,o,a){i||r.warn("modal-backdrop is now deprecated. Use uib-modal-backdrop instead."),o.addClass("modal-backdrop"),a.modalInClass&&(s?s(o,{addClass:a.modalInClass}).start():e.addClass(o,a.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(t,n){var r=n();s?s(o,{removeClass:a.modalInClass}).start().then(r):e.removeClass(o,a.modalInClass).then(r)})))}var s=null;return t.has("$animateCss")&&(s=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),o}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector","$log","$modalSuppressWarning",function(e,t,n,r,i,o){var s=null;return r.has("$animateCss")&&(s=r.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,a,l){o||i.warn("modal-window is now deprecated. Use uib-modal-window instead."),a.addClass(l.windowClass||""),a.addClass(l.windowTopClass||""),r.size=l.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},a.on("click",r.close),r.$isRendered=!0;var u=t.defer();l.$observe("modalRender",(function(e){"true"==e&&u.resolve()})),u.promise.then((function(){var i=null;l.modalInClass&&(i=s?s(a,{addClass:l.modalInClass}).start():n.addClass(a,l.modalInClass),r.$on(e.NOW_CLOSING_EVENT,(function(e,t){var r=t();s?s(a,{removeClass:l.modalInClass}).start().then(r):n.removeClass(a,l.modalInClass).then(r)}))),t.when(i).then((function(){var e=a[0].querySelector("[autofocus]");e?e.focus():a[0].focus()}));var o=e.getTop();o&&e.modalRendered(o.key)}))}}}]).directive("modalAnimationClass",["$log","$modalSuppressWarning",function(e,t){return{compile:function(n,r){t||e.warn("modal-animation-class is now deprecated. Use uib-modal-animation-class instead."),r.modalAnimation&&n.addClass(r.modalAnimationClass)}}}]).directive("modalTransclude",["$log","$modalSuppressWarning",function(e,t){return{link:function(n,r,i,o,s){t||e.warn("modal-transclude is now deprecated. Use uib-modal-transclude instead."),s(n.$parent,(function(e){r.empty(),r.append(e)}))}}}]).service("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap","$uibModalStack","$log","$modalSuppressWarning",function(e,t,n,r,i,o,s,a,l,u,c,h){h||c.warn("$modalStack is now deprecated. Use $uibModalStack instead."),angular.extend(this,u)}]).provider("$modal",["$uibModalProvider",function(e){angular.extend(this,e),this.$get=["$injector","$log","$modalSuppressWarning",function(t,n,r){return r||n.warn("$modal is now deprecated. Use $uibModal instead."),t.invoke(e.$get)}]}]),angular.module("ui.bootstrap.pagination",[]).controller("UibPaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},o=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(s,a){i=s,this.config=a,i.$render=function(){r.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),(function(t){r.itemsPerPage=parseInt(t,10),e.totalPages=r.calculateTotalPages()})):this.itemsPerPage=a.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=r.calculateTotalPages()})),e.$watch("totalPages",(function(t){o(e.$parent,t),e.page>t?e.selectPage(t):i.$render()}))},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(i.$viewValue,10)||1},e.selectPage=function(t,n){n&&n.preventDefault(),(!e.ngDisabled||!n)&&e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),i.$setViewValue(t),i.$render())},e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(n,r,i,o){function s(e,t,n){return{number:e,text:t,active:n}}var a=o[0],l=o[1];if(l){var u=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,c=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks,n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks,a.init(l,t),i.maxSize&&n.$parent.$watch(e(i.maxSize),(function(e){u=parseInt(e,10),a.render()}));var h=a.render;a.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(u)&&t>u;o&&(c?(i=(r=Math.max(e-Math.floor(u/2),1))+u-1)>t&&(r=(i=t)-u+1):(r=(Math.ceil(e/u)-1)*u+1,i=Math.min(r+u-1,t)));for(var a=r;i>=a;a++){var l=s(a,a,a===e);n.push(l)}if(o&&!c){if(r>1){var h=s(r-1,"...",!1);n.unshift(h)}if(t>i){var p=s(i+1,"...",!1);n.push(p)}}return n}(n.page,n.totalPages))}}}}}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(t,n,r,i){var o=i[0],s=i[1];s&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align,o.init(s,e))}}}]),angular.module("ui.bootstrap.pagination").value("$paginationSuppressWarning",!1).controller("PaginationController",["$scope","$attrs","$parse","$log","$paginationSuppressWarning",function(e,t,n,r,i){i||r.warn("PaginationController is now deprecated. Use UibPaginationController instead.");var o=this,s={$setViewValue:angular.noop},a=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(r,i){s=r,this.config=i,s.$render=function(){o.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),(function(t){o.itemsPerPage=parseInt(t,10),e.totalPages=o.calculateTotalPages()})):this.itemsPerPage=i.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=o.calculateTotalPages()})),e.$watch("totalPages",(function(t){a(e.$parent,t),e.page>t?e.selectPage(t):s.$render()}))},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(s.$viewValue,10)||1},e.selectPage=function(t,n){n&&n.preventDefault(),(!e.ngDisabled||!n)&&e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),s.$setViewValue(t),s.$render())},e.getText=function(t){return e[t+"Text"]||o.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).directive("pagination",["$parse","uibPaginationConfig","$log","$paginationSuppressWarning",function(e,t,n,r){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(i,o,s,a){function l(e,t,n){return{number:e,text:t,active:n}}r||n.warn("pagination is now deprecated. Use uib-pagination instead.");var u=a[0],c=a[1];if(c){var h=angular.isDefined(s.maxSize)?i.$parent.$eval(s.maxSize):t.maxSize,p=angular.isDefined(s.rotate)?i.$parent.$eval(s.rotate):t.rotate;i.boundaryLinks=angular.isDefined(s.boundaryLinks)?i.$parent.$eval(s.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(s.directionLinks)?i.$parent.$eval(s.directionLinks):t.directionLinks,u.init(c,t),s.maxSize&&i.$parent.$watch(e(s.maxSize),(function(e){h=parseInt(e,10),u.render()}));var d=u.render;u.render=function(){d(),i.page>0&&i.page<=i.totalPages&&(i.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(h)&&t>h;o&&(p?(i=(r=Math.max(e-Math.floor(h/2),1))+h-1)>t&&(r=(i=t)-h+1):(r=(Math.ceil(e/h)-1)*h+1,i=Math.min(r+h-1,t)));for(var s=r;i>=s;s++){var a=l(s,s,s===e);n.push(a)}if(o&&!p){if(r>1){var u=l(r-1,"...",!1);n.unshift(u)}if(t>i){var c=l(i+1,"...",!1);n.push(c)}}return n}(i.page,i.totalPages))}}}}}]).directive("pager",["uibPagerConfig","$log","$paginationSuppressWarning",function(e,t,n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(r,i,o,s){n||t.warn("pager is now deprecated. Use uib-pager instead.");var a=s[0],l=s[1];l&&(r.align=angular.isDefined(o.align)?r.$parent.$eval(o.align):e.align,a.init(l,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",(function(){var e={placement:"top",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(r,i,o,s,a,l,u,c,h){var p=h.createNew();return s.on("keypress",(function(e){if(27===e.which){var t=p.top();t&&(t.value.close(),p.removeTop(),t=null)}})),function(r,u,h,d){function f(e){var n=(e||d.trigger||h).split(" "),r=n.map((function(e){return t[e]||e}));return{show:n,hide:r}}d=angular.extend({},e,n,d);var g=function(e){return e.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()}))}(r),m=l.startSymbol(),v=l.endSymbol(),y="<div "+g+'-popup title="'+m+"title"+v+'" '+(d.useContentExp?'content-exp="contentExp()" ':'content="'+m+"content"+v+'" ')+'placement="'+m+"placement"+v+'" popup-class="'+m+"popupClass"+v+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block; top: -9999px; left: -9999px;"></div>';return{compile:function(e,t){var n=i(y);return function(e,t,i,l){function h(){I.isOpen?m():g()}function g(){(!R||e.$eval(i[u+"Enable"]))&&($(),function(){I.title=i[u+"Title"],I.content=_?_(e):i[r],I.popupClass=i[u+"Class"],I.placement=angular.isDefined(i[u+"Placement"])?i[u+"Placement"]:d.placement;var t=parseInt(i[u+"PopupDelay"],10),n=parseInt(i[u+"PopupCloseDelay"],10);I.popupDelay=isNaN(t)?d.popupDelay:t,I.popupCloseDelay=isNaN(n)?d.popupCloseDelay:n}(),I.popupDelay?A||(A=o(v,I.popupDelay,!1)):v())}function m(){y(),I.popupCloseDelay?T||(T=o(b,I.popupCloseDelay,!1)):b()}function v(){return y(),$(),I.content?(S||(E=I.$new(),S=n(E,(function(e){k?s.find("body").append(e):t.after(e)})),j.length=0,_?(j.push(e.$watch(_,(function(e){I.content=e,!e&&I.isOpen&&b()}))),j.push(E.$watch((function(){P||(P=!0,E.$$postDigest((function(){P=!1,I&&I.isOpen&&L()})))})))):j.push(i.$observe(r,(function(e){I.content=e,!e&&I.isOpen?b():L()}))),j.push(i.$observe(u+"Title",(function(e){I.title=e,I.isOpen&&L()}))),j.push(i.$observe(u+"Placement",(function(e){I.placement=e||d.placement,I.isOpen&&L()})))),void I.$evalAsync((function(){I.isOpen=!0,x(!0),L()}))):angular.noop}function y(){A&&(o.cancel(A),A=null),F&&(o.cancel(F),F=null)}function b(){y(),$(),I&&I.$evalAsync((function(){I.isOpen=!1,x(!1),I.animation?C||(C=o(w,150,!1)):w()}))}function $(){T&&(o.cancel(T),T=null),C&&(o.cancel(C),C=null)}function w(){j.length&&(angular.forEach(j,(function(e){e()})),j.length=0),C=null,S&&(S.remove(),S=null),E&&(E.$destroy(),E=null)}function x(t){O&&angular.isFunction(O.assign)&&O.assign(e,t)}var S,E,C,A,T,F,k=!!angular.isDefined(d.appendToBody)&&d.appendToBody,D=f(void 0),R=angular.isDefined(i[u+"Enable"]),I=e.$new(!0),P=!1,O=!!angular.isDefined(i[u+"IsOpen"])&&c(i[u+"IsOpen"]),_=!!d.useContentExp&&c(i[r]),j=[],L=function(){S&&S.html()&&(F||(F=o((function(){S.css({top:0,left:0});var e=a.positionElements(t,S,I.placement,k);e.top+="px",e.left+="px",e.visibility="visible",S.css(e),F=null}),0,!1)))};I.origScope=e,I.isOpen=!1,p.add(I,{close:b}),I.contentExp=function(){return I.content},i.$observe("disabled",(function(e){e&&y(),e&&I.isOpen&&b()})),O&&e.$watch(O,(function(e){I&&!e===I.isOpen&&h()}));var N=function(){D.show.forEach((function(e){t.unbind(e,g)})),D.hide.forEach((function(e){e.split(" ").forEach((function(e){t[0].removeEventListener(e,m)}))}))};!function(){var e=i[u+"Trigger"];N(),"none"!==(D=f(e)).show&&D.show.forEach((function(e,n){e===D.hide[n]?t[0].addEventListener(e,h):e&&(t[0].addEventListener(e,g),D.hide[n].split(" ").forEach((function(e){t[0].addEventListener(e,m)}))),t.on("keypress",(function(e){27===e.which&&m()}))}))}();var M=e.$eval(i[u+"Animation"]);I.animation=angular.isDefined(M)?!!M:d.animation;var B=e.$eval(i[u+"AppendToBody"]);(k=angular.isDefined(B)?B:k)&&e.$on("$locationChangeSuccess",(function(){I.isOpen&&b()})),e.$on("$destroy",(function(){y(),$(),N(),w(),p.remove(I),I=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,s){var a,l,u,c=i.$eval(s.tooltipTemplateTranscludeScope),h=0,p=function(){l&&(l.remove(),l=null),a&&(a.$destroy(),a=null),u&&(e.leave(u).then((function(){l=null})),l=u,u=null)};i.$watch(t.parseAsResourceUrl(s.uibTooltipTemplateTransclude),(function(t){var s=++h;t?(r(t,!0).then((function(r){if(s===h){var i=c.$new(),l=n(r)(i,(function(t){p(),e.enter(t,o)}));u=l,(a=i).$emit("$includeContentLoaded",t)}}),(function(){s===h&&(p(),i.$emit("$includeContentError",t))})),i.$emit("$includeContentRequested",t)):p()})),i.$on("$destroy",p)}}}]).directive("uibTooltipClasses",(function(){return{restrict:"A",link:function(e,t,n){e.placement&&t.addClass(e.placement),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}})).directive("uibTooltipPopup",(function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.tooltip").value("$tooltipSuppressWarning",!1).provider("$tooltip",["$uibTooltipProvider",function(e){angular.extend(this,e),this.$get=["$log","$tooltipSuppressWarning","$injector",function(t,n,r){return n||t.warn("$tooltip is now deprecated. Use $uibTooltip instead."),r.invoke(e.$get)}]}]).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest","$log","$tooltipSuppressWarning",function(e,t,n,r,i,o){return{link:function(s,a,l){o||i.warn("tooltip-template-transclude is now deprecated. Use uib-tooltip-template-transclude instead.");var u,c,h,p=s.$eval(l.tooltipTemplateTranscludeScope),d=0,f=function(){c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),h&&(e.leave(h).then((function(){c=null})),c=h,h=null)};s.$watch(t.parseAsResourceUrl(l.tooltipTemplateTransclude),(function(t){var i=++d;t?(r(t,!0).then((function(r){if(i===d){var o=p.$new(),s=n(r)(o,(function(t){f(),e.enter(t,a)}));h=s,(u=o).$emit("$includeContentLoaded",t)}}),(function(){i===d&&(f(),s.$emit("$includeContentError",t))})),s.$emit("$includeContentRequested",t)):f()})),s.$on("$destroy",f)}}}]).directive("tooltipClasses",["$log","$tooltipSuppressWarning",function(e,t){return{restrict:"A",link:function(n,r,i){t||e.warn("tooltip-classes is now deprecated. Use uib-tooltip-classes instead."),n.placement&&r.addClass(n.placement),n.popupClass&&r.addClass(n.popupClass),n.animation()&&r.addClass(i.tooltipAnimationClass)}}}]).directive("tooltipPopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(n,r){t||e.warn("tooltip-popup is now deprecated. Use uib-tooltip-popup instead."),r.addClass("tooltip")}}}]).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(n,r){t||e.warn("tooltip-template-popup is now deprecated. Use uib-tooltip-template-popup instead."),r.addClass("tooltip")}}}]).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(n,r){t||e.warn("tooltip-html-popup is now deprecated. Use uib-tooltip-html-popup instead."),r.addClass("tooltip")}}}]).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",(function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",(function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.popover").value("$popoverSuppressWarning",!1).directive("popoverTemplatePopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(n,r){t||e.warn("popover-template-popup is now deprecated. Use uib-popover-template-popup instead."),r.addClass("popover")}}}]).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverHtmlPopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(n,r){t||e.warn("popover-html-popup is now deprecated. Use uib-popover-html-popup instead."),r.addClass("popover")}}}]).directive("popoverHtml",["$tooltip",function(e){return e("popoverHtml","popover","click",{useContentExp:!0})}]).directive("popoverPopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(n,r){t||e.warn("popover-popup is now deprecated. Use uib-popover-popup instead."),r.addClass("popover")}}}]).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(e.max)?e.max:n.max,this.addBar=function(t,n,o){i||n.css({transition:"none"}),this.bars.push(t),t.max=e.max,t.title=o&&angular.isDefined(o.title)?o.title:"progressbar",t.$watch("value",(function(e){t.recalculatePercentage()})),t.recalculatePercentage=function(){var e=r.bars.reduce((function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent}),0);e>100&&(t.percent-=e-100)},t.$on("$destroy",(function(){n=null,r.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach((function(e){e.recalculatePercentage()}))},e.$watch("max",(function(t){r.bars.forEach((function(t){t.max=e.max,t.recalculatePercentage()}))}))}]).directive("uibProgress",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}})).directive("uibBar",(function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t,n)}}})).directive("uibProgressbar",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}})),angular.module("ui.bootstrap.progressbar").value("$progressSuppressWarning",!1).controller("ProgressController",["$scope","$attrs","uibProgressConfig","$log","$progressSuppressWarning",function(e,t,n,r,i){i||r.warn("ProgressController is now deprecated. Use UibProgressController instead.");var o=this,s=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(e.max)?e.max:n.max,this.addBar=function(t,n,r){s||n.css({transition:"none"}),this.bars.push(t),t.max=e.max,t.title=r&&angular.isDefined(r.title)?r.title:"progressbar",t.$watch("value",(function(e){t.recalculatePercentage()})),t.recalculatePercentage=function(){t.percent=+(100*t.value/t.max).toFixed(2);var e=o.bars.reduce((function(e,t){return e+t.percent}),0);e>100&&(t.percent-=e-100)},t.$on("$destroy",(function(){n=null,o.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)},e.$watch("max",(function(t){o.bars.forEach((function(t){t.max=e.max,t.recalculatePercentage()}))}))}]).directive("progress",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{max:"=?",title:"@?"},templateUrl:"template/progressbar/progress.html",link:function(){t||e.warn("progress is now deprecated. Use uib-progress instead.")}}}]).directive("bar",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,r,i,o){t||e.warn("bar is now deprecated. Use uib-bar instead."),o.addBar(n,r)}}}]).directive("progressbar",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,r,i,o){t||e.warn("progressbar is now deprecated. Use uib-progressbar instead."),o.addBar(n,angular.element(r.children()[0]),{title:i.title})}}}]),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var r={$setViewValue:angular.noop};this.init=function(i){(r=i).$render=this.render,r.$formatters.push((function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e})),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var o=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(o)&&o.length>0?o:n.titles;var s=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(s)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){!e.readonly&&t>=0&&t<=e.range.length&&(r.$setViewValue(r.$viewValue===t?0:t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue}}]).directive("uibRating",(function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}})),angular.module("ui.bootstrap.rating").value("$ratingSuppressWarning",!1).controller("RatingController",["$scope","$attrs","$controller","$log","$ratingSuppressWarning",function(e,t,n,r,i){i||r.warn("RatingController is now deprecated. Use UibRatingController instead."),angular.extend(this,n("UibRatingController",{$scope:e,$attrs:t}))}]).directive("rating",["$log","$ratingSuppressWarning",function(e,t){return{require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,r,i,o){t||e.warn("rating is now deprecated. Use uib-rating instead.");var s=o[0],a=o[1];s.init(a)}}}]),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var t,n=this,r=n.tabs=e.tabs=[];n.select=function(e){angular.forEach(r,(function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect(),e.selectCalled=!1)})),e.active=!0,e.selectCalled||(e.onSelect(),e.selectCalled=!0)},n.addTab=function(e){r.push(e),1===r.length&&!1!==e.active?e.active=!0:e.active?n.select(e):e.active=!1},n.removeTab=function(e){var i=r.indexOf(e);if(e.active&&r.length>1&&!t){var o=i==r.length-1?i-1:i+1;n.select(r[o])}r.splice(i,1)},e.$on("$destroy",(function(){t=!0}))}]).directive("uibTabset",(function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}})).directive("uibTab",["$parse",function(e){return{require:"^uibTabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(t,n,r,i,o){t.$watch("active",(function(e){e&&i.select(t)})),t.disabled=!1,r.disable&&t.$parent.$watch(e(r.disable),(function(e){t.disabled=!!e})),t.select=function(){t.disabled||(t.active=!0)},i.addTab(t),t.$on("$destroy",(function(){i.removeTab(t)})),t.$transcludeFn=o}}}]).directive("uibTabHeadingTransclude",(function(){return{restrict:"A",require:["?^uibTab","?^tab"],link:function(e,t){e.$watch("headingElement",(function(e){e&&(t.html(""),t.append(e))}))}}})).directive("uibTabContentTransclude",(function(){return{restrict:"A",require:["?^uibTabset","?^tabset"],link:function(e,t,n){var r=e.$eval(n.uibTabContentTransclude);r.$transcludeFn(r.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase()||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):r.headingElement=e}))}))}}})),angular.module("ui.bootstrap.tabs").value("$tabsSuppressWarning",!1).controller("TabsetController",["$scope","$controller","$log","$tabsSuppressWarning",function(e,t,n,r){r||n.warn("TabsetController is now deprecated. Use UibTabsetController instead."),angular.extend(this,t("UibTabsetController",{$scope:e}))}]).directive("tabset",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,r,i){t||e.warn("tabset is now deprecated. Use uib-tabset instead."),n.vertical=!!angular.isDefined(i.vertical)&&n.$parent.$eval(i.vertical),n.justified=!!angular.isDefined(i.justified)&&n.$parent.$eval(i.justified)}}}]).directive("tab",["$parse","$log","$tabsSuppressWarning",function(e,t,n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(r,i,o,s,a){n||t.warn("tab is now deprecated. Use uib-tab instead."),r.$watch("active",(function(e){e&&s.select(r)})),r.disabled=!1,o.disable&&r.$parent.$watch(e(o.disable),(function(e){r.disabled=!!e})),r.select=function(){r.disabled||(r.active=!0)},s.addTab(r),r.$on("$destroy",(function(){s.removeTab(r)})),r.$transcludeFn=a}}}]).directive("tabHeadingTransclude",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"A",require:"^tab",link:function(n,r){t||e.warn("tab-heading-transclude is now deprecated. Use uib-tab-heading-transclude instead."),n.$watch("headingElement",(function(e){e&&(r.html(""),r.append(e))}))}}}]).directive("tabContentTransclude",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"A",require:"^tabset",link:function(n,r,i){t||e.warn("tab-content-transclude is now deprecated. Use uib-tab-content-transclude instead.");var o=n.$eval(i.tabContentTransclude);o.$transcludeFn(o.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase())}(e)?r.append(e):o.headingElement=e}))}))}}}]),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(e,t,n,r,i,o,s){function a(){var t=parseInt(e.hours,10);return(e.showMeridian?t>0&&13>t:t>=0&&24>t)?(e.showMeridian&&(12===t&&(t=0),e.meridian===v[1]&&(t+=12)),t):void 0}function l(){var t=parseInt(e.minutes,10);return t>=0&&60>t?t:void 0}function u(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}function c(e){h(),m.$setViewValue(new Date(g)),p(e)}function h(){m.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1}function p(t){var n=g.getHours(),r=g.getMinutes();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:u(n),"m"!==t&&(e.minutes=u(r)),e.meridian=g.getHours()<12?v[0]:v[1]}function d(e,t){var n=new Date(e.getTime()+6e4*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes()),r}function f(e){g=d(g,e),c()}var g=new Date,m={$setViewValue:angular.noop},v=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):s.meridians||o.DATETIME_FORMATS.AMPMS;e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,r){(m=t).$render=this.render,m.$formatters.unshift((function(e){return e?new Date(e):null}));var i=r.eq(0),o=r.eq(1);(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):s.mousewheel)&&this.setupMousewheelEvents(i,o),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):s.arrowkeys)&&this.setupArrowkeyEvents(i,o),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):s.readonlyInput,this.setupInputEvents(i,o)};var y=s.hourStep;n.hourStep&&e.$parent.$watch(r(n.hourStep),(function(e){y=parseInt(e,10)}));var b,$,w=s.minuteStep;n.minuteStep&&e.$parent.$watch(r(n.minuteStep),(function(e){w=parseInt(e,10)})),e.$parent.$watch(r(n.min),(function(e){var t=new Date(e);b=isNaN(t)?void 0:t})),e.$parent.$watch(r(n.max),(function(e){var t=new Date(e);$=isNaN(t)?void 0:t})),e.noIncrementHours=function(){var e=d(g,60*y);return e>$||g>e&&b>e},e.noDecrementHours=function(){var e=d(g,60*-y);return b>e||e>g&&e>$},e.noIncrementMinutes=function(){var e=d(g,w);return e>$||g>e&&b>e},e.noDecrementMinutes=function(){var e=d(g,-w);return b>e||e>g&&e>$},e.noToggleMeridian=function(){return g.getHours()<13?d(g,720)>$:d(g,-720)<b},e.showMeridian=s.showMeridian,n.showMeridian&&e.$parent.$watch(r(n.showMeridian),(function(t){if(e.showMeridian=!!t,m.$error.time){var n=a(),r=l();angular.isDefined(n)&&angular.isDefined(r)&&(g.setHours(n),c())}else p()})),this.setupMousewheelEvents=function(t,n){var r=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementHours():e.decrementHours()),t.preventDefault()})),n.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}))},this.setupArrowkeyEvents=function(t,n){t.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply())})),n.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply())}))},this.setupInputEvents=function(t,n){if(e.readonlyInput)return e.updateHours=angular.noop,void(e.updateMinutes=angular.noop);var r=function(t,n){m.$setViewValue(null),m.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n)};e.updateHours=function(){var e=a(),t=l();angular.isDefined(e)&&angular.isDefined(t)?(g.setHours(e),b>g||g>$?r(!0):c("h")):r(!0)},t.bind("blur",(function(t){!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=u(e.hours)}))})),e.updateMinutes=function(){var e=l(),t=a();angular.isDefined(e)&&angular.isDefined(t)?(g.setMinutes(e),b>g||g>$?r(void 0,!0):c("m")):r(void 0,!0)},n.bind("blur",(function(t){!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=u(e.minutes)}))}))},this.render=function(){var t=m.$viewValue;isNaN(t)?(m.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(g=t),b>g||g>$?(m.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):h(),p())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):s.showSpinners,e.incrementHours=function(){e.noIncrementHours()||f(60*y)},e.decrementHours=function(){e.noDecrementHours()||f(60*-y)},e.incrementMinutes=function(){e.noIncrementMinutes()||f(w)},e.decrementMinutes=function(){e.noDecrementMinutes()||f(-w)},e.toggleMeridian=function(){e.noToggleMeridian()||f(720*(g.getHours()<12?1:-1))}}]).directive("uibTimepicker",(function(){return{restrict:"EA",require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}})),angular.module("ui.bootstrap.timepicker").value("$timepickerSuppressWarning",!1).controller("TimepickerController",["$scope","$element","$attrs","$controller","$log","$timepickerSuppressWarning",function(e,t,n,r,i,o){o||i.warn("TimepickerController is now deprecated. Use UibTimepickerController instead."),angular.extend(this,r("UibTimepickerController",{$scope:e,$element:t,$attrs:n}))}]).directive("timepicker",["$log","$timepickerSuppressWarning",function(e,t){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(n,r,i,o){t||e.warn("timepicker is now deprecated. Use uib-timepicker instead.");var s=o[0],a=o[1];a&&s.init(a,r.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","uibTypeaheadParser",function(e,t,n,r,i,o,s,a,l,u,c,h){function p(){_.moveInProgress||(_.moveInProgress=!0,_.$digest()),H&&s.cancel(H),H=s((function(){_.matches.length&&d(),_.moveInProgress=!1}),v)}function d(){_.position=F?c.offset(t):c.position(t),_.position.top+=t.prop("offsetHeight")}var f,g,m=[9,13,27,38,40],v=200,y=e.$eval(n.typeaheadMinLength);y||0===y||(y=1);var b,$,w=e.$eval(n.typeaheadWaitMs)||0,x=!1!==e.$eval(n.typeaheadEditable),S=i(n.typeaheadLoading).assign||angular.noop,E=i(n.typeaheadOnSelect),C=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),A=i(n.typeaheadNoResults).assign||angular.noop,T=n.typeaheadInputFormatter?i(n.typeaheadInputFormatter):void 0,F=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),k=n.typeaheadAppendToElementId||!1,D=!1!==e.$eval(n.typeaheadFocusFirst),R=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),I=i(n.ngModel),P=i(n.ngModel+"($$$p)"),O=h.parse(n.uibTypeahead),_=e.$new(),j=e.$on("$destroy",(function(){_.$destroy()}));_.$on("$destroy",j);var L="typeahead-"+_.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L});var N=angular.element("<div uib-typeahead-popup></div>");N.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(n.typeaheadTemplateUrl)&&N.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&N.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var M=function(){_.matches=[],_.activeIdx=-1,t.attr("aria-expanded",!1)},B=function(e){return L+"-option-"+e};_.$watch("activeIdx",(function(e){0>e?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",B(e))}));var H,U=function(n){var r={$viewValue:n};S(e,!0),A(e,!1),o.when(O.source(e,r)).then((function(i){var o=n===f.$viewValue;if(o&&b)if(i&&i.length>0){_.activeIdx=D?0:-1,A(e,!1),_.matches.length=0;for(var s=0;s<i.length;s++)r[O.itemName]=i[s],_.matches.push({id:B(s),label:O.viewMapper(_,r),model:i[s]});_.query=n,d(),t.attr("aria-expanded",!0),R&&1===_.matches.length&&function(e,t){return!!(_.matches.length>t&&e)&&e.toUpperCase()===_.matches[t].label.toUpperCase()}(n,0)&&_.select(0)}else M(),A(e,!0);o&&S(e,!1)}),(function(){M(),S(e,!1),A(e,!0)}))};F&&(angular.element(l).bind("resize",p),a.find("body").bind("scroll",p)),_.moveInProgress=!1,_.query=void 0;var V,q=function(){V&&s.cancel(V)};M(),_.select=function(r){var i,o,a={};$=!0,a[O.itemName]=o=_.matches[r].model,i=O.modelMapper(e,a),function(t,n){angular.isFunction(I(e))&&g&&g.$options&&g.$options.getterSetter?P(t,{$$$p:n}):I.assign(t,n)}(e,i),f.$setValidity("editable",!0),f.$setValidity("parse",!0),E(e,{$item:o,$model:i,$label:O.viewMapper(e,a)}),M(),!1!==_.$eval(n.typeaheadFocusOnSelect)&&s((function(){t[0].focus()}),0,!1)},t.bind("keydown",(function(e){if(0!==_.matches.length&&-1!==m.indexOf(e.which)){if(-1===_.activeIdx&&(9===e.which||13===e.which))return M(),void _.$digest();e.preventDefault(),40===e.which?(_.activeIdx=(_.activeIdx+1)%_.matches.length,_.$digest()):38===e.which?(_.activeIdx=(_.activeIdx>0?_.activeIdx:_.matches.length)-1,_.$digest()):13===e.which||9===e.which?_.$apply((function(){_.select(_.activeIdx)})):27===e.which&&(e.stopPropagation(),M(),_.$digest())}})),t.bind("blur",(function(){C&&_.matches.length&&-1!==_.activeIdx&&!$&&($=!0,_.$apply((function(){_.select(_.activeIdx)}))),b=!1,$=!1}));var z=function(e){t[0]!==e.target&&3!==e.which&&0!==_.matches.length&&(M(),u.$$phase||_.$digest())};a.bind("click",z),e.$on("$destroy",(function(){a.unbind("click",z),(F||k)&&K.remove(),F&&(angular.element(l).unbind("resize",p),a.find("body").unbind("scroll",p)),N.remove()}));var K=r(N)(_);F?a.find("body").append(K):!1!==k?angular.element(a[0].getElementById(k)).append(K):t.after(K),this.init=function(t,n){g=n,(f=t).$parsers.unshift((function(t){return b=!0,0===y||t&&t.length>=y?w>0?(q(),function(e){V=s((function(){U(e)}),w)}(t)):U(t):(S(e,!1),q(),M()),x?t:t?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),null)})),f.$formatters.push((function(t){var n,r={};return x||f.$setValidity("editable",!0),T?(r.$model=t,T(e,r)):(r[O.itemName]=t,n=O.viewMapper(e,r),r[O.itemName]=void 0,n!==O.viewMapper(e,r)?n:t)}))}}]).directive("uibTypeahead",(function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,r){r[2].init(r[0],r[1])}}})).directive("uibTypeaheadPopup",(function(){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return e.matches.length>0},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}})).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var s=n(o.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(s).then((function(e){t(e.trim())(r,(function(e){i.replaceWith(e)}))}))}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var r;return r=t.has("$sanitize"),function(t,i){return!r&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=i?(""+t).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(i),"gi"),"<strong>$&</strong>"):t,r||(t=e.trustAsHtml(t)),t}}]),angular.module("ui.bootstrap.typeahead").value("$typeaheadSuppressWarning",!1).service("typeaheadParser",["$parse","uibTypeaheadParser","$log","$typeaheadSuppressWarning",function(e,t,n,r){return r||n.warn("typeaheadParser is now deprecated. Use uibTypeaheadParser instead."),t}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","typeaheadParser","$log","$typeaheadSuppressWarning",function(e,t,n,r,i,o,s,a,l,u,c){var h=[9,13,27,38,40];return{require:["ngModel","^?ngModelOptions"],link:function(p,d,f,g){function m(){L.moveInProgress||(L.moveInProgress=!0,L.$digest()),V&&r.cancel(V),V=r((function(){L.matches.length&&v(),L.moveInProgress=!1}),200)}function v(){L.position=D?a.offset(d):a.position(d),L.position.top+=d.prop("offsetHeight")}c||u.warn("typeahead is now deprecated. Use uib-typeahead instead.");var y=g[0],b=g[1],$=p.$eval(f.typeaheadMinLength);$||0===$||($=1);var w,x,S=p.$eval(f.typeaheadWaitMs)||0,E=!1!==p.$eval(f.typeaheadEditable),C=t(f.typeaheadLoading).assign||angular.noop,A=t(f.typeaheadOnSelect),T=!!angular.isDefined(f.typeaheadSelectOnBlur)&&p.$eval(f.typeaheadSelectOnBlur),F=t(f.typeaheadNoResults).assign||angular.noop,k=f.typeaheadInputFormatter?t(f.typeaheadInputFormatter):void 0,D=!!f.typeaheadAppendToBody&&p.$eval(f.typeaheadAppendToBody),R=f.typeaheadAppendToElementId||!1,I=!1!==p.$eval(f.typeaheadFocusFirst),P=!!f.typeaheadSelectOnExact&&p.$eval(f.typeaheadSelectOnExact),O=t(f.ngModel),_=t(f.ngModel+"($$$p)"),j=l.parse(f.typeahead),L=p.$new(),N=p.$on("$destroy",(function(){L.$destroy()}));L.$on("$destroy",N);var M="typeahead-"+L.$id+"-"+Math.floor(1e4*Math.random());d.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":M});var B=angular.element("<div typeahead-popup></div>");B.attr({id:M,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(f.typeaheadTemplateUrl)&&B.attr("template-url",f.typeaheadTemplateUrl),angular.isDefined(f.typeaheadPopupTemplateUrl)&&B.attr("popup-template-url",f.typeaheadPopupTemplateUrl);var H=function(){L.matches=[],L.activeIdx=-1,d.attr("aria-expanded",!1)},U=function(e){return M+"-option-"+e};L.$watch("activeIdx",(function(e){0>e?d.removeAttr("aria-activedescendant"):d.attr("aria-activedescendant",U(e))}));var V,q=function(e){var t={$viewValue:e};C(p,!0),F(p,!1),n.when(j.source(p,t)).then((function(n){var r=e===y.$viewValue;if(r&&w)if(n&&n.length>0){L.activeIdx=I?0:-1,F(p,!1),L.matches.length=0;for(var i=0;i<n.length;i++)t[j.itemName]=n[i],L.matches.push({id:U(i),label:j.viewMapper(L,t),model:n[i]});L.query=e,v(),d.attr("aria-expanded",!0),P&&1===L.matches.length&&function(e,t){return!!(L.matches.length>t&&e)&&e.toUpperCase()===L.matches[t].label.toUpperCase()}(e,0)&&L.select(0)}else H(),F(p,!0);r&&C(p,!1)}),(function(){H(),C(p,!1),F(p,!0)}))};D&&(angular.element(o).bind("resize",m),i.find("body").bind("scroll",m)),L.moveInProgress=!1,H(),L.query=void 0;var z,K=function(){z&&r.cancel(z)};y.$parsers.unshift((function(e){return w=!0,0===$||e&&e.length>=$?S>0?(K(),function(e){z=r((function(){q(e)}),S)}(e)):q(e):(C(p,!1),K(),H()),E?e:e?void y.$setValidity("editable",!1):(y.$setValidity("editable",!0),null)})),y.$formatters.push((function(e){var t,n={};return E||y.$setValidity("editable",!0),k?(n.$model=e,k(p,n)):(n[j.itemName]=e,t=j.viewMapper(p,n),n[j.itemName]=void 0,t!==j.viewMapper(p,n)?t:e)})),L.select=function(e){var t,n,i={};x=!0,i[j.itemName]=n=L.matches[e].model,t=j.modelMapper(p,i),function(e,t){angular.isFunction(O(p))&&b&&b.$options&&b.$options.getterSetter?_(e,{$$$p:t}):O.assign(e,t)}(p,t),y.$setValidity("editable",!0),y.$setValidity("parse",!0),A(p,{$item:n,$model:t,$label:j.viewMapper(p,i)}),H(),!1!==L.$eval(f.typeaheadFocusOnSelect)&&r((function(){d[0].focus()}),0,!1)},d.bind("keydown",(function(e){if(0!==L.matches.length&&-1!==h.indexOf(e.which)){if(-1===L.activeIdx&&(9===e.which||13===e.which))return H(),void L.$digest();e.preventDefault(),40===e.which?(L.activeIdx=(L.activeIdx+1)%L.matches.length,L.$digest()):38===e.which?(L.activeIdx=(L.activeIdx>0?L.activeIdx:L.matches.length)-1,L.$digest()):13===e.which||9===e.which?L.$apply((function(){L.select(L.activeIdx)})):27===e.which&&(e.stopPropagation(),H(),L.$digest())}})),d.bind("blur",(function(){T&&L.matches.length&&-1!==L.activeIdx&&!x&&(x=!0,L.$apply((function(){L.select(L.activeIdx)}))),w=!1,x=!1}));var G=function(e){d[0]!==e.target&&3!==e.which&&0!==L.matches.length&&(H(),s.$$phase||L.$digest())};i.bind("click",G),p.$on("$destroy",(function(){i.unbind("click",G),(D||R)&&W.remove(),D&&(angular.element(o).unbind("resize",m),i.find("body").unbind("scroll",m)),B.remove()}));var W=e(B)(L);D?i.find("body").append(W):!1!==R?angular.element(i[0].getElementById(R)).append(W):d.after(W)}}}]).directive("typeaheadPopup",["$typeaheadSuppressWarning","$log",function(e,t){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(n,r,i){e||t.warn("typeahead-popup is now deprecated. Use uib-typeahead-popup instead."),n.templateUrl=i.templateUrl,n.isOpen=function(){return n.matches.length>0},n.isActive=function(e){return n.active==e},n.selectActive=function(e){n.active=e},n.selectMatch=function(e){n.select({activeIdx:e})}}}}]).directive("typeaheadMatch",["$templateRequest","$compile","$parse","$typeaheadSuppressWarning","$log",function(e,t,n,r,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(o,s,a){r||i.warn("typeahead-match is now deprecated. Use uib-typeahead-match instead.");var l=n(a.templateUrl)(o.$parent)||"template/typeahead/typeahead-match.html";e(l).then((function(e){t(e.trim())(o,(function(e){s.replaceWith(e)}))}))}}}]).filter("typeaheadHighlight",["$sce","$injector","$log","$typeaheadSuppressWarning",function(e,t,n,r){var i;return i=t.has("$sanitize"),function(t,o){return r||n.warn("typeaheadHighlight is now deprecated. Use uibTypeaheadHighlight instead."),!i&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=o?(""+t).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(o),"gi"),"<strong>$&</strong>"):t,i||(t=e.trustAsHtml(t)),t}}]),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel {{panelClass || \'panel-default\'}}">\n <div class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" uib-collapse="!isOpen">\n\t <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html",'<ul class="dropdown-menu" dropdown-nested ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-template-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-html.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-template.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html",'<table>\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n </td>\n <td>:</td>\n <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n </td>\n <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | uibTypeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')},44:function(e,t){let n;angular.module("graphdb.framework.utils.uriutils",[]).factory("UriUtils",r);try{n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:(?:\\/\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:])*@)?(?:\\[(?:(?:(?:[0-9a-f]{1,4}:){6}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|::(?:[0-9a-f]{1,4}:){5}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4}:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|v[0-9a-f]+[-a-z0-9\\._~!\\$&'\\(\\)\\*\\+,;=:]+)\\]|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}|(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=@])*)(?::[0-9]*)?(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|\\/(?:(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*)?|(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|(?!(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])))(?:\\?(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\u{E000}-\\u{F8FF}\\u{F0000}-\\u{FFFFD}\\u{100000}-\\u{10FFFD}\\/\\?])*)?(?:#(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\/\\?])*)?>?$","ui")}catch(e){n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:>?","i")}function r(e){function t(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}return{isValidIri:function(e,r){return!(void 0===e||void 0===r||!t(r)&&!r.match(n))},validateRdfUri:t,shortenIri:function(e){const t=document.createElement("a");t.href=e;let n=t.hostname;return function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1}(t.hostname)||(n=t.hostname.split(".")[0]),n+":"+t.port},expandPrefix:function(t,n){const r=/^<.*>$/.test(t);if(t=function(e,t){if(t.test(e))return e.substring(1,e.length-1);return e}(t,/^<.*>$/),!/^<?(http|urn).*>?/.test(t)){const i=t.split(":"),o=i[0],s=i[1];if(!angular.isUndefined(s)){const t=e.getNamespaceUriForPrefix(n,o);if(t)return t+s;if(!r)return""}}return t}}}r.$inject=["ClassInstanceDetailsService"]},440:function(e,t,n){var r,i,o;o=function(){angular.module("jlareau.bowser",[]).factory("bowser",(function(){
26
+ /*!
27
+ * Bowser - a browser detector
28
+ * https://github.com/ded/bowser
29
+ * MIT License | (c) Dustin Diaz 2015
30
+ */
31
+ var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}var r,i,o,s=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),u=!l&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),p=/sailfish/i.test(t),d=/tizen/i.test(t),f=/(web|hpw)os/i.test(t),g=/windows phone/i.test(t),m=!g&&/windows/i.test(t),v=!s&&!h&&/macintosh/i.test(t),y=!a&&!p&&!d&&!f&&/linux/i.test(t),b=n(/edge\/(\d+(\.\d+)?)/i),$=n(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t),x=!w&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera|opr|opios/i.test(t)?r={name:"Opera",opera:e,version:$||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?r={name:"Opera Coast",coast:e,version:$||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:e,version:$||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?r={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?r={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?r={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?r={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?r={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?r={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(r={name:"Windows Phone",windowsphone:e},b?(r.msedge=e,r.version=b):(r.msie=e,r.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?r={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?r={name:"Chrome",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?r={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(t)?r={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||$}:p?r={name:"Sailfish",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?r={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(r={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(r.firefoxos=e)):h?r={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?r={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?r={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?r={name:"BlackBerry",blackberry:e,version:$||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(r={name:"WebOS",webos:e,version:$||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(r.touchpad=e)):/bada/i.test(t)?r={name:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:d?r={name:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||$}:/qupzilla/i.test(t)?r={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||$}:/chromium/i.test(t)?r={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||$}:/chrome|crios|crmo/i.test(t)?r={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?r={name:"Android",version:$}:/safari|applewebkit/i.test(t)?(r={name:"Safari",safari:e},$&&(r.version=$)):s?(r={name:"iphone"==s?"iPhone":"ipad"==s?"iPad":"iPod"},$&&(r.version=$)):r=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||$}:{name:n(/^(.*)\/(.*) /),version:(i=/^(.*)\/(.*) /,o=t.match(i),o&&o.length>1&&o[2]||"")},!r.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(r.name=r.name||"Blink",r.blink=e):(r.name=r.name||"Webkit",r.webkit=e),!r.version&&$&&(r.version=$)):!r.opera&&/gecko\//i.test(t)&&(r.name=r.name||"Gecko",r.gecko=e,r.version=r.version||n(/gecko\/(\d+(\.\d+)?)/i)),r.msedge||!a&&!r.silk?s?(r[s]=e,r.ios=e):v?r.mac=e:S?r.xbox=e:m?r.windows=e:y&&(r.linux=e):r.android=e;var E="";r.windowsphone?E=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):s?E=(E=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?E=n(/android[ \/-](\d+(\.\d+)*)/i):r.webos?E=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?E=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?E=n(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(E=n(/tizen[\/\s](\d+(\.\d+)*)/i)),E&&(r.osversion=E);var C=E.split(".")[0];return w||u||"ipad"==s||a&&(3==C||C>=4&&!x)||r.silk?r.tablet=e:(x||"iphone"==s||"ipod"==s||a||l||r.blackberry||r.webos||r.bada)&&(r.mobile=e),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1?r.a=e:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6?r.c=e:r.x=e,r}var n=t("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in n)return!0}return!1},n._detect=t,n}))},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},441:function(e,t){!function(e){var t,n,r,i=e.jQuery||e.angular.element,o=e.document.documentElement,s=i(o);return u("change",l),t=l,n=(e.jQuery||e.angular.element).prototype,r=n.val,n.val=function(e){var n=r.apply(this,arguments);return arguments.length>0&&c(this,(function(n){t(n,e)})),n},i.prototype.checkAndTriggerAutoFillEvent=function(){var e,t;for(e=0;e<this.length;e++)a(t=this[e])||(l(t),h(t))},u("blur",(function(t){e.setTimeout((function(){(function(e){for(;e;){if("FORM"===e.nodeName)return i(e);e=e.parentNode}return i()})(t).find("input").checkAndTriggerAutoFillEvent()}),20)})),void e.document.addEventListener("DOMContentLoaded",(function(){c(document.getElementsByTagName("input"),l),e.setTimeout((function(){s.find("input").checkAndTriggerAutoFillEvent()}),200)}),!1);function a(e){"$$currentValue"in e||(e.$$currentValue=e.getAttribute("value"));var t=e.value,n=e.$$currentValue;return!t&&!n||t===n}function l(e){e.$$currentValue=e.value}function u(e,t){o.addEventListener(e,(function(e){var n=e.target;t(n)}),!0)}function c(e,t){if(e.forEach)return e.forEach(t);var n;for(n=0;n<e.length;n++)t(e[n])}function h(t){var n=e.document.createEvent("HTMLEvents");n.initEvent("change",!0,!0),t.dispatchEvent(n)}}(window)},442:function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),s=r[0],a=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(c(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},443:function(e,t){
32
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
33
+ t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=f,s/=256,u-=8);e[n+d-f]|=128*g}},444:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},445:function(e,t){
34
+ /**
35
+ * @license AngularJS v1.8.3
36
+ * (c) 2010-2020 Google LLC. http://angularjs.org
37
+ * License: MIT
38
+ */
39
+ !function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!M(e))return t;N(e.objectMaxDepth)&&(t.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN),N(e.urlErrorParamsEnabled)&&J(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function r(e){return U(e)&&e>0}function i(e,n){n=n||Error;var r="https://errors.angularjs.org/1.8.3/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,s,a=arguments[0],l=arguments[1],u="["+(e?e+":":"")+a+"] ",c=he(arguments,2).map((function(e){return Ve(e,t.objectMaxDepth)}));if(u+=l.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(o,""):e})),u+="\n"+r+(e?e+"/":"")+a,t.urlErrorParamsEnabled)for(s=0,i="?";s<c.length;s++,i="&")u+=i+"p"+s+"="+encodeURIComponent(c[s]);return new n(u)}}var o,s,a,l,u=/^\/(.+)\/([a-z]*)$/,c=Object.prototype.hasOwnProperty,h=function(e){return H(e)?e.toLowerCase():e},p=function(e){return H(e)?e.toUpperCase():e},d=[].slice,f=[].splice,g=[].push,m=Object.prototype.toString,v=Object.getPrototypeOf,y=i("ng"),b=e.angular||(e.angular={}),$=0;function w(e){if(null==e||W(e))return!1;if(q(e)||H(e)||s&&e instanceof s)return!0;var t="length"in Object(e)&&e.length;return U(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function x(e,t,n){var r,i;if(e)if(K(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(q(e)||w(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==x)e.forEach(t,n,e);else if(B(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)c.call(e,r)&&t.call(n,e[r],r,e);return e}function S(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function E(e){return function(t,n){e(n,t)}}function C(){return++$}function A(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function T(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var s=t[i];if(M(s)||K(s))for(var a=Object.keys(s),l=0,u=a.length;l<u;l++){var c=a[l],h=s[c];n&&M(h)?V(h)?e[c]=new Date(h.valueOf()):G(h)?e[c]=new RegExp(h):h.nodeName?e[c]=h.cloneNode(!0):te(h)?e[c]=h.clone():"__proto__"!==c&&(M(e[c])||(e[c]=q(h)?[]:{}),T(e[c],[h],!0)):e[c]=h}}return A(e,r),e}function F(e){return T(e,d.call(arguments,1),!1)}function k(e){return T(e,d.call(arguments,1),!0)}function D(e){return parseInt(e,10)}o=e.document.documentMode;var R=Number.isNaN||function(e){return e!=e};function I(e,t){return F(Object.create(e),t)}function P(){}function O(e){return e}function _(e){return function(){return e}}function j(e){return K(e.toString)&&e.toString!==m}function L(e){return void 0===e}function N(e){return void 0!==e}function M(e){return null!==e&&"object"==typeof e}function B(e){return null!==e&&"object"==typeof e&&!v(e)}function H(e){return"string"==typeof e}function U(e){return"number"==typeof e}function V(e){return"[object Date]"===m.call(e)}function q(e){return Array.isArray(e)||e instanceof Array}function z(e){switch(m.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function K(e){return"function"==typeof e}function G(e){return"[object RegExp]"===m.call(e)}function W(e){return e&&e.window===e}function Y(e){return e&&e.$evalAsync&&e.$watch}function J(e){return"boolean"==typeof e}function X(e){return e&&K(e.then)}P.$inject=[],O.$inject=[];var Q=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Z=function(e){return H(e)?e.trim():e},ee=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function te(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function ne(e){return h(e.nodeName||e[0]&&e[0].nodeName)}function re(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function ie(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function oe(e,t,n){var i,o,s=[],a=[];if(n=r(n)?n:NaN,t){if((o=t)&&U(o.length)&&Q.test(m.call(o))||(i=t,"[object ArrayBuffer]"===m.call(i)))throw y("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw y("cpi","Can't copy! Source and destination are identical.");return q(t)?t.length=0:x(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),s.push(e),a.push(t),l(e,t,n)}return u(e,n);function l(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(q(e))for(var o=0,s=e.length;o<s;o++)t.push(u(e[o],n));else if(B(e))for(r in e)t[r]=u(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=u(e[r],n));else for(r in e)c.call(e,r)&&(t[r]=u(e[r],n));return A(t,i),t}function u(e,t){if(!M(e))return e;var n=s.indexOf(e);if(-1!==n)return a[n];if(W(e)||Y(e))throw y("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch(m.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(u(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(K(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=q(e)?[]:Object.create(v(e)),r=!0),s.push(e),a.push(i),r?l(e,i,t):i}}function se(e,t){return e===t||e!=e&&t!=t}function ae(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!q(e)){if(V(e))return!!V(t)&&se(e.getTime(),t.getTime());if(G(e))return!!G(t)&&e.toString()===t.toString();if(Y(e)||Y(t)||W(e)||W(t)||q(t)||V(t)||G(t))return!1;for(r in i=Me(),e)if("$"!==r.charAt(0)&&!K(e[r])){if(!ae(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&N(t[r])&&!K(t[r]))return!1;return!0}if(!q(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!ae(e[r],t[r]))return!1;return!0}}return!1}var le=function(){if(!N(le.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");le.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else le.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return le.rules},ue=function(){if(N(ue.name_))return ue.name_;var t,n,r,i,o=Ce.length;for(n=0;n<o;++n)if(r=Ce[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return ue.name_=i};function ce(e,t,n){return e.concat(d.call(t,n))}function he(e,t){return d.call(e,t||0)}function pe(e,t){var n=arguments.length>2?he(arguments,2):[];return!K(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,ce(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function de(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:W(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":Y(n)&&(r="$SCOPE"),r}function fe(e,t){if(!L(e))return U(t)||(t=t?2:null),JSON.stringify(e,de,t)}function ge(e){return H(e)?JSON.parse(e):e}var me=/:/g;function ve(e,t){e=e.replace(me,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return R(n)?t:n}function ye(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function be(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ye(e,n*(ve(t,r)-r))}function $e(e){e=s(e).clone().empty();var t=s("<div></div>").append(e).html();try{return e[0].nodeType===He?h(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+h(t)}))}catch(e){return h(t)}}function we(e){try{return decodeURIComponent(e)}catch(e){}}function xe(e){var t={};return x((e||"").split("&"),(function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),N(r=we(r))&&(i=!N(i)||we(i),c.call(t,r)?q(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function Se(e){return Ee(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ee(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Ce=["ng-","data-ng-","ng:","x-ng-"];var Ae=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function Te(t,n){var r,i,o={};if(x(Ce,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),x(Ce,(function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!Ae)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(e,t){var n,r,i=Ce.length;for(r=0;r<i;++r)if(n=Ce[r]+t,H(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function Fe(t,n,r){M(r)||(r={});r=F({strictDi:!1},r);var i=function(){if((t=s(t)).injector()){var i=t[0]===e.document?"document":$e(t);throw y("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Xt(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!a.test(e.name))return i();e.name=e.name.replace(a,""),b.resumeBootstrap=function(e){return x(e,(function(e){n.push(e)})),i()},K(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function ke(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function De(e){var t=b.element(e).injector();if(!t)throw y("test","no injector found for element argument to getTestability");return t.get("$$testability")}var Re=/[A-Z]/g;function Ie(e,t){return t=t||"_",e.replace(Re,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var Pe=!1;function Oe(){pt.legacyXHTMLReplacement=!0}function _e(e,t,n){if(!e)throw y("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function je(e,t,n){return n&&q(e)&&(e=e[e.length-1]),_e(K(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function Le(e,t){if("hasOwnProperty"===e)throw y("badname","hasOwnProperty is not a valid {0} name",t)}function Ne(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=s(d.call(e,0,i))),t.push(n));return t||e}function Me(){return Object.create(null)}function Be(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!j(e)||q(e)||V(e)?fe(e):e.toString()}return e}var He=3;function Ue(e,t){if(q(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(M(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Ve(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):L(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return r(t)&&(e=b.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(M(t=de(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var qe={full:"1.8.3",major:1,minor:8,dot:3,codeName:"ultimate-farewell"};pt.expando="ng339";var ze=pt.cache={},Ke=1;pt._data=function(e){return this.cache[e[this.expando]]||{}};var Ge=/-([a-z])/g,We=/^-ms-/,Ye={mouseleave:"mouseout",mouseenter:"mouseover"},Je=i("jqLite");function Xe(e,t){return t.toUpperCase()}function Qe(e){return e.replace(Ge,Xe)}var Ze=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,et=/<|&#?\w+;/,tt=/<([\w:-]+)/,nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var it={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ot in rt){var st=rt[ot],at=st.slice().reverse();it[ot]=[at.length,"<"+at.join("><")+">","</"+st.join("></")+">"]}function lt(e){return!et.test(e)}function ut(e){var t=e.nodeType;return 1===t||!t||9===t}function ct(t,n){var r,i,s,a,l,u=n.createDocumentFragment(),c=[];if(lt(t))c.push(n.createTextNode(t));else{if(r=u.appendChild(n.createElement("div")),i=(tt.exec(t)||["",""])[1].toLowerCase(),a=pt.legacyXHTMLReplacement?t.replace(nt,"<$1></$2>"):t,o<10)for(s=it[i]||it._default,r.innerHTML=s[1]+a+s[2],l=s[0];l--;)r=r.firstChild;else{for(l=(s=rt[i]||[]).length;--l>-1;)r.appendChild(e.document.createElement(s[l])),r=r.firstChild;r.innerHTML=a}c=ce(c,r.childNodes),(r=u.firstChild).textContent=""}return u.textContent="",u.innerHTML="",x(c,(function(e){u.appendChild(e)})),u}it.optgroup=it.option;var ht=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function pt(t){if(t instanceof pt)return t;var n,r,i,o;if(H(t)&&(t=Z(t),n=!0),!(this instanceof pt)){if(n&&"<"!==t.charAt(0))throw Je("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new pt(t)}n?Et(this,(r=t,i=i||e.document,(o=Ze.exec(r))?[i.createElement(o[1])]:(o=ct(r,i))?o.childNodes:[])):K(t)?kt(t):Et(this,t)}function dt(e){return e.cloneNode(!0)}function ft(e,t){!t&&ut(e)&&s.cleanData([e]),e.querySelectorAll&&s.cleanData(e.querySelectorAll("*"))}function gt(e){var t;for(t in e)return!1;return!0}function mt(e){var t=e.ng339,n=t&&ze[t],r=n&&n.events,i=n&&n.data;i&&!gt(i)||r&&!gt(r)||(delete ze[t],e.ng339=void 0)}function vt(e,t,n,r){if(N(r))throw Je("offargs","jqLite#off() does not support the `selector` argument");var i=bt(e),o=i&&i.events,s=i&&i.handle;if(s){if(t){var a=function(t){var r=o[t];N(n)&&ie(r||[],n),N(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete o[t])};x(t.split(" "),(function(e){a(e),Ye[e]&&a(Ye[e])}))}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,s),delete o[t];mt(e)}}function yt(e,t){var n=e.ng339,r=n&&ze[n];r&&(t?delete r.data[t]:r.data={},mt(e))}function bt(e,t){var n=e.ng339,r=n&&ze[n];return t&&!r&&(e.ng339=n=++Ke,r=ze[n]={events:{},data:{},handle:void 0}),r}function $t(e,t,n){if(ut(e)){var r,i=N(n),o=!i&&t&&!M(t),s=!t,a=bt(e,!o),l=a&&a.data;if(i)l[Qe(t)]=n;else{if(s)return l;if(o)return l&&l[Qe(t)];for(r in t)l[Qe(r)]=t[r]}}}function wt(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function xt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(t.split(" "),(function(e){e=Z(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",Z(r))}}function St(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(t.split(" "),(function(e){e=Z(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",Z(r))}}function Et(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ct(e,t){return At(e,"$"+(t||"ngController")+"Controller")}function At(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var r=q(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(N(n=s.data(e,r[i])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function Tt(e){for(ft(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ft(e,t){t||ft(e);var n=e.parentNode;n&&n.removeChild(e)}function kt(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Dt=pt.prototype={ready:kt,toString:function(){var e=[];return x(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return s(e>=0?this[e]:this[this.length+e])},length:0,push:g,sort:[].sort,splice:[].splice},Rt={};x("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Rt[h(e)]=e}));var It={};x("input,select,option,textarea,button,form,details".split(","),(function(e){It[e]=!0}));var Pt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Ot(e,t){var n=Rt[t.toLowerCase()];return n&&It[ne(e)]&&n}function _t(e,t,n){n.call(e,t)}function jt(e,t,n){var r=t.relatedTarget;r&&(r===e||ht.call(e,r))||n.call(e,t)}function Lt(){this.$get=function(){return F(pt,{hasClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),St(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),xt(e,t)}})}}function Nt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||C)():r+":"+e}x({data:$t,removeData:yt,hasData:function(e){for(var t in ze[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)yt(e[t]),vt(e[t])}},(function(e,t){pt[t]=e})),x({data:$t,inheritedData:At,scope:function(e){return s.data(e,"$scope")||At(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return s.data(e,"$isolateScope")||s.data(e,"$isolateScopeNoTemplate")},controller:Ct,injector:function(e){return At(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:wt,css:function(e,t,n){if(t=function(e){return Qe(e.replace(We,"ms-"))}(t),!N(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==He&&2!==i&&8!==i&&e.getAttribute){var o=h(t),s=Rt[o];if(!N(n))return r=e.getAttribute(t),s&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&s?e.removeAttribute(t):e.setAttribute(t,s?o:n)}},prop:function(e,t,n){if(!N(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(L(t)){var n=e.nodeType;return 1===n||n===He?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(L(t)){if(e.multiple&&"select"===ne(e)){var n=[];return x(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(L(t))return e.innerHTML;ft(e,!0),e.innerHTML=t},empty:Tt},(function(e,t){pt.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Tt&&L(2===e.length&&e!==wt&&e!==Ct?t:n)){if(M(t)){for(r=0;r<o;r++)if(e===$t)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var s=e.$dv,a=L(s)?Math.min(o,1):o,l=0;l<a;l++){var u=e(this[l],t,n);s=s?s+u:u}return s}for(r=0;r<o;r++)e(this[r],t,n);return this}})),x({removeData:yt,on:function(e,t,n,r){if(N(r))throw Je("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ut(e)){var i=bt(e,!0),o=i.events,s=i.handle;s||(s=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(L(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||_t;o>1&&(i=Ue(i));for(var l=0;l<o;l++)n.isImmediatePropagationStopped()||a(e,n,i[l])}};return n.elem=e,n}(e,o));for(var a=t.indexOf(" ")>=0?t.split(" "):[t],l=a.length,u=function(t,r,i){var a=o[t];a||((a=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,s)),a.push(n)};l--;)t=a[l],Ye[t]?(u(Ye[t],jt),u(t,void 0,!0)):u(t)}},off:vt,one:function(e,t,n){(e=s(e)).on(t,(function r(){e.off(t,n),e.off(t,r)})),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;ft(e),x(new pt(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return x(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var r=0,i=(t=new pt(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;x(new pt(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,r,i;n=e,r=s(t).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Ft,detach:function(e){Ft(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new pt(t)).length;i<o;i++){var s=t[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:St,removeClass:xt,toggleClass:function(e,t,n){t&&x(t.split(" "),(function(t){var r=n;L(r)&&(r=!wt(e,t)),(r?St:xt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:dt,triggerHandler:function(e,t,n){var r,i,o,s=t.type||t,a=bt(e),l=a&&a.events,u=l&&l[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:P,type:s,target:e},t.type&&(r=F(r,t)),i=Ue(u),o=n?[r].concat(n):[r],x(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,o)})))}},(function(e,t){pt.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)L(i)?N(i=e(this[o],t,n,r))&&(i=s(i)):Et(i,e(this[o],t,n,r));return N(i)?i:this}})),pt.prototype.bind=pt.prototype.on,pt.prototype.unbind=pt.prototype.off;var Mt=Object.create(null);function Bt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Bt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return R(e)?Mt:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ht=Bt,Ut=[function(){this.$get=[function(){return Ht}]}],Vt=/^([^(]+?)=>/,qt=/^[^(]*\(\s*([^)]*)\)/m,zt=/,/,Kt=/^\s*(_?)(\S+?)\1\s*$/,Gt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Wt=i("$injector");function Yt(e){return Function.prototype.toString.call(e)}function Jt(e){var t=Yt(e).replace(Gt,"");return t.match(Vt)||t.match(qt)}function Xt(e,t){t=!0===t;var n={},r=[],i=new Ht,s={$provide:{provider:d(f),factory:d(m),service:d((function(e,t){return m(e,["$injector",function(e){return e.instantiate(t)}])})),value:d((function(e,t){return m(e,_(t),!1)})),constant:d((function(e,t){Le(e,"constant"),s[e]=t,u[e]=t})),decorator:function(e,t){var n=a.get(e+"Provider"),r=n.$get;n.$get=function(){var e=h.invoke(r,n);return h.invoke(t,null,{$delegate:e})}}}},a=s.$injector=y(s,(function(e,t){throw b.isString(t)&&r.push(t),Wt("unpr","Unknown provider: {0}",r.join(" <- "))})),u={},c=y(u,(function(e,t){var n=a.get(e+"Provider",t);return h.invoke(n.$get,n,void 0,e)})),h=c;s.$injectorProvider={$get:_(c)},h.modules=a.modules=Me();var p=v(e);return(h=c.get("$injector")).strictDi=t,x(p,(function(e){e&&h.invoke(e)})),h.loadNewModules=function(e){x(v(e),(function(e){e&&h.invoke(e)}))},h;function d(e){return function(t,n){if(!M(t))return e(t,n);x(t,E(e))}}function f(e,t){if(Le(e,"service"),(K(t)||q(t))&&(t=a.instantiate(t)),!t.$get)throw Wt("pget","Provider '{0}' must define $get factory method.",e);return s[e+"Provider"]=t}function g(e,t){return function(){var n=h.invoke(t,this);if(L(n))throw Wt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function m(e,t,n){return f(e,{$get:!1!==n?g(e,t):t})}function v(e){_e(L(e)||q(e),"modulesToLoad","not an array");var t,n=[];return x(e,(function(e){if(!i.get(e)){i.set(e,!0);try{H(e)?(t=l(e),h.modules[e]=t,n=n.concat(v(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):K(e)||q(e)?n.push(a.invoke(e)):je(e,"module")}catch(t){throw q(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Wt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=a.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function y(e,i){function a(t,o){if(e.hasOwnProperty(t)){if(e[t]===n)throw Wt("cdep","Circular dependency found: {0}",t+" <- "+r.join(" <- "));return e[t]}try{return r.unshift(t),e[t]=n,e[t]=i(t,o),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{r.shift()}}function l(e,n,r){for(var i=[],o=Xt.$$annotate(e,t,r),s=0,l=o.length;s<l;s++){var u=o[s];if("string"!=typeof u)throw Wt("itkn","Incorrect injection token! Expected service name as string, got {0}",u);i.push(n&&n.hasOwnProperty(u)?n[u]:a(u,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=l(e,n,r);return q(e)&&(e=e[e.length-1]),function(e){if(o||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return J(t)||(t=e.$$ngIsClass=/^class\b/.test(Yt(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=q(e)?e[e.length-1]:e,i=l(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:a,annotate:Xt.$$annotate,has:function(t){return s.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}}function Qt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(e){if(e){e.scrollIntoView();var t=function(){var e=l.yOffset;if(K(e))e=e();else if(te(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else U(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function l(e){var t;(e=H(e)?e:U(e)?e.toString():r.hash())?(t=o.getElementById(e))||(t=function(e){var t=null;return Array.prototype.some.call(e,(function(e){if("a"===ne(e))return t=e,!0})),t}(o.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,o;t===n&&""===t||(r=function(){i.$evalAsync(l)},"complete"===(o=o||e).document.readyState?o.setTimeout(r):s(o).on("load",r))})),l}]}Xt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw H(n)&&n||(n=e.name||function(e){var t=Jt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Wt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);x(Jt(e)[1].split(zt),(function(e){e.replace(Kt,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else q(e)?(je(e[i=e.length-1],"fn"),r=e.slice(0,i)):je(e,"fn",!0);return r};var Zt=i("$animate");function en(e,t){return e||t?e?t?(q(e)&&(e=e.join(" ")),q(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function tn(e){return M(e)?e:{}}var nn=function(){this.$get=P},rn=function(){var e=new Ht,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:P,on:P,off:P,pin:P,push:function(s,a,l,u){u&&u(),(l=l||{}).from&&s.css(l.from),l.to&&s.css(l.to),(l.addClass||l.removeClass)&&function(n,s,a){var l=e.get(n)||{},u=i(l,s,!0),c=i(l,a,!1);(u||c)&&(e.set(n,l),t.push(n),1===t.length&&r.$$postDigest(o))}(s,l.addClass,l.removeClass);var c=new n;return c.complete(),c}};function i(e,t,n){var r=!1;return t&&x(t=H(t)?t.split(" "):q(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function o(){x(t,(function(t){var n=e.get(t);if(n){var r=function(e){H(e)&&(e=e.split(" "));var t=Me();return x(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",o="";x(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:o+=(o.length?" ":"")+t)})),x(t,(function(e){i&&St(e,i),o&&xt(e,o)})),e.delete(t)}})),t.length=0}}]},on=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Zt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=K(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,Zt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),t(n,r=r||i.parent(),i),e.push(n,"enter",tn(o))},move:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),t(n,r=r||i.parent(),i),e.push(n,"move",tn(o))},leave:function(t,n){return e.push(t,"leave",tn(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=tn(r)).addClass=en(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=tn(r)).removeClass=en(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=tn(i)).addClass=en(i.addClass,n),i.removeClass=en(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=tn(o)).from=o.from?F(o.from,n):n,o.to=o.to?F(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=en(o.tempClasses,i),e.push(t,"animate",o)}}}]}],sn=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},an=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function o(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return o.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,r()):t(!1)}))}()},o.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}x(e,(function(e){e.done(i)}))},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:P,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&(x(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},o}]},ln=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=oe(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,s=new n;return{start:a,end:a};function a(){return e((function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),o||s.complete(),o=!0})),s}}}]};function un(e,t,n,r,i){var o=this,a=e.location,l=e.history,u=e.setTimeout,c=e.clearTimeout,h={},p=i(n);o.isMock=!1,o.$$completeOutstandingRequest=p.completeTask,o.$$incOutstandingRequestCount=p.incTaskCount,o.notifyWhenNoOutstandingRequests=p.notifyWhenNoPendingTasks;var d,f,g=a.href,m=t.find("base"),v=null,y=r.history?function(){try{return l.state}catch(e){}}:P;E(),o.url=function(t,n,i){if(L(i)&&(i=null),a!==e.location&&(a=e.location),l!==e.history&&(l=e.history),t){var s=f===i;if(t=li(t).href,g===t&&(!r.history||s))return o;var u=g&&ar(g)===ar(t);return g=t,f=i,!r.history||u&&s?(u||(v=t),n?a.replace(t):u?a.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):a.href=t,a.href!==t&&(v=t)):(l[n?"replaceState":"pushState"](i,"",t),E()),v&&(v=t),o}return function(e){return e.replace(/#$/,"")}(v||a.href)},o.state=function(){return d};var b=[],$=!1;function w(){v=null,C()}var S=null;function E(){ae(d=L(d=y())?null:d,S)&&(d=S),S=d,f=d}function C(){var e=f;E(),g===o.url()&&e===d||(g=o.url(),f=d,x(b,(function(e){e(o.url(),d)})))}o.onUrlChange=function(t){return $||(r.history&&s(e).on("popstate",w),s(e).on("hashchange",w),$=!0),b.push(t),t},o.$$applicationDestroyed=function(){s(e).off("hashchange popstate",w)},o.$$checkUrlChange=C,o.baseHref=function(){var e=m.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(e,t,n){var r;return t=t||0,n=n||p.DEFAULT_TASK_TYPE,p.incTaskCount(n),r=u((function(){delete h[r],p.completeTask(e,n)}),t),h[r]=n,r},o.defer.cancel=function(e){if(h.hasOwnProperty(e)){var t=h[e];return delete h[e],c(e),p.completeTask(P,t),!0}return!1}}function cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new un(e,r,t,n,i)}]}function hn(){this.$get=function(){var e={};function t(t,n){if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var r=0,o=F({},n,{id:t}),s=Me(),a=n&&n.capacity||Number.MAX_VALUE,l=Me(),u=null,c=null;return e[t]={put:function(e,t){if(!L(t)){if(a<Number.MAX_VALUE)h(l[e]||(l[e]={key:e}));return e in s||r++,s[e]=t,r>a&&this.remove(c.key),t}},get:function(e){if(a<Number.MAX_VALUE){var t=l[e];if(!t)return;h(t)}return s[e]},remove:function(e){if(a<Number.MAX_VALUE){var t=l[e];if(!t)return;t===u&&(u=t.p),t===c&&(c=t.n),p(t.n,t.p),delete l[e]}e in s&&(delete s[e],r--)},removeAll:function(){s=Me(),r=0,l=Me(),u=c=null},destroy:function(){s=null,o=null,l=null,delete e[t]},info:function(){return F({},o,{size:r})}};function h(e){e!==u&&(c?c===e&&(c=e.n):c=e,p(e.n,e.p),p(e,u),(u=e).n=null)}function p(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return x(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function pn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var dn=i("$compile");var fn=new function(){};function gn(t,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,a=/(([\w-]+)(?::([^;]+))?;?)/,l=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),u=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,p=/^(on[a-z]+|formaction)$/,d=Me();function f(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Me();return x(e,(function(e,o){if((e=e.trim())in d)i[o]=d[e];else{var s=e.match(r);if(!s)throw dn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(d[e]=i[o])}})),i}function g(e,t){var n={isolateScope:null,bindToController:null};if(M(e.scope)&&(!0===e.bindToController?(n.bindToController=f(e.scope,t,!0),n.isolateScope={}):n.isolateScope=f(e.scope,t,!1)),M(e.bindToController)&&(n.bindToController=f(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw dn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,i){return _e(n,"name"),Le(n,"directive"),H(n)?(!function(e){var t=e.charAt(0);if(!t||t!==h(t))throw dn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw dn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),_e(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var i=[];return x(r[n],(function(r,o){try{var s=e.invoke(r);K(s)?s={compile:_(s)}:!s.compile&&s.link&&(s.compile=_(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=function(e){var t=e.require||e.controller&&e.name;return!q(t)&&M(t)&&x(t,(function(e,n){var r=e.match(u);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}(s),s.restrict=function(e,t){if(e&&(!H(e)||!/[EACM]/.test(e)))throw dn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(s.restrict,n),s.$$moduleName=r.$$moduleName,i.push(s)}catch(e){t(e)}})),i}])),r[n].push(i)):x(n,E(e)),this},this.component=function e(t,n){if(!H(t))return x(t,E(pe(this,e))),this;var r=n.controller||function(){};function i(e){function t(t){return K(t)||q(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:En(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return x(n,(function(e,t){"$"===t.charAt(0)&&(o[t]=e)})),o}return x(n,(function(e,t){"$"===t.charAt(0)&&(i[t]=e,K(r)&&(r[t]=e))})),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(e){return N(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return N(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var v=!0;this.debugInfoEnabled=function(e){return N(e)?(v=e,this):v};var y=!1;this.strictComponentBindingsEnabled=function(e){return N(e)?(y=e,this):y};var b=10;this.onChangesTtl=function(e){return arguments.length?(b=e,this):b};var $=!0;this.commentDirectivesEnabled=function(e){return arguments.length?($=e,this):$};var w=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(w=e,this):w};var S=Me();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in S&&S[r]!==n)throw dn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,S[r],n);return S[r]=n,this},function(){function e(e,t){x(t,(function(t){S[t.toLowerCase()]=e}))}e(qr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(qr.CSS,["*|style"]),e(qr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(qr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(qr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,d,f,E,C,A,T,k){var D,R=/^\w/,_=e.document.createElement("div"),j=$,N=w,B=b;function U(){try{if(!--B)throw D=void 0,dn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);A.$apply((function(){for(var e=0,t=D.length;e<t;++e)try{D[e]()}catch(e){d(e)}D=void 0}))}finally{B++}}function V(e,t){if(!e)return e;if(!H(e))throw dn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Z(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),s=Math.floor(o.length/2),a=0;a<s;a++){var l=2*a;n+=T.getTrustedMediaUrl(Z(o[l])),n+=" "+Z(o[l+1])}var u=Z(o[2*a]).split(/\s/);return n+=T.getTrustedMediaUrl(Z(u[0])),2===u.length&&(n+=" "+Z(u[1])),n}function G(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function W(e,t){try{e.addClass(t)}catch(e){}}G.prototype={$normalize:bn,$addClass:function(e){e&&e.length>0&&k.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&k.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=$n(e,t);n&&n.length&&k.addClass(this.$$element,n);var r=$n(t,e);r&&r.length&&k.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=Ot(this.$$element[0],e),o=Pt[e],s=e;i?(this.$$element.prop(e,t),r=i):o&&(this[o]=t,s=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=Ie(e,"-")),"img"===ne(this.$$element)&&"srcset"===e&&(this[e]=t=V(t,"$set('srcset', value)")),!1!==n&&(null===t||L(t)?this.$$element.removeAttr(r):R.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){_.innerHTML="<span "+t+">";var r=_.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var a=this.$$observers;a&&x(a[s],(function(e){try{e(t)}catch(e){d(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Me()),i=r[e]||(r[e]=[]);return i.push(t),A.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||L(n[e])||t(n[e])})),function(){ie(i,t)}}};var X=n.startSymbol(),Q=n.endSymbol(),ee="{{"===X&&"}}"===Q?O:function(e){return e.replace(/\{\{/g,X).replace(/}}/g,Q)},te=/^ng(Attr|Prop|On)([A-Z].*)$/,re=/^(.+)Start$/;return oe.$$addBindingInfo=v?function(e,t){var n=e.data("$binding")||[];q(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:P,oe.$$addBindingClass=v?function(e){W(e,"ng-binding")}:P,oe.$$addScopeInfo=v?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:P,oe.$$addScopeClass=v?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:P,oe.$$createComment=function(t,n){var r="";return v&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},oe;function oe(e,t,n,r,i){e instanceof s||(e=s(e));var o=le(e,t,e,n,r,i);oe.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw dn("multilink","This element has already been linked.");_e(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var l,u,c,h=(r=r||{}).parentBoundTranscludeFn,p=r.transcludeControllers,d=r.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),a||(u=(l=d)&&l[0],a=u&&"foreignobject"!==ne(u)&&m.call(u).match(/SVG/)?"svg":"html"),c="html"!==a?s(Te(a,s("<div></div>").append(e).html())):n?Dt.clone.call(e):e,p)for(var f in p)c.data("$"+f+"Controller",p[f].instance);return oe.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,h),n||(e=o=null),c}}function le(e,t,n,r,i,a){for(var l,u,c,h,p,d,f,g=[],m=q(e)||e instanceof s,v=0;v<e.length;v++)l=new G,11===o&&ue(e,v,m),(c=(u=de(e[v],[],l,0===v?r:void 0,i)).length?ve(u,e[v],l,t,n,null,[],[],a):null)&&c.scope&&oe.$$addScopeClass(l.$$element),p=c&&c.terminal||!(h=e[v].childNodes)||!h.length?null:le(h,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||p)&&(g.push(v,c,p),d=!0,f=f||c),a=null;return d?function(e,n,r,i){var o,a,l,u,c,h,p,d,m;if(f){var v=n.length;for(m=new Array(v),c=0;c<g.length;c+=3)p=g[c],m[p]=n[p]}else m=n;for(c=0,h=g.length;c<h;)l=m[g[c++]],o=g[c++],a=g[c++],o?(o.scope?(u=e.$new(),oe.$$addScopeInfo(s(l),u)):u=e,d=o.transcludeOnThisElement?ce(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?ce(e,t):null,o(a,u,l,r,d)):a&&a(e,l.childNodes,void 0,i)}:null}function ue(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===He)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===He;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function ce(e,t,n){function r(r,i,o,s,a){return r||((r=e.$new(!1,a)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=Me();for(var o in t.$$slots)t.$$slots[o]?i[o]=ce(e,t.$$slots[o],n):i[o]=null;return r}function de(e,t,r,o,s){var l,u,c,h=e.nodeType,p=r.$attr;switch(h){case 1:we(t,bn(u=ne(e)),"E",o,s);for(var d,f,g,m,v,y=e.attributes,b=0,$=y&&y.length;b<$;b++){var w,x=!1,S=!1,E=!1,C=!1,A=!1;f=(d=y[b]).name,m=d.value,(v=(g=bn(f.toLowerCase())).match(te))?(E="Attr"===v[1],C="Prop"===v[1],A="On"===v[1],f=f.replace(vn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(w=g.match(re))&&xe(w[1])&&(x=f,S=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),C||A?(r[g]=m,p[g]=d.name,C?ke(e,t,g,f):De(t,g,f)):(p[g=bn(f.toLowerCase())]=f,!E&&r.hasOwnProperty(g)||(r[g]=m,Ot(e,g)&&(r[g]=!0)),Re(e,t,m,g,E),we(t,g,"A",o,s,x,S))}if("input"===u&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!N)break;if(M(c=e.className)&&(c=c.animVal),H(c)&&""!==c)for(;l=a.exec(c);)we(t,g=bn(l[2]),"C",o,s)&&(r[g]=Z(l[3])),c=c.substr(l.index+l[0].length);break;case He:!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&oe.$$addBindingClass(t),function(e,t){var i=t.parent();n||oe.$$addBindingClass(i),oe.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!j)break;!function(e,t,n,r,o){try{var s=i.exec(e.nodeValue);if(s){var a=bn(s[1]);we(t,a,"M",r,o)&&(n[a]=Z(s[2]))}}catch(e){}}(e,t,r,o,s)}return t.sort(Ce),t}function fe(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw dn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return s(r)}function ge(e,t,n){return function(r,i,o,s,a){return i=fe(i[0],t,n),e(r,i,o,s,a)}}function me(e,t,n,r,i,o){var s;return e?oe(t,n,r,i,o):function(){return s||(s=oe(t,n,r,i,o),t=n=o=null),s.apply(this,arguments)}}function ve(t,n,r,i,o,a,l,u,c){c=c||{};for(var h,p,f,g,m,v=-Number.MAX_VALUE,y=c.newScopeDirective,b=c.controllerDirectives,$=c.newIsolateScopeDirective,w=c.templateDirective,S=c.nonTlbTranscludeDirective,E=!1,A=!1,T=c.hasElementTranscludeDirective,k=r.$$element=s(n),D=a,R=i,I=!1,P=!1,O=0,_=t.length;O<_;O++){var j=(h=t[O]).$$start,N=h.$$end;if(j&&(k=fe(n,j,N)),f=void 0,v>h.priority)break;if((m=h.scope)&&(h.templateUrl||(M(m)?(Ae("new/isolated scope",$||y,h,k),$=h):Ae("new/isolated scope",$,h,k)),y=y||h),p=h.name,!I&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var B,H=O+1;B=t[H++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){P=!0;break}I=!0}if(!h.templateUrl&&h.controller&&(b=b||Me(),Ae("'"+p+"' controller",b[p],h,k),b[p]=h),m=h.transclude)if(E=!0,h.$$tlb||(Ae("transclusion",S,h,k),S=h),"element"===m)T=!0,v=h.priority,f=k,k=r.$$element=s(oe.$$createComment(p,r[p])),n=k[0],Pe(o,he(f),n),R=me(P,f,i,v,D&&D.name,{nonTlbTranscludeDirective:S});else{var U=Me();if(M(m)){f=e.document.createDocumentFragment();var V=Me(),z=Me();for(var W in x(m,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,V[e]=t,U[t]=null,z[t]=n})),x(k.contents(),(function(t){var n=V[bn(ne(t))];n?(z[n]=!0,U[n]=U[n]||e.document.createDocumentFragment(),U[n].appendChild(t)):f.appendChild(t)})),x(z,(function(e,t){if(!e)throw dn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),U)if(U[W]){var J=s(U[W].childNodes);U[W]=me(P,J,i)}f=s(f.childNodes)}else f=s(dt(n)).contents();k.empty(),(R=me(P,f,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope})).$$slots=U}if(h.template)if(A=!0,Ae("template",w,h,k),w=h,m=K(h.template)?h.template(k,r):h.template,m=ee(m),h.replace){if(D=h,f=lt(m)?[]:wn(Te(h.templateNamespace,Z(m))),n=f[0],1!==f.length||1!==n.nodeType)throw dn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p,"");Pe(o,k,n);var X={$attr:{}},Q=de(n,[],X),te=t.splice(O+1,t.length-(O+1));($||y)&&be(Q,$,y),t=t.concat(Q).concat(te),Se(r,X),_=t.length}else k.html(m);if(h.templateUrl)A=!0,Ae("template",w,h,k),w=h,h.replace&&(D=h),se=Ee(t.splice(O,t.length-O),k,r,o,E&&R,l,u,{controllerDirectives:b,newScopeDirective:y!==h&&y,newIsolateScopeDirective:$,templateDirective:w,nonTlbTranscludeDirective:S}),_=t.length;else if(h.compile)try{g=h.compile(k,r,R);var re=h.$$originalDirective||h;K(g)?ie(null,pe(re,g),j,N):g&&ie(pe(re,g.pre),pe(re,g.post),j,N)}catch(e){d(e,$e(k))}h.terminal&&(se.terminal=!0,v=Math.max(v,h.priority))}return se.scope=y&&!0===y.scope,se.transcludeOnThisElement=E,se.templateOnThisElement=A,se.transclude=R,c.hasElementTranscludeDirective=T,se;function ie(e,t,n,r){e&&(n&&(e=ge(e,n,r)),e.require=h.require,e.directiveName=p,($===h||h.$$isolateScope)&&(e=Oe(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=ge(t,n,r)),t.require=h.require,t.directiveName=p,($===h||h.$$isolateScope)&&(t=Oe(t,{isolateScope:!0})),u.push(t))}function se(e,t,i,o,a){var c,h,p,f,g,m,v,S,E,A;for(var k in n===i?(E=r,S=r.$$element):E=new G(S=s(i),r),g=t,$?f=t.$new(!0):y&&(g=t.$parent),a&&((v=function(e,t,n,r){var i;Y(e)||(r=n,n=t,t=e,e=void 0);T&&(i=m);n||(n=T?S.parent():S);if(!r)return a(e,t,i,n,P);var o=a.$$slots[r];if(o)return o(e,t,i,n,P);if(L(o))throw dn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,$e(S))}).$$boundTransclude=a,v.isSlotFilled=function(e){return!!a.$$slots[e]}),b&&(m=function(e,t,n,r,i,o,s){var a=Me();for(var l in r){var u=r[l],c={$scope:u===s||u.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=u.controller;"@"===h&&(h=t[u.name]);var p=C(h,c,!0,u.controllerAs);a[u.name]=p,e.data("$"+u.name+"Controller",p.instance)}return a}(S,E,v,b,f,t,$)),$&&(oe.$$addScopeInfo(S,f,!0,!(w&&(w===$||w===$.$$originalDirective))),oe.$$addScopeClass(S,!0),f.$$isolateBindings=$.$$isolateBindings,(A=Ne(t,E,f,f.$$isolateBindings,$)).removeWatches&&f.$on("$destroy",A.removeWatches)),m){var D=b[k],R=m[k],I=D.$$bindings.bindToController;R.instance=R(),S.data("$"+D.name+"Controller",R.instance),R.bindingInfo=Ne(g,E,R.instance,I,D)}for(x(b,(function(e,t){var n=e.require;e.bindToController&&!q(n)&&M(n)&&F(m[t].instance,ye(t,n,S,m))})),x(m,(function(e){var t=e.instance;if(K(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){d(e)}if(K(t.$onInit))try{t.$onInit()}catch(e){d(e)}K(t.$doCheck)&&(g.$watch((function(){t.$doCheck()})),t.$doCheck()),K(t.$onDestroy)&&g.$on("$destroy",(function(){t.$onDestroy()}))})),c=0,h=l.length;c<h;c++)je(p=l[c],p.isolateScope?f:t,S,E,p.require&&ye(p.directiveName,p.require,S,m),v);var P=t;for($&&($.template||null===$.templateUrl)&&(P=f),e&&e(P,i.childNodes,void 0,a),c=u.length-1;c>=0;c--)je(p=u[c],p.isolateScope?f:t,S,E,p.require&&ye(p.directiveName,p.require,S,m),v);x(m,(function(e){var t=e.instance;K(t.$postLink)&&t.$postLink()}))}}function ye(e,t,n,r){var i;if(H(t)){var o=t.match(u),s=t.substring(o[0].length),a=o[1]||o[3],l="?"===o[2];if("^^"===a?n=n.parent():i=(i=r&&r[s])&&i.instance,!i){var c="$"+s+"Controller";i="^^"===a&&n[0]&&9===n[0].nodeType?null:a?n.inheritedData(c):n.data(c)}if(!i&&!l)throw dn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(q(t)){i=[];for(var h=0,p=t.length;h<p;h++)i[h]=ye(e,t[h],n,r)}else M(t)&&(i={},x(t,(function(t,o){i[o]=ye(e,t,n,r)})));return i||null}function be(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=I(e[r],{$$isolateScope:t,$$newScope:n})}function we(e,n,i,o,s,a,l){if(n===s)return null;var u=null;if(r.hasOwnProperty(n))for(var c,h=t.get(n+"Directive"),p=0,d=h.length;p<d;p++)if(c=h[p],(L(o)||o>c.priority)&&-1!==c.restrict.indexOf(i)){if(a&&(c=I(c,{$$start:a,$$end:l})),!c.$$bindings){var f=c.$$bindings=g(c,c.name);M(f.isolateScope)&&(c.$$isolateBindings=f.isolateScope)}e.push(c),u=c}return u}function xe(e){if(r.hasOwnProperty(e))for(var n=t.get(e+"Directive"),i=0,o=n.length;i<o;i++)if(n[i].multiElement)return!0;return!1}function Se(e,t){var n=t.$attr,r=e.$attr;x(e,(function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))})),x(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Ee(e,t,n,r,i,o,a,l){var u,c,h=[],p=t[0],g=e.shift(),m=I(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=K(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),f(v).then((function(d){var f,b,$,w;if(d=ee(d),g.replace){if($=lt(d)?[]:wn(Te(y,Z(d))),f=$[0],1!==$.length||1!==f.nodeType)throw dn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},Pe(r,t,f);var S=de(f,[],b);M(g.scope)&&be(S,!0),e=S.concat(e),Se(n,b)}else f=p,t.html(d);for(e.unshift(m),u=ve(e,f,n,i,t,g,o,a,l),x(r,(function(e,n){e===f&&(r[n]=t[0])})),c=le(t[0].childNodes,i);h.length;){var E=h.shift(),C=h.shift(),A=h.shift(),T=h.shift(),F=t[0];if(!E.$$destroyed){if(C!==p){var k=C.className;l.hasElementTranscludeDirective&&g.replace||(F=dt(f)),Pe(A,s(C),F),W(s(F),k)}w=u.transcludeOnThisElement?ce(E,u.transclude,T):T,u(c,E,F,r,w)}}h=null})).catch((function(e){z(e)&&d(e)})),function(e,t,n,r,i){var o=i;t.$$destroyed||(h?h.push(t,n,r,o):(u.transcludeOnThisElement&&(o=ce(t,u.transclude,i)),u(c,t,n,r,o)))}}function Ce(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Ae(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw dn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,$e(r))}function Te(t,n){switch(t=h(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function Fe(e){return V(T.valueOf(e),"ng-prop-srcset")}function ke(e,t,n,r){if(p.test(r))throw dn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=ne(e),o=function(e,t){var n=t.toLowerCase();return S[e+"|"+n]||S["*|"+n]}(i,r),s=O;"srcset"!==r||"img"!==i&&"source"!==i?o&&(s=T.getTrusted.bind(T,o)):s=Fe,t.push({priority:100,compile:function(e,t){var i=E(t[n]),o=E(t[n],(function(e){return T.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=s(n)}n(),e.$watch(o,n)}}}})}function De(e,t,n){e.push(Io(E,A,d,t,n,!1))}function Re(e,t,r,i,o){var s=ne(e),a=function(e,t){return"srcdoc"===t?T.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?T.RESOURCE_URL:T.MEDIA_URL:"xlinkHref"===t?"image"===e?T.MEDIA_URL:"a"===e?T.URL:T.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?T.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:T.URL}(s,i),u=!o,c=l[i]||o,h=n(r,u,a,c);if(h){if("multiple"===i&&"select"===s)throw dn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",$e(e));if(p.test(i))throw dn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=Me()),l=o[i];l!==r&&(h=l&&n(l,!0,a,c),r=l),h&&(o[i]=h(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(h,(function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)})))}}}})}}function Pe(t,n,r){var i,o,a=n[0],l=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var c=i,h=c+l-1,p=t.length;c<p;c++,h++)h<p?t[c]=t[h]:delete t[c];t.length-=l-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var d=e.document.createDocumentFragment();for(i=0;i<l;i++)d.appendChild(n[i]);for(s.hasData(a)&&(s.data(r,s.data(a)),s(a).off("$destroy")),s.cleanData(d.querySelectorAll("*")),i=1;i<l;i++)delete n[i];n[0]=r,n.length=1}function Oe(e,t){return F((function(){return e.apply(null,arguments)}),e,t)}function je(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){d(e,$e(n))}}function Le(e,t){if(y)throw dn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Ne(e,t,r,i,o){var s,a=[],l={};function u(t,n,i){K(r.$onChanges)&&!se(n,i)&&(D||(e.$$postDigest(U),D=[]),s||(s={},D.push(h)),s[t]&&(i=s[t].previousValue),s[t]=new mn(i,n))}function h(){r.$onChanges(s),s=void 0}return x(i,(function(i,s){var h,p,d,f,g,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||c.call(t,m)||(Le(m,o.name),r[s]=t[m]=void 0),g=t.$observe(m,(function(e){if(H(e)||J(e)){var t=r[s];u(s,e,t),r[s]=e}})),t.$$observers[m].$$scope=e,H(h=t[m])?r[s]=n(h)(e):J(h)&&(r[s]=h),l[s]=new mn(fn,r[s]),a.push(g);break;case"=":if(!c.call(t,m)){if(v)break;Le(m,o.name),t[m]=void 0}if(v&&!t[m])break;p=E(t[m]),f=p.literal?ae:se,d=p.assign||function(){throw h=r[s]=p(e),dn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,o.name)},h=r[s]=p(e);var y=function(t){return f(t,r[s])||(f(t,h)?d(e,t=r[s]):r[s]=t),h=t};y.$stateful=!0,g=i.collection?e.$watchCollection(t[m],y):e.$watch(E(t[m],y),null,p.literal),a.push(g);break;case"<":if(!c.call(t,m)){if(v)break;Le(m,o.name),t[m]=void 0}if(v&&!t[m])break;var b=(p=E(t[m])).literal,$=r[s]=p(e);l[s]=new mn(fn,r[s]),g=e[i.collection?"$watchCollection":"$watch"](p,(function(e,t){if(t===e){if(t===$||b&&ae(t,$))return;t=$}u(s,e,t),r[s]=e})),a.push(g);break;case"&":if(v||c.call(t,m)||Le(m,o.name),(p=t.hasOwnProperty(m)?E(t[m]):P)===P&&v)break;r[s]=function(t){return p(e,t)}}})),{initialChanges:l,removeWatches:a.length&&function(){for(var e=0,t=a.length;e<t;++e)a[e]()}}}}]}function mn(e,t){this.previousValue=e,this.currentValue=t}gn.$inject=["$provide","$$sanitizeUriProvider"],mn.prototype.isFirstChange=function(){return this.previousValue===fn};var vn=/^((?:x|data)[:\-_])/i,yn=/[:\-_]+(.)/g;function bn(e){return e.replace(vn,"").replace(yn,(function(e,t,n){return n?t.toUpperCase():t}))}function $n(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s===i[a])continue e;n+=(n.length>0?" ":"")+s}return n}function wn(e){var t=(e=s(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===He&&""===n.nodeValue.trim())&&f.call(e,t,1)}return e}var xn=i("$controller"),Sn=/^(\S+)(\s+as\s+([\w$]+))?$/;function En(e,t){if(t&&H(t))return t;if(H(e)){var n=Sn.exec(e);if(n)return n[3]}}function Cn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Le(t,"controller"),M(t)?F(e,t):e[t]=n},this.$get=["$injector",function(t){return function(r,i,o,s){var a,l,u,c;if(o=!0===o,s&&H(s)&&(c=s),H(r)){if(!(l=r.match(Sn)))throw xn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(u=l[1],c=c||l[3],!(r=e.hasOwnProperty(u)?e[u]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,s=i.length,a=0;a<s;a++)r=i[a],e&&(e=(o=e)[r]);return!n&&K(e)?pe(o,e):e}(i.$scope,u,!0)))throw xn("ctrlreg","The controller with the name '{0}' is not registered.",u);je(r,u,!0)}if(o){var h=(q(r)?r[r.length-1]:r).prototype;return a=Object.create(h||null),c&&n(i,c,a,u||r.name),F((function(){var e=t.invoke(r,a,i,u);return e!==a&&(M(e)||K(e))&&(a=e,c&&n(i,c,a,u||r.name)),a}),{instance:a,identifier:c})}return a=t.instantiate(r,i,u),c&&n(i,c,a,u||r.name),a};function n(e,t,n,r){if(!e||!M(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function An(){this.$get=["$window",function(e){return s(e.document)}]}function Tn(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",(function(){e.off("visibilitychange",i)})),function(){return r}}]}function Fn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var kn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof s&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Dn={"Content-Type":"application/json;charset=utf-8"},Rn=/^\[|^\{(?!\{)/,In={"[":/]$/,"{":/}$/},Pn=/^\)]\}',?\n/,On=i("$http");function _n(e){return M(e)?V(e)?e.toISOString():fe(e):e}function jn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return S(e,(function(e,n){null===e||L(e)||K(e)||(q(e)?x(e,(function(e){t.push(Ee(n)+"="+Ee(_n(e)))})):t.push(Ee(n)+"="+Ee(_n(e))))})),t.join("&")}}}function Ln(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){q(n)?x(n,(function(t,n){e(t,r+"["+(M(t)?n:"")+"]")})):M(n)&&!V(n)?S(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(K(n)&&(n=n()),t.push(Ee(r)+"="+(null==n?"":Ee(_n(n)))))}(e,"",!0),t.join("&")}}}function Nn(e,t){if(H(e)){var n=e.replace(Pn,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(s=(o=n).match(Rn))&&In[s[0]].test(o))try{e=ge(n)}catch(t){if(!i)return e;throw On("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var o,s;return e}function Mn(e){var t,n=Me();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return H(e)?x(e.split("\n"),(function(e){t=e.indexOf(":"),r(h(Z(e.substr(0,t))),Z(e.substr(t+1)))})):M(e)&&x(e,(function(e,t){r(h(t),Z(e))})),n}function Bn(e){var t;return function(n){if(t||(t=Mn(e)),n){var r=t[h(n)];return void 0===r&&(r=null),r}return t}}function Hn(e,t,n,r){return K(r)?r(e,t,n):(x(r,(function(r){e=r(e,t,n)})),e)}function Un(e){return 200<=e&&e<300}function Vn(){var e=this.defaults={transformResponse:[Nn],transformRequest:[function(e){return!M(e)||(t=e,"[object File]"===m.call(t))||function(e){return"[object Blob]"===m.call(e)}(e)||function(e){return"[object FormData]"===m.call(e)}(e)?e:fe(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ue(Dn),put:Ue(Dn),patch:Ue(Dn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return N(e)?(t=!!e,this):t};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,s,a,l,u,c,d,f){var g=l("$http");e.paramSerializer=H(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var m=[];x(n,(function(e){m.unshift(H(e)?d.get(e):d.invoke(e))}));var v,y=(v=[si].concat(r.map(li)),function(e){var t=li(e);return v.some(ui.bind(null,t))});function b(n){if(!M(n))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!H(f.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var r=F({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);r.headers=function(t){var n,r,i,o=e.headers,s=F({},t.headers);o=F({},o.common,o[h(t.method)]);e:for(n in o){for(i in r=h(n),s)if(h(i)===r)continue e;s[n]=o[n]}return function(e,t){var n,r={};return x(e,(function(e,i){K(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}(s,Ue(t))}(n),r.method=p(r.method),r.paramSerializer=H(r.paramSerializer)?d.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var l=[],v=[],$=c.resolve(r);return x(m,(function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&v.push(e.response,e.responseError)})),$=w($,l),$=($=w($=$.then((function(n){var r=n.headers,i=Hn(n.data,Bn(r),void 0,n.transformRequest);L(i)&&x(r,(function(e,t){"content-type"===h(t)&&delete r[t]}));L(n.withCredentials)&&!L(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,o,l=c.defer(),p=l.promise,d=n.headers,m="jsonp"===h(n.method),v=n.url;m?v=f.getTrustedResourceUrl(v):H(v)||(v=f.valueOf(v));v=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(v,n.paramSerializer(n.params)),m&&(v=function(e,t){var n=e.split("?");if(n.length>2)throw On("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return x(xe(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw On("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw On("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));b.pendingRequests.push(n),p.then(C,C),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=M(n.cache)?n.cache:M(e.cache)?e.cache:g);i&&(N(o=i.get(v))?X(o)?o.then(E,E):q(o)?S(o[1],o[0],Ue(o[2]),o[3],o[4]):S(o,200,{},"OK","complete"):i.put(v,p));if(L(o)){var $=y(n.url)?a()[n.xsrfCookieName||e.xsrfCookieName]:void 0;$&&(d[n.xsrfHeaderName||e.xsrfHeaderName]=$),s(n.method,v,r,(function(e,n,r,o,s){i&&(Un(e)?i.put(v,[e,n,Mn(r),o,s]):i.remove(v));function a(){S(n,e,r,o,s)}t?u.$applyAsync(a):(a(),u.$$phase||u.$apply())}),d,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return p;function w(e){if(e){var n={};return x(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?u.$applyAsync(r):u.$$phase?r():u.$apply(r)}})),n}}function S(e,t,r,i,o){(Un(t=t>=-1?t:0)?l.resolve:l.reject)({data:e,status:t,headers:Bn(r),config:n,statusText:i,xhrStatus:o})}function E(e){S(e.data,e.status,Ue(e.headers()),e.statusText,e.xhrStatus)}function C(){var e=b.pendingRequests.indexOf(n);-1!==e&&b.pendingRequests.splice(e,1)}}(n,i).then(S,S)})),v)).finally((function(){o.$$completeOutstandingRequest(P,"$http")}));function w(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function S(e){var t=F({},e);return t.data=Hn(e.data,e.headers,e.status,r.transformResponse),Un(e.status)?t:c.reject(t)}}return b.pendingRequests=[],function(e){x(arguments,(function(e){b[e]=function(t,n){return b(F({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){x(arguments,(function(e){b[e]=function(t,n,r){return b(F({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),b.defaults=e,b}]}function qn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(o,s,a,l,u,c,p,d,f,g){if(s=s||e.url(),"jsonp"===h(o))var m=r.createCallback(s),v=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=e,o.async=!0,s=function(e){o.removeEventListener("load",s),o.removeEventListener("error",s),i.body.removeChild(o),o=null;var a=-1,l="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),l=e.type,a="error"===e.type?404:200),n&&n(a,l)},o.addEventListener("load",s),o.addEventListener("error",s),i.body.appendChild(o),s}(s,m,(function(e,t){var n=200===e&&r.getResponse(m);S(l,e,n,"",t,"complete"),r.removeCallback(m)}));else{var y=t(o,s),b=!1;y.open(o,s,!0),x(u,(function(e,t){N(e)&&y.setRequestHeader(t,e)})),y.onload=function(){var e=y.statusText||"",t="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=t?200:"file"===li(s).protocol?404:0),S(l,n,t,y.getAllResponseHeaders(),e,"complete")};if(y.onerror=function(){S(l,-1,null,null,"","error")},y.ontimeout=function(){S(l,-1,null,null,"","timeout")},y.onabort=function(){S(l,-1,null,null,"",b?"timeout":"abort")},x(f,(function(e,t){y.addEventListener(t,e)})),x(g,(function(e,t){y.upload.addEventListener(t,e)})),p&&(y.withCredentials=!0),d)try{y.responseType=d}catch(e){if("json"!==d)throw e}y.send(L(a)?null:a)}if(c>0)var $=n((function(){w("timeout")}),c);else X(c)&&c.then((function(){w(N(c.$$timeoutId)?"timeout":"abort")}));function w(e){b="timeout"===e,v&&v(),y&&y.abort()}function S(e,t,r,i,o,s){N($)&&n.cancel($),v=y=null,e(t,r,i,o,s)}}}(e,r,e.defer,t,n[0])}]}var Kn=b.$interpolateMinErr=i("$interpolate");function Gn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=e.length,s=t.length,a=new RegExp(e.replace(/./g,u),"g"),l=new RegExp(t.replace(/./g,u),"g");function u(e){return"\\\\\\"+e}function c(n){return n.replace(a,e).replace(l,t)}function h(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function p(a,l,u,p){var d=u===i.URL||u===i.MEDIA_URL;if(!a.length||-1===a.indexOf(e)){if(l)return;var f=c(a);d&&(f=i.getTrusted(u,f));var g=_(f);return g.exp=a,g.expressions=[],g.$$watchDelegate=h,g}p=!!p;for(var m,v,y,b,$,w=0,x=[],S=a.length,E=[],C=[];w<S;){if(-1===(m=a.indexOf(e,w))||-1===(v=a.indexOf(t,m+o))){w!==S&&E.push(c(a.substring(w)));break}w!==m&&E.push(c(a.substring(w,m))),b=a.substring(m+o,v),x.push(b),w=v+s,C.push(E.length),E.push("")}$=1===E.length&&1===C.length;var A=d&&$?void 0:function(e){try{return e=u&&!d?i.getTrusted(u,e):i.valueOf(e),p&&!N(e)?e:Be(e)}catch(e){r(Kn.interr(a,e))}};if(y=x.map((function(e){return n(e,A)})),!l||x.length){var T=function(e){for(var t=0,n=x.length;t<n;t++){if(p&&L(e[t]))return;E[C[t]]=e[t]}return d?i.getTrusted(u,$?E[0]:E.join("")):(u&&E.length>1&&Kn.throwNoconcat(a),E.join(""))};return F((function(e){var t=0,n=x.length,i=new Array(n);try{for(;t<n;t++)i[t]=y[t](e);return T(i)}catch(e){r(Kn.interr(a,e))}}),{exp:a,expressions:x,$$watchDelegate:function(e,t){var n;return e.$watchGroup(y,(function(r,i){var o=T(r);t.call(this,o,r!==i?n:o,e),n=o}))}})}}return p.startSymbol=function(){return e},p.endSymbol=function(){return t},p}]}Kn.throwNoconcat=function(e){throw Kn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},Kn.interr=function(e,t){return Kn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Wn=i("$interval");function Yn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e((function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o}),r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Wn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,i=n[t];return Mr(i.promise),i.reject("canceled"),r(t),!0},i}]}function Jn(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(s,a,l,u){var c=arguments.length>4,h=c?he(arguments,4):[],p=0,d=N(u)&&!u,f=(d?n:t).defer(),g=f.promise;function m(){c?s.apply(null,h):s(p)}function v(){d?e.defer(m):r.$evalAsync(m),f.notify(p++),l>0&&p>=l&&(f.resolve(p),o(g.$$intervalId)),d||r.$apply()}return l=N(l)?l:0,g.$$intervalId=i(v,a,f,d),g}}}]}var Xn=function(){this.$get=function(){var e=b.callbacks,t={};return{createCallback:function(n){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,o=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return t[i]=e[r]=o,i},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var r=t[n];delete e[r.id],delete t[n]}}}},Qn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Zn={http:80,https:443,ftp:21},er=i("$location");function tr(e,t,n){var r,i=(r=[],x(t,(function(e,t){q(e)?x(e,(function(e){r.push(Ee(t,!0)+(!0===e?"":"="+Ee(e,!0)))})):r.push(Ee(t,!0)+(!0===e?"":"="+Ee(e,!0)))})),r.length?r.join("&"):""),o=n?"#"+Se(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Se(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function nr(e,t){var n=li(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=D(n.port)||Zn[n.protocol]||null}var rr=/^\s*[\\/]{2,}/;function ir(e,t,n){if(rr.test(e))throw er("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=li(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),t.$$search=xe(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function or(e,t){return e.slice(0,t.length)===t}function sr(e,t){if(or(t,e))return t.substr(e.length)}function ar(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function lr(e,t,n){this.$$html5=!0,n=n||"",nr(e,this),this.$$parse=function(e){var n=sr(t,e);if(!H(n))throw er("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);ir(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(N(o=sr(e,r))?(s=o,a=n&&N(o=sr(n,o))?t+(sr("/",o)||o):e+s):N(o=sr(t,r))?a=t+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a);var o,s,a}}function ur(e,t,n){nr(e,this),this.$$parse=function(r){var i,o=sr(e,r)||sr(t,r);L(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",L(o)&&(e=r,this.replace())):L(i=sr(n,o))&&(i=o),ir(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;or(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return ar(e)===ar(t)&&(this.$$parse(t),!0)}}function cr(e,t,n){this.$$html5=!0,ur.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===ar(r)?o=r:(s=sr(t,r))?o=e+n+s:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,s},this.$$normalizeUrl=function(t){return e+n+t}}var hr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=tr(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:pr("$$absUrl"),url:function(e){if(L(e))return this.$$url;var t=Qn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:pr("$$protocol"),host:pr("$$host"),port:pr("$$port"),path:dr("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(H(e)||U(e))e=e.toString(),this.$$search=xe(e);else{if(!M(e))throw er("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");x(e=oe(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:L(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:dr("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function pr(e){return function(){return this[e]}}function dr(e,t){return function(n){return L(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function fr(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return N(t)?(e=t,this):e},this.html5Mode=function(e){return J(e)?(t.enabled=e,this):M(e)?(J(e.enabled)&&(t.enabled=e.enabled),J(e.requireBase)&&(t.requireBase=e.requireBase),(J(e.rewriteLinks)||H(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var l,u,c,h,p=r.baseHref(),d=r.url();if(t.enabled){if(!p&&t.requireBase)throw er("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(h=d).substring(0,h.indexOf("/",h.indexOf("//")+2))+(p||"/"),u=i.history?lr:cr}else c=ar(d),u=ur;var f=function(e){return e.substr(0,ar(e).lastIndexOf("/")+1)}(c);(l=new u(c,f,"#"+e)).$$parseLinkUrl(d,d),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}o.on("click",(function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var a=s(e.target);"a"!==ne(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;if(!H(i)||!L(a.attr(i))){var u=a.prop("href"),c=a.attr("href")||a.attr("xlink:href");M(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=li(u.animVal).href),g.test(u)||!u||a.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(u,c)&&(e.preventDefault(),l.absUrl()!==r.url()&&n.$apply())}}})),l.absUrl()!==d&&r.url(l.absUrl(),!0);var v=!0;return r.onUrlChange((function(e,t){or(e,f)?(n.$evalAsync((function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,m(i,!1,o)):(v=!1,y(i,o)))})),n.$$phase||n.$digest()):a.location.href=e})),n.$watch((function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=r.url(),t=l.absUrl(),o=r.state(),s=l.$$replace,a=!((u=e)===(c=t)||li(u).href===li(c).href)||l.$$html5&&i.history&&o!==l.$$state;(v||a)&&(v=!1,n.$evalAsync((function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(a&&m(t,s,o===l.$$state?null:l.$$state),y(e,o)))})))}var u,c;l.$$replace=!1})),l;function y(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}}]}function gr(){var e=!0,t=this;this.debugEnabled=function(t){return N(t)?(e=t,this):e},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:(r=a("debug"),function(){e&&r.apply(t,arguments)})};function s(e){return z(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function a(e){var t=n.console||{},r=t[e]||t.log||P;return function(){var e=[];return x(arguments,(function(t){e.push(s(t))})),Function.prototype.apply.call(r,t,e)}}}]}x([cr,ur,lr],(function(e){e.prototype=Object.create(hr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==lr||!this.$$html5)throw er("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=L(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var mr=i("$parse"),vr={}.constructor.prototype.valueOf;function yr(e){return e+""}var br=Me();x("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){br[e]=!0}));var $r={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},wr=function(e){this.options=e};wr.prototype={constructor:wr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=br[t],o=br[n],s=br[r];if(i||o||s){var a=s?r:o?n:t;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=N(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw mr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=h(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{n+=$r[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var xr=function(e,t){this.lexer=e,this.options=t};function Sr(e,t){return void 0!==e?e:t}function Er(e,t){return void 0===e?t:void 0===t?e:e+t}xr.Program="Program",xr.ExpressionStatement="ExpressionStatement",xr.AssignmentExpression="AssignmentExpression",xr.ConditionalExpression="ConditionalExpression",xr.LogicalExpression="LogicalExpression",xr.BinaryExpression="BinaryExpression",xr.UnaryExpression="UnaryExpression",xr.CallExpression="CallExpression",xr.MemberExpression="MemberExpression",xr.Identifier="Identifier",xr.Literal="Literal",xr.ArrayExpression="ArrayExpression",xr.Property="Property",xr.ObjectExpression="ObjectExpression",xr.ThisExpression="ThisExpression",xr.LocalsExpression="LocalsExpression",xr.NGValueParameter="NGValueParameter",xr.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:xr.Program,body:e}},expressionStatement:function(){return{type:xr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Tr(e))throw mr("lval","Trying to assign a value to a non l-value");e={type:xr.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:xr.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:xr.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:xr.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:xr.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=oe(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:xr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:xr.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:xr.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:xr.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:xr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:xr.Identifier,name:e.text}},constant:function(){return{type:xr.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:xr.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:xr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:xr.ObjectExpression,properties:t}},throwError:function(e,t){throw mr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw mr("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw mr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],s=o.text;if(s===t||s===n||s===r||s===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:xr.ThisExpression},$locals:{type:xr.LocalsExpression}}};function Cr(e,t,n){var r,i,o,s=e.isPure=function(e,t){switch(e.type){case xr.MemberExpression:if(e.computed)return!1;break;case xr.UnaryExpression:return 1;case xr.BinaryExpression:return"+"!==e.operator&&1;case xr.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case xr.Program:r=!0,x(e.body,(function(e){Cr(e.expression,t,s),r=r&&e.expression.constant})),e.constant=r;break;case xr.Literal:e.constant=!0,e.toWatch=[];break;case xr.UnaryExpression:Cr(e.argument,t,s),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case xr.BinaryExpression:Cr(e.left,t,s),Cr(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case xr.LogicalExpression:Cr(e.left,t,s),Cr(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case xr.ConditionalExpression:Cr(e.test,t,s),Cr(e.alternate,t,s),Cr(e.consequent,t,s),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case xr.Identifier:e.constant=!1,e.toWatch=[e];break;case xr.MemberExpression:Cr(e.object,t,s),e.computed&&Cr(e.property,t,s),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case xr.CallExpression:o=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=o,i=[],x(e.arguments,(function(e){Cr(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=o?i:[e];break;case xr.AssignmentExpression:Cr(e.left,t,s),Cr(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case xr.ArrayExpression:r=!0,i=[],x(e.elements,(function(e){Cr(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case xr.ObjectExpression:r=!0,i=[],x(e.properties,(function(e){Cr(e.value,t,s),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Cr(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case xr.ThisExpression:case xr.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ar(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Tr(e){return e.type===xr.Identifier||e.type===xr.MemberExpression}function Fr(e){if(1===e.body.length&&Tr(e.body[0].expression))return{type:xr.AssignmentExpression,left:e.body[0].expression,right:{type:xr.NGValueParameter},operator:"="}}function kr(e){this.$filter=e}function Dr(e){this.$filter=e}function Rr(e,t,n){this.ast=new xr(e,n),this.astCompiler=n.csp?new Dr(t):new kr(t)}function Ir(e){return K(e.valueOf)?e.valueOf():vr.call(e)}function Pr(){var e,t,n=Me(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){var o={csp:le().noUnsafeEval,literals:oe(r),isIdentifierStart:K(e)&&e,isIdentifierContinue:K(t)&&t};return s.$$getAst=function(e){return new Rr(new wr(o),i,o).getAst(e).ast},s;function s(e,t){var r,s;switch(typeof e){case"string":if(e=e.trim(),!(r=n[s=e]))r=new Rr(new wr(o),i,o).parse(e),n[s]=p(r);return d(r,t);case"function":return d(e,t);default:return d(P,t)}}function a(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Ir(e))&&!n)&&(e===t||e!=e&&t!=t)}function l(e,t,n,r,i){var o,s=r.inputs;if(1===s.length){var l=a;return s=s[0],e.$watch((function(e){var t=s(e);return a(t,l,s.isPure)||(o=r(e,void 0,void 0,[t]),l=t&&Ir(t)),o}),t,n,i)}for(var u=[],c=[],h=0,p=s.length;h<p;h++)u[h]=a,c[h]=null;return e.$watch((function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var l=s[n](e);(t||(t=!a(l,u[n],s[n].isPure)))&&(c[n]=l,u[n]=l&&Ir(l))}return t&&(o=r(e,void 0,void 0,c)),o}),t,n,i)}function u(e,t,n,r,i){var o,s,a=r.literal?c:N,l=r.$$intercepted||r,u=r.$$interceptor||O,h=r.inputs&&!l.inputs;return f.literal=r.literal,f.constant=r.constant,f.inputs=r.inputs,p(f),o=e.$watch(f,t,n,i);function d(){a(s)&&o()}function f(e,t,n,r){return s=h&&r?r[0]:l(e,t,n,r),a(s)&&e.$$postDigest(d),u(s)}}function c(e){var t=!0;return x(e,(function(e){N(e)||(t=!1)})),t}function h(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function p(e){return e.constant?e.$$watchDelegate=h:e.oneTime?e.$$watchDelegate=u:e.inputs&&(e.$$watchDelegate=l),e}function d(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,s){var a=n&&s?s[0]:e(r,i,o,s);return t(a)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),p(r)}}]}function Or(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return jr((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return N(t)?(e=t,this):e}}function _r(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return jr((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return N(t)?(e=t,this):e}}function jr(e,t,n){var r=i("$q",TypeError),o=0,s=[];function a(){return new l}function l(){var e=this.promise=new u;this.resolve=function(t){p(e,t)},this.reject=function(t){d(e,t)},this.notify=function(t){g(e,t)}}function u(){this.$$state={status:0}}function c(){for(;!o&&s.length;){var e=s.shift();if(!Lr(e)){Nr(e);var n="Possibly unhandled rejection: "+Ve(e.value);z(e.value)?t(e.value,n):t(n)}}}function h(r){!n||r.pending||2!==r.status||Lr(r)||(0===o&&0===s.length&&e(c),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,e((function(){!function(r){var i,s,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var l=0,u=a.length;l<u;++l){Nr(r),s=a[l][0],i=a[l][r.status];try{K(i)?p(s,i(r.value)):1===r.status?p(s,r.value):d(s,r.value)}catch(e){d(s,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--o,n&&0===o&&e(c)}}(r)})))}function p(e,t){e.$$state.status||(t===e?f(e,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function e(t,n){var r,i=!1;try{(M(n)||K(n))&&(r=n.then),K(r)?(t.$$state.status=-1,r.call(n,o,s,(function(e){g(t,e)}))):(t.$$state.value=n,t.$$state.status=1,h(t.$$state))}catch(e){s(e)}function o(n){i||(i=!0,e(t,n))}function s(e){i||(i=!0,f(t,e))}}(e,t))}function d(e,t){e.$$state.status||f(e,t)}function f(e,t){e.$$state.value=t,e.$$state.status=2,h(e.$$state)}function g(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e((function(){for(var e,n,o=0,s=i.length;o<s;o++){n=i[o][0],e=i[o][3];try{g(n,K(e)?e(r):r)}catch(e){t(e)}}}))}function m(e){var t=new u;return d(t,e),t}function v(e,t,n){var r=null;try{K(n)&&(r=n())}catch(e){return m(e)}return X(r)?r.then((function(){return t(e)}),m):t(e)}function y(e,t,n,r){var i=new u;return p(i,e),i.then(t,n,r)}F(u.prototype,{then:function(e,t,n){if(L(e)&&L(t)&&L(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&h(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return v(t,b,e)}),(function(t){return v(t,m,e)}),t)}});var b=y;function $(e){if(!K(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new u;return e((function(e){p(t,e)}),(function(e){d(t,e)})),t}return $.prototype=u.prototype,$.defer=a,$.reject=m,$.when=y,$.resolve=b,$.all=function(e){var t=new u,n=0,r=q(e)?[]:{};return x(e,(function(e,i){n++,y(e).then((function(e){r[i]=e,--n||p(t,r)}),(function(e){d(t,e)}))})),0===n&&p(t,r),t},$.race=function(e){var t=a();return x(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},$}function Lr(e){return!!e.pur}function Nr(e){e.pur=!0}function Mr(e){e.$$state&&Nr(e.$$state)}function Br(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Hr(){var e=10,t=i("$rootScope"),n=null,r=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(i,s,a){function l(e){e.currentScope.$$destroyed=!0}function u(){this.$id=C(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}u.prototype={constructor:u,$new:function(e,t){var n;return t=t||this,e?(n=new u).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=C(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",l),n},$watch:function(e,t,r,i){var o=s(e),a=K(t)?t:P;if(o.$$watchDelegate)return o.$$watchDelegate(this,a,r,o,e);var l=this,u=l.$$watchers,c={fn:a,last:$,get:o,exp:i||e,eq:!!r};return n=null,u||((u=l.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(c),u.$$digestWatchIndex++,y(this,1),function(){var e=ie(u,c);e>=0&&(y(l,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,s=!1,a=!0;if(!e.length){var l=!0;return o.$evalAsync((function(){l&&t(r,r,o)})),function(){l=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)}));function u(){s=!1;try{a?(a=!1,t(r,r,o)):t(r,n,o)}finally{for(var i=0;i<e.length;i++)n[i]=r[i]}}return x(e,(function(e,t){var n=o.$watch(e,(function(e){r[t]=e,s||(s=!0,o.$evalAsync(u))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){g.$$pure=s(e).literal,g.$stateful=!g.$$pure;var n,r,i,o=this,a=t.length>1,l=0,u=s(e,g),h=[],p={},d=!0,f=0;function g(e){var t,i,o,s;if(!L(n=e)){if(M(n))if(w(n)){r!==h&&(f=(r=h).length=0,l++),t=n.length,f!==t&&(l++,r.length=f=t);for(var a=0;a<t;a++)s=r[a],o=n[a],s!=s&&o!=o||s===o||(l++,r[a]=o)}else{for(i in r!==p&&(r=p={},f=0,l++),t=0,n)c.call(n,i)&&(t++,o=n[i],s=r[i],i in r?s!=s&&o!=o||s===o||(l++,r[i]=o):(f++,r[i]=o,l++));if(f>t)for(i in l++,r)c.call(n,i)||(f--,delete r[i])}else r!==n&&(r=n,l++);return l}}return this.$watch(u,(function(){if(d?(d=!1,t(n,n,o)):t(n,i,o),a)if(M(n))if(w(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)c.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,s,l,u,c,f,y,b,w,x=e,E=p.length?h:this,C=[];m("$digest"),a.$$checkUrlChange(),this===h&&null!==r&&(a.defer.cancel(r),S()),n=null;do{c=!1,y=E;for(var A=0;A<p.length;A++){try{(0,(w=p[A]).fn)(w.scope,w.locals)}catch(e){i(e)}n=null}p.length=0;e:do{if(u=!y.$$suspended&&y.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(o=u[u.$$digestWatchIndex])if((s=(0,o.get)(y))===(l=o.last)||(o.eq?ae(s,l):R(s)&&R(l))){if(o===n){c=!1;break e}}else c=!0,n=o,o.last=o.eq?oe(s,null):s,(0,o.fn)(s,l===$?s:l,y),x<5&&(C[b=4-x]||(C[b]=[]),C[b].push({msg:K(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:s,oldVal:l}))}catch(e){i(e)}if(!(f=!y.$$suspended&&y.$$watchersCount&&y.$$childHead||y!==E&&y.$$nextSibling))for(;y!==E&&!(f=y.$$nextSibling);)y=y.$parent}while(y=f);if((c||p.length)&&!x--)throw v(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,C)}while(c||p.length);for(v();g<d.length;)try{d[g++]()}catch(e){i(e)}d.length=g=0,a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===h&&a.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=P,this.$on=this.$watch=this.$watchGroup=function(){return P},this.$$listeners={},this.$$nextSibling=null,function e(t){9===o&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){h.$$phase||p.length||a.defer((function(){p.length&&h.$digest()}),null,"$evalAsync"),p.push({scope:this,fn:s(e),locals:t})},$$postDigest:function(e){d.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{v()}}catch(e){i(e)}finally{try{h.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){var t=this;e&&f.push((function(){t.$eval(e)})),e=s(e),null===r&&(r=a.defer((function(){h.$apply(S)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],b(i,1,e))}},$emit:function(e,t){var n,r,o,s=[],a=this,l=!1,u={name:e,targetScope:a,stopPropagation:function(){l=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=ce([u],arguments,1);do{for(n=a.$$listeners[e]||s,u.currentScope=a,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,c)}catch(e){i(e)}else n.splice(r,1),r--,o--;if(l)break;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,r=n,o=n,s={name:e,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return s;for(var a,l,u,c=ce([s],arguments,1);r=o;){for(s.currentScope=r,l=0,u=(a=r.$$listeners[e]||[]).length;l<u;l++)if(a[l])try{a[l].apply(null,c)}catch(e){i(e)}else a.splice(l,1),l--,u--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}};var h=new u,p=h.$$asyncQueue=[],d=h.$$postDigestQueue=[],f=h.$$applyAsyncQueue=[],g=0;return h;function m(e){if(h.$$phase)throw t("inprog","{0} already in progress",h.$$phase);h.$$phase=e}function v(){h.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function $(){}function S(){for(;f.length;)try{f.shift()()}catch(e){i(e)}r=null}}]}function Ur(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return N(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return N(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=li(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}kr.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Cr(e,t.$filter);var n,r="";if(this.stage="assign",n=Fr(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Ar(e.body);t.stage="inputs",x(o,(function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",a=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,yr,Sr,Er);return this.state=this.stage=void 0,a},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return x(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return x(this.state.filters,(function(n,r){e.push(n+"=$filter("+t.escape(r)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,o){var s,a,l,u,c,h=this;if(r=r||P,!o&&N(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case xr.Program:x(e.body,(function(t,n){h.recurse(t.expression,void 0,void 0,(function(e){a=e})),n!==e.body.length-1?h.current().body.push(a,";"):h.return_(a)}));break;case xr.Literal:u=this.escape(e.value),this.assign(t,u),r(t||u);break;case xr.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){a=e})),u=e.operator+"("+this.ifDefined(a,0)+")",this.assign(t,u),r(u);break;case xr.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){s=e})),this.recurse(e.right,void 0,void 0,(function(e){a=e})),u="+"===e.operator?this.plus(s,a):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(a,0):"("+s+")"+e.operator+"("+a+")",this.assign(t,u),r(u);break;case xr.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case xr.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case xr.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),(function(){h.if_("inputs"===h.stage||"s",(function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))}))}),t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case xr.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,s,void 0,(function(){h.if_(h.notNull(s),(function(){e.computed?(a=h.nextId(),h.recurse(e.property,a),h.getStringValue(a),i&&1!==i&&h.if_(h.not(h.computedMember(s,a)),h.lazyAssign(h.computedMember(s,a),"{}")),u=h.computedMember(s,a),h.assign(t,u),n&&(n.computed=!0,n.name=a)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(s,e.property.name)),h.lazyAssign(h.nonComputedMember(s,e.property.name),"{}")),u=h.nonComputedMember(s,e.property.name),h.assign(t,u),n&&(n.computed=!1,n.name=e.property.name))}),(function(){h.assign(t,"undefined")})),r(t)}),!!i);break;case xr.CallExpression:t=t||this.nextId(),e.filter?(a=h.filter(e.callee.name),l=[],x(e.arguments,(function(e){var t=h.nextId();h.recurse(e,t),l.push(t)})),u=a+"("+l.join(",")+")",h.assign(t,u),r(t)):(a=h.nextId(),s={},l=[],h.recurse(e.callee,a,s,(function(){h.if_(h.notNull(a),(function(){x(e.arguments,(function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,(function(e){l.push(e)}))})),u=s.name?h.member(s.context,s.name,s.computed)+"("+l.join(",")+")":a+"("+l.join(",")+")",h.assign(t,u)}),(function(){h.assign(t,"undefined")})),r(t)})));break;case xr.AssignmentExpression:a=this.nextId(),s={},this.recurse(e.left,void 0,s,(function(){h.if_(h.notNull(s.context),(function(){h.recurse(e.right,a),u=h.member(s.context,s.name,s.computed)+e.operator+a,h.assign(t,u),r(t||u)}))}),1);break;case xr.ArrayExpression:l=[],x(e.elements,(function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,(function(e){l.push(e)}))})),u="["+l.join(",")+"]",this.assign(t,u),r(t||u);break;case xr.ObjectExpression:l=[],c=!1,x(e.properties,(function(e){e.computed&&(c=!0)})),c?(t=t||this.nextId(),this.assign(t,"{}"),x(e.properties,(function(e){e.computed?(s=h.nextId(),h.recurse(e.key,s)):s=e.key.type===xr.Identifier?e.key.name:""+e.key.value,a=h.nextId(),h.recurse(e.value,a),h.assign(h.member(t,s,e.computed),a)}))):(x(e.properties,(function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,(function(e){l.push(h.escape(t.key.type===xr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),u="{"+l.join(",")+"}",this.assign(t,u)),r(t||u);break;case xr.ThisExpression:this.assign(t,"s"),r(t||"s");break;case xr.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case xr.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var s=this;return function(){s.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(H(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(U(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw mr("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Dr.prototype={compile:function(e){var t,n,r=this;Cr(e,r.$filter),(t=Fr(e))&&(n=this.recurse(t));var i,o=Ar(e.body);o&&(i=[],x(o,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var s=[];x(e.body,(function(e){s.push(r.recurse(e.expression))}));var a=0===e.body.length?P:1===e.body.length?s[0]:function(e,t){var n;return x(s,(function(r){n=r(e,t)})),n};return n&&(a.assign=function(e,t,r){return n(e,r,t)}),i&&(a.inputs=i),a},recurse:function(e,t,n){var r,i,o,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case xr.Literal:return this.value(e.value,t);case xr.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case xr.BinaryExpression:case xr.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case xr.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case xr.Identifier:return s.identifier(e.name,t,n);case xr.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case xr.CallExpression:return o=[],x(e.arguments,(function(e){o.push(s.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,s){for(var a=[],l=0;l<o.length;++l)a.push(o[l](e,n,r,s));var u=i.apply(void 0,a,s);return t?{context:void 0,name:void 0,value:u}:u}:function(e,n,r,s){var a,l=i(e,n,r,s);if(null!=l.value){for(var u=[],c=0;c<o.length;++c)u.push(o[c](e,n,r,s));a=l.value.apply(l.context,u)}return t?{value:a}:a};case xr.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,s){var a=r(e,n,o,s),l=i(e,n,o,s);return a.context[a.name]=l,t?{value:l}:l};case xr.ArrayExpression:return o=[],x(e.elements,(function(e){o.push(s.recurse(e))})),function(e,n,r,i){for(var s=[],a=0;a<o.length;++a)s.push(o[a](e,n,r,i));return t?{value:s}:s};case xr.ObjectExpression:return o=[],x(e.properties,(function(e){e.computed?o.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):o.push({key:e.key.type===xr.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})})),function(e,n,r,i){for(var s={},a=0;a<o.length;++a)o[a].computed?s[o[a].key(e,n,r,i)]=o[a].value(e,n,r,i):s[o[a].key]=o[a].value(e,n,r,i);return t?{value:s}:s};case xr.ThisExpression:return function(e){return t?{value:e}:e};case xr.LocalsExpression:return function(e,n){return t?{value:n}:n};case xr.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=N(s)?+s:0,t?{value:s}:s}},"unary-":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=N(s)?-s:-0,t?{value:s}:s}},"unary!":function(e,t){return function(n,r,i,o){var s=!e(n,r,i,o);return t?{value:s}:s}},"binary+":function(e,t,n){return function(r,i,o,s){var a=Er(e(r,i,o,s),t(r,i,o,s));return n?{value:a}:a}},"binary-":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s),l=t(r,i,o,s),u=(N(a)?a:0)-(N(l)?l:0);return n?{value:u}:u}},"binary*":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)*t(r,i,o,s);return n?{value:a}:a}},"binary/":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)/t(r,i,o,s);return n?{value:a}:a}},"binary%":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)%t(r,i,o,s);return n?{value:a}:a}},"binary===":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)===t(r,i,o,s);return n?{value:a}:a}},"binary!==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!==t(r,i,o,s);return n?{value:a}:a}},"binary==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)==t(r,i,o,s);return n?{value:a}:a}},"binary!=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!=t(r,i,o,s);return n?{value:a}:a}},"binary<":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<t(r,i,o,s);return n?{value:a}:a}},"binary>":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>t(r,i,o,s);return n?{value:a}:a}},"binary<=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<=t(r,i,o,s);return n?{value:a}:a}},"binary>=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>=t(r,i,o,s);return n?{value:a}:a}},"binary&&":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)&&t(r,i,o,s);return n?{value:a}:a}},"binary||":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)||t(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(e,t,n,r){return function(i,o,s,a){var l=e(i,o,s,a)?t(i,o,s,a):n(i,o,s,a);return r?{value:l}:l}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,s){var a=i&&e in i?i:r;n&&1!==n&&a&&null==a[e]&&(a[e]={});var l=a?a[e]:void 0;return t?{context:a,name:e,value:l}:l}},computedMember:function(e,t,n,r){return function(i,o,s,a){var l,u,c=e(i,o,s,a);return null!=c&&(l=yr(l=t(i,o,s,a)),r&&1!==r&&c&&!c[l]&&(c[l]={}),u=c[l]),n?{context:c,name:l,value:u}:u}},nonComputedMember:function(e,t,n,r){return function(i,o,s,a){var l=e(i,o,s,a);r&&1!==r&&l&&null==l[t]&&(l[t]={});var u=null!=l?l[t]:void 0;return n?{context:l,name:t,value:u}:u}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Rr.prototype={constructor:Rr,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===xr.Literal||e.body[0].expression.type===xr.ArrayExpression||e.body[0].expression.type===xr.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Vr=i("$sce"),qr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zr=/_([a-z])/g;function Kr(e){return e.replace(zr,Xe)}function Gr(e){var t=[];return N(e)&&x(e,(function(e){t.push(function(e){if("self"===e)return e;if(H(e)){if(e.indexOf("***")>-1)throw Vr("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=ee(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(G(e))return new RegExp("^"+e.source+"$");throw Vr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Wr(){this.SCE_CONTEXTS=qr;var t=["self"],n=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=Gr(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(n=Gr(e)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(e){throw Vr("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,n){return"self"===t?ui(n,si)||function(t){return ui(t,function(){if(e.document.baseURI)return e.document.baseURI;ii||((ii=e.document.createElement("a")).href=".",ii=ii.cloneNode(!1));return ii.href}())}(n):!!t.exec(n.href)}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}r.has("$sanitize")&&(o=r.get("$sanitize"));var l=a(),u={};return u[qr.HTML]=a(l),u[qr.CSS]=a(l),u[qr.MEDIA_URL]=a(l),u[qr.URL]=a(u[qr.MEDIA_URL]),u[qr.JS]=a(l),u[qr.RESOURCE_URL]=a(u[qr.URL]),{trustAs:function(e,t){var n=u.hasOwnProperty(e)?u[e]:null;if(!n)throw Vr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||L(t)||""===t)return t;if("string"!=typeof t)throw Vr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,r){if(null===r||L(r)||""===r)return r;var a=u.hasOwnProperty(e)?u[e]:null;if(a&&r instanceof a)return r.$$unwrapTrustedValue();if(K(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===qr.MEDIA_URL||e===qr.URL)return i(r.toString(),e===qr.MEDIA_URL);if(e===qr.RESOURCE_URL){if(function(e){var r,i,o=li(e.toString()),a=!1;for(r=0,i=t.length;r<i;r++)if(s(t[r],o)){a=!0;break}if(a)for(r=0,i=n.length;r<i;r++)if(s(n[r],o)){a=!1;break}return a}(r))return r;throw Vr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",r.toString())}if(e===qr.HTML)return o(r);throw Vr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof l?e.$$unwrapTrustedValue():e}}}]}function Yr(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&o<8)throw Vr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Ue(qr);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=O),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return x(qr,(function(e,t){var n=h(t);r[Kr("parse_as_"+n)]=function(t){return i(e,t)},r[Kr("get_trusted_"+n)]=function(t){return s(e,t)},r[Kr("trust_as_"+n)]=function(t){return a(e,t)}})),r}]}function Jr(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=D((/android (\d+)/.exec(h((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},l=a.body&&a.body.style,u=!1,c=!1;return l&&(u=!(!("transition"in l)&&!("webkitTransition"in l)),c=!(!("animation"in l)&&!("webkitAnimation"in l))),{history:!(!r||i<4||s),hasEvent:function(e){if("input"===e&&o)return!1;if(L(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:le(),transitions:u,animations:c,android:i}}]}function Xr(){this.$get=_((function(e){return new Qr(e)}))}function Qr(e){var t={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function o(){var e=n.pop();return e&&e.cb}function s(e){for(var t=n.length-1;t>=0;--t){var r=n[t];if(r.type===e)return n.splice(t,1),r.cb}}this.completeTask=function(n,a){a=a||i;try{n()}finally{!function(e){t[e=e||i]&&(t[e]--,t[r]--)}(a);var l=t[a],u=t[r];if(!u||!l)for(var c,h=u?s:o;c=h(a);)try{c()}catch(t){e.error(t)}}},this.incTaskCount=function(e){t[e=e||i]=(t[e]||0)+1,t[r]=(t[r]||0)+1},this.notifyWhenNoPendingTasks=function(e,i){t[i=i||r]?n.push({type:i,cb:e}):e()}}var Zr=i("$templateRequest");function ei(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function s(a,l){s.totalPendingRequests++,H(a)&&!L(n.get(a))||(a=o.getTrustedResourceUrl(a));var u=r.defaults&&r.defaults.transformResponse;return q(u)?u=u.filter((function(e){return e!==Nn})):u===Nn&&(u=null),r.get(a,F({cache:n,transformResponse:u},e)).finally((function(){s.totalPendingRequests--})).then((function(e){return n.put(a,e.data)}),(function(e){l||(e=Zr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText),t(e));return i.reject(e)}))}return s.totalPendingRequests=0,s}]}function ti(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return x(r,(function(e){var r=b.element(e).data("$binding");r&&x(r,(function(r){n?new RegExp("(^|\\s)"+ee(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!==r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',s=e.querySelectorAll(o);if(s.length)return s}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}var ni=i("$timeout");function ri(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function s(s,a,l){K(s)||(l=a,a=s,s=P);var u,c=he(arguments,3),h=N(l)&&!l,p=(h?r:n).defer(),d=p.promise;return u=t.defer((function(){try{p.resolve(s.apply(null,c))}catch(e){p.reject(e),i(e)}finally{delete o[d.$$timeoutId]}h||e.$apply()}),a,"$timeout"),d.$$timeoutId=u,o[u]=p,d}return s.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ni("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=o[n];return Mr(r.promise),r.reject("canceled"),delete o[n],t.defer.cancel(n)},s}]}var ii,oi=e.document.createElement("a"),si=li(e.location.href);oi.href="http://[::1]";var ai="[::1]"===oi.hostname;function li(e){if(!H(e))return e;var t=e;o&&(oi.setAttribute("href",t),t=oi.href),oi.setAttribute("href",t);var n=oi.hostname;return!ai&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:oi.href,protocol:oi.protocol?oi.protocol.replace(/:$/,""):"",host:oi.host,search:oi.search?oi.search.replace(/^\?/,""):"",hash:oi.hash?oi.hash.replace(/^#/,""):"",hostname:n,port:oi.port,pathname:"/"===oi.pathname.charAt(0)?oi.pathname:"/"+oi.pathname}}function ui(e,t){return e=li(e),t=li(t),e.protocol===t.protocol&&e.host===t.host}function ci(){this.$get=_(e)}function hi(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,o,s,a,l,u=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(u!==r)for(e=(r=u).split("; "),n={},s=0;s<e.length;s++)(a=(o=e[s]).indexOf("="))>0&&(l=i(o.substring(0,a)),L(n[l])&&(n[l]=i(o.substring(a+1))));return n}}function pi(){this.$get=hi}function di(e){function t(n,r){if(M(n)){var i={};return x(n,(function(e,n){i[n]=t(n,e)})),i}return e.factory(n+"Filter",r)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",vi),t("date",ki),t("filter",fi),t("json",Di),t("limitTo",Pi),t("lowercase",Ri),t("number",yi),t("orderBy",_i),t("uppercase",Ii)}function fi(){return function(e,t,n,r){if(!w(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var o,s;switch(r=r||"$",mi(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=function(e,t,n,r){var i=M(e)&&n in e;!0===t?t=ae:K(t)||(t=function(e,t){return!L(e)&&(null===e||null===t?e===t:!(M(t)||M(e)&&!j(e))&&(e=h(""+e),t=h(""+t),-1!==e.indexOf(t)))});return function(o){return i&&!M(o)?gi(o,e[n],t,n,!1):gi(o,e,t,n,r)}}(t,n,r,s);break;default:return e}return Array.prototype.filter.call(e,o)}}function gi(e,t,n,r,i,o){var s=mi(e),a=mi(t);if("string"===a&&"!"===t.charAt(0))return!gi(e,t.substring(1),n,r,i);if(q(e))return e.some((function(e){return gi(e,t,n,r,i)}));switch(s){case"object":var l;if(i){for(l in e)if(l.charAt&&"$"!==l.charAt(0)&&gi(e[l],t,n,r,!0))return!0;return!o&&gi(e,t,n,r,!1)}if("object"===a){for(l in t){var u=t[l];if(!K(u)&&!L(u)){var c=l===r;if(!gi(c?e:e[l],u,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function mi(e){return null===e?"null":typeof e}hi.$inject=["$document"],di.$inject=["$provide"];function vi(e){var t=e.NUMBER_FORMATS;return function(e,n,r){L(n)&&(n=t.CURRENCY_SYM),L(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:bi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function yi(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:bi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function bi(e,t,n,r,i){if(!H(e)&&!U(e)||isNaN(e))return"";var o,s=!isFinite(e),a=!1,l=Math.abs(e)+"",u="";if(s)u="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,s=(t=L(t)?Math.min(Math.max(n,o),r):+t)+e.i,a=i[s];if(s>0){i.splice(Math.max(e.i,s));for(var l=s;l<i.length;l++)i[l]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,s=t+1),i[0]=0;for(var u=1;u<s;u++)i[u]=0}if(a>=5)if(s-1<0){for(var c=0;c>s;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[s-1]++;for(;o<Math.max(0,t);o++)i.push(0);var h=i.reduceRight((function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)}),0);h&&(i.unshift(h),e.i++)})(o=function(e){var t,n,r,i,o,s=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;"0"===e.charAt(r);r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;"0"===e.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{d:t,e:s,i:n}}(l),i,t.minFrac,t.maxFrac);var c=o.d,h=o.i,p=o.e,d=[];for(a=c.reduce((function(e,t){return e&&!t}),!0);h<0;)c.unshift(0),h++;h>0?d=c.splice(h,c.length):(d=c,c=[0]);var f=[];for(c.length>=t.lgSize&&f.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)f.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&f.unshift(c.join("")),u=f.join(n),d.length&&(u+=r+d.join("")),p&&(u+="e+"+p)}return e<0&&!a?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function $i(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),i+e}function wi(e,t,n,r,i){return n=n||0,function(o){var s=o["get"+e]();return(n>0||s>-n)&&(s+=n),0===s&&-12===n&&(s=12),$i(s,t,r,i)}}function xi(e,t,n){return function(r,i){var o=r["get"+e]();return i[p((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Si(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ei(e){return function(t){var n,r=Si(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return $i(1+Math.round(i/6048e5),e)}}function Ci(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}vi.$inject=["$locale"],yi.$inject=["$locale"];var Ai={yyyy:wi("FullYear",4,0,!1,!0),yy:wi("FullYear",2,0,!0,!0),y:wi("FullYear",1,0,!1,!0),MMMM:xi("Month"),MMM:xi("Month",!0),MM:wi("Month",2,1),M:wi("Month",1,1),LLLL:xi("Month",!1,!0),dd:wi("Date",2),d:wi("Date",1),HH:wi("Hours",2),H:wi("Hours",1),hh:wi("Hours",2,-12),h:wi("Hours",1,-12),mm:wi("Minutes",2),m:wi("Minutes",1),ss:wi("Seconds",2),s:wi("Seconds",1),sss:wi("Milliseconds",3),EEEE:xi("Day"),EEE:xi("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=$i(Math[r>0?"floor":"ceil"](r/60),2)+$i(Math.abs(r%60),2)},ww:Ei(2),w:Ei(1),G:Ci,GG:Ci,GGG:Ci,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ti=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Fi=/^-?\d+$/;function ki(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,s,a="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,H(n)&&(n=Fi.test(n)?D(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,s=n[8]?r.setUTCFullYear:r.setFullYear,a=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=D(n[9]+n[10]),o=D(n[9]+n[11])),s.call(r,D(n[1]),D(n[2])-1,D(n[3]));var l=D(n[4]||0)-i,u=D(n[5]||0)-o,c=D(n[6]||0),h=Math.round(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,l,u,c,h),r}return e}(n)),U(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;r;)(s=Ti.exec(r))?r=(l=ce(l,s,1)).pop():(l.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=ve(i,u),n=be(n,i,!0)),x(l,(function(t){a+=(o=Ai[t])?o(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}}function Di(){return function(e,t){return L(t)&&(t=2),fe(e,t)}}ki.$inject=["$locale"];var Ri=_(h),Ii=_(p);function Pi(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):D(t),R(t)?e:(U(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:D(n))<0?Math.max(0,e.length+n):n,t>=0?Oi(e,n,n+t):0===n?Oi(e,t,e.length):Oi(e,Math.max(0,n+t),n)):e)}}function Oi(e,t,n){return H(e)?e.slice(t,n):d.call(e,t,n)}function _i(e){return function(r,o,s,a){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);q(o)||(o=[o]),0===o.length&&(o=["+"]);var l=o.map((function(t){var n=1,r=O;if(K(t))r=t;else if(H(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})),u=s?-1:1,c=K(a)?a:n,h=Array.prototype.map.call(r,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:l.map((function(r){return function(e,n){var r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(K(e.valueOf)&&t(e=e.valueOf()))return e;if(j(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)}))}}));return h.sort((function(e,t){for(var r=0,i=l.length;r<i;r++){var o=c(e.predicateValues[r],t.predicateValues[r]);if(o)return o*l[r].descending*u}return(c(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*u})),r=h.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,s=t.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(M(o)&&(o=e.index),M(s)&&(s=t.index)),o!==s&&(n=o<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function ji(e){return K(e)&&(e={link:e}),e.restrict=e.restrict||"AC",_(e)}_i.$inject=["$parse"];var Li=_({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===m.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Ni={};x(Rt,(function(e,t){if("multiple"!==e){var n=bn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),Ni[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}})),x(Pt,(function(e,t){Ni[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(u);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),x(["src","srcset","href"],(function(e){var t=bn("ng-"+e);Ni[t]=["$sce",function(n){return{priority:99,link:function(r,i,s){var a=e,l=e;"href"===e&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(l="xlinkHref",s.$attr[l]="xlink:href",a=null),s.$set(t,n.getTrustedMediaUrl(s[t])),s.$observe(t,(function(t){t?(s.$set(l,t),o&&a&&i.prop(a,s[l])):"href"===e&&s.$set(l,null)}))}}}]}));var Mi={$addControl:P,$getControls:_([]),$$renameControl:function(e,t){e.$name=t},$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P,$$setSubmitted:P};function Bi(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Mi,this.$$element=e,this.$$animate=r,qi(this)}Bi.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Bi.prototype={$rollbackViewValue:function(){x(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){x(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){Le(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ue(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],x(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),x(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),x(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),ie(this.$$controls,e),e.$$parentForm=Mi},$setDirty:function(){this.$$animate.removeClass(this.$$element,Bo),this.$$animate.addClass(this.$$element,Ho),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Bo,Ho+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,x(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){x(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Mi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,x(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},zi({clazz:Bi,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(ie(r,n),0===r.length&&delete e[t])}});var Hi=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Bi,compile:function(n,i){n.addClass(Bo).addClass(No);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,s){var a=s[0];if(!("action"in i)){var l=function(t){e.$apply((function(){a.$commitViewValue(),a.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",l),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",l)}),0,!1)}))}(s[1]||a.$$parentForm).$addControl(a);var u=o?r(a.$name):P;o&&(u(e,a),i.$observe(o,(function(t){a.$name!==t&&(u(e,void 0),a.$$parentForm.$$renameControl(a,t),(u=r(a.$name))(e,a))}))),n.on("$destroy",(function(){a.$$parentForm.$removeControl(a),u(e,void 0),F(a,Mi)}))}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||P}}]},Ui=Hi(),Vi=Hi(!0);function qi(e){e.$$classCache={},e.$$classCache[Mo]=!(e.$$classCache[No]=e.$$element.hasClass(No))}function zi(e){var t=e.clazz,n=e.set,r=e.unset;function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function o(e,t,n){t=t?"-"+Ie(t,"-"):"",i(e,No+t,!0===n),i(e,Mo+t,!1===n)}t.prototype.$setValidity=function(e,t,s){var a;L(t)?function(e,t,r,i){e[t]||(e[t]={});n(e[t],r,i)}(this,"$pending",e,s):function(e,t,n,i){e[t]&&r(e[t],n,i);Ki(e[t])&&(e[t]=void 0)}(this,"$pending",e,s),J(t)?t?(r(this.$error,e,s),n(this.$$success,e,s)):(n(this.$error,e,s),r(this.$$success,e,s)):(r(this.$error,e,s),r(this.$$success,e,s)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,"ng-pending",!1),this.$valid=Ki(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,e,a=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,a,this)}}function Ki(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Gi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Wi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Yi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Ji=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Xi=/^(\d{4,})-(\d{2})-(\d{2})$/,Qi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Zi=/^(\d{4,})-W(\d\d)$/,eo=/^(\d{4,})-(\d\d)$/,to=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,no=Me();x("date,datetime-local,month,time,week".split(","),(function(e){no[e]=!0}));var ro={text:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r)},date:ao("date",Xi,so(Xi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ao("datetimelocal",Qi,so(Qi,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ao("time",to,so(to,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ao("week",Zi,(function(e,t){if(V(e))return e;if(H(e)){Zi.lastIndex=0;var n=Zi.exec(e);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,l=0,u=Si(r),c=7*(i-1);return t&&(o=t.getHours(),s=t.getMinutes(),a=t.getSeconds(),l=t.getMilliseconds()),new Date(r,0,u.getDate()+c,o,s,a,l)}}return NaN}),"yyyy-Www"),month:ao("month",eo,so(eo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,s,a){var l;if(lo(e,t,n,r,"number"),uo(r),oo(e,t,n,r,i,o),N(n.min)||n.ngMin){var u=n.min||a(n.ngMin)(e);l=co(u),r.$validators.min=function(e,t){return r.$isEmpty(t)||L(l)||t>=l},n.$observe("min",(function(e){e!==u&&(l=co(e),u=e,r.$validate())}))}if(N(n.max)||n.ngMax){var c=n.max||a(n.ngMax)(e),h=co(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||L(h)||t<=h},n.$observe("max",(function(e){e!==c&&(h=co(e),c=e,r.$validate())}))}if(N(n.step)||n.ngStep){var p=n.step||a(n.ngStep)(e),d=co(p);r.$validators.step=function(e,t){return r.$isEmpty(t)||L(d)||fo(t,l||0,d)},n.$observe("step",(function(e){e!==p&&(d=co(e),p=e,r.$validate())}))}},url:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Wi.test(n)}},email:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Yi.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Z(n.ngTrim);L(n.name)&&t.attr("name",C());t.on("change",(function(e){var o;t[0].checked&&(o=n.value,i&&(o=Z(o)),r.$setViewValue(o,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=Z(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){lo(e,t,n,r,"range"),uo(r),oo(e,t,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===t[0].type,a=s?0:void 0,l=s?100:void 0,u=s?1:void 0,c=t[0].validity,h=N(n.min),p=N(n.max),d=N(n.step),f=r.$render;r.$render=s&&N(c.rangeUnderflow)&&N(c.rangeOverflow)?function(){f(),r.$setViewValue(t.val())}:f,h&&(a=co(n.min),r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(a)||t>=a},g("min",(function(e){if(a=co(e),R(r.$modelValue))return;if(s){var n=t.val();a>n&&(n=a,t.val(n)),r.$setViewValue(n)}else r.$validate()})));p&&(l=co(n.max),r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(l)||t<=l},g("max",(function(e){if(l=co(e),R(r.$modelValue))return;if(s){var n=t.val();l<n&&(t.val(l),n=l<a?a:l),r.$setViewValue(n)}else r.$validate()})));d&&(u=co(n.step),r.$validators.step=s?function(){return!c.stepMismatch}:function(e,t){return r.$isEmpty(t)||L(u)||fo(t,a||0,u)},g("step",(function(e){if(u=co(e),R(r.$modelValue))return;s?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate()})));function g(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}},checkbox:function(e,t,n,r,i,o,s,a){var l=go(a,e,"ngTrueValue",n.ngTrueValue,!0),u=go(a,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return ae(e,l)})),r.$parsers.push((function(e){return e?l:u}))},hidden:P,button:P,submit:P,reset:P,file:P};function io(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function oo(e,t,n,r,i,o){var s,a=h(t[0].type);if(!i.android){var l=!1;t.on("compositionstart",(function(){l=!0})),t.on("compositionupdate",(function(e){(L(e.data)||""===e.data)&&(l=!1)})),t.on("compositionend",(function(){l=!1,u()}))}var u=function(e){if(s&&(o.defer.cancel(s),s=null),!l){var i=t.val(),u=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))t.on("input",u);else{var c=function(e,t,n){s||(s=o.defer((function(){s=null,t&&t.value===n||u(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",u),no[a]&&r.$$hasNativeValidators&&a===n.type&&t.on("keydown wheel mousedown",(function(e){if(!s){var t=this.validity,n=t.badInput,r=t.typeMismatch;s=o.defer((function(){s=null,t.badInput===n&&t.typeMismatch===r||u(e)}))}})),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function so(e,t){return function(n,r){var i,o;if(V(n))return n;if(H(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Gi.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},x(i,(function(e,n){n<t.length&&(o[t[n]]=+e)}));var s=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&s.setFullYear(o.yyyy),s}}return NaN}}function ao(e,t,n,r){return function(i,o,s,a,l,u,c,h){lo(i,o,s,a,e),oo(0,o,s,a,l,u);var p,d,f="time"===e||"datetimelocal"===e;if(a.$parsers.push((function(n){return a.$isEmpty(n)?null:t.test(n)?w(n,p):void(a.$$parserName=e)})),a.$formatters.push((function(e){if(e&&!V(e))throw Uo("datefmt","Expected `{0}` to be a date",e);if(b(e)){p=e;var t=a.$options.getOption("timezone");return t&&(d=t,p=be(p,t,!0)),function(e,t){var n=r;f&&H(a.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",a.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=c("date")(e,n,t);f&&a.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(e,t)}return p=null,d=null,""})),N(s.min)||s.ngMin){var g=s.min||h(s.ngMin)(i),m=$(g);a.$validators.min=function(e){return!b(e)||L(m)||n(e)>=m},s.$observe("min",(function(e){e!==g&&(m=$(e),g=e,a.$validate())}))}if(N(s.max)||s.ngMax){var v=s.max||h(s.ngMax)(i),y=$(v);a.$validators.max=function(e){return!b(e)||L(y)||n(e)<=y},s.$observe("max",(function(e){e!==v&&(y=$(e),v=e,a.$validate())}))}function b(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function $(e){return N(e)&&!V(e)?w(e)||void 0:e}function w(e,t){var r=a.$options.getOption("timezone");d&&d!==r&&(t=ye(t,ve(d)));var i=n(e,t);return!isNaN(i)&&r&&(i=be(i,r)),i}}}function lo(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=M(o.validity))&&r.$parsers.push((function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i}))}function uo(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:Ji.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!U(t))throw Uo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function co(e){return N(e)&&!U(e)&&(e=parseFloat(e)),R(e)?void 0:e}function ho(e){return(0|e)===e}function po(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function fo(e,t,n){var r=Number(e),i=!ho(r),o=!ho(t),s=!ho(n);if(i||o||s){var a=i?po(r):0,l=o?po(t):0,u=s?po(n):0,c=Math.max(a,l,u),h=Math.pow(10,c);r*=h,t*=h,n*=h,i&&(r=Math.round(r)),o&&(t=Math.round(t)),s&&(n=Math.round(n))}return(r-t)%n==0}function go(e,t,n,r,i){var o;if(N(r)){if(!(o=e(r)).constant)throw Uo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var mo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(ro[h(s.type)]||ro.text)(i,o,s,a[0],t,e,n,r)}}}}],vo=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===h(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},yo=/^(true|false|\d+)$/,bo=function(){function e(e,t,n){var r=N(n)?n:9===o?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return yo.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,(function(t){e(n,r,t)}))}}}},$o=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,(function(e){n.textContent=Be(e)}))}}}}],wo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(e){r.textContent=L(e)?"":e}))}}}}],xo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),s=t(i.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(s,(function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")}))}}}}],So=_({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function Eo(e,t){var n;return e="ngClass"+e,["$parse",function(s){return{restrict:"AC",link:function(a,l,u){var c,h=l.data("$classCounts"),p=!0;function d(e,t){var n=[];return x(e,(function(e){(t>0||h[e])&&(h[e]=(h[e]||0)+t,h[e]===+(t>0)&&n.push(e))})),n.join(" ")}h||(h=Me(),l.data("$classCounts",h)),"ngClass"!==e&&(n||(n=s("$index",(function(e){return 1&e}))),a.$watch(n,(function(e){e===t?(n=d(i(n=c),1),u.$addClass(n)):function(e){e=d(i(e),-1),u.$removeClass(e)}(c);var n;p=e}))),a.$watch(s(u[e],o),(function(e){p===t&&function(e,t){var n=i(e),o=i(t),s=r(n,o),a=r(o,n),l=d(s,-1),c=d(a,1);u.$addClass(c),u.$removeClass(l)}(c,e);c=e}))}}}];function r(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function i(e){return e&&e.split(" ")}function o(e){if(!e)return e;var t=e;return q(e)?t=e.map(o).join(" "):M(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):H(e)||(t=e+""),t}}var Co=Eo("",!0),Ao=Eo("Odd",0),To=Eo("Even",1),Fo=ji({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),ko=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Do={},Ro={blur:!0,focus:!0};function Io(e,t,n,r,i,o){return{restrict:"A",compile:function(s,a){var l=e(a[r]);return function(e,r){r.on(i,(function(r){var i=function(){l(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)}))}}}}x("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=bn("ng-"+e);Do[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Io(n,r,i,t,e,Ro[e])}]}));var Po=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,l,u;n.$watch(i.ngIf,(function(n){n?l||s((function(n,o){l=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),a={clone:n},e.enter(n,r.parent(),r)})):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),a&&(u=Ne(a.clone),e.leave(u).done((function(e){!1!==e&&(u=null)})),a=null))}))}}}],Oo=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,l,u,c){var h,p,d,f=0,g=function(){p&&(p.remove(),p=null),h&&(h.$destroy(),h=null),d&&(n.leave(d).done((function(e){!1!==e&&(p=null)})),p=d,d=null)};r.$watch(o,(function(o){var l=function(e){!1===e||!N(a)||a&&!r.$eval(a)||t()},p=++f;o?(e(o,!0).then((function(e){if(!r.$$destroyed&&p===f){var t=r.$new();u.template=e;var a=c(t,(function(e){g(),n.enter(e,null,i).done(l)}));d=a,(h=t).$emit("$includeContentLoaded",o),r.$eval(s)}}),(function(){r.$$destroyed||p===f&&(g(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(g(),u.template=null)}))}}}}],_o=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void t(ct(o.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],jo=ji({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Lo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,s=o?Z(i):i;r.$parsers.push((function(e){if(!L(e)){var t=[];return e&&x(e.split(s),(function(e){e&&t.push(o?Z(e):e)})),t}})),r.$formatters.push((function(e){if(q(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},No="ng-valid",Mo="ng-invalid",Bo="ng-pristine",Ho="ng-dirty",Uo=i("ngModel");function Vo(e,t,n,r,i,o,s,a,l){var u;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(e),this.$$parentForm=Mi,this.$options=qo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=s,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=t,qi(this),(u=this).$$scope.$watch((function(e){var t=u.$$ngModelGet(e);return t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t),t}))}Vo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return K(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){K(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Uo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,$e(this.$$element))},$render:P,$isEmpty:function(e){return L(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Ho),this.$$animate.addClass(this.$$element,Bo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Bo),this.$$animate.addClass(this.$$element,Ho),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!R(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,(function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var r,i,o=this.$$currentValidationRunId,s=this;(function(){var e=s.$$parserName;if(!L(s.$$parserValid))return s.$$parserValid||(x(s.$validators,(function(e,t){a(t,null)})),x(s.$asyncValidators,(function(e,t){a(t,null)}))),a(e,s.$$parserValid),s.$$parserValid;a(e,null);return!0})()?!function(){var n=!0;if(x(s.$validators,(function(r,i){var o=Boolean(r(e,t));n=n&&o,a(i,o)})),!n)return x(s.$asyncValidators,(function(e,t){a(t,null)})),!1;return!0}()?l(!1):(r=[],i=!0,x(s.$asyncValidators,(function(n,o){var s=n(e,t);if(!X(s))throw Uo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);a(o,void 0),r.push(s.then((function(){a(o,!0)}),(function(){i=!1,a(o,!1)})))})),r.length?s.$$q.all(r).then((function(){l(i)}),P):l(!0)):l(!1);function a(e,t){o===s.$$currentValidationRunId&&s.$setValidity(e,t)}function l(e){o===s.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!L(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(L(e=this.$parsers[n](e))){this.$$parserValid=!1;break}R(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){t.$modelValue!==r&&t.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){i||(t.$modelValue=n?e:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),x(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");U(t[e])?t=t[e]:U(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:U(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,P))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},zi({clazz:Vo,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var qo,zo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vo,priority:1,compile:function(t){return t.addClass(Bo).addClass("ng-untouched").addClass(No),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,s=r[2];s&&(i.$options=s.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)})),e.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){var o=i[0];function s(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(e.$$phase?t.$evalAsync(s):t.$apply(s))}))}}}}}],Ko=/(\s+|^)default(\s+|$)/;function Go(e){this.$$options=e}Go.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return x(e=F({},e),(function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Z(n.replace(Ko,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],Yo(e,this.$$options)),Yo(e,qo.$$options),new Go(e)}},qo=new Go({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Wo=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:qo,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function Yo(e,t){x(t,(function(t,n){N(e[n])||(e[n]=t)}))}var Jo=ji({terminal:!0,priority:1e3}),Xo=i("ngOptions"),Qo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Zo=["$compile","$document","$parse",function(t,n,r){var i=e.document.createElement("option"),o=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=P},post:function(e,a,l,u){for(var c=u[0],h=u[1],p=l.multiple,d=0,f=a.children(),g=f.length;d<g;d++)if(""===f[d].value){c.hasEmptyOption=!0,c.emptyOption=f.eq(d);break}a.empty();var m,v=!!c.emptyOption;s(i.cloneNode(!1)).val("?");var y=function(e,t,n){var i=e.match(Qo);if(!i)throw Xo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,$e(t));var o=i[5]||i[7],s=i[6],a=/ as /.test(i[0])&&i[1],l=i[9],u=r(i[2]?i[1]:o),c=a&&r(a)||u,h=l&&r(l),p=l?function(e,t){return h(n,t)}:function(e){return Nt(e)},d=function(e,t){return p(e,b(e,t))},f=r(i[2]||i[1]),g=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),y={},b=s?function(e,t){return y[s]=t,y[o]=e,y}:function(e){return y[o]=e,y};function $(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function x(e){var t;if(!s&&w(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:l,getTrackByValue:d,getWatchables:r(v,(function(e){for(var t=[],r=x(e=e||[]),o=r.length,s=0;s<o;s++){var a=e===r?s:r[s],l=e[a],u=b(l,a),c=p(l,u);if(t.push(c),i[2]||i[1]){var h=f(n,u);t.push(h)}if(i[4]){var d=m(n,u);t.push(d)}}return t})),getOptions:function(){for(var e=[],t={},r=v(n)||[],i=x(r),o=i.length,s=0;s<o;s++){var a=r===i?s:i[s],u=r[a],h=b(u,a),y=c(n,h),w=p(y,h),S=new $(w,y,f(n,h),g(n,h),m(n,h));e.push(S),t[w]=S}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[d(e)]},getViewValueFromOption:function(e){return l?oe(e.viewValue):e.viewValue}}}}}(l.ngOptions,a,e),b=n[0].createDocumentFragment();function $(e,t){var n=i.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function S(e){var t=m.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}c.generateUnknownOptionValue=function(e){return"?"},p?(c.writeValue=function(e){if(m){var t=e&&e.map(S)||[];m.items.forEach((function(e){e.element.selected&&!re(t,e)&&(e.element.selected=!1)}))}},c.readValue=function(){var e=a.val()||[],t=[];return x(e,(function(e){var n=m.selectValueMap[e];n&&!n.disabled&&t.push(m.getViewValueFromOption(n))})),t},y.trackBy&&e.$watchCollection((function(){if(q(h.$viewValue))return h.$viewValue.map((function(e){return y.getTrackByValue(e)}))}),(function(){h.$render()}))):(c.writeValue=function(e){if(m){var t=a[0].options[a[0].selectedIndex],n=m.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(c.removeUnknownOption(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(e)}},c.readValue=function(){var e=m.selectValueMap[a.val()];return e&&!e.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),m.getViewValueFromOption(e)):null},y.trackBy&&e.$watch((function(){return y.getTrackByValue(h.$viewValue)}),(function(){h.$render()}))),v&&(t(c.emptyOption)(e),a.prepend(c.emptyOption),8===c.emptyOption[0].nodeType?(c.hasEmptyOption=!1,c.registerOption=function(e,t){""===t.val()&&(c.hasEmptyOption=!0,c.emptyOption=t,c.emptyOption.removeClass("ng-scope"),h.$render(),t.on("$destroy",(function(){var e=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,e&&h.$render()})))}):c.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,(function(){var e=m&&c.readValue();if(m)for(var t=m.items.length-1;t>=0;t--){var n=m.items[t];N(n.group)?Ft(n.element.parentNode):Ft(n.element)}m=y.getOptions();var r={};if(m.items.forEach((function(e){var t;N(e.group)?((t=r[e.group])||(t=o.cloneNode(!1),b.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),$(e,t)):$(e,b)})),a[0].appendChild(b),h.$render(),!h.$isEmpty(e)){var i=c.readValue();(y.trackBy||p?ae(e,i):e===i)||(h.$setViewValue(i),h.$render())}}))}}}}],es=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,s,a){var l,u=a.count,c=a.$attr.when&&s.attr(a.$attr.when),p=a.offset||0,d=o.$eval(c)||{},f={},g=t.startSymbol(),m=t.endSymbol(),v=g+u+"-"+p+m,y=b.noop;function $(e){s.text(e||"")}x(a,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+h(n[2]);d[r]=s.attr(a.$attr[t])}})),x(d,(function(e,n){f[n]=t(e.replace(r,v))})),o.$watch(u,(function(t){var r=parseFloat(t),i=R(r);if(i||r in d||(r=e.pluralCat(r-p)),!(r===l||i&&R(l))){y();var s=f[r];L(s)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+c),y=P,$()):y=o.$watch(s,$),l=r}}))}}}],ts=i("ngRef"),ns=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=bn(ne(t)),i=e(n.ngRef),o=i.assign||function(){throw ts("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,s){var a;if(s.hasOwnProperty("ngRefRead")){if("$element"===s.ngRefRead)a=t;else if(!(a=t.data("$"+s.ngRefRead+"Controller")))throw ts("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',s.ngRefRead,n.ngRef)}else a=t.data("$"+r+"Controller");o(e,a=a||t),t.on("$destroy",(function(){i(e)===a&&o(e,null)}))}}}}],rs=["$parse","$animate","$compile",function(e,t,n){var r=i("ngRepeat"),o=function(e,t,n,r,i,o,s){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===s-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},s=function(e){return e.clone[0]},a=function(e){return e.clone[e.clone.length-1]},l=function(e,t,n){return Nt(n)},u=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,h){var p=h.ngRepeat,d=n.$$createComment("end ngRepeat",p),f=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!f)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var g=f[1],m=f[2],v=f[3],y=f[4];if(!(f=g.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var b,$=f[3]||f[1],S=f[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if(y){var E={$id:Nt},C=e(y);b=function(e,t,n,r){return S&&(E[S]=t),E[$]=n,E.$index=r,C(e,E)}}return function(e,n,i,h,f){var g=Me();e.$watchCollection(m,(function(i){var h,m,y,C,A,T,F,k,D,R,I,P,O=n[0],_=Me();if(v&&(e[v]=i),w(i))D=i,k=b||l;else for(var j in k=b||u,D=[],i)c.call(i,j)&&"$"!==j.charAt(0)&&D.push(j);for(C=D.length,I=new Array(C),h=0;h<C;h++)if(A=i===D?h:D[h],T=i[A],F=k(e,A,T,h),g[F])R=g[F],delete g[F],_[F]=R,I[h]=R;else{if(_[F])throw x(I,(function(e){e&&e.scope&&(g[e.id]=e)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,F,T);I[h]={id:F,scope:void 0,clone:void 0},_[F]=!0}for(var L in E&&(E[$]=void 0),g){if(P=Ne((R=g[L]).clone),t.leave(P),P[0].parentNode)for(h=0,m=P.length;h<m;h++)P[h].$$NG_REMOVED=!0;R.scope.$destroy()}for(h=0;h<C;h++)if(A=i===D?h:D[h],T=i[A],(R=I[h]).scope){y=O;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);s(R)!==y&&t.move(Ne(R.clone),null,O),O=a(R),o(R.scope,h,$,T,S,A,C)}else f((function(e,n){R.scope=n;var r=d.cloneNode(!1);e[e.length++]=r,t.enter(e,null,O),O=r,R.clone=e,_[R.id]=R,o(R.scope,h,$,T,S,A,C)}));g=_}))}}}}],is=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],os=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ss=ji((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&x(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),as=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,a=[],l=[],u=[],c=[],h=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,(function(n){for(var r,i;u.length;)e.cancel(u.pop());for(r=0,i=c.length;r<i;++r){var s=Ne(l[r].clone);c[r].$destroy(),(u[r]=e.leave(s)).done(h(u,r))}l.length=0,c.length=0,(a=o.cases["!"+n]||o.cases["?"])&&x(a,(function(n){n.transclude((function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var s={clone:r};l.push(s),e.enter(r,o.parent(),o)}))}))}))}}}],ls=ji({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){x(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),us=ji({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),cs=i("ngTransclude"),hs=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){if(!o)throw cs("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",$e(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var s=r.ngTransclude||r.ngTranscludeSlot;function a(){n(e,(function(e){t.append(e)}))}o((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==He||r.nodeValue.trim())return!0}}(e)?t.append(e):(a(),n.$destroy())}),null,s),s&&!o.isSlotFilled(s)&&a()}}}}],ps=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],ds={$setViewValue:P,$render:P};function fs(e,t){e.prop("selected",t),e.attr("selected",t)}var gs=["$element","$scope",function(t,n){var r=this,i=new Ht;r.selectValueMap={},r.ngModelCtrl=ds,r.multiple=!1,r.unknownOption=s(e.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),t.prepend(r.unknownOption),fs(r.unknownOption,!0),t.val(n)},r.updateUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),fs(r.unknownOption,!0),t.val(n)},r.generateUnknownOptionValue=function(e){return"? "+Nt(e)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(t.val(""),fs(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&fs(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=P})),r.readValue=function(){var e=t.val(),n=e in r.selectValueMap?r.selectValueMap[e]:e;return r.hasOption(n)?n:null},r.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&fs(s(n),!1),r.hasOption(e)){r.removeUnknownOption();var i=Nt(e);t.val(i in r.selectValueMap?i:e);var o=t[0].options[t[0].selectedIndex];fs(s(o),!0)}else r.selectUnknownOrEmptyOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){Le(e,'"option value"'),""===e&&(r.hasEmptyOption=!0,r.emptyOption=t);var n=i.get(e)||0;i.set(e,n+1),a()}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return t[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&t[0].options[t[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(e){null==e&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(e):r.renderUnknownOption(e)};var o=!1;function a(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var l=!1;function u(e){l||(l=!0,n.$$postDigest((function(){n.$$destroyed||(l=!1,r.ngModelCtrl.$setViewValue(r.readValue()),e&&r.ngModelCtrl.$render())})))}r.registerOption=function(e,t,n,i,o){var s,l;n.$attr.ngValue?n.$observe("value",(function(e){var n,i=t.prop("selected");N(l)&&(r.removeOption(s),delete r.selectValueMap[l],n=!0),l=Nt(e),s=e,r.selectValueMap[l]=e,r.addOption(e,t),t.attr("value",l),n&&i&&u()})):i?n.$observe("value",(function(e){var n;r.readValue();var i=t.prop("selected");N(s)&&(r.removeOption(s),n=!0),s=e,r.addOption(e,t),n&&i&&u()})):o?e.$watch(o,(function(e,i){n.$set("value",e);var o=t.prop("selected");i!==e&&r.removeOption(i),r.addOption(e,t),i&&o&&u()})):r.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(r.multiple?u(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=r.readValue(),t=n.value;r.removeOption(t),a(),(r.multiple&&e&&-1!==e.indexOf(t)||e===t)&&u(!0)}))}}],ms=function(){return{restrict:"E",require:["select","?ngModel"],controller:gs,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=P);if(i.ngModelCtrl=o,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return x(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),e},i.writeValue=function(e){x(t.find("option"),(function(t){var n=!!e&&(re(e,t.value)||re(e,i.selectValueMap[t.value]));n!==t.selected&&fs(s(t),n)}))};var a,l=NaN;e.$watch((function(){l!==o.$viewValue||ae(a,o.$viewValue)||(a=Ue(o.$viewValue),o.$render()),l=o.$viewValue})),o.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},vs=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return N(n.ngValue)||(N(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.registerOption(e,t,n,r,i)}}}}],ys=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",(function(e){o!==e&&(o=e,i.$validate())}))}}}}],bs=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&u.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var s=n.pattern;n.ngPattern?s=i(e):r=n.pattern;var a=xs(s,r,t);n.$observe("pattern",(function(e){var n=a;a=xs(e,r,t),(n&&n.toString())!==(a&&a.toString())&&o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||L(a)||a.test(t)}}}}}}],$s=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),s=Ss(o);r.$observe("maxlength",(function(e){o!==e&&(s=Ss(e),o=e,i.$validate())})),i.$validators.maxlength=function(e,t){return s<0||i.$isEmpty(t)||t.length<=s}}}}}],ws=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),s=Ss(o)||-1;r.$observe("minlength",(function(e){o!==e&&(s=Ss(e)||-1,o=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=s}}}}}];function xs(e,t,n){if(e){if(H(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,$e(n));return e}}function Ss(e){var t=D(e);return R(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Pe){var n=ue();(a=L(n)?e.jQuery:n?e[n]:void 0)&&a.fn.on?(s=a,F(a.fn,{scope:Dt.scope,isolateScope:Dt.isolateScope,controller:Dt.controller,injector:Dt.injector,inheritedData:Dt.inheritedData})):s=pt,t=s.cleanData,s.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(s._data(r)||{}).events)&&n.$destroy&&s(r).triggerHandler("$destroy");t(e)},b.element=s,Pe=!0}}(),function(t){F(t,{errorHandlingConfig:n,bootstrap:Fe,copy:oe,extend:F,merge:k,equals:ae,element:s,forEach:x,injector:Xt,noop:P,bind:pe,toJson:fe,fromJson:ge,identity:O,isUndefined:L,isDefined:N,isString:H,isFunction:K,isObject:M,isNumber:U,isElement:te,isArray:q,version:qe,isDate:V,callbacks:{$$counter:0},getTestability:De,reloadWithDebugInfo:ke,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Oe,$$minErr:i,$$csp:le,$$encodeUriSegment:Se,$$encodeUriQuery:Ee,$$lowercase:h,$$stringify:Be,$$uppercase:p}),(l=function(e){var t=i("$injector"),n=i("ng");function r(e,t,n){return e[t]||(e[t]=n())}var o=r(e,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var e={};return function(i,o,s){var a={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name",t)}(i,"module"),o&&e.hasOwnProperty(i)&&(e[i]=null),r(e,i,(function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],l=[],u=h("$injector","invoke","push",r),c={_invokeQueue:e,_configBlocks:r,_runBlocks:l,info:function(e){if(N(e)){if(!M(e))throw n("aobj","Argument '{0}' must be an object","value");return a=e,this}return a},requires:o,name:i,provider:p("$provide","provider"),factory:p("$provide","factory"),service:p("$provide","service"),value:h("$provide","value"),constant:h("$provide","constant","unshift"),decorator:p("$provide","decorator",r),animation:p("$animateProvider","register"),filter:p("$filterProvider","register"),controller:p("$controllerProvider","register"),directive:p("$compileProvider","directive"),component:p("$compileProvider","component"),config:u,run:function(e){return l.push(e),this}};return s&&u(s),c;function h(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),c}}function p(t,n,r){return r||(r=e),function(e,o){return o&&K(o)&&(o.$$moduleName=i),r.push([t,n,arguments]),c}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Ur}),e.provider("$compile",gn).directive({a:Li,input:mo,textarea:mo,form:Ui,script:ps,select:ms,option:vs,ngBind:$o,ngBindHtml:xo,ngBindTemplate:wo,ngClass:Co,ngClassEven:To,ngClassOdd:Ao,ngCloak:Fo,ngController:ko,ngForm:Vi,ngHide:os,ngIf:Po,ngInclude:Oo,ngInit:jo,ngNonBindable:Jo,ngPluralize:es,ngRef:ns,ngRepeat:rs,ngShow:is,ngStyle:ss,ngSwitch:as,ngSwitchWhen:ls,ngSwitchDefault:us,ngOptions:Zo,ngTransclude:hs,ngModel:zo,ngList:Lo,ngChange:So,pattern:bs,ngPattern:bs,required:ys,ngRequired:ys,minlength:ws,ngMinlength:ws,maxlength:$s,ngMaxlength:$s,ngValue:bo,ngModelOptions:Wo}).directive({ngInclude:_o,input:vo}).directive(Ni).directive(Do),e.provider({$anchorScroll:Qt,$animate:on,$animateCss:ln,$$animateJs:nn,$$animateQueue:rn,$$AnimateRunner:an,$$animateAsyncRun:sn,$browser:cn,$cacheFactory:hn,$controller:Cn,$document:An,$$isDocumentHidden:Tn,$exceptionHandler:Fn,$filter:di,$$forceReflow:kn,$interpolate:Gn,$interval:Yn,$$intervalFactory:Jn,$http:Vn,$httpParamSerializer:jn,$httpParamSerializerJQLike:Ln,$httpBackend:zn,$xhrFactory:qn,$jsonpCallbacks:Xn,$location:fr,$log:gr,$parse:Pr,$rootScope:Hr,$q:Or,$$q:_r,$sce:Yr,$sceDelegate:Wr,$sniffer:Jr,$$taskTrackerFactory:Xr,$templateCache:pn,$templateRequest:ei,$$testability:ti,$timeout:ri,$window:ci,$$rAF:Br,$$jqLite:Lt,$$Map:Ut,$$cookieReader:pi})}]).info({angularVersion:"1.8.3"})}(b),b.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,r){var i=0|e,o=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,r);return 1==i&&0==o.v?t:n}})}]),s((function(){Te(e.document,Fe)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},446:function(e,t,n){
40
+ /**
41
+ * oclazyload - Load modules on demand (lazy load) with angularJS
42
+ * @version v1.0.10
43
+ * @link https://github.com/ocombe/ocLazyLoad
44
+ * @license MIT
45
+ * @author Olivier Combe <olivier.combe@gmail.com>
46
+ */
47
+ !function(n,r){"use strict";var i=["ng","oc.lazyLoad"],o={},s=[],a=[],l=[],u=[],c=n.noop,h={},p=[];n.module("oc.lazyLoad",["ng"]).provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(e,t,d,m,v,y){var b={},$={$controllerProvider:e,$compileProvider:d,$filterProvider:m,$provide:t,$injector:v,$animateProvider:y},w=!1,x=!1,S=[],E={};S.push=function(e){-1===this.indexOf(e)&&Array.prototype.push.apply(this,arguments)},this.config=function(e){n.isDefined(e.modules)&&(n.isArray(e.modules)?n.forEach(e.modules,(function(e){b[e.name]=e})):b[e.modules.name]=e.modules),n.isDefined(e.debug)&&(w=e.debug),n.isDefined(e.events)&&(x=e.events)},this._init=function(e){if(0===a.length){var t=[e],o=["ng:app","ng-app","x-ng-app","data-ng-app"],s=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,l=function(e){return e&&t.push(e)};n.forEach(o,(function(t){o[t]=!0,l(document.getElementById(t)),t=t.replace(":","\\:"),void 0!==e[0]&&e[0].querySelectorAll&&(n.forEach(e[0].querySelectorAll("."+t),l),n.forEach(e[0].querySelectorAll("."+t+"\\:"),l),n.forEach(e[0].querySelectorAll("["+t+"]"),l))})),n.forEach(t,(function(t){if(0===a.length){var r=" "+e.className+" ",i=s.exec(r);i?a.push((i[2]||"").replace(/\s+/g,",")):n.forEach(t.attributes,(function(e){0===a.length&&o[e.name]&&a.push(e.value)}))}}))}0!==a.length||(r.jasmine||r.mocha)&&n.isDefined(n.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");n.forEach(a,(function(e){!function e(t){if(-1===i.indexOf(t)){i.push(t);var r=n.module(t);k(null,r._invokeQueue,t),k(null,r._configBlocks,t),n.forEach(r.requires,e)}}(e)})),a=[],u.pop()};var C=function(e){try{return JSON.stringify(e)}catch(r){var t=[];return JSON.stringify(e,(function(e,r){if(n.isObject(r)&&null!==r){if(-1!==t.indexOf(r))return;t.push(r)}return r}))}},A=function(e){var t,n,r=0;if(0==e.length)return r;for(t=0,n=e.length;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r};function T(e,t,r){if(t){var o,s,a,u=[];for(o=t.length-1;o>=0;o--)if(s=t[o],n.isString(s)||(s=D(s)),s&&-1===p.indexOf(s)&&(!b[s]||-1!==l.indexOf(s))){var d=-1===i.indexOf(s);if(a=g(s),d&&(i.push(s),T(e,a.requires,r)),a._runBlocks.length>0)for(h[s]=[];a._runBlocks.length>0;)h[s].push(a._runBlocks.shift());n.isDefined(h[s])&&(d||r.rerun)&&(u=u.concat(h[s])),k(e,a._invokeQueue,s,r.reconfig),k(e,a._configBlocks,s,r.reconfig),c(d?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",s),t.pop(),p.push(s)}var f=e.getInstanceInjector();n.forEach(u,(function(e){f.invoke(e)}))}}function F(e,t){var r=e[2][0],i=e[1],s=!1;n.isUndefined(o[t])&&(o[t]={}),n.isUndefined(o[t][i])&&(o[t][i]={});var a=function(e,r){o[t][i].hasOwnProperty(e)||(o[t][i][e]=[]),function(e,t){var r,i=!0;t.length&&(r=l(e),n.forEach(t,(function(e){i=i&&l(e)!==r})));return i}(r,o[t][i][e])&&(s=!0,o[t][i][e].push(r),c("ocLazyLoad.componentLoaded",[t,i,e]))};function l(e){return n.isArray(e)?A(e.toString()):n.isObject(e)?A(C(e)):n.isDefined(e)&&null!==e?A(e.toString()):e}if(n.isString(r))a(r,e[2][1]);else{if(!n.isObject(r))return!1;n.forEach(r,(function(e,t){n.isString(e)?a(e,r[1]):a(t,e)}))}return s}function k(e,t,r,i){var o,a,l,u;if(t)for(o=0,a=t.length;o<a;o++)if(l=t[o],n.isArray(l)){if(null!==e){if(!e.hasOwnProperty(l[0]))throw new Error("unsupported provider "+l[0]);u=e[l[0]]}var c=F(l,r);if("invoke"!==l[1])c&&n.isDefined(u)&&u[l[1]].apply(u,l[2]);else{var h=function(e){var t=s.indexOf(r+"-"+e);(-1===t||i)&&(-1===t&&s.push(r+"-"+e),n.isDefined(u)&&u[l[1]].apply(u,l[2]))};if(n.isFunction(l[2][0]))h(l[2][0]);else if(n.isArray(l[2][0]))for(var p=0,d=l[2][0].length;p<d;p++)n.isFunction(l[2][0][p])&&h(l[2][0][p])}}}function D(e){var t=null;return n.isString(e)?t=e:n.isObject(e)&&e.hasOwnProperty("name")&&n.isString(e.name)&&(t=e.name),t}function R(e){if(!n.isString(e))return!1;try{return g(e)}catch(e){if(/No module/.test(e)||e.message.indexOf("$injector:nomod")>-1)return!1}}this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(e,t,r,s,l){var h,d=s("ocLazyLoad");function m(t){var n=l.defer();return e.error(t.message),n.reject(t),n.promise}return w||((e={}).error=n.noop,e.warn=n.noop,e.info=n.noop),$.getInstanceInjector=function(){return h||(h=t.data("$injector")||n.injector())},{_broadcast:c=function(t,n){x&&r.$broadcast(t,n),w&&e.info(t,n)},_$log:e,_getFilesCache:function(){return d},toggleWatch:function(e){e?u.push(!0):u.pop()},getModuleConfig:function(e){if(!n.isString(e))throw new Error("You need to give the name of the module to get");return b[e]?n.copy(b[e]):null},setModuleConfig:function(e){if(!n.isObject(e))throw new Error("You need to give the module config object to set");return b[e.name]=e,e},getModules:function(){return i},isLoaded:function(e){var t=function(e){var t=i.indexOf(e)>-1;return t||(t=!!R(e)),t};if(n.isString(e)&&(e=[e]),n.isArray(e)){var r,o;for(r=0,o=e.length;r<o;r++)if(!t(e[r]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:D,_getModule:function(e){try{return g(e)}catch(t){throw(/No module/.test(t)||t.message.indexOf("$injector:nomod")>-1)&&(t.message='The module "'+C(e)+'" that you are trying to load does not exist. '+t.message),t}},moduleExists:R,_loadDependencies:function(e,t){var r,i,o,s=[],a=this;if(null===(e=a._getModuleName(e)))return l.when();try{r=a._getModule(e)}catch(e){return m(e)}return i=a.getRequires(r),n.forEach(i,(function(r){if(n.isString(r)){var i=a.getModuleConfig(r);if(null===i)return void S.push(r);r=i,i.name=void 0}if(a.moduleExists(r.name))return 0!==(o=r.files.filter((function(e){return a.getModuleConfig(r.name).files.indexOf(e)<0}))).length&&a._$log.warn('Module "',e,'" attempted to redefine configuration for dependency. "',r.name,'"\n Additional Files Loaded:',o),n.isDefined(a.filesLoader)?void s.push(a.filesLoader(r,t).then((function(){return a._loadDependencies(r)}))):m(new Error("Error: New dependencies need to be loaded from external files ("+r.files+"), but no loader has been defined."));if(n.isArray(r)){var l=[];n.forEach(r,(function(e){var t=a.getModuleConfig(e);null===t?l.push(e):t.files&&(l=l.concat(t.files))})),l.length>0&&(r={files:l})}else n.isObject(r)&&r.hasOwnProperty("name")&&r.name&&(a.setModuleConfig(r),S.push(r.name));if(n.isDefined(r.files)&&0!==r.files.length){if(!n.isDefined(a.filesLoader))return m(new Error('Error: the module "'+r.name+'" is defined in external files ('+r.files+"), but no loader has been defined."));s.push(a.filesLoader(r,t).then((function(){return a._loadDependencies(r)})))}})),l.all(s)},inject:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=this,o=l.defer();if(n.isDefined(e)&&null!==e){if(n.isArray(e)){var s=[];return n.forEach(e,(function(e){s.push(i.inject(e,t,r))})),l.all(s)}i._addToLoadList(i._getModuleName(e),!0,r)}if(a.length>0){var u=a.slice(),c=function e(n){S.push(n),E[n]=o.promise,i._loadDependencies(n,t).then((function(){try{p=[],T($,S,t)}catch(e){return i._$log.error(e.message),void o.reject(e)}a.length>0?e(a.shift()):o.resolve(u)}),(function(e){o.reject(e)}))};c(a.shift())}else{if(t&&t.name&&E[t.name])return E[t.name];o.resolve()}return o.promise},getRequires:function(e){var t=[];return n.forEach(e.requires,(function(e){-1===i.indexOf(e)&&t.push(e)})),t},_invokeQueue:k,_registerInvokeList:F,_register:T,_addToLoadList:f,_unregister:function(e){n.isDefined(e)&&n.isArray(e)&&n.forEach(e,(function(e){o[e]=void 0}))}}}],this._init(n.element(r.document))}]);var d=n.bootstrap;n.bootstrap=function(e,t,r){return i=["ng","oc.lazyLoad"],o={},s=[],a=[],l=[],u=[],c=n.noop,h={},p=[],n.forEach(t.slice(),(function(e){f(e,!0,!0)})),d(e,t,r)};var f=function(e,t,r){(u.length>0||t)&&n.isString(e)&&-1===a.indexOf(e)&&(a.push(e),r&&l.push(e))},g=n.module;n.module=function(e,t,n){return f(e,!1,!0),g(e,t,n)},e.exports===t&&(e.exports="oc.lazyLoad")}(angular,window),function(e){"use strict";e.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(t,n,r,i,o){return{restrict:"A",terminal:!0,priority:1e3,compile:function(o,s){var a=o[0].innerHTML;return o.html(""),function(o,s,l){var u=i(l.ocLazyLoad);o.$watch((function(){return u(o)||l.ocLazyLoad}),(function(i){e.isDefined(i)&&t.load(i).then((function(){r.enter(a,s),n(s.contents())(o)}))}),!0)}}}}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(t,n,r,i){var o=!1,s=r.document.getElementsByTagName("head")[0]||r.document.getElementsByTagName("body")[0];return t.buildElement=function(a,l,u){var c,h,p=n.defer(),d=t._getFilesCache(),f=function(e){var t=(new Date).getTime();return e.indexOf("?")>=0?"&"===e.substring(0,e.length-1)?e+"_dc="+t:e+"&_dc="+t:e+"?_dc="+t};switch(e.isUndefined(d.get(l))&&d.put(l,p.promise),a){case"css":(c=r.document.createElement("link")).type="text/css",c.rel="stylesheet",c.href=!1===u.cache?f(l):l;break;case"js":(c=r.document.createElement("script")).src=!1===u.cache?f(l):l;break;default:d.remove(l),p.reject(new Error('Requested type "'+a+'" is not known. Could not inject "'+l+'"'))}c.onload=c.onreadystatechange=function(e){c.readyState&&!/^c|loade/.test(c.readyState)||h||(c.onload=c.onreadystatechange=null,h=1,t._broadcast("ocLazyLoad.fileLoaded",l),p.resolve(c))},c.onerror=function(){d.remove(l),p.reject(new Error("Unable to load "+l))},c.async=u.serie?0:1;var g=s.lastChild;if(u.insertBefore){var m=e.element(e.isDefined(window.jQuery)?u.insertBefore:document.querySelector(u.insertBefore));m&&m.length>0&&(g=m[0])}if(g.parentNode.insertBefore(c,g),"css"==a){var v=r.navigator.userAgent.toLowerCase();if(v.indexOf("phantomjs/1.9")>-1)o=!0;else if(/iP(hone|od|ad)/.test(r.navigator.platform)){var y=r.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),b=parseFloat([parseInt(y[1],10),parseInt(y[2],10),parseInt(y[3]||0,10)].join("."));o=b<6}else if(v.indexOf("android")>-1){var $=parseFloat(v.slice(v.indexOf("android")+8));o=$<4.4}else if(v.indexOf("safari")>-1){var w=v.match(/version\/([\.\d]+)/i);o=w&&w[1]&&parseFloat(w[1])<6}if(o)var x=1e3,S=i((function(){try{c.sheet.cssRules,i.cancel(S),c.onload()}catch(e){--x<=0&&c.onerror()}}),20)}return p.promise},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.filesLoader=function(r){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=[],s=[],a=[],l=[],u=null,c=t._getFilesCache();t.toggleWatch(!0),e.extend(i,r);var h=function(n){var r,h=null;if(e.isObject(n)&&(h=n.type,n=n.path),u=c.get(n),e.isUndefined(u)||!1===i.cache){if(null!==(r=/^(css|less|html|htm|js)?(?=!)/.exec(n))&&(h=r[1],n=n.substr(r[1].length+1,n.length)),!h)if(null!==(r=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(n)))h=r[1];else{if(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||!t.jsLoader.hasOwnProperty("requirejs"))return void t._$log.error("File type could not be determined. "+n);h="js"}"css"!==h&&"less"!==h||-1!==o.indexOf(n)?"html"!==h&&"htm"!==h||-1!==s.indexOf(n)?"js"===h||-1===a.indexOf(n)?a.push(n):t._$log.error("File type is not valid. "+n):s.push(n):o.push(n)}else u&&l.push(u)};if(i.serie?h(i.files.shift()):e.forEach(i.files,(function(e){h(e)})),o.length>0){var p=n.defer();t.cssLoader(o,(function(n){e.isDefined(n)&&t.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),p.reject(n)):p.resolve()}),i),l.push(p.promise)}if(s.length>0){var d=n.defer();t.templatesLoader(s,(function(n){e.isDefined(n)&&t.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),d.reject(n)):d.resolve()}),i),l.push(d.promise)}if(a.length>0){var f=n.defer();t.jsLoader(a,(function(n){e.isDefined(n)&&(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||t.jsLoader.hasOwnProperty("requirejs"))?(t._$log.error(n),f.reject(n)):f.resolve()}),i),l.push(f.promise)}if(0===l.length){var g=n.defer(),m="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.";return t._$log.error(m),g.reject(m),g.promise}return i.serie&&i.files.length>0?n.all(l).then((function(){return t.filesLoader(r,i)})):n.all(l).finally((function(e){return t.toggleWatch(!1),e}))},t.load=function(r){var i,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=this,a=null,l=[],u=n.defer(),c=e.copy(r),h=e.copy(o);if(e.isArray(c))return e.forEach(c,(function(e){l.push(s.load(e,h))})),n.all(l).then((function(e){u.resolve(e)}),(function(e){u.reject(e)})),u.promise;if(e.isString(c)?(a=s.getModuleConfig(c))||(a={files:[c]}):e.isObject(c)&&(a=e.isDefined(c.path)&&e.isDefined(c.type)?{files:[c]}:s.setModuleConfig(c)),null===a){var p=s._getModuleName(c);return i='Module "'+(p||"unknown")+'" is not configured, cannot load.',t._$log.error(i),u.reject(new Error(i)),u.promise}e.isDefined(a.template)&&(e.isUndefined(a.files)&&(a.files=[]),e.isString(a.template)?a.files.push(a.template):e.isArray(a.template)&&a.files.concat(a.template));var d=e.extend({},h,a);return e.isUndefined(a.files)&&e.isDefined(a.name)&&t.moduleExists(a.name)?t.inject(a.name,d,!0):(t.filesLoader(a,d).then((function(){t.inject(null,d).then((function(e){u.resolve(e)}),(function(e){u.reject(e)}))}),(function(e){u.reject(e)})),u.promise)},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.cssLoader=function(r,i,o){var s=[];e.forEach(r,(function(e){s.push(t.buildElement("css",e,o))})),n.all(s).then((function(){i()}),(function(e){i(e)}))},t.cssLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.jsLoader=function(r,i,o){var s=[];e.forEach(r,(function(e){s.push(t.buildElement("js",e,o))})),n.all(s).then((function(){i()}),(function(e){i(e)}))},t.jsLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(t,n,r,i){return t.templatesLoader=function(o,s,a){var l=[],u=t._getFilesCache();return e.forEach(o,(function(t){var o=r.defer();l.push(o.promise),i.get(t,a).then((function(r){var i=r.data;e.isString(i)&&i.length>0&&e.forEach(e.element(i),(function(e){"SCRIPT"===e.nodeName&&"text/ng-template"===e.type&&n.put(e.id,e.innerHTML)})),e.isUndefined(u.get(t))&&u.put(t,!0),o.resolve()})).catch((function(e){o.reject(new Error('Unable to load template file "'+t+'": '+e.data))}))})),r.all(l).then((function(){s()}),(function(e){s(e)}))},t.templatesLoader.ocLazyLoadLoader=!0,t}])}])}(angular),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return-1;var o=+t||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(n=Math.max(o>=0?o:i-Math.abs(o),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1})},447:function(e,t,n){var r;
48
+ /*!
49
+ * angular-translate - v2.19.1 - 2024-01-21
50
+ *
51
+ * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
52
+ */void 0===(r=function(){return function(){function e(e,t){"use strict";return function(n){if(!n||!(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix)))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var i=[r.prefix,n.key,r.suffix].join("");return angular.isObject(n.fileMap)&&n.fileMap[i]&&(i=n.fileMap[i]),t(angular.extend({url:i,method:"GET"},n.$http)).then((function(e){return e.data}),(function(){return e.reject(n.key)}))},i=[],o=n.files.length,s=0;s<o;s++)i.push(r({prefix:n.files[s].prefix,key:n.key,suffix:n.files[s].suffix}));return e.all(i).then((function(e){for(var t=e.length,n={},r=0;r<t;r++)for(var i in e[r])n[i]=e[r][i];return n}))}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},448:function(e,t,n){var r={"./alert-box.entry.js":[450,414],"./confirmation-dialog_9.entry.js":[451,336],"./copy-resource-link-button.entry.js":[452,337],"./keyboard-shortcuts-dialog.entry.js":[453,415],"./loader-component.entry.js":[454,340],"./ontotext-download-as.entry.js":[455,338],"./ontotext-dropdown.entry.js":[456,339],"./ontotext-editable-text-field.entry.js":[457,416],"./ontotext-pagination.entry.js":[458,417]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=448,e.exports=i},449:function(e,t,n){var r={"./aclmanagement/app":[323,9,9,20,83],"./aclmanagement/app.js":[323,9,9,20,83],"./aclmanagement/controllers":[314,9,20],"./aclmanagement/controllers.js":[314,9,20],"./aclmanagement/directives/custom-role-prefix.directive":[156,7,126],"./aclmanagement/directives/custom-role-prefix.directive.js":[156,7,126],"./aclmanagement/model":[148,9,127],"./aclmanagement/model.js":[148,9,127],"./aclmanagement/plugin":[324,7,128],"./aclmanagement/plugin.js":[324,7,128],"./autocomplete/app":[325,9,85],"./autocomplete/app.js":[325,9,85],"./autocomplete/controllers":[215,9,129],"./autocomplete/controllers.js":[215,9,129],"./autocomplete/plugin":[326,7,130],"./autocomplete/plugin.js":[326,7,130],"./autocomplete/templates/modal/add-label.html":[459,7,341],"./backup-and-restore/app":[327,9,86],"./backup-and-restore/app.js":[327,9,86],"./backup-and-restore/controllers":[216,7,131],"./backup-and-restore/controllers.js":[216,7,131],"./backup-and-restore/plugin":[328,7,132],"./backup-and-restore/plugin.js":[328,7,132],"./clustermanagement/app":[329,9,5,10,13,16,28],"./clustermanagement/app.js":[329,9,5,10,13,16,28],"./clustermanagement/controllers/cluster-management.controller":[315,9,10,16,195],"./clustermanagement/controllers/cluster-management.controller.js":[315,9,10,16,195],"./clustermanagement/controllers/delete-cluster.controller":[220,7,133],"./clustermanagement/controllers/delete-cluster.controller.js":[220,7,133],"./clustermanagement/controllers/edit-cluster-nodes-modal.controller":[221,9,10,134],"./clustermanagement/controllers/edit-cluster-nodes-modal.controller.js":[221,9,10,134],"./clustermanagement/controllers/edit-cluster.controller":[219,9,87],"./clustermanagement/controllers/edit-cluster.controller.js":[219,9,87],"./clustermanagement/directives/cluster-configuration/cluster-configuration.directive":[226,9,34],"./clustermanagement/directives/cluster-configuration/cluster-configuration.directive.js":[226,9,34],"./clustermanagement/directives/cluster-configuration/cluster-nodes.directive":[159,7,135],"./clustermanagement/directives/cluster-configuration/cluster-nodes.directive.js":[159,7,135],"./clustermanagement/directives/cluster-configuration/cluster-properties.directive":[158,9,88],"./clustermanagement/directives/cluster-configuration/cluster-properties.directive.js":[158,9,88],"./clustermanagement/directives/cluster-configuration/multi-region.directive":[160,9,50],"./clustermanagement/directives/cluster-configuration/multi-region.directive.js":[160,9,50],"./clustermanagement/directives/cluster-graphical-view.directive":[223,9,13,89],"./clustermanagement/directives/cluster-graphical-view.directive.js":[223,9,13,89],"./clustermanagement/directives/cluster-legend.directive":[224,9,13],"./clustermanagement/directives/cluster-legend.directive.js":[224,9,13],"./clustermanagement/directives/cluster-nodes-configuration.directive":[227,9,90],"./clustermanagement/directives/cluster-nodes-configuration.directive.js":[227,9,90],"./clustermanagement/events":[108,9,136],"./clustermanagement/events.js":[108,9,136],"./clustermanagement/plugin":[330,7,137],"./clustermanagement/plugin.js":[330,7,137],"./clustermanagement/services/cluster-context.service":[222,9,10],"./clustermanagement/services/cluster-context.service.js":[222,9,10],"./clustermanagement/services/cluster-drawing.service":[126,9,91],"./clustermanagement/services/cluster-drawing.service.js":[126,9,91],"./clustermanagement/services/cluster-view-context.service":[218,7,138],"./clustermanagement/services/cluster-view-context.service.js":[218,7,138],"./clustermanagement/services/remote-locations.service":[217,9,139],"./clustermanagement/services/remote-locations.service.js":[217,9,139],"./clustermanagement/templates/cluster-configuration/cluster-configuration.html":[460,7,342],"./clustermanagement/templates/cluster-configuration/cluster-nodes.html":[461,7,343],"./clustermanagement/templates/cluster-configuration/cluster-properties.html":[462,7,344],"./clustermanagement/templates/cluster-configuration/multi-region.html":[463,7,345],"./clustermanagement/templates/cluster-legend.html":[464,7,346],"./clustermanagement/templates/cluster-nodes-configuration.html":[465,7,347],"./clustermanagement/templates/modal/cluster-delete-dialog.html":[466,7,348],"./clustermanagement/templates/modal/cluster-edit-dialog.html":[467,7,349],"./clustermanagement/templates/modal/edit-cluster-nodes-modal.html":[468,7,350],"./clustermanagement/templates/modal/secondary-mode-modal.html":[469,7,351],"./controllers":[58,9],"./controllers.js":[58,9],"./core/angularCancelOnNavigateModule":[71,7],"./core/angularCancelOnNavigateModule.js":[71,7],"./core/components/export-settings-modal/controller":[127,9,140],"./core/components/export-settings-modal/controller.js":[127,9,140],"./core/components/export-settings-modal/exportSettingsModal.html":[470,7,352],"./core/controllers":[46,7],"./core/controllers.js":[46,7],"./core/directives":[40,9],"./core/directives.js":[40,9],"./core/directives/angulartooltips/angular-tooltips":[75,9],"./core/directives/angulartooltips/angular-tooltips.js":[75,9],"./core/directives/ascii-validator.directive":[135,7,141],"./core/directives/ascii-validator.directive.js":[135,7,141],"./core/directives/autocomplete/autocomplete.directive":[78,9],"./core/directives/autocomplete/autocomplete.directive.js":[78,9],"./core/directives/autocomplete/templates/autocomplete.html":[471,7,353],"./core/directives/cookie-policy/cookie-consent.directive":[66,9],"./core/directives/cookie-policy/cookie-consent.directive.js":[66,9],"./core/directives/cookie-policy/cookie-policy-modal-controller":[30,9],"./core/directives/cookie-policy/cookie-policy-modal-controller.js":[30,9],"./core/directives/copy-to-clipboard/copy-to-clipboard.directive":[74,7],"./core/directives/copy-to-clipboard/copy-to-clipboard.directive.js":[74,7],"./core/directives/fit-text.directive":[229,7,142],"./core/directives/fit-text.directive.js":[229,7,142],"./core/directives/inline-editable-text/inline-editable-text.directive":[137,7,143],"./core/directives/inline-editable-text/inline-editable-text.directive.js":[137,7,143],"./core/directives/inline-editable-text/templates/inline-editable-text.template.html":[472,7,354],"./core/directives/languageselector/language-selector.directive":[73,9],"./core/directives/languageselector/language-selector.directive.js":[73,9],"./core/directives/languageselector/templates/languageSelector.html":[473,7,355],"./core/directives/length-validator.directive":[136,7,144],"./core/directives/length-validator.directive.js":[136,7,144],"./core/directives/markdown-content/markdown-content":[230,9,4,56],"./core/directives/markdown-content/markdown-content.js":[230,9,4,56],"./core/directives/open-in-sparql-editor/open-in-sparql-editor.directive":[231,9,145],"./core/directives/open-in-sparql-editor/open-in-sparql-editor.directive.js":[231,9,145],"./core/directives/operations-statuses-monitor/operations-statuses-monitor.directive":[77,9],"./core/directives/operations-statuses-monitor/operations-statuses-monitor.directive.js":[77,9],"./core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html":[474,7,356],"./core/directives/page-info-tooltip.directive":[80,7],"./core/directives/page-info-tooltip.directive.js":[80,7],"./core/directives/paginations":[117,7,146],"./core/directives/paginations.js":[117,7,146],"./core/directives/prop-indeterminate/prop-indeterminate.directive":[79,7],"./core/directives/prop-indeterminate/prop-indeterminate.directive.js":[79,7],"./core/directives/rdfresourcesearch/rdf-resource-search.directive":[72,9],"./core/directives/rdfresourcesearch/rdf-resource-search.directive.js":[72,9],"./core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html":[475,7,357],"./core/directives/uppercased.directive":[76,7],"./core/directives/uppercased.directive.js":[76,7],"./core/directives/validate-duplicate-url.directive":[228,7,147],"./core/directives/validate-duplicate-url.directive.js":[228,7,147],"./core/directives/validate-url.directive":[134,9,93],"./core/directives/validate-url.directive.js":[134,9,93],"./core/directives/yasgui-component/templates/yasgui-component.html":[476,7,358],"./core/directives/yasgui-component/yasgui-component-directive.util":[19,9],"./core/directives/yasgui-component/yasgui-component-directive.util.js":[19,9],"./core/directives/yasgui-component/yasgui-component.directive":[140,9,1,2],"./core/directives/yasgui-component/yasgui-component.directive.js":[140,9,1,2],"./core/directives/yasgui-component/yasgui-persistence-migration.service":[237,9,94],"./core/directives/yasgui-component/yasgui-persistence-migration.service.js":[237,9,94],"./core/interceptors/authentication.interceptor":[53,9],"./core/interceptors/authentication.interceptor.js":[53,9],"./core/interceptors/unauthorized.interceptor":[52,9],"./core/interceptors/unauthorized.interceptor.js":[52,9],"./core/loading-hint":[54,7,148],"./core/loading-hint.js":[54,7,148],"./core/services":[9,9],"./core/services.js":[9,9],"./core/services/autocomplete.service":[68,9],"./core/services/autocomplete.service.js":[68,9],"./core/services/connectors.service":[104,9,51],"./core/services/connectors.service.js":[104,9,51],"./core/services/event-emitter-service":[22,7],"./core/services/event-emitter-service.js":[22,7],"./core/services/jwt-auth.service":[42,9],"./core/services/jwt-auth.service.js":[42,9],"./core/services/language.service":[81,7],"./core/services/language.service.js":[81,7],"./core/services/license.service":[61,7],"./core/services/license.service.js":[61,7],"./core/services/markdown/markdown.service":[161,9,4,71],"./core/services/markdown/markdown.service.js":[161,9,4,71],"./core/services/markdown/plugins/markdown-code-copy-plugin":[138,9,149],"./core/services/markdown/plugins/markdown-code-copy-plugin.js":[138,9,149],"./core/services/markdown/plugins/markdown-open-in-sparql-editor-plugin":[139,9,150],"./core/services/markdown/plugins/markdown-open-in-sparql-editor-plugin.js":[139,9,150],"./core/services/openid-auth.service":[55,9],"./core/services/openid-auth.service.js":[55,9],"./core/services/rdf4j-repositories.service":[47,9],"./core/services/rdf4j-repositories.service.js":[47,9],"./core/services/repositories.service":[41,9],"./core/services/repositories.service.js":[41,9],"./core/services/security.service":[238,9,59],"./core/services/security.service.js":[238,9,59],"./core/services/similarity.service":[105,9,38],"./core/services/similarity.service.js":[105,9,38],"./core/services/theme-service":[59,7],"./core/services/theme-service.js":[59,7],"./core/services/tracking/cookie.service":[63,7],"./core/services/tracking/cookie.service.js":[63,7],"./core/services/tracking/google-analytics-cookie.service":[65,7],"./core/services/tracking/google-analytics-cookie.service.js":[65,7],"./core/services/tracking/installation-cookie.service":[64,7],"./core/services/tracking/installation-cookie.service.js":[64,7],"./core/services/tracking/tracking.service":[62,9],"./core/services/tracking/tracking.service.js":[62,9],"./core/services/translation.service":[232,7,151],"./core/services/translation.service.js":[232,7,151],"./core/services/ttyg.service":[113,9,3,6],"./core/services/ttyg.service.js":[113,9,3,6],"./core/services/workbench-context.service":[23,9],"./core/services/workbench-context.service.js":[23,9],"./core/templates/cookie-policy/cookie-consent.html":[477,7,359],"./core/templates/cookie-policy/cookie-policy.html":[478,7,360],"./core/templates/core-errors.html":[479,7,361],"./core/templates/inactive-plugin-warning-page.html":[480,7,362],"./core/templates/modal/copy-to-clipboard-modal.html":[481,7,363],"./core/templates/modal/modal-simple.html":[482,7,364],"./core/templates/modal/modal-warning.html":[483,7,365],"./core/templates/search-resource-input.html":[484,7,366],"./explore/app":[331,9,1,14,22,2,26],"./explore/app.js":[331,9,1,14,22,2,26],"./explore/controllers":[244,9,14,27],"./explore/controllers.js":[244,9,14,27],"./explore/directives":[245,9,152],"./explore/directives.js":[245,9,152],"./explore/plugin":[332,7,153],"./explore/plugin.js":[332,7,153],"./explore/statements.service":[243,7,154],"./explore/statements.service.js":[243,7,154],"./explore/templates/viewTrig.html":[485,7,367],"./export/app":[333,9,18,92],"./export/app.js":[333,9,18,92],"./export/controllers":[316,9,18],"./export/controllers.js":[316,9,18],"./export/plugin":[334,7,155],"./export/plugin.js":[334,7,155],"./externalsync/app":[335,9,11,95],"./externalsync/app.js":[335,9,11,95],"./externalsync/controllers":[208,9,11],"./externalsync/controllers.js":[208,9,11],"./externalsync/directives":[247,9,156],"./externalsync/directives.js":[247,9,156],"./externalsync/plugin":[336,7,157],"./externalsync/plugin.js":[336,7,157],"./externalsync/templates/deleteConnector.html":[486,7,368],"./graphexplore/app":[337,9,1,5,67,2,23],"./graphexplore/app.js":[337,9,1,5,67,2,23],"./graphexplore/controllers/dependencies-chord.controller":[254,7,158],"./graphexplore/controllers/dependencies-chord.controller.js":[254,7,158],"./graphexplore/controllers/domain-range-graph.controller":[253,9,159],"./graphexplore/controllers/domain-range-graph.controller.js":[253,9,159],"./graphexplore/controllers/graphs-config.controller":[256,9,41],"./graphexplore/controllers/graphs-config.controller.js":[256,9,41],"./graphexplore/controllers/graphs-visualizations.controller":[255,9,5,42],"./graphexplore/controllers/graphs-visualizations.controller.js":[255,9,5,42],"./graphexplore/controllers/rdf-class-hierarchy.controller":[252,9,160],"./graphexplore/controllers/rdf-class-hierarchy.controller.js":[252,9,160],"./graphexplore/directives/dependencies-chord.directive":[261,9,5,60],"./graphexplore/directives/dependencies-chord.directive.js":[261,9,5,60],"./graphexplore/directives/domain-range-graph.directive":[258,9,5,61],"./graphexplore/directives/domain-range-graph.directive.js":[258,9,5,61],"./graphexplore/directives/list-items-search-filter.directive":[262,7,161],"./graphexplore/directives/list-items-search-filter.directive.js":[262,7,161],"./graphexplore/directives/rdf-class-hierarchy.directive":[257,9,5,43],"./graphexplore/directives/rdf-class-hierarchy.directive.js":[257,9,5,43],"./graphexplore/directives/rdfs-comment-label.directive":[260,7,162],"./graphexplore/directives/rdfs-comment-label.directive.js":[260,7,162],"./graphexplore/directives/search-icon-input.directive":[263,7,163],"./graphexplore/directives/search-icon-input.directive.js":[263,7,163],"./graphexplore/directives/system-repo-warning.directive":[259,7,164],"./graphexplore/directives/system-repo-warning.directive.js":[259,7,164],"./graphexplore/plugin":[338,7,165],"./graphexplore/plugin.js":[338,7,165],"./graphexplore/services/rdfs-label-comment.service":[249,7,166],"./graphexplore/services/rdfs-label-comment.service.js":[249,7,166],"./graphexplore/services/ui-scroll.service":[248,7,167],"./graphexplore/services/ui-scroll.service.js":[248,7,167],"./graphexplore/templates/listItemsSearchFilterTemplate.html":[487,7,369],"./graphexplore/templates/modal/save-graph.html":[488,7,370],"./graphexplore/templates/rdfClassHierarchyClassCountSliderHelpTemplate.html":[489,7,371],"./graphexplore/templates/rdfsCommentLabelTemplate.html":[490,7,372],"./graphexplore/templates/searchIconInputTemplate.html":[491,7,373],"./graphexplore/templates/systemRepoWarningTemplate.html":[492,7,374],"./guides/app":[339,9,57],"./guides/app.js":[339,9,57],"./guides/controllers":[264,9,69],"./guides/controllers.js":[264,9,69],"./guides/directives":[70,7],"./guides/directives.js":[70,7],"./guides/guide-utils":[2,9],"./guides/guide-utils.js":[2,9],"./guides/guides.service":[51,9],"./guides/guides.service.js":[51,9],"./guides/model/guides":[177,9,168],"./guides/model/guides.js":[177,9,168],"./guides/plugin":[340,7,169],"./guides/plugin.js":[340,7,169],"./guides/steps/complex/class-hierarchy/plugin":[341,7,170],"./guides/steps/complex/class-hierarchy/plugin.js":[341,7,170],"./guides/steps/complex/create-repository/plugin":[342,7,171],"./guides/steps/complex/create-repository/plugin.js":[342,7,171],"./guides/steps/complex/download-guide-resource/plugin":[343,7,172],"./guides/steps/complex/download-guide-resource/plugin.js":[343,7,172],"./guides/steps/complex/enable-autocomplete/plugin":[344,7,173],"./guides/steps/complex/enable-autocomplete/plugin.js":[344,7,173],"./guides/steps/complex/execute-sparql-query/plugin":[345,7,174],"./guides/steps/complex/execute-sparql-query/plugin.js":[345,7,174],"./guides/steps/complex/import-rdf-file/plugin":[346,7,175],"./guides/steps/complex/import-rdf-file/plugin.js":[346,7,175],"./guides/steps/complex/main-menu/plugin":[347,7,176],"./guides/steps/complex/main-menu/plugin.js":[347,7,176],"./guides/steps/complex/select-repository/plugin":[348,7,177],"./guides/steps/complex/select-repository/plugin.js":[348,7,177],"./guides/steps/complex/table-graph/plugin":[349,7,178],"./guides/steps/complex/table-graph/plugin.js":[349,7,178],"./guides/steps/complex/visual-graph/plugin":[350,7,179],"./guides/steps/complex/visual-graph/plugin.js":[350,7,179],"./guides/steps/complex/welcome/plugin":[351,7,180],"./guides/steps/complex/welcome/plugin.js":[351,7,180],"./guides/steps/core/plugin":[352,7,181],"./guides/steps/core/plugin.js":[352,7,181],"./guides/tour-lib-services/shepherd.service":[17,9],"./guides/tour-lib-services/shepherd.service.js":[17,9],"./import/app":[353,9,12,19,72],"./import/app.js":[353,9,12,19,72],"./import/controllers/file-override-confirmation.controller":[272,9,182],"./import/controllers/file-override-confirmation.controller.js":[272,9,182],"./import/controllers/import-resource-message-dialog.controller":[180,7,183],"./import/controllers/import-resource-message-dialog.controller.js":[180,7,183],"./import/controllers/import-text-snippet.controller":[271,7,184],"./import/controllers/import-text-snippet.controller.js":[271,7,184],"./import/controllers/import-url.controller":[270,7,185],"./import/controllers/import-url.controller.js":[270,7,185],"./import/controllers/import-view.controller":[265,9,12],"./import/controllers/import-view.controller.js":[265,9,12],"./import/controllers/settings-modal.controller":[269,9,12],"./import/controllers/settings-modal.controller.js":[269,9,12],"./import/controllers/tab.controller":[268,9,73],"./import/controllers/tab.controller.js":[268,9,73],"./import/directives/import-progress-indicator.directive":[278,7,186],"./import/directives/import-progress-indicator.directive.js":[278,7,186],"./import/directives/import-resource-message.directive":[279,9,62],"./import/directives/import-resource-message.directive.js":[279,9,62],"./import/directives/import-resource-status-info.directive":[280,7,187],"./import/directives/import-resource-status-info.directive.js":[280,7,187],"./import/directives/import-resource-tree.directive":[317,9,19,52],"./import/directives/import-resource-tree.directive.js":[317,9,19,52],"./import/directives/validate-uri.directive":[277,7,188],"./import/directives/validate-uri.directive.js":[277,7,188],"./import/plugin":[354,7,189],"./import/plugin.js":[354,7,189],"./import/services/file-prefix-registry":[276,9,190],"./import/services/file-prefix-registry.js":[276,9,190],"./import/services/import-context.service":[115,9,96],"./import/services/import-context.service.js":[115,9,96],"./import/services/import-resource-tree.service":[281,9,63],"./import/services/import-resource-tree.service.js":[281,9,63],"./import/templates/file-override-confirmation.html":[493,7,375],"./import/templates/fileSizeLimitInfo.html":[494,7,376],"./import/templates/import-resource-message-dialog.html":[495,7,377],"./import/templates/import-resource-message.html":[496,7,378],"./import/templates/import-resource-status-info.html":[497,7,379],"./import/templates/import-resource-tree.html":[498,7,380],"./import/templates/settingsModal.html":[499,7,381],"./import/templates/textSnippet.html":[500,7,382],"./import/templates/urlImport.html":[501,7,383],"./jdbc/app":[355,9,0,1,2,7,35],"./jdbc/app.js":[355,9,0,1,2,7,35],"./jdbc/controllers":[291,9,39],"./jdbc/controllers.js":[291,9,39],"./jdbc/plugin":[356,7,191],"./jdbc/plugin.js":[356,7,191],"./models/clustermanagement/cluster":[107,9,192],"./models/clustermanagement/cluster-management-constants":[225,9,74],"./models/clustermanagement/cluster-management-constants.js":[225,9,74],"./models/clustermanagement/cluster.js":[107,9,192],"./models/clustermanagement/node-state":[157,9,193],"./models/clustermanagement/node-state.js":[157,9,193],"./models/clustermanagement/recovery-status-state":[357,9,194],"./models/clustermanagement/recovery-status-state.js":[357,9,194],"./models/clustermanagement/states":[97,9,196],"./models/clustermanagement/states.js":[97,9,196],"./models/connectors/connector-command":[184,9,197],"./models/connectors/connector-command.js":[184,9,197],"./models/connectors/connectors":[102,9,198],"./models/connectors/connectors.js":[102,9,198],"./models/cookie-policy/cookie-consent":[7,9],"./models/cookie-policy/cookie-consent.js":[7,9],"./models/form-fields":[92,9,199],"./models/form-fields.js":[92,9,199],"./models/graphs/graphs-config":[111,9,200],"./models/graphs/graphs-config.js":[111,9,200],"./models/http-status":[185,9,201],"./models/http-status.js":[185,9,201],"./models/import/file-formats":[273,9,202],"./models/import/file-formats.js":[273,9,202],"./models/import/import-parsing-settings":[145,9,203],"./models/import/import-parsing-settings.js":[145,9,203],"./models/import/import-resource":[178,9,64],"./models/import/import-resource-format":[358,9,204],"./models/import/import-resource-format.js":[358,9,204],"./models/import/import-resource-status":[90,9,205],"./models/import/import-resource-status.js":[90,9,205],"./models/import/import-resource-tree-element":[152,9,99],"./models/import/import-resource-tree-element.js":[152,9,99],"./models/import/import-resource-type":[112,9,206],"./models/import/import-resource-type.js":[112,9,206],"./models/import/import-resource.js":[178,9,64],"./models/import/import-settings":[359,9,207],"./models/import/import-settings.js":[359,9,207],"./models/import/sorting-type":[179,9,208],"./models/import/sorting-type.js":[179,9,208],"./models/jdbc/jdbc-column":[183,9,210],"./models/jdbc/jdbc-column-type":[360,9,209],"./models/jdbc/jdbc-column-type.js":[360,9,209],"./models/jdbc/jdbc-column.js":[183,9,210],"./models/jdbc/jdbc-configuration-error":[182,9,211],"./models/jdbc/jdbc-configuration-error.js":[182,9,211],"./models/jdbc/jdbc-configuration-info":[181,9,212],"./models/jdbc/jdbc-configuration-info.js":[181,9,212],"./models/monitoring/backup-and-restore-info":[33,9],"./models/monitoring/backup-and-restore-info.js":[33,9],"./models/monitoring/backup-and-restore-operation-type":[361,9,213],"./models/monitoring/backup-and-restore-operation-type.js":[361,9,213],"./models/monitoring/cluster-status":[362,9,214],"./models/monitoring/cluster-status.js":[362,9,214],"./models/monitoring/operations/active-operation-input":[363,9,215],"./models/monitoring/operations/active-operation-input.js":[363,9,215],"./models/monitoring/operations/active-operation-model":[11,9],"./models/monitoring/operations/active-operation-model.js":[11,9],"./models/monitoring/operations/active-operations-input":[364,9,216],"./models/monitoring/operations/active-operations-input.js":[364,9,216],"./models/monitoring/operations/active-operations-model":[36,9],"./models/monitoring/operations/active-operations-model.js":[36,9],"./models/monitoring/operations/operation-group":[1,9],"./models/monitoring/operations/operation-group.js":[1,9],"./models/monitoring/operations/operation-monitoring-constants":[12,9],"./models/monitoring/operations/operation-monitoring-constants.js":[12,9],"./models/monitoring/operations/operation-status":[4,9],"./models/monitoring/operations/operation-status.js":[4,9],"./models/monitoring/operations/operation-type":[3,9],"./models/monitoring/operations/operation-type.js":[3,9],"./models/monitoring/snapshot-option-info":[34,9],"./models/monitoring/snapshot-option-info.js":[34,9],"./models/namespaces/namespace":[37,9],"./models/namespaces/namespace.js":[37,9],"./models/namespaces/namespaces-list":[8,9],"./models/namespaces/namespaces-list.js":[8,9],"./models/ontop/jdbc-driver-type":[122,9,217],"./models/ontop/jdbc-driver-type.js":[122,9,217],"./models/ontop/ontop-connection-information":[186,9,218],"./models/ontop/ontop-connection-information.js":[186,9,218],"./models/ontop/ontop-driver-data":[187,9,100],"./models/ontop/ontop-driver-data.js":[187,9,100],"./models/ontop/ontop-file-info":[188,9,219],"./models/ontop/ontop-file-info.js":[188,9,219],"./models/ontop/ontop-file-type":[189,9,220],"./models/ontop/ontop-file-type.js":[189,9,220],"./models/ontop/ontop-repository-error":[190,9,221],"./models/ontop/ontop-repository-error.js":[190,9,221],"./models/ontotext-yasgui/before-update-query-result":[191,9,222],"./models/ontotext-yasgui/before-update-query-result.js":[191,9,222],"./models/ontotext-yasgui/count-query-request-event":[165,9,223],"./models/ontotext-yasgui/count-query-request-event.js":[165,9,223],"./models/ontotext-yasgui/count-query-response-event":[164,9,224],"./models/ontotext-yasgui/count-query-response-event.js":[164,9,224],"./models/ontotext-yasgui/download-as-event":[166,9,225],"./models/ontotext-yasgui/download-as-event.js":[166,9,225],"./models/ontotext-yasgui/event-data":[162,9,227],"./models/ontotext-yasgui/event-data-type":[118,9,226],"./models/ontotext-yasgui/event-data-type.js":[118,9,226],"./models/ontotext-yasgui/event-data.js":[162,9,227],"./models/ontotext-yasgui/keyboard-shortcut-name":[236,9,228],"./models/ontotext-yasgui/keyboard-shortcut-name.js":[236,9,228],"./models/ontotext-yasgui/notification-message-event":[167,9,229],"./models/ontotext-yasgui/notification-message-event.js":[167,9,229],"./models/ontotext-yasgui/notification-message-type":[365,9,230],"./models/ontotext-yasgui/notification-message-type.js":[365,9,230],"./models/ontotext-yasgui/ongoing-requests-info":[366,9,231],"./models/ontotext-yasgui/ongoing-requests-info.js":[366,9,231],"./models/ontotext-yasgui/ontotext-yasgui-config":[367,9,45],"./models/ontotext-yasgui/ontotext-yasgui-config.js":[367,9,45],"./models/ontotext-yasgui/query-executed-event":[168,9,232],"./models/ontotext-yasgui/query-executed-event.js":[168,9,232],"./models/ontotext-yasgui/query-mode":[16,9],"./models/ontotext-yasgui/query-mode.js":[16,9],"./models/ontotext-yasgui/query-request-event":[163,9,233],"./models/ontotext-yasgui/query-request-event.js":[163,9,233],"./models/ontotext-yasgui/query-type":[129,9,234],"./models/ontotext-yasgui/query-type.js":[129,9,234],"./models/ontotext-yasgui/rendering-mode":[89,9,236],"./models/ontotext-yasgui/rendering-mode.js":[89,9,236],"./models/ontotext-yasgui/request-aborted-event":[170,9,237],"./models/ontotext-yasgui/request-aborted-event.js":[170,9,237],"./models/ontotext-yasgui/save-query-opened":[169,9,238],"./models/ontotext-yasgui/save-query-opened.js":[169,9,238],"./models/ontotext-yasgui/tab":[368,9,239],"./models/ontotext-yasgui/tab.js":[368,9,239],"./models/ontotext-yasgui/yasgui-orientation":[293,9,240],"./models/ontotext-yasgui/yasgui-orientation.js":[293,9,240],"./models/ontotext-yasgui/yasgui-query-http-method":[294,9,241],"./models/ontotext-yasgui/yasgui-query-http-method.js":[294,9,241],"./models/ontotext-yasgui/yasgui-reset-flags":[369,9,242],"./models/ontotext-yasgui/yasgui-reset-flags.js":[369,9,242],"./models/ontotext-yasgui/yasqe-action-button-definition":[370,9,243],"./models/ontotext-yasgui/yasqe-action-button-definition.js":[370,9,243],"./models/ontotext-yasgui/yasqe-mode":[96,9,244],"./models/ontotext-yasgui/yasqe-mode.js":[96,9,244],"./models/ontotext-yasgui/yasr-before-update-query-result":[371,9,245],"./models/ontotext-yasgui/yasr-before-update-query-result.js":[371,9,245],"./models/ontotext-yasgui/yasr-plugin-name":[171,9,246],"./models/ontotext-yasgui/yasr-plugin-name.js":[171,9,246],"./models/ontotext-yasgui/yasr-query-response-status":[372,9,247],"./models/ontotext-yasgui/yasr-query-response-status.js":[372,9,247],"./models/ontotext-yasgui/yasr-toolbar-plugin":[373,9,248],"./models/ontotext-yasgui/yasr-toolbar-plugin.js":[373,9,248],"./models/product-info":[374,9,249],"./models/product-info.js":[374,9,249],"./models/repository/remote-location.model":[28,9],"./models/repository/remote-location.model.js":[28,9],"./models/repository/repository":[10,9],"./models/repository/repository.js":[10,9],"./models/resource/context-type":[121,9,250],"./models/resource/context-type.js":[121,9,250],"./models/resource/resource-details":[144,9,251],"./models/resource/resource-details.js":[144,9,251],"./models/resource/resource-graph-response":[375,9,252],"./models/resource/resource-graph-response.js":[375,9,252],"./models/resource/resource-info":[175,9,77],"./models/resource/resource-info.js":[175,9,77],"./models/resource/role-type":[176,9,253],"./models/resource/role-type.js":[176,9,253],"./models/security/security":[295,9,254],"./models/security/security.js":[295,9,254],"./models/settings/workbench-settings":[376,9,255],"./models/settings/workbench-settings.js":[376,9,255],"./models/similarity/similarity-index":[94,9,78],"./models/similarity/similarity-index-error":[296,9,256],"./models/similarity/similarity-index-error.js":[296,9,256],"./models/similarity/similarity-index-info":[297,9,47],"./models/similarity/similarity-index-info.js":[297,9,47],"./models/similarity/similarity-index-status":[93,9,257],"./models/similarity/similarity-index-status.js":[93,9,257],"./models/similarity/similarity-index-type":[91,9,258],"./models/similarity/similarity-index-type.js":[91,9,258],"./models/similarity/similarity-index.js":[94,9,78],"./models/similarity/similarity-query-type":[154,9,259],"./models/similarity/similarity-query-type.js":[154,9,259],"./models/similarity/similarity-result-type":[192,9,260],"./models/similarity/similarity-result-type.js":[192,9,260],"./models/similarity/similarity-search":[193,9,101],"./models/similarity/similarity-search-type":[123,9,261],"./models/similarity/similarity-search-type.js":[123,9,261],"./models/similarity/similarity-search.js":[193,9,101],"./models/similarity/similarity-view-mode":[298,9,262],"./models/similarity/similarity-view-mode.js":[298,9,262],"./models/sparql-template/sparql-template-error":[195,9,263],"./models/sparql-template/sparql-template-error.js":[195,9,263],"./models/sparql-template/sparql-template-info":[196,9,264],"./models/sparql-template/sparql-template-info.js":[196,9,264],"./models/sparql/cancel-aborting-query":[194,9,265],"./models/sparql/cancel-aborting-query.js":[194,9,265],"./models/sparql/constants":[130,9,266],"./models/sparql/constants.js":[130,9,266],"./models/sparql/sparql-query-error-info":[377,9,267],"./models/sparql/sparql-query-error-info.js":[377,9,267],"./models/sparql/tab-query-model":[141,9,268],"./models/sparql/tab-query-model.js":[141,9,268],"./models/themes/theme":[378,9,269],"./models/themes/theme.js":[378,9,269],"./models/ttyg/agent-form":[240,9,3],"./models/ttyg/agent-form.js":[240,9,3],"./models/ttyg/agent-instructions-explain":[173,9,270],"./models/ttyg/agent-instructions-explain.js":[173,9,270],"./models/ttyg/agents":[114,9,104],"./models/ttyg/agents.js":[114,9,104],"./models/ttyg/chat-answer":[120,9,271],"./models/ttyg/chat-answer.js":[120,9,271],"./models/ttyg/chat-item":[95,9,105],"./models/ttyg/chat-item.js":[95,9,105],"./models/ttyg/chat-message":[88,9,272],"./models/ttyg/chat-message.js":[88,9,272],"./models/ttyg/chats":[110,9,79],"./models/ttyg/chats.js":[110,9,79],"./models/ttyg/explain-response":[131,9,273],"./models/ttyg/explain-response.js":[131,9,273],"./models/yasgui-component":[235,9,275],"./models/yasgui-component.js":[235,9,275],"./namespaces/app":[379,9,22,58],"./namespaces/app.js":[379,9,22,58],"./namespaces/controllers":[299,9,276],"./namespaces/controllers.js":[299,9,276],"./namespaces/directives":[300,7,277],"./namespaces/directives.js":[300,7,277],"./namespaces/plugin":[380,7,278],"./namespaces/plugin.js":[380,7,278],"./plugin":[382,7,280],"./plugin-registry":[381,7,279],"./plugin-registry.js":[381,7,279],"./plugin.js":[382,7,280],"./plugins/app":[383,9,108],"./plugins/app.js":[383,9,108],"./plugins/controllers":[301,9,281],"./plugins/controllers.js":[301,9,281],"./plugins/plugin":[384,7,282],"./plugins/plugin.js":[384,7,282],"./queries/app":[385,9,109],"./queries/app.js":[385,9,109],"./queries/controllers":[302,9,283],"./queries/controllers.js":[302,9,283],"./queries/plugin":[386,7,284],"./queries/plugin.js":[386,7,284],"./rdfrank/app":[387,9,68],"./rdfrank/app.js":[387,9,68],"./rdfrank/plugin":[388,7,285],"./rdfrank/plugin.js":[388,7,285],"./rdfrank/templates/filter-list.html":[502,7,384],"./repositories/app":[389,9,9,32],"./repositories/app.js":[389,9,9,32],"./repositories/controllers":[155,9,9],"./repositories/controllers.js":[155,9,9],"./repositories/controllers/manage-remote-location-dialog.controller":[212,9,70],"./repositories/controllers/manage-remote-location-dialog.controller.js":[212,9,70],"./repositories/fedx-repo.directive":[305,7,286],"./repositories/fedx-repo.directive.js":[305,7,286],"./repositories/ontop-repo.directive":[304,9,9,40],"./repositories/ontop-repo.directive.js":[304,9,9,40],"./repositories/plugin":[390,7,287],"./repositories/plugin.js":[390,7,287],"./repositories/repository.constants":[133,9,288],"./repositories/repository.constants.js":[133,9,288],"./repositories/templates/fedx-repo.html":[503,7,385],"./repositories/templates/manage-remote-location-dialog.template.html":[504,7,386],"./repositories/templates/ontop-repo.html":[505,7,387],"./resources/app":[391,9,0,7,110],"./resources/app.js":[391,9,0,7,110],"./resources/chart-models/chart-data":[86,9,0,289],"./resources/chart-models/chart-data.js":[86,9,0,289],"./resources/chart-models/cluster-health/cluster-health-chart":[289,9,0,111],"./resources/chart-models/cluster-health/cluster-health-chart.js":[289,9,0,111],"./resources/chart-models/performance/connections-chart":[288,9,0,112],"./resources/chart-models/performance/connections-chart.js":[288,9,0,112],"./resources/chart-models/performance/epool-chart":[290,9,0,113],"./resources/chart-models/performance/epool-chart.js":[290,9,0,113],"./resources/chart-models/performance/queries-chart":[286,9,0,114],"./resources/chart-models/performance/queries-chart.js":[286,9,0,114],"./resources/chart-models/resource/cpu-load-chart":[284,9,0,115],"./resources/chart-models/resource/cpu-load-chart.js":[284,9,0,115],"./resources/chart-models/resource/disk-storage-chart":[285,9,0,116],"./resources/chart-models/resource/disk-storage-chart.js":[285,9,0,116],"./resources/chart-models/resource/file-descriptors-chart":[282,9,0,117],"./resources/chart-models/resource/file-descriptors-chart.js":[282,9,0,117],"./resources/chart-models/resource/global-cache-chart":[287,9,0,118],"./resources/chart-models/resource/global-cache-chart.js":[287,9,0,118],"./resources/chart-models/resource/heap-memory-chart":[153,9,0,119],"./resources/chart-models/resource/heap-memory-chart.js":[153,9,0,119],"./resources/chart-models/resource/non-heap-memory-chart":[283,9,0,81],"./resources/chart-models/resource/non-heap-memory-chart.js":[283,9,0,81],"./resources/controllers":[209,9,0,7],"./resources/controllers.js":[209,9,0,7],"./resources/directives":[307,9,0,290],"./resources/directives.js":[307,9,0,290],"./resources/plugin":[392,7,291],"./resources/plugin.js":[392,7,291],"./rest/aclmanagement.rest.service":[213,7,292],"./rest/aclmanagement.rest.service.js":[213,7,292],"./rest/autocomplete.rest.service":[26,7],"./rest/autocomplete.rest.service.js":[26,7],"./rest/cluster.rest.service":[125,7,293],"./rest/cluster.rest.service.js":[125,7,293],"./rest/connectors.rest.service":[99,7,294],"./rest/connectors.rest.service.js":[99,7,294],"./rest/explore.rest.service":[174,7,295],"./rest/explore.rest.service.js":[174,7,295],"./rest/export.rest.service":[246,7,296],"./rest/export.rest.service.js":[246,7,296],"./rest/graph-config.rest.service":[251,9,76],"./rest/graph-config.rest.service.js":[251,9,76],"./rest/graph-data.rest.service":[151,7,297],"./rest/graph-data.rest.service.js":[151,7,297],"./rest/guides.rest.service":[69,7],"./rest/guides.rest.service.js":[69,7],"./rest/import.rest.service":[266,7,298],"./rest/import.rest.service.js":[266,7,298],"./rest/jdbc.rest.service":[292,7,299],"./rest/jdbc.rest.service.js":[292,7,299],"./rest/license.rest.service":[27,7],"./rest/license.rest.service.js":[27,7],"./rest/locations.rest.service":[50,7],"./rest/locations.rest.service.js":[50,7],"./rest/mappers/aclmanagement-mapper":[214,9,84],"./rest/mappers/aclmanagement-mapper.js":[214,9,84],"./rest/mappers/active-operations-mapper":[35,9],"./rest/mappers/active-operations-mapper.js":[35,9],"./rest/mappers/autocomplete-mapper":[39,9],"./rest/mappers/autocomplete-mapper.js":[39,9],"./rest/mappers/connectors-mapper":[109,9,97],"./rest/mappers/connectors-mapper.js":[109,9,97],"./rest/mappers/graphs-config-mapper":[132,9,98],"./rest/mappers/graphs-config-mapper.js":[132,9,98],"./rest/mappers/import-mapper":[275,9,53],"./rest/mappers/import-mapper.js":[275,9,53],"./rest/mappers/monitor-backup-and-restore-mapper":[32,9],"./rest/mappers/monitor-backup-and-restore-mapper.js":[32,9],"./rest/mappers/namespaces-mapper":[24,9],"./rest/mappers/namespaces-mapper.js":[24,9],"./rest/mappers/repositories-mapper":[29,9],"./rest/mappers/repositories-mapper.js":[29,9],"./rest/mappers/saved-query-mapper":[149,9,102],"./rest/mappers/saved-query-mapper.js":[149,9,102],"./rest/mappers/similarity-index-mapper":[98,9,65],"./rest/mappers/similarity-index-mapper.js":[98,9,65],"./rest/monitoring.rest.service":[43,9],"./rest/monitoring.rest.service.js":[43,9],"./rest/plugins.rest.service":[48,7],"./rest/plugins.rest.service.js":[48,7],"./rest/rdf4j.repositories.rest.service":[49,7],"./rest/rdf4j.repositories.rest.service.js":[49,7],"./rest/rdfrank.rest.service":[303,7,300],"./rest/rdfrank.rest.service.js":[303,7,300],"./rest/repositories.rest.service":[21,9],"./rest/repositories.rest.service.js":[21,9],"./rest/saved-graphs.rest.service":[250,7,301],"./rest/saved-graphs.rest.service.js":[250,7,301],"./rest/security.rest.service":[56,7],"./rest/security.rest.service.js":[56,7],"./rest/similarity.rest.service":[103,7,302],"./rest/similarity.rest.service.js":[103,7,302],"./rest/sparql-templates.rest.service":[308,7,303],"./rest/sparql-templates.rest.service.js":[308,7,303],"./rest/sparql.rest.service":[60,7],"./rest/sparql.rest.service.js":[60,7],"./rest/ttyg.rest.service":[142,9,80],"./rest/ttyg.rest.service.fake.backend":[119,9,106],"./rest/ttyg.rest.service.fake.backend.js":[119,9,106],"./rest/ttyg.rest.service.js":[142,9,80],"./rest/upload.rest.service":[267,7,304],"./rest/upload.rest.service.js":[267,7,304],"./security/app":[393,9,17,21,82],"./security/app.js":[393,9,17,21,82],"./security/controllers":[318,9,21,120],"./security/controllers.js":[318,9,21,120],"./security/controllers/user-settings.controller":[319,9,17],"./security/controllers/user-settings.controller.js":[319,9,17],"./security/plugin":[394,7,305],"./security/plugin.js":[394,7,305],"./security/services/authorities-util":[198,9,121],"./security/services/authorities-util.js":[198,9,121],"./security/services/constants":[124,9,306],"./security/services/constants.js":[124,9,306],"./security/templates/modal/default-authorities.html":[506,7,388],"./security/templates/roles.html":[507,7,389],"./security/templates/user.html":[508,7,390],"./security/templates/users.html":[509,7,391],"./settings/app":[306,9,122],"./settings/app.js":[306,9,122],"./settings/controllers":[197,9,307],"./settings/controllers.js":[197,9,307],"./settings/modal/location-settings.html":[510,7,392],"./settings/modal/validate-license.html":[511,7,393],"./settings/plugin":[395,7,308],"./settings/plugin.js":[395,7,308],"./similarity/app":[396,9,1,2,15,48],"./similarity/app.js":[396,9,1,2,15,48],"./similarity/controllers/create-index.controller":[320,9,15,235],"./similarity/controllers/create-index.controller.js":[320,9,15,235],"./similarity/controllers/similarity-list.controller":[309,9,36],"./similarity/controllers/similarity-list.controller.js":[309,9,36],"./similarity/plugin":[397,7,309],"./similarity/plugin.js":[397,7,309],"./sparql-editor/app":[398,9,1,2,11,44],"./sparql-editor/app.js":[398,9,1,2,11,44],"./sparql-editor/controllers":[310,9,11,31],"./sparql-editor/controllers.js":[310,9,11,31],"./sparql-editor/plugin":[399,7,310],"./sparql-editor/plugin.js":[399,7,310],"./sparql-editor/share-query-link.service":[233,9,123],"./sparql-editor/share-query-link.service.js":[233,9,123],"./sparql-template/app":[400,9,0,1,2,7,37],"./sparql-template/app.js":[400,9,0,1,2,7,37],"./sparql-template/controllers":[311,9,46],"./sparql-template/controllers.js":[311,9,46],"./sparql-template/plugin":[401,7,311],"./sparql-template/plugin.js":[401,7,311],"./stats/app":[402,9,312],"./stats/app.js":[402,9,312],"./stats/plugin":[403,7,313],"./stats/plugin.js":[403,7,313],"./templates/graphdb-small.svg":[512,7,412],"./templates/loader/ot-loader.svg":[513,7,413],"./templates/modal/add-fedx-remote-repo.html":[514,7,394],"./templates/modal/add-location.html":[515,7,395],"./templates/modal/edit-location.html":[516,7,396],"./templates/modal/editRepoFile.html":[517,7,397],"./templates/modal/upload-repository-config.html":[518,7,398],"./templates/pageInfoTooltip.html":[519,7,399],"./templates/repositorySize.html":[520,7,400],"./templates/titlePopoverTemplate.html":[521,7,401],"./treeview/ng-tree":[404,7,314],"./treeview/ng-tree.js":[404,7,314],"./ttyg/app":[405,9,4,3,6,8,24],"./ttyg/app.js":[405,9,4,3,6,8,24],"./ttyg/controllers/agent-instructions-explain-modal.controller":[147,9,3,6,30],"./ttyg/controllers/agent-instructions-explain-modal.controller.js":[147,9,3,6,30],"./ttyg/controllers/agent-settings-modal.controller":[205,9,3,6,29],"./ttyg/controllers/agent-settings-modal.controller.js":[205,9,3,6,29],"./ttyg/controllers/ttyg-view.controller":[312,9,4,3,6,8,25],"./ttyg/controllers/ttyg-view.controller.js":[312,9,4,3,6,8,25],"./ttyg/directives/agent-list.directive":[201,9,124],"./ttyg/directives/agent-list.directive.js":[201,9,124],"./ttyg/directives/agent-select-menu.directive":[202,9,75],"./ttyg/directives/agent-select-menu.directive.js":[202,9,75],"./ttyg/directives/chat-item-detail.directive":[210,9,4,8,274],"./ttyg/directives/chat-item-detail.directive.js":[210,9,4,8,274],"./ttyg/directives/chat-list.directive":[199,9,55],"./ttyg/directives/chat-list.directive.js":[199,9,55],"./ttyg/directives/chat-panel.directive":[200,9,4,8,54],"./ttyg/directives/chat-panel.directive.js":[200,9,4,8,54],"./ttyg/directives/no-agents-view.directive":[203,9,125],"./ttyg/directives/no-agents-view.directive.js":[203,9,125],"./ttyg/directives/show-tooltip-on-overflow.directive":[204,7,315],"./ttyg/directives/show-tooltip-on-overflow.directive.js":[204,7,315],"./ttyg/model/agent-settings-modal":[207,9,316],"./ttyg/model/agent-settings-modal.js":[207,9,316],"./ttyg/plugin":[406,7,317],"./ttyg/plugin.js":[406,7,317],"./ttyg/services/agent-instruction-explain.mapper":[242,9,103],"./ttyg/services/agent-instruction-explain.mapper.js":[242,9,103],"./ttyg/services/agents.mapper":[172,9,3,318],"./ttyg/services/agents.mapper.js":[172,9,3,318],"./ttyg/services/chat-message.mapper":[150,9,66],"./ttyg/services/chat-message.mapper.js":[150,9,66],"./ttyg/services/chats.mapper":[239,9,49],"./ttyg/services/chats.mapper.js":[239,9,49],"./ttyg/services/constants":[106,9,319],"./ttyg/services/constants.js":[106,9,319],"./ttyg/services/explain.mapper":[241,9,107],"./ttyg/services/explain.mapper.js":[241,9,107],"./ttyg/services/ttyg-context.service":[87,9,320],"./ttyg/services/ttyg-context.service.js":[87,9,320],"./ttyg/services/ttyg-storage.service":[206,7,321],"./ttyg/services/ttyg-storage.service.js":[206,7,321],"./ttyg/services/ttyg.utils":[146,9,322],"./ttyg/services/ttyg.utils.js":[146,9,322],"./ttyg/templates/agent-list.html":[522,7,402],"./ttyg/templates/agent-select-menu.html":[523,7,403],"./ttyg/templates/chat-item-detail.html":[524,7,404],"./ttyg/templates/chat-list.html":[525,7,405],"./ttyg/templates/chat-panel.html":[526,7,406],"./ttyg/templates/chatInfo.html":[527,7,407],"./ttyg/templates/modal/agent-instructions-explain-modal.html":[528,7,408],"./ttyg/templates/modal/agent-settings-modal.html":[529,7,409],"./ttyg/templates/no-agents-view.html":[530,7,410],"./ttyg/templates/ttyg.html":[531,7,411],"./utils/date-utils":[274,9,323],"./utils/date-utils.js":[274,9,323],"./utils/documentation-url-resolver":[14,9],"./utils/documentation-url-resolver.js":[14,9],"./utils/error-utils":[57,7],"./utils/error-utils.js":[57,7],"./utils/file-types":[143,7,324],"./utils/file-types.js":[143,7,324],"./utils/file-utils":[25,9],"./utils/file-utils.js":[25,9],"./utils/hash-utils":[20,9],"./utils/hash-utils.js":[20,9],"./utils/local-storage-adapter":[13,7],"./utils/local-storage-adapter.js":[13,7],"./utils/notifications":[101,7,325],"./utils/notifications.js":[101,7,325],"./utils/role-name-prefix-utils":[407,9,326],"./utils/role-name-prefix-utils.js":[407,9,326],"./utils/route-constants":[128,9,327],"./utils/route-constants.js":[128,9,327],"./utils/sequence-generator-util":[38,9],"./utils/sequence-generator-util.js":[38,9],"./utils/size-util":[31,9],"./utils/size-util.js":[31,9],"./utils/string-utils":[100,9,328],"./utils/string-utils.js":[100,9,328],"./utils/uri-utils":[44,7],"./utils/uri-utils.js":[44,7],"./utils/url-utils":[116,9,329],"./utils/url-utils.js":[116,9,329],"./utils/user-utils":[6,9],"./utils/user-utils.js":[6,9],"./utils/workbench-settings-storage-service":[67,7],"./utils/workbench-settings-storage-service.js":[67,7],"./utils/yasgui-utils":[234,9,33],"./utils/yasgui-utils.js":[234,9,33],"./utils/yasr-utils":[408,9,330],"./utils/yasr-utils.js":[408,9,330]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(i,t[1])}))}i.keys=function(){return Object.keys(r)},i.id=449,e.exports=i},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return ne})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return be})),n.d(t,"g",(function(){return ue}));let r,i,o,s=!1,a=!1,l=!1,u=!1;const c={},h=e=>"object"===(e=typeof e)||"function"===e,p=(e,t,...n)=>{let r=null,i=null,o=!1,s=!1;const a=[],l=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?l(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!h(r))&&(r=String(r)),o&&s?a[a.length-1].$text$+=r:a.push(o?d(null,r):r),s=o)};if(l(n),t){t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,a,g);const u=d(e,null);return u.$attrs$=t,a.length>0&&(u.$children$=a),u.$name$=i,u},d=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$name$:null};return n},f={},g={forEach:(e,t)=>e.map(m).forEach(t),map:(e,t)=>e.map(m).map(t).map(v)},m=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),p(e.vtag,t,...e.vchildren||[])}const t=d(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},y=e=>le(e).$hostElement$,b=(e,t,n)=>{const r=y(e);return{emit:e=>$(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},$=(e,t,n)=>{const r=ye.ce(t,n);return e.dispatchEvent(r),r},w=new WeakMap,x=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=(t.$tagName$,()=>{}),o=((e,t,n,r)=>{let i=S(t);const o=ge.get(i);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){e=e.head||e;let t,n=w.get(e);n||w.set(e,n=new Set),n.has(i)||(t=ve.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),n&&n.add(i))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h")),i()},S=(e,t)=>"sc-"+e.$tagName$,E=(e,t,n,r,i,o)=>{if(n!==r){let s=he(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,i=A(n),o=A(r);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if("ref"===t)r&&r(e);else if(s||"o"!==t[0]||"n"!==t[1]){const a=h(r);if((s||a&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&o||i)&&!a&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):he(me,a)?a.slice(2):a[2]+t.slice(3),n&&ye.rel(e,t,n,!1),r&&ye.ael(e,t,r,!1)}},C=/\s/,A=e=>e?e.split(C):[],T=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||c,s=t.$attrs$||c;for(r in o)r in s||E(i,r,o[r],void 0,n,t.$flags$);for(r in s)E(i,r,o[r],s[r],n,t.$flags$)},F=(e,t,n,a)=>{const u=t.$children$[n];let c,h,p,d=0;if(s||(l=!0,"slot"===u.$tag$&&(r&&a.classList.add(r+"-s"),u.$flags$|=u.$children$?2:1)),null!==u.$text$)c=u.$elm$=ve.createTextNode(u.$text$);else if(1&u.$flags$)c=u.$elm$=ve.createTextNode("");else if(c=u.$elm$=ve.createElement(2&u.$flags$?"slot-fb":u.$tag$),T(null,u,!1),null!=r&&c["s-si"]!==r&&c.classList.add(c["s-si"]=r),u.$children$)for(d=0;d<u.$children$.length;++d)h=F(e,u,d,c),h&&c.appendChild(h);return c["s-hn"]=o,3&u.$flags$&&(c["s-sr"]=!0,c["s-cr"]=i,c["s-sn"]=u.$name$||"",p=e&&e.$children$&&e.$children$[n],p&&p.$tag$===u.$tag$&&e.$elm$&&k(e.$elm$,!1)),c},k=(e,t)=>{ye.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==o&&r["s-ol"]&&(O(r).insertBefore(r,P(r)),r["s-ol"].remove(),r["s-ol"]=void 0,l=!0),t&&k(r,t)}ye.$flags$&=-2},D=(e,t,n,r,i,s)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);i<=s;++i)r[i]&&(a=F(null,n,i,e),a&&(r[i].$elm$=a,l.insertBefore(a,P(t))))},R=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,B(r),a=!0,i["s-ol"]?i["s-ol"].remove():k(i,!0),i.remove())},I=(e,t)=>e.$tag$===t.$tag$&&("slot"!==e.$tag$||e.$name$===t.$name$),P=e=>e&&e["s-ol"]||e,O=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,_=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;null===s?("slot"===o||T(e,t,!1),null!==r&&null!==i?((e,t,n,r)=>{let i,o=0,s=0,a=t.length-1,l=t[0],u=t[a],c=r.length-1,h=r[0],p=r[c];for(;o<=a&&s<=c;)null==l?l=t[++o]:null==u?u=t[--a]:null==h?h=r[++s]:null==p?p=r[--c]:I(l,h)?(_(l,h),l=t[++o],h=r[++s]):I(u,p)?(_(u,p),u=t[--a],p=r[--c]):I(l,p)?("slot"!==l.$tag$&&"slot"!==p.$tag$||k(l.$elm$.parentNode,!1),_(l,p),e.insertBefore(l.$elm$,u.$elm$.nextSibling),l=t[++o],p=r[--c]):I(u,h)?("slot"!==l.$tag$&&"slot"!==p.$tag$||k(u.$elm$.parentNode,!1),_(u,h),e.insertBefore(u.$elm$,l.$elm$),u=t[--a],h=r[++s]):(i=F(t&&t[s],n,s,e),h=r[++s],i&&O(l.$elm$).insertBefore(i,P(l.$elm$)));o>a?D(e,null==r[c+1]?null:r[c+1].$elm$,n,r,s,c):s>c&&R(t,o,a)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),D(n,null,t,i,0,i.length-1)):null!==r&&R(r,0,r.length-1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},j=e=>{const t=e.childNodes;let n,r,i,o,s,a;for(r=0,i=t.length;r<i;r++)if(n=t[r],1===n.nodeType){if(n["s-sr"])for(s=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(a=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==s){if(1===a&&s===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===a||3===a&&""!==t[o].textContent.trim()){n.hidden=!0;break}j(n)}},L=[],N=e=>{let t,n,r,i,o,s,l=0;const u=e.childNodes,c=u.length;for(;l<c;l++){if(t=u[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(M(n,i)?(o=L.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:L.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&L.map(e=>{M(e.$nodeToRelocate$,n["s-sn"])&&(o=L.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):L.some(e=>e.$nodeToRelocate$===n)||L.push({$nodeToRelocate$:n}));1===t.nodeType&&N(t)}},M=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,B=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(B)},H=(e,t)=>{const n=e.$hostElement$,u=e.$cmpMeta$,c=e.$vnode$||d(null,null),h=(g=t)&&g.$tag$===f?t:p(null,null,t);var g;if(o=n.tagName,h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=c.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],s=0!=(1&u.$flags$),a=!1,_(c,h),ye.$flags$|=1,l){let e,t,n,r,i,o;N(h.$elm$);let s=0;for(;s<L.length;s++)e=L[s],t=e.$nodeToRelocate$,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(s=0;s<L.length;s++)if(e=L[s],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&r===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){i=o;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}a&&j(h.$elm$),ye.$flags$&=-2,L.length=0},U=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},V=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);U(e,e.$ancestorComponent$);return Te(()=>q(e,t))},q=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>Y(r,e,t)),e.$queuedListeners$=null),i=Y(r,"componentWillLoad")),n(),J(i,()=>z(e,r,t))},z=async(e,t,n)=>{const r=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),o=r["s-rc"];n&&x(e);const s=(e.$cmpMeta$.$tagName$,()=>{});K(e,t),o&&(o.map(e=>e()),r["s-rc"]=void 0),s(),i();{const t=r["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},K=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,H(e,t)}catch(t){pe(t,e.$hostElement$)}return null},G=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,i=e.$ancestorComponent$;Y(r,"componentDidRender"),64&e.$flags$?(Y(r,"componentDidUpdate"),n()):(e.$flags$|=64,X(t),Y(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),i||W()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ae(()=>V(e,!1)),e.$flags$&=-517},W=e=>{X(ve.documentElement),Ae(()=>$(me,"appload",{detail:{namespace:"ontotext-yasgui-web-component"}}))},Y=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){pe(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),X=e=>e.classList.add("hydrated"),Q=(e,t,n,r)=>{const i=le(e),o=i.$hostElement$,s=i.$instanceValues$.get(t),a=i.$flags$,l=i.$lazyInstance$;var u,c;u=n,c=r.$members$[t][0],n=null==u||h(u)?u:4&c?"false"!==u&&(""===u||!!u):2&c?parseFloat(u):1&c?String(u):u;const p=Number.isNaN(s)&&Number.isNaN(n);if((!(8&a)||void 0===s)&&(n!==s&&!p)&&(i.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,s,t)}catch(e){pe(e,o)}})}2==(18&a)&&V(i,!1)}},Z=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,le(this).$instanceValues$.get(t);var t},set(n){Q(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=le(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const t=new Map;i.attributeChangedCallback=function(e,n,r){ye.jmp(()=>{const n=t.get(e);if(this.hasOwnProperty(n))r=this[n],delete this[n];else if(i.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==r)return;this[n]=(null!==r||"boolean"!=typeof this[n])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,n])=>{const r=n[1]||e;return t.set(r,e),r})}}return e},ee=async(e,t,n,r,i)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(i=fe(n)).then){const e=()=>{};i=await i,e()}i.isProxied||(n.$watchers$=i.watchers,Z(i,n,2),i.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new i(t)}catch(e){pe(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(i.style){let e=i.style;const t=S(n);if(!ge.has(t)){const r=(n.$tagName$,()=>{});((e,t,n)=>{let r=ge.get(e);$e&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,ge.set(e,r)})(t,e,!!(1&n.$flags$)),r()}}}const o=t.$ancestorComponent$,s=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},te=e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ne=(e,t={})=>{const n=()=>{},r=[],i=t.exclude||[],o=me.customElements,s=ve.head,a=s.querySelector("meta[charset]"),l=ve.createElement("style"),u=[];let c,h=!0;Object.assign(ye,t),ye.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$={};const s=n.$tagName$,a=class extends HTMLElement{constructor(e){super(e),ce(e=this,n),1&n.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),h?u.push(this):ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=le(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)re(e,t,n.$listeners$);else{t.$flags$|=1,12&n.$flags$&&te(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){U(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ee(0,t,n)}r()}})(this))}disconnectedCallback(){ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=le(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),Y(n,"disconnectedCallback")}})(this))}componentOnReady(){return le(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],i.includes(s)||o.get(s)||(r.push(s),o.define(s,Z(a,n,1)))})}),l.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),s.insertBefore(l,a?a.nextSibling:s.firstChild),h=!1,u.length?u.map(e=>e.connectedCallback()):ye.jmp(()=>c=setTimeout(W,30)),n()},re=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const o=oe(e,n),s=ie(t,i),a=se(n);ye.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>ye.rel(o,r,s,a))})},ie=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){pe(e)}},oe=(e,t)=>4&t?ve:8&t?me:e,se=e=>0!=(2&e),ae=new WeakMap,le=e=>ae.get(e),ue=(e,t)=>ae.set(t.$lazyInstance$=e,t),ce=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],re(e,n,t.$listeners$),ae.set(e,n)},he=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),de=new Map,fe=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,s=de.get(o);return s?s[i]:n(448)(`./${o}.entry.js`).then(e=>(de.set(o,e),e[i]),pe)
53
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ge=new Map,me="undefined"!=typeof window?window:{},ve=me.document||{head:{}},ye={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},be=e=>Promise.resolve(e),$e=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),we=[],xe=[],Se=(e,t)=>n=>{e.push(n),u||(u=!0,t&&4&ye.$flags$?Ae(Ce):ye.raf(Ce))},Ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){pe(e)}e.length=0},Ce=()=>{Ee(we),Ee(xe),(u=we.length>0)&&ye.raf(Ce)},Ae=e=>be().then(e),Te=Se(xe,!0)},46:function(e,t){function n(e,t,n,r){e.confirmButtonKey=r.confirmButtonKey,e.title=r.title,e.message=n.trustAsHtml(r.message),e.onClick=e=>{r.stopPropagation&&e.stopPropagation()},e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}function r(e,t,n,r,i,o){t.opened.then((function(){o(()=>{$("#clipboardURI")[0].select()},0)})),e.clipboardURI=n,e.ok=function(){try{document.getElementById("clipboardURI").select(),document.execCommand("copy"),r.success(i.instant("modal.ctr.copy.url.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}t.close()},e.cancel=function(){t.dismiss("cancel")}}function i(e,t,n,r,i){e.query=n,e.cancel=function(){t.dismiss("cancel")},e.selectQuery=function(){e.selectElement($("#create-query"))},e.copyQueryToClipboard=function(){try{e.selectQuery(),document.execCommand("copy"),t.close(),r.success(i.instant("modal.ctr.copy.query.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}},e.selectElement=function(e){if(e.length>0)if(window.getSelection){const t=window.getSelection();t.removeAllRanges();const n=document.createRange();n.selectNodeContents(e[0].firstChild),t.addRange(n)}else if(document.selection){const t=document.body.createTextRange();t.moveToElementText(e[0]),t.select()}}}angular.module("graphdb.framework.core.controllers",[]).controller("CopyToClipboardModalCtrl",r).controller("SimpleModalCtrl",n).controller("ViewQueryCtrl",i),n.$inject=["$scope","$uibModalInstance","$sce","config"],r.$inject=["$scope","$uibModalInstance","uri","toastr","$translate","$timeout"],i.$inject=["$scope","$uibModalInstance","query","toastr","$translate"]},47:function(e,t,n){"use strict";n.r(t);n(49);var r=n(24);function i(e){return{getNamespaces:t=>e.getRepositoryNamespaces(t).then(e=>Object(r.namespaceListModelMapper)(e.data.results.bindings))}}angular.module("graphdb.framework.core.services.rdf4j.repositories",["graphdb.framework.rest.rdf4j.repositories.service"]).factory("RDF4JRepositoriesService",i),i.$inject=["RDF4JRepositoriesRestService"]},48:function(e,t){angular.module("graphdb.framework.rest.plugins.service",[]).factory("PluginsRestService",n);function n(e){return{togglePlugin:function(t,n,r){return n?e.post(`repositories/${t}/statements`,void 0,{params:{update:`INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#stopplugin> "${r}".}`}}):e.post(`repositories/${t}/statements`,void 0,{params:{update:`INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin> "${r}".}`}})},getPlugins:function(t){return e.get("repositories/"+t,{params:{query:"select ?s ?o where { ?s <http://www.ontotext.com/owlim/system#listplugins> ?o .}"}})}}}n.$inject=["$http"]},49:function(e,t){angular.module("graphdb.framework.rest.rdf4j.repositories.service",[]).factory("RDF4JRepositoriesRestService",r),r.$inject=["$http","$translate"];const n="select ?o where {\n?s <http://www.ontotext.com/owlim/system#listplugins> ?o .\nfilter(str(?s) = '{{pluginName}}')\n} ";function r(e,t){return{getNamespaces:function(t){return e.get(`repositories/${t}/namespaces`)},getRepositoryNamespaces:function(t){return e.get(`repositories/${t}/namespaces`)},updateNamespacePrefix:function(t,n,r){return e({url:`repositories/${t}/namespaces/${r}`,method:"PUT",data:n})},deleteNamespacePrefix:function(t,n){return e({url:`repositories/${t}/namespaces/${n}`,method:"DELETE"})},addStatements:function(t,n){return e({url:`repositories/${t}/statements`,method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},activatePlugin:function(t,n){return e({method:"POST",url:`repositories/${n}/statements`,params:{update:"INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin> '{{pluginName}}' .}".replace("{{pluginName}}",t)}})},checkPluginIsActive:function(t,r){return e({method:"GET",url:"repositories/"+r,params:{query:n.replace("{{pluginName}}",t)},headers:{Accept:"*/*"}})},getRepositorySize:function(t){return e.get(`repositories/${t}/size`)},getGraphs:r,resolveGraphs:function(e){let t=[];if(e)return r(e).success((function(e){e.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),Object.keys(e.results.bindings).forEach((function(t){const n=e.results.bindings[t];"bnode"===n.contextID.type?n.contextID.value="_:"+n.contextID.value:"default"===n.contextID.type?n.contextID.uri="http://www.openrdf.org/schema/sesame#nil":n.contextID.uri=n.contextID.value})),e.results.bindings.unshift(allGraphs),t=e.results.bindings}));return t},downloadResultsAsFile:function(t,n,r,i){const o=Object.entries(n).filter(([e,t])=>void 0!==t).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&");return e({method:"POST",url:"repositories/"+t,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8",Accept:r,Link:i},data:o,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}};function r(t){return e.get(`repositories/${t}/contexts`)}}},5:function(e,t,n){(function(e){var n,r,i,o,s,a,l,u,c,h,p,d={userAgent:!1},f={},g=g||(n=Math,i=(r={}).lib={},o=i.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=n.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(4294967296*n.random()|0);return new s.init(t,e)}}),a=r.enc={},l=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},c=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,o=this.blockSize,a=i/(4*o),l=(a=e?n.ceil(a):n.max((0|a)-this._minBufferSize,0))*o,u=n.min(4*l,i);if(l){for(var c=0;c<l;c+=o)this._doProcessBlock(r,c);var h=r.splice(0,l);t.sigBytes-=u}return new s.init(h,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),p=r.algo={},r);!function(e){var t,n=(t=g).lib,r=n.Base,i=n.WordArray;(t=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),g.lib.Cipher||function(e){var t=(d=g).lib,n=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,o=d.enc.Base64,s=d.algo.EvpKDF,a=t.Cipher=i.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?f:p).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?f:p).decrypt(e,t,n,r)}}}});t.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=d.mode={},u=function(e,t,n){var r=this._iv;r?this._iv=void 0:r=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=r[i]},c=(t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();c.Encryptor=c.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;u.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),c.Decryptor=c.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),u.call(this,e,t,r),this._prevBlock=i}}),l=l.CBC=c,c=(d.pad={}).Pkcs7={pad:function(e,t){for(var n,i=(n=(n=4*t)-e.sigBytes%n)<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(i);n=r.create(o,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=a.extend({cfg:a.cfg.extend({mode:l,padding:c}),reset:function(){a.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var h=t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),p=(l=(d.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?r.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){var t=(e=o.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var n=r.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return h.create({ciphertext:e,salt:n})}},t.SerializableCipher=n.extend({cfg:n.extend({format:l}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,h.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),d=(d.kdf={}).OpenSSL={execute:function(e,t,n,i){return i||(i=r.random(8)),e=s.create({keySize:t+n}).compute(e,i),n=r.create(e.words.slice(t),4*n),e.sigBytes=4*t,h.create({key:e,iv:n,salt:i})}},f=t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:d}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=p.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,p.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=g,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],o=[],s=[],a=[],l=[],u=[],c=[],h=[],p=[],d=[],f=0;256>f;f++)d[f]=128>f?f<<1:f<<1^283;var m=0,v=0;for(f=0;256>f;f++){var y=(y=v^v<<1^v<<2^v<<3^v<<4)>>>8^255&y^99;r[m]=y,i[y]=m;var b=d[m],$=d[b],w=d[$],x=257*d[y]^16843008*y;o[m]=x<<24|x>>>8,s[m]=x<<16|x>>>16,a[m]=x<<8|x>>>24,l[m]=x,x=16843009*w^65537*$^257*b^16843008*m,u[y]=x<<24|x>>>8,c[y]=x<<16|x>>>16,h[y]=x<<8|x>>>24,p[y]=x,m?(m=b^d[d[d[w^b]]],v^=d[d[v]]):m=v=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],o=0;o<n;o++)if(o<t)i[o]=e[o];else{var s=i[o-1];o%t?6<t&&4==o%t&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=S[o/t|0]<<24),i[o]=i[o-t]^s}for(e=this._invKeySchedule=[],t=0;t<n;t++)o=n-t,s=t%4?i[o]:i[o-4],e[t]=4>t||4>=o?s:u[r[s>>>24]]^c[r[s>>>16&255]]^h[r[s>>>8&255]]^p[r[255&s]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,a,l,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,c,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,s,a){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],h=e[t+2]^n[2],p=e[t+3]^n[3],d=4,f=1;f<l;f++){var g=r[u>>>24]^i[c>>>16&255]^o[h>>>8&255]^s[255&p]^n[d++],m=r[c>>>24]^i[h>>>16&255]^o[p>>>8&255]^s[255&u]^n[d++],v=r[h>>>24]^i[p>>>16&255]^o[u>>>8&255]^s[255&c]^n[d++];p=r[p>>>24]^i[u>>>16&255]^o[c>>>8&255]^s[255&h]^n[d++],u=g,c=m,h=v}g=(a[u>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&p])^n[d++],m=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[p>>>8&255]<<8|a[255&u])^n[d++],v=(a[h>>>24]<<24|a[p>>>16&255]<<16|a[u>>>8&255]<<8|a[255&c])^n[d++],p=(a[p>>>24]<<24|a[u>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^n[d++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=p},keySize:8});e.AES=t._createHelper(n)}(),function(){function e(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function t(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var n=g,r=(i=n.lib).WordArray,i=i.BlockCipher,o=n.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;56>n;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(e=this._subKeys=[],r=0;16>r;r++){var i=e[r]=[],o=l[r];for(n=0;24>n;n++)i[n/6|0]|=t[(a[n]-1+o)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(a[n+24]-1+o)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(t=this._invSubKeys=[],n=0;16>n;n++)t[n]=e[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;16>o;o++){for(var s=i[o],a=this._lBlock,l=this._rBlock,h=0,p=0;8>p;p++)h|=u[p][((l^s[p])&c[p])>>>0];this._lBlock=l,this._rBlock=a^h}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=i._createHelper(h),o=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(r.create(e.slice(0,2))),this._des2=h.createEncryptor(r.create(e.slice(2,4))),this._des3=h.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=i._createHelper(o)}(),function(){var e=g,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;4>s&&i+.75*s<n;s++)e.push(r.charAt(o>>>6*(3-s)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&(-1!=(i=e.indexOf(i))&&(n=i));for(var i=[],o=0,s=0;s<n;s++)if(s%4){var a=r.indexOf(e.charAt(s-1))<<s%4*2,l=r.indexOf(e.charAt(s))>>>6-s%4*2;i[o>>>2]|=(a|l)<<24-o%4*8,o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,o,s){return((e=e+(t&n|~t&r)+i+s)<<o|e>>>32-o)+t}function n(e,t,n,r,i,o,s){return((e=e+(t&r|n&~r)+i+s)<<o|e>>>32-o)+t}function r(e,t,n,r,i,o,s){return((e=e+(t^n^r)+i+s)<<o|e>>>32-o)+t}function i(e,t,n,r,i,o,s){return((e=e+(n^(t|~r))+i+s)<<o|e>>>32-o)+t}for(var o=g,s=(l=o.lib).WordArray,a=l.Hasher,l=o.algo,u=[],c=0;64>c;c++)u[c]=4294967296*e.abs(e.sin(c+1))|0;l=l.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var s=0;16>s;s++){var a=e[l=o+s];e[l]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}s=this._hash.words;var l=e[o+0],c=(a=e[o+1],e[o+2]),h=e[o+3],p=e[o+4],d=e[o+5],f=e[o+6],g=e[o+7],m=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],$=e[o+12],w=e[o+13],x=e[o+14],S=e[o+15],E=t(E=s[0],T=s[1],A=s[2],C=s[3],l,7,u[0]),C=t(C,E,T,A,a,12,u[1]),A=t(A,C,E,T,c,17,u[2]),T=t(T,A,C,E,h,22,u[3]);E=t(E,T,A,C,p,7,u[4]),C=t(C,E,T,A,d,12,u[5]),A=t(A,C,E,T,f,17,u[6]),T=t(T,A,C,E,g,22,u[7]),E=t(E,T,A,C,m,7,u[8]),C=t(C,E,T,A,v,12,u[9]),A=t(A,C,E,T,y,17,u[10]),T=t(T,A,C,E,b,22,u[11]),E=t(E,T,A,C,$,7,u[12]),C=t(C,E,T,A,w,12,u[13]),A=t(A,C,E,T,x,17,u[14]),E=n(E,T=t(T,A,C,E,S,22,u[15]),A,C,a,5,u[16]),C=n(C,E,T,A,f,9,u[17]),A=n(A,C,E,T,b,14,u[18]),T=n(T,A,C,E,l,20,u[19]),E=n(E,T,A,C,d,5,u[20]),C=n(C,E,T,A,y,9,u[21]),A=n(A,C,E,T,S,14,u[22]),T=n(T,A,C,E,p,20,u[23]),E=n(E,T,A,C,v,5,u[24]),C=n(C,E,T,A,x,9,u[25]),A=n(A,C,E,T,h,14,u[26]),T=n(T,A,C,E,m,20,u[27]),E=n(E,T,A,C,w,5,u[28]),C=n(C,E,T,A,c,9,u[29]),A=n(A,C,E,T,g,14,u[30]),E=r(E,T=n(T,A,C,E,$,20,u[31]),A,C,d,4,u[32]),C=r(C,E,T,A,m,11,u[33]),A=r(A,C,E,T,b,16,u[34]),T=r(T,A,C,E,x,23,u[35]),E=r(E,T,A,C,a,4,u[36]),C=r(C,E,T,A,p,11,u[37]),A=r(A,C,E,T,g,16,u[38]),T=r(T,A,C,E,y,23,u[39]),E=r(E,T,A,C,w,4,u[40]),C=r(C,E,T,A,l,11,u[41]),A=r(A,C,E,T,h,16,u[42]),T=r(T,A,C,E,f,23,u[43]),E=r(E,T,A,C,v,4,u[44]),C=r(C,E,T,A,$,11,u[45]),A=r(A,C,E,T,S,16,u[46]),E=i(E,T=r(T,A,C,E,c,23,u[47]),A,C,l,6,u[48]),C=i(C,E,T,A,g,10,u[49]),A=i(A,C,E,T,x,15,u[50]),T=i(T,A,C,E,d,21,u[51]),E=i(E,T,A,C,$,6,u[52]),C=i(C,E,T,A,h,10,u[53]),A=i(A,C,E,T,y,15,u[54]),T=i(T,A,C,E,a,21,u[55]),E=i(E,T,A,C,m,6,u[56]),C=i(C,E,T,A,S,10,u[57]),A=i(A,C,E,T,f,15,u[58]),T=i(T,A,C,E,w,21,u[59]),E=i(E,T,A,C,p,6,u[60]),C=i(C,E,T,A,b,10,u[61]),A=i(A,C,E,T,c,15,u[62]),T=i(T,A,C,E,v,21,u[63]);s[0]=s[0]+E|0,s[1]=s[1]+T|0,s[2]=s[2]+A|0,s[3]=s[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=a._createHelper(l),o.HmacMD5=a._createHmacHelper(l)}(Math),function(){var e=g,t=(i=e.lib).WordArray,n=i.Hasher,r=[],i=e.algo.SHA1=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],s=n[2],a=n[3],l=n[4],u=0;80>u;u++){if(16>u)r[u]=0|e[t+u];else{var c=r[u-3]^r[u-8]^r[u-14]^r[u-16];r[u]=c<<1|c>>>31}c=(i<<5|i>>>27)+l+r[u],c=20>u?c+(1518500249+(o&s|~o&a)):40>u?c+(1859775393+(o^s^a)):60>u?c+((o&s|o&a|s&a)-1894007588):c+((o^s^a)-899497514),l=a,a=s,s=o<<30|o>>>2,o=i,i=c}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=n._createHelper(i),e.HmacSHA1=n._createHmacHelper(i)}(),function(e){for(var t=g,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,o=[],s=[],a=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var c;e:{c=l;for(var h=e.sqrt(c),p=2;p<=h;p++)if(!(c%p)){c=!1;break e}c=!0}c&&(8>u&&(o[u]=a(e.pow(l,.5))),s[u]=a(e.pow(l,1/3)),u++),l++}var d=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=n[5],c=n[6],h=n[7],p=0;64>p;p++){if(16>p)d[p]=0|e[t+p];else{var f=d[p-15],g=d[p-2];d[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+d[p-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+d[p-16]}f=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&c)+s[p]+d[p],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),h=c,c=u,u=l,l=a+f|0,a=o,o=i,i=r,r=f+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){var e=g,t=e.lib.WordArray,n=(r=e.algo).SHA256,r=r.SHA224=n.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=n._createHelper(r),e.HmacSHA224=n._createHmacHelper(r)}(),function(){function e(){return r.create.apply(r,arguments)}for(var t=g,n=t.lib.Hasher,r=(o=t.x64).Word,i=o.WordArray,o=t.algo,s=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[],l=0;80>l;l++)a[l]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(h=this._hash.words)[0],r=h[1],i=h[2],o=h[3],l=h[4],u=h[5],c=h[6],h=h[7],p=n.high,d=n.low,f=r.high,g=r.low,m=i.high,v=i.low,y=o.high,b=o.low,$=l.high,w=l.low,x=u.high,S=u.low,E=c.high,C=c.low,A=h.high,T=h.low,F=p,k=d,D=f,R=g,I=m,P=v,O=y,_=b,j=$,L=w,N=x,M=S,B=E,H=C,U=A,V=T,q=0;80>q;q++){var z=a[q];if(16>q)var K=z.high=0|e[t+2*q],G=z.low=0|e[t+2*q+1];else{K=((G=(K=a[q-15]).high)>>>1|(W=K.low)<<31)^(G>>>8|W<<24)^G>>>7;var W=(W>>>1|G<<31)^(W>>>8|G<<24)^(W>>>7|G<<25),Y=((G=(Y=a[q-2]).high)>>>19|(J=Y.low)<<13)^(G<<3|J>>>29)^G>>>6,J=(J>>>19|G<<13)^(J<<3|G>>>29)^(J>>>6|G<<26),X=(G=a[q-7]).high,Q=(Z=a[q-16]).high,Z=Z.low;K=(K=(K=K+X+((G=W+G.low)>>>0<W>>>0?1:0))+Y+((G=G+J)>>>0<J>>>0?1:0))+Q+((G=G+Z)>>>0<Z>>>0?1:0);z.high=K,z.low=G}X=j&N^~j&B,Z=L&M^~L&H,z=F&D^F&I^D&I;var ee=k&R^k&P^R&P,te=(W=(F>>>28|k<<4)^(F<<30|k>>>2)^(F<<25|k>>>7),Y=(k>>>28|F<<4)^(k<<30|F>>>2)^(k<<25|F>>>7),(J=s[q]).high),ne=J.low;Q=U+((j>>>14|L<<18)^(j>>>18|L<<14)^(j<<23|L>>>9))+((J=V+((L>>>14|j<<18)^(L>>>18|j<<14)^(L<<23|j>>>9)))>>>0<V>>>0?1:0),U=B,V=H,B=N,H=M,N=j,M=L,j=O+(Q=(Q=(Q=Q+X+((J=J+Z)>>>0<Z>>>0?1:0))+te+((J=J+ne)>>>0<ne>>>0?1:0))+K+((J=J+G)>>>0<G>>>0?1:0))+((L=_+J|0)>>>0<_>>>0?1:0)|0,O=I,_=P,I=D,P=R,D=F,R=k,F=Q+(z=W+z+((G=Y+ee)>>>0<Y>>>0?1:0))+((k=J+G|0)>>>0<J>>>0?1:0)|0}d=n.low=d+k,n.high=p+F+(d>>>0<k>>>0?1:0),g=r.low=g+R,r.high=f+D+(g>>>0<R>>>0?1:0),v=i.low=v+P,i.high=m+I+(v>>>0<P>>>0?1:0),b=o.low=b+_,o.high=y+O+(b>>>0<_>>>0?1:0),w=l.low=w+L,l.high=$+j+(w>>>0<L>>>0?1:0),S=u.low=S+M,u.high=x+N+(S>>>0<M>>>0?1:0),C=c.low=C+H,c.high=E+B+(C>>>0<H>>>0?1:0),T=h.low=T+V,h.high=A+U+(T>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=g,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}(),function(){var e=g,t=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,i=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=t.create([0,1518500249,1859775393,2400959708,2840853838]),u=t.create([1352829926,1548603684,1836072691,2053994217,0]);r=r.RIPEMD160=n.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=e[$=t+n];e[$]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var c,h,p,d,f,g,m,v,y,b,$=this._hash.words,w=(r=l.words,u.words),x=i.words,S=o.words,E=s.words,C=a.words;g=c=$[0],m=h=$[1],v=p=$[2],y=d=$[3],b=f=$[4];var A;for(n=0;80>n;n+=1)A=c+e[t+x[n]]|0,A=16>n?A+((h^p^d)+r[0]):32>n?A+((h&p|~h&d)+r[1]):48>n?A+(((h|~p)^d)+r[2]):64>n?A+((h&d|p&~d)+r[3]):A+((h^(p|~d))+r[4]),A=(A=(A|=0)<<E[n]|A>>>32-E[n])+f|0,c=f,f=d,d=p<<10|p>>>22,p=h,h=A,A=g+e[t+S[n]]|0,A=16>n?A+((m^(v|~y))+w[0]):32>n?A+((m&y|v&~y)+w[1]):48>n?A+(((m|~v)^y)+w[2]):64>n?A+((m&v|~m&y)+w[3]):A+((m^v^y)+w[4]),A=(A=(A|=0)<<C[n]|A>>>32-C[n])+b|0,g=b,b=y,y=v<<10|v>>>22,v=m,m=A;A=$[1]+p+y|0,$[1]=$[2]+d+b|0,$[2]=$[3]+f+g|0,$[3]=$[4]+c+m|0,$[4]=$[0]+h+v|0,$[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;for(t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),t=(e=this._hash).words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});e.RIPEMD160=n._createHelper(r),e.HmacRIPEMD160=n._createHmacHelper(r)}(Math),function(){var e=g,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),s=this._iKey=n.clone(),a=o.words,l=s.words,u=0;u<r;u++)a[u]^=1549556828,l[u]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e,t=g,n=(e=t.lib).Base,r=e.WordArray,i=(e=t.algo).HMAC,o=e.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:e.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,o=i.create(n.hasher,e),s=r.create(),a=r.create([1]),l=s.words,u=a.words,c=n.keySize;for(n=n.iterations;l.length<c;){var h=o.update(t).finalize(a);o.reset();for(var p=h.words,d=p.length,f=h,g=1;g<n;g++){f=o.finalize(f),o.reset();for(var m=f.words,v=0;v<d;v++)p[v]^=m[v]}s.concat(h),u[0]++}return s.sigBytes=4*c,s}});t.PBKDF2=function(e,t,n){return o.create(n).compute(e,t)}}();
54
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
55
+ */
56
+ var m,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=v.charAt(n>>6)+v.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=v.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=v.charAt(n>>2)+v.charAt((3&n)<<4)),"=";(3&r.length)>0;)r+="=";return r}function b(e){var t,n,r,i="",o=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t)(r=v.indexOf(e.charAt(t)))<0||(0==o?(i+=A(r>>2),n=3&r,o=1):1==o?(i+=A(n<<2|r>>4),n=15&r,o=2):2==o?(i+=A(n),i+=A(r>>2),n=3&r,o=3):(i+=A(n<<2|r>>4),i+=A(15&r),o=0));return 1==o&&(i+=A(n<<2)),i}function $(e){var t,n=b(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}function w(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function x(){return new w(null)}"Microsoft Internet Explorer"==d.appName?(w.prototype.am=function(e,t,n,r,i,o){for(var s=32767&t,a=t>>15;--o>=0;){var l=32767&this[e],u=this[e++]>>15,c=a*l+u*s;i=((l=s*l+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+a*u+(i>>>30),n[r++]=1073741823&l}return i},m=30):"Netscape"!=d.appName?(w.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var s=t*this[e++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},m=26):(w.prototype.am=function(e,t,n,r,i,o){for(var s=16383&t,a=t>>14;--o>=0;){var l=16383&this[e],u=this[e++]>>14,c=a*l+u*s;i=((l=s*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+a*u,n[r++]=268435455&l}return i},m=28),w.prototype.DB=m,w.prototype.DM=(1<<m)-1,w.prototype.DV=1<<m;w.prototype.FV=Math.pow(2,52),w.prototype.F1=52-m,w.prototype.F2=2*m-52;var S,E,C=new Array;for(S="0".charCodeAt(0),E=0;E<=9;++E)C[S++]=E;for(S="a".charCodeAt(0),E=10;E<36;++E)C[S++]=E;for(S="A".charCodeAt(0),E=10;E<36;++E)C[S++]=E;function A(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function T(e,t){var n=C[e.charCodeAt(t)];return null==n?-1:n}function F(e){var t=x();return t.fromInt(e),t}function k(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function D(e){this.m=e}function R(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function I(e,t){return e&t}function P(e,t){return e|t}function O(e,t){return e^t}function _(e,t){return e&~t}function j(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function L(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function N(){}function M(e){return e}function B(e){this.r2=x(),this.q3=x(),w.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}D.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},D.prototype.revert=function(e){return e},D.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},D.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},D.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},R.prototype.convert=function(e){var t=x();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(w.ZERO)>0&&this.m.subTo(t,t),t},R.prototype.revert=function(e){var t=x();return e.copyTo(t),this.reduce(t),t},R.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},R.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},w.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},w.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},w.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var s=8==n?255&e[r]:T(e,r);s<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&w.ZERO.subTo(this,this)},w.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},w.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},w.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},w.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,s=Math.floor(e/this.DB),a=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+s+1]=this[n]>>i|a,a=(this[n]&o)<<r;for(n=s-1;n>=0;--n)t[n]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()},w.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&o)<<i,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},w.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},w.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&w.ZERO.subTo(t,t)},w.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},w.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=x());var o=x(),s=this.s,a=e.s,l=this.DB-k(r[r.t-1]);l>0?(r.lShiftTo(l,o),i.lShiftTo(l,n)):(r.copyTo(o),i.copyTo(n));var u=o.t,c=o[u-1];if(0!=c){var h=c*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,f=1<<this.F2,g=n.t,m=g-u,v=null==t?x():t;for(o.dlShiftTo(m,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),w.ONE.dlShiftTo(u,v),v.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--m>=0;){var y=n[--g]==c?this.DM:Math.floor(n[g]*p+(n[g-1]+f)*d);if((n[g]+=o.am(0,y,n,m,0,u))<y)for(o.dlShiftTo(m,v),n.subTo(v,n);n[g]<--y;)n.subTo(v,n)}null!=t&&(n.drShiftTo(u,t),s!=a&&w.ZERO.subTo(t,t)),n.t=u,n.clamp(),l>0&&n.rShiftTo(l,n),s<0&&w.ZERO.subTo(n,n)}}},w.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},w.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},w.prototype.exp=function(e,t){if(e>4294967295||e<1)return w.ONE;var n=x(),r=x(),i=t.convert(this),o=k(e)-1;for(i.copyTo(n);--o>=0;)if(t.sqrTo(n,r),(e&1<<o)>0)t.mulTo(r,i,n);else{var s=n;n=r,r=s}return t.revert(n)},w.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(i=!0,o=A(n));s>=0;)a<t?(n=(this[s]&(1<<a)-1)<<t-a,n|=this[--s]>>(a+=this.DB-t)):(n=this[s]>>(a-=t)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=A(n));return i?o:"0"},w.prototype.negate=function(){var e=x();return w.ZERO.subTo(this,e),e},w.prototype.abs=function(){return this.s<0?this.negate():this},w.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},w.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)},w.prototype.mod=function(e){var t=x();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(w.ZERO)>0&&e.subTo(t,t),t},w.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new D(t):new R(t),this.exp(e,n)},w.ZERO=F(0),w.ONE=F(1),N.prototype.convert=M,N.prototype.revert=M,N.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},N.prototype.sqrTo=function(e,t){e.squareTo(t)},B.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=x();return e.copyTo(t),this.reduce(t),t},B.prototype.revert=function(e){return e},B.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},B.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},B.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var H=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],U=(1<<26)/H[H.length-1];
57
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
58
+ */
59
+ function V(){this.i=0,this.j=0,this.S=new Array}w.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},w.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=F(n),i=x(),o=x(),s="";for(this.divRemTo(r,i,o);i.signum()>0;)s=(n+o.intValue()).toString(e).substr(1)+s,i.divRemTo(r,i,o);return o.intValue().toString(e)+s},w.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,o=0,s=0,a=0;a<e.length;++a){var l=T(e,a);l<0?"-"==e.charAt(a)&&0==this.signum()&&(i=!0):(s=t*s+l,++o>=n&&(this.dMultiply(r),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),i&&w.ZERO.subTo(this,this)},w.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(w.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(w.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},w.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},w.prototype.changeBit=function(e,t){var n=w.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},w.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},w.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},w.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},w.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},w.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},w.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},w.prototype.millerRabin=function(e){var t=this.subtract(w.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>H.length&&(e=H.length);for(var i=x(),o=0;o<e;++o){i.fromInt(H[Math.floor(Math.random()*H.length)]);var s=i.modPow(r,this);if(0!=s.compareTo(w.ONE)&&0!=s.compareTo(t)){for(var a=1;a++<n&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(w.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0},w.prototype.clone=
60
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
61
+ */
62
+ function(){var e=x();return this.copyTo(e),e},w.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},w.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},w.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},w.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},w.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},w.prototype.equals=function(e){return 0==this.compareTo(e)},w.prototype.min=function(e){return this.compareTo(e)<0?this:e},w.prototype.max=function(e){return this.compareTo(e)>0?this:e},w.prototype.and=function(e){var t=x();return this.bitwiseTo(e,I,t),t},w.prototype.or=function(e){var t=x();return this.bitwiseTo(e,P,t),t},w.prototype.xor=function(e){var t=x();return this.bitwiseTo(e,O,t),t},w.prototype.andNot=function(e){var t=x();return this.bitwiseTo(e,_,t),t},w.prototype.not=function(){for(var e=x(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},w.prototype.shiftLeft=function(e){var t=x();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},w.prototype.shiftRight=function(e){var t=x();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},w.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+j(this[e]);return this.s<0?this.t*this.DB:-1},w.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=L(this[n]^t);return e},w.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},w.prototype.setBit=function(e){return this.changeBit(e,P)},w.prototype.clearBit=function(e){return this.changeBit(e,_)},w.prototype.flipBit=function(e){return this.changeBit(e,O)},w.prototype.add=function(e){var t=x();return this.addTo(e,t),t},w.prototype.subtract=function(e){var t=x();return this.subTo(e,t),t},w.prototype.multiply=function(e){var t=x();return this.multiplyTo(e,t),t},w.prototype.divide=function(e){var t=x();return this.divRemTo(e,t,null),t},w.prototype.remainder=function(e){var t=x();return this.divRemTo(e,null,t),t},w.prototype.divideAndRemainder=function(e){var t=x(),n=x();return this.divRemTo(e,t,n),new Array(t,n)},w.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=F(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new D(t):t.isEven()?new B(t):new R(t);var s=new Array,a=3,l=n-1,u=(1<<n)-1;if(s[1]=r.convert(this),n>1){var c=x();for(r.sqrTo(s[1],c);a<=u;)s[a]=x(),r.mulTo(c,s[a-2],s[a]),a+=2}var h,p,d=e.t-1,f=!0,g=x();for(i=k(e[d])-1;d>=0;){for(i>=l?h=e[d]>>i-l&u:(h=(e[d]&(1<<i+1)-1)<<l-i,d>0&&(h|=e[d-1]>>this.DB+i-l)),a=n;0==(1&h);)h>>=1,--a;if((i-=a)<0&&(i+=this.DB,--d),f)s[h].copyTo(o),f=!1;else{for(;a>1;)r.sqrTo(o,g),r.sqrTo(g,o),a-=2;a>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,s[h],o)}for(;d>=0&&0==(e[d]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--d)}return r.revert(o)},w.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return w.ZERO;for(var n=e.clone(),r=this.clone(),i=F(1),o=F(0),s=F(0),a=F(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(s,i),o.subTo(a,o)):(r.subTo(n,r),t&&s.subTo(i,s),a.subTo(o,a))}return 0!=r.compareTo(w.ONE)?w.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a},w.prototype.pow=function(e){return this.exp(e,new N)},w.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},w.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=H[H.length-1]){for(t=0;t<H.length;++t)if(n[0]==H[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<H.length;){for(var r=H[t],i=t+1;i<H.length&&r<U;)r*=H[i++];for(r=n.modInt(r);t<i;)if(r%H[t++]==0)return!1}return n.millerRabin(e)},w.prototype.square=function(){var e=x();return this.squareTo(e),e},V.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},V.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var q,z,K;
63
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
64
+ */function G(){!function(e){z[K++]^=255&e,z[K++]^=e>>8&255,z[K++]^=e>>16&255,z[K++]^=e>>24&255,K>=256&&(K-=256)}((new Date).getTime())}if(null==z){var W;if(z=new Array,K=0,void 0!==f&&(void 0!==f.crypto||void 0!==f.msCrypto)){var Y=f.crypto||f.msCrypto;if(Y.getRandomValues){var J=new Uint8Array(32);for(Y.getRandomValues(J),W=0;W<32;++W)z[K++]=J[W]}else if("Netscape"==d.appName&&d.appVersion<"5"){var X=f.crypto.random(32);for(W=0;W<X.length;++W)z[K++]=255&X.charCodeAt(W)}}for(;K<256;)W=Math.floor(65536*Math.random()),z[K++]=W>>>8,z[K++]=255&W;K=0,G()}function Q(){if(null==q){for(G(),(q=new V).init(z),K=0;K<z.length;++K)z[K]=0;K=0}return q.next()}function Z(){}
65
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
66
+ */
67
+ function ee(e,t){return new w(e,t)}function te(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}
68
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
69
+ */
70
+ function ne(e,t){this.x=t,this.q=e}function re(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?w.ONE:r,this.zinv=null}function ie(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new re(this,null,null)}Z.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=Q()},te.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},te.prototype.setPublic=function(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=ee(e,16),this.e=parseInt(t,16)}},te.prototype.type="RSA",te.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},te.prototype.setPrivate=function(e,t,n){if(this.isPrivate=!0,"string"!=typeof e)this.n=e,this.e=t,this.d=n;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key";this.n=ee(e,16),this.e=parseInt(t,16),this.d=ee(n,16)}},te.prototype.setPrivateEx=function(e,t,n,r,i,o,s,a){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=ee(e,16),this.e=parseInt(t,16),this.d=ee(n,16),this.p=ee(r,16),this.q=ee(i,16),this.dmp1=ee(o,16),this.dmq1=ee(s,16),this.coeff=ee(a,16)},te.prototype.generate=function(e,t){var n=new Z,r=e>>1;this.e=parseInt(t,16);for(var i=new w(t,16),o=e/2-100,s=w.ONE.shiftLeft(o);;){for(;this.p=new w(e-r,1,n),0!=this.p.subtract(w.ONE).gcd(i).compareTo(w.ONE)||!this.p.isProbablePrime(10););for(;this.q=new w(r,1,n),0!=this.q.subtract(w.ONE).gcd(i).compareTo(w.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var l=this.q.subtract(this.p).abs();if(!(l.bitLength()<o||l.compareTo(s)<=0)){var u=this.p.subtract(w.ONE),c=this.q.subtract(w.ONE),h=u.multiply(c);if(0==h.gcd(i).compareTo(w.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(h),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0},ne.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},ne.prototype.toBigInteger=function(){return this.x},ne.prototype.negate=function(){return new ne(this.q,this.x.negate().mod(this.q))},ne.prototype.add=function(e){return new ne(this.q,this.x.add(e.toBigInteger()).mod(this.q))},ne.prototype.subtract=function(e){return new ne(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},ne.prototype.multiply=function(e){return new ne(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},ne.prototype.square=function(){return new ne(this.q,this.x.square().mod(this.q))},ne.prototype.divide=function(e){return new ne(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ne.prototype.sqrt=function(){return new ne(this.q,this.x.sqrt().mod(this.q))},re.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},re.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},re.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(w.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(w.ZERO))},re.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(w.ZERO)&&!this.y.toBigInteger().equals(w.ZERO)},re.prototype.negate=function(){return new re(this.curve,this.x,this.y.negate(),this.z)},re.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(w.ZERO.equals(n))return w.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new w("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),a=s.multiply(n),l=i.multiply(s),u=t.square().multiply(this.z),c=u.subtract(l.shiftLeft(1)).multiply(e.z).subtract(a).multiply(n).mod(this.curve.q),h=l.multiply(r).multiply(t).subtract(o.multiply(a)).subtract(u.multiply(t)).multiply(e.z).add(t.multiply(a)).mod(this.curve.q),p=a.multiply(this.z).multiply(e.z).mod(this.curve.q);return new re(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(h),p)},re.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new w("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);w.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),l=s.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),u=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new re(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(l),u)},re.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new w("3")),i=this.negate(),o=this,s=this.curve.q.subtract(e),a=s.multiply(new w("3")),l=new re(this.curve,this.x,this.y),u=l.negate();for(t=r.bitLength()-2;t>0;--t){o=o.twice();var c=r.testBit(t);c!=n.testBit(t)&&(o=o.add(c?this:i))}for(t=a.bitLength()-2;t>0;--t){l=l.twice();var h=a.testBit(t);h!=s.testBit(t)&&(l=l.add(h?l:u))}return o},re.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},ie.prototype.getQ=function(){return this.q},ie.prototype.getA=function(){return this.a},ie.prototype.getB=function(){return this.b},ie.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},ie.prototype.getInfinity=function(){return this.infinity},ie.prototype.fromBigInteger=function(e){return new ne(this.q,e)},ie.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new w(a,16))),r=this.getA(),i=this.getB(),o=n.square().add(r).multiply(n).add(i).sqrt();return"03"==t&&(o=o.negate()),new re(this,n,o);case 4:case 6:case 7:var s=(e.length-2)/2,a=e.substr(2,s),l=e.substr(s+2,s);return new re(this,this.fromBigInteger(new w(a,16)),this.fromBigInteger(new w(l,16)));default:return null}},
71
+ /*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
72
+ */
73
+ ne.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},re.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else for(;t>n.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},re.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var o=new w(r),s=new w(i);return new re(e,e.fromBigInteger(o),e.fromBigInteger(s))},re.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),o=new w(r,16),s=new w(i,16);return new re(e,e.fromBigInteger(o),e.fromBigInteger(s))},re.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),r=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new re(this.curve,r,i)},re.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(w.valueOf(2)),t=this.curve.fromBigInteger(w.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new re(this.curve,r,i)},re.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new w("3")),i=this.negate(),o=this;for(t=r.bitLength()-2;t>0;--t){o=o.twice();var s=r.testBit(t);s!=n.testBit(t)&&(o=o.add2D(s?this:i))}return o},re.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),s=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(s)},re.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},re.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(w.ONE)<0||t.compareTo(e.subtract(w.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(w.ONE)<0||n.compareTo(e.subtract(w.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};
74
+ /*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
75
+ */
76
+ var oe=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(e,t,r){return t?n[t]:String.fromCharCode(parseInt(r,16))}var i=new String(""),o=Object.hasOwnProperty;return function(n,s){var a,l,u=n.match(e),c=u[0],h=!1;"{"===c?a={}:"["===c?a=[]:(a=[],h=!0);for(var p=[a],d=1-h,f=u.length;d<f;++d){var g;switch((c=u[d]).charCodeAt(0)){default:(g=p[0])[l||g.length]=+c,l=void 0;break;case 34:if(-1!==(c=c.substring(1,c.length-1)).indexOf("\\")&&(c=c.replace(t,r)),g=p[0],!l){if(!(g instanceof Array)){l=c||i;break}l=g.length}g[l]=c,l=void 0;break;case 91:g=p[0],p.unshift(g[l||g.length]=[]),l=void 0;break;case 93:p.shift();break;case 102:(g=p[0])[l||g.length]=!1,l=void 0;break;case 110:(g=p[0])[l||g.length]=null,l=void 0;break;case 116:(g=p[0])[l||g.length]=!0,l=void 0;break;case 123:g=p[0],p.unshift(g[l||g.length]={}),l=void 0;break;case 125:p.shift()}}if(h){if(1!==p.length)throw new Error;a=a[0]}else if(p.length)throw new Error;if(s){var m=function(e,t){var n=e[t];if(n&&"object"==typeof n){var r=null;for(var i in n)if(o.call(n,i)&&n!==e){var a=m(n,i);void 0!==a?n[i]=a:(r||(r=[]),r.push(i))}if(r)for(var l=r.length;--l>=0;)delete n[r[l]]}return s.call(e,t,n)};a=m({"":a},"")}return a}}();void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),se.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){return Ge(e)},this.getPEMStringFromHex=function(e,t){return Ae(e,t)},this.newObject=function(e){var t=se.asn1,n=t.ASN1Object,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,s=t.DEROctetString,a=t.DERNull,l=t.DERObjectIdentifier,u=t.DEREnumerated,c=t.DERUTF8String,h=t.DERNumericString,p=t.DERPrintableString,d=t.DERTeletexString,f=t.DERIA5String,g=t.DERUTCTime,m=t.DERGeneralizedTime,v=t.DERVisibleString,y=t.DERBMPString,b=t.DERSequence,$=t.DERSet,w=t.DERTaggedObject,x=t.ASN1Util.newObject;if(e instanceof t.ASN1Object)return e;var S=Object.keys(e);if(1!=S.length)throw new Error("key of param shall be only one.");var E=S[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+E+":"))throw new Error("undefined key: "+E);if("bool"==E)return new r(e[E]);if("int"==E)return new i(e[E]);if("bitstr"==E)return new o(e[E]);if("octstr"==E)return new s(e[E]);if("null"==E)return new a(e[E]);if("oid"==E)return new l(e[E]);if("enum"==E)return new u(e[E]);if("utf8str"==E)return new c(e[E]);if("numstr"==E)return new h(e[E]);if("prnstr"==E)return new p(e[E]);if("telstr"==E)return new d(e[E]);if("ia5str"==E)return new f(e[E]);if("utctime"==E)return new g(e[E]);if("gentime"==E)return new m(e[E]);if("visstr"==E)return new v(e[E]);if("bmpstr"==E)return new y(e[E]);if("asn1"==E)return new n(e[E]);if("seq"==E){for(var C=e[E],A=[],T=0;T<C.length;T++){var F=x(C[T]);A.push(F)}return new b({array:A})}if("set"==E){for(C=e[E],A=[],T=0;T<C.length;T++){F=x(C[T]);A.push(F)}return new $({array:A})}if("tag"==E){var k=e[E];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var D=x(k[2]);return new w({tag:k[0],explicit:k[1],obj:D})}return new w(k)}},this.jsonToASN1HEX=function(e){return this.newObject(e).tohex()}},se.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))t=t+"."+new w(r,2).toString(10),r=""}return t},se.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new w(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=t(parseInt(a,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},se.asn1.ASN1Object=function(e){this.params=null,this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+"".length+",v="+this.hV);var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));return(128+n).toString(16)+t},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},null!=e&&null!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},se.asn1.DERAbstractString=function(e){se.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ye(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},et(se.asn1.DERAbstractString,se.asn1.ASN1Object),se.asn1.DERAbstractTime=function(e){se.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var l=r(String(a),3);s=s+"."+(l=l.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,o){var s=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},et(se.asn1.DERAbstractTime,se.asn1.ASN1Object),se.asn1.DERAbstractStructured=function(e){se.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},et(se.asn1.DERAbstractStructured,se.asn1.ASN1Object),se.asn1.DERBoolean=function(e){se.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},et(se.asn1.DERBoolean,se.asn1.ASN1Object),se.asn1.DERInteger=function(e){se.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=Ge;this.setByBigInteger=function(e){this.isModified=!0,this.params={bigint:e}},this.setByInteger=function(e){this.isModified=!0,this.params=e},this.setValueHex=function(e){this.isModified=!0,this.params={hex:e}},this.getFreshValueHex=function(){var e=this.params,n=null;if(null==e)throw new Error("value not set");if("object"==typeof e&&null!=e.hex)return this.hV=e.hex,this.hV;if("number"==typeof e)n=new w(String(e),10);else if(null!=e.int)n=new w(String(e.int),10);else{if(null==e.bigint)throw new Error("wrong parameter");n=e.bigint}return this.hV=t(n),this.hV},null!=e&&(this.params=e)},et(se.asn1.DERInteger,se.asn1.ASN1Object),se.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=se.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}se.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0),e+="0000000".substr(0,t);for(var n="",r=0;r<e.length-1;r+=8){var i=e.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+n},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},et(se.asn1.DERBitString,se.asn1.ASN1Object),se.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=se.asn1.ASN1Util.newObject(e.obj);e.hex=t.tohex()}se.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},et(se.asn1.DEROctetString,se.asn1.DERAbstractString),se.asn1.DERNull=function(){se.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},et(se.asn1.DERNull,se.asn1.ASN1Object),se.asn1.DERObjectIdentifier=function(e){se.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=qe(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=se.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"==typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},et(se.asn1.DERObjectIdentifier,se.asn1.ASN1Object),se.asn1.DEREnumerated=function(e){se.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Ge(e)},this.setByInteger=function(e){var t=new w(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},et(se.asn1.DEREnumerated,se.asn1.ASN1Object),se.asn1.DERUTF8String=function(e){se.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},et(se.asn1.DERUTF8String,se.asn1.DERAbstractString),se.asn1.DERNumericString=function(e){se.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},et(se.asn1.DERNumericString,se.asn1.DERAbstractString),se.asn1.DERPrintableString=function(e){se.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},et(se.asn1.DERPrintableString,se.asn1.DERAbstractString),se.asn1.DERTeletexString=function(e){se.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},et(se.asn1.DERTeletexString,se.asn1.DERAbstractString),se.asn1.DERIA5String=function(e){se.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},et(se.asn1.DERIA5String,se.asn1.DERAbstractString),se.asn1.DERVisibleString=function(e){se.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},et(se.asn1.DERVisibleString,se.asn1.DERAbstractString),se.asn1.DERBMPString=function(e){se.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},et(se.asn1.DERBMPString,se.asn1.DERAbstractString),se.asn1.DERUTCTime=function(e){se.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var e=this.params;if(null==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{12}Z$/)&&!e.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+e);this.hV=de(e)}else if(null!=e.str)this.hV=de(e.str);else if(null==e.date&&1==e.millis){var t=new Date;this.hV=de(this.formatDate(t,"utc",!0))}else if(null!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=de(this.formatDate(e.date,"utc",n))}else e instanceof Date&&(this.hV=de(this.formatDate(e,"utc")));if(null==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},null!=e&&this.setByParam(e)},et(se.asn1.DERUTCTime,se.asn1.DERAbstractTime),se.asn1.DERGeneralizedTime=function(e){se.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.params=e,this.getFreshValueHex=function(){var e=this.params;if(null==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{14}Z$/)&&!e.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+e);this.hV=de(e)}else if(null!=e.str)this.hV=de(e.str);else if(null==e.date&&1==e.millis){var t=new Date;this.hV=de(this.formatDate(t,"gen",!0))}else if(null!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=de(this.formatDate(e.date,"gen",n))}else e instanceof Date&&(this.hV=de(this.formatDate(e,"gen")));if(null==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},null!=e&&this.setByParam(e)},et(se.asn1.DERGeneralizedTime,se.asn1.DERAbstractTime),se.asn1.DERSequence=function(e){se.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){e+=this.asn1Array[t].tohex()}return this.hV=e,this.hV}},et(se.asn1.DERSequence,se.asn1.DERAbstractStructured),se.asn1.DERSet=function(e){se.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.tohex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},et(se.asn1.DERSet,se.asn1.DERAbstractStructured),se.asn1.DERTaggedObject=function(e){se.asn1.DERTaggedObject.superclass.constructor.call(this);var t=se.asn1,n=ue,r=n.getV,i=(n.isASN1HEX,t.ASN1Util.newObject);this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(e,t,n){this.params={tag:t,explicit:e,obj:n}},this.getFreshValueHex=function(){var e=this.params;if(null==e.explicit&&(e.explicit=!0),null!=e.tage&&(e.tag=e.tage,e.explicit=!0),null!=e.tagi&&(e.tag=e.tagi,e.explicit=!1),null!=e.str)this.hV=ye(e.str);else if(null!=e.hex)this.hV=e.hex;else{if(null==e.obj)throw new Error("str, hex nor obj not specified");var n;e.obj instanceof t.ASN1Object?n=e.obj.tohex():"object"==typeof e.obj&&(n=i(e.obj).tohex()),e.explicit?this.hV=n:this.hV=r(n,0)}return null==e.tag&&(e.tag="a0"),this.hT=e.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.DERTaggedObject,se.asn1.ASN1Object);var se,ae,le,ue=new function(){};function ce(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function he(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function pe(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function de(e){return pe(ce(e))}function fe(e){return e=(e=(e=e.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function ge(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=(e=e.replace(/-/g,"+")).replace(/_/g,"/")}function me(e){return e.length%2==1&&(e="0"+e),fe(y(e))}function ve(e){return b(ge(e))}function ye(e){return Re(Be(e)).toLowerCase()}function be(e){try{return decodeURIComponent(Ie(e))}catch(e){return null}}function $e(e){return be(function(e){for(var t=e.match(/.{1,2}/g),n=[],r=0;r<t.length;r++){var i=parseInt(t[r],16);161<=i&&i<=191?(n.push("c2"),n.push(t[r])):192<=i&&i<=255?(n.push("c3"),n.push((i-64).toString(16))):n.push(t[r])}return n.join("")}(e))}function we(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function xe(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Se(e){return y(e)}function Ee(e,t){return e=(e=e.replace(new RegExp("(.{"+t+"})","g"),"$1\r\n")).replace(/\s+$/,"")}function Ce(e){return b(e.replace(/[^0-9A-Za-z\/+=]*/g,""))}function Ae(e,t){return"-----BEGIN "+t+"-----\r\n"+Ee(Se(e),64)+"\r\n-----END "+t+"-----\r\n"}function Te(e,t){if(-1==e.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return Ce(e=void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),"")).replace(new RegExp("-----END "+t+"-----[^]*$"),""):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Fe(e){var t,n,r,i,o,s,a,l,u,c;if(c=(e=De(e)).match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return t=parseInt(c[1]),n=parseInt(c[2])-1,r=parseInt(c[3]),i=parseInt(c[4]),o=parseInt(c[5]),s=parseInt(c[6]),a=0,""!==(l=c[7])&&(u=(l.substr(1)+"00").substr(0,3),a=parseInt(u)),Date.UTC(t,n,r,i,o,s,a);throw new Error("unsupported zulu format: "+e)}function ke(e){return Math.round(Fe(e)/1e3)}function De(e){return e.match(/^[0-9]{12}Z$/)||e.match(/^[0-9]{12}[.][0-9]*Z$/)?e.match(/^[0-4]/)?"20"+e:"19"+e:e}function Re(e){return e.replace(/%/g,"")}function Ie(e){return e.replace(/(..)/g,"%$1")}function Pe(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;var n=(e=e.toLowerCase()).split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2),i=(e=e.replace("::",r)).split(":");if(8!=i.length)throw t;for(var o=0;o<8;o++)i[o]=("0000"+i[o]).slice(-4);return i.join("")}function Oe(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+e);var t=(e=e.toLowerCase()).match(/.{1,4}/g),n=(e=":"+(t=(t=t.map((function(e){return e.replace(/^0+/,"")}))).map((function(e){return""==e?"0":e}))).join(":")+":").match(/:(0:){2,}/g);if(null==n)return e.slice(1,-1);var r=n.sort().slice(-1)[0];return"::"!=(e=e.replace(r.substr(0,r.length-1),":")).substr(0,2)&&(e=e.substr(1)),"::"!=e.substr(-2,2)&&(e=e.substr(0,e.length-1)),e}function _e(e){var t=new Error("malformed hex value");if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8==e.length){try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}else{if(16!=e.length){if(32==e.length)return Oe(e);if(64==e.length){try{return Oe(e.substr(0,32))+"/"+je(e.substr(32))}catch(e){throw t}return}return e}try{return _e(e.substr(0,8))+"/"+je(e.substr(8))}catch(e){throw t}}}function je(e){var t,n=new Error("malformed mask");try{t=new w(e,16).toString(2)}catch(e){throw n}if(!t.match(/^1*0*$/))throw n;return t.replace(/0+$/,"").length}function Le(e){var t=new Error("malformed IP address");if(!(e=e.toLowerCase(e)).match(/^[0-9a-f.:/]+$/))throw t;if(!e.match(/^[0-9.]+$/)){var n;if(e.match(/^[0-9.]+\/[0-9]+$/))return Le((n=e.split("/"))[0])+Ne(parseInt(n[1]),32);if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return Pe(e);if(e.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==e.indexOf(":"))return Pe((n=e.split("/"))[0])+Ne(parseInt(n[1]),128);throw t}var r=e.split(".");if(4!==r.length)throw t;var i="";try{for(var o=0;o<4;o++){i+=("0"+parseInt(r[o]).toString(16)).slice(-2)}return i}catch(e){throw t}}function Ne(e,t){return 32==t&&0==e?"00000000":128==t&&0==e?"00000000000000000000000000000000":new w(Array(e+1).join("1")+Array(t-e+1).join("0"),2).toString(16)}function Me(e){return e.match(/.{4}/g).map((function(e){var t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2),16);if(0==t&n<128)return String.fromCharCode(n);if(t<8){var r=128|63&n;return be((192|(7&t)<<3|(192&n)>>6).toString(16)+r.toString(16))}r=128|(15&t)<<2|(192&n)>>6;var i=128|63&n;return be((224|(240&t)>>4).toString(16)+r.toString(16)+i.toString(16))})).join("")}function Be(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+de(t[r]);return n}function He(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function Ue(e){return!!e.match(/^[0-9A-Za-z-_.]+$/)}function Ve(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}ue.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},ue.getL=function(e,t){var n=ue.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},ue.getVblen=function(e,t){var n;return""==(n=ue.getL(e,t))?-1:("8"===n.substr(0,1)?new w(n.substr(2),16):new w(n,16)).intValue()},ue.getVidx=function(e,t){var n=ue.getLblen(e,t);return n<0?n:t+2*(n+1)},ue.getV=function(e,t){var n=ue.getVidx(e,t),r=ue.getVblen(e,t);return e.substr(n,2*r)},ue.getTLV=function(e,t){return e.substr(t,2)+ue.getL(e,t)+ue.getV(e,t)},ue.getTLVblen=function(e,t){return 2+2*ue.getLblen(e,t)+2*ue.getVblen(e,t)},ue.getNextSiblingIdx=function(e,t){return ue.getVidx(e,t)+2*ue.getVblen(e,t)},ue.getChildIdx=function(e,t){var n,r,i,o=ue,s=[];n=o.getVidx(e,t),r=2*o.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;for(var a=n;i<=r;){var l=o.getTLVblen(e,a);if((i+=l)<=r&&s.push(a),a+=l,i>=r)break}return s},ue.getNthChildIdx=function(e,t,n){return ue.getChildIdx(e,t)[n]},ue.getIdxbyList=function(e,t,n,r){var i,o,s=ue;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(o=s.getChildIdx(e,t)).length?-1:s.getIdxbyList(e,o[i],n,r)},ue.getIdxbyListEx=function(e,t,n,r){var i,o,s=ue;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=s.getChildIdx(e,t);for(var a=0,l=0;l<o.length;l++){var u=e.substr(o[l],2);if("number"==typeof i&&!s.isContextTag(u)&&a==i||"string"==typeof i&&s.isContextTag(u,i))return s.getIdxbyListEx(e,o[l],n,r);s.isContextTag(u)||a++}return-1},ue.getTLVbyList=function(e,t,n,r){var i=ue,o=i.getIdxbyList(e,t,n,r);return-1==o||o>=e.length?null:i.getTLV(e,o)},ue.getTLVbyListEx=function(e,t,n,r){var i=ue,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},ue.getVbyList=function(e,t,n,r,i){var o,s,a=ue;return-1==(o=a.getIdxbyList(e,t,n,r))||o>=e.length?null:(s=a.getV(e,o),!0===i&&(s=s.substr(2)),s)},ue.getVbyListEx=function(e,t,n,r,i){var o,s,a=ue;return-1==(o=a.getIdxbyListEx(e,t,n,r))?null:(s=a.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(s=s.substr(2)),s)},ue.getInt=function(e,t,n){null==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=ue.getV(e,t);return"02"==r?parseInt(i,16):Ye(i)}catch(e){return n}},ue.getOID=function(e,t,n){null==n&&(n=null);try{return"06"!=e.substr(t,2)?n:ze(ue.getV(e,t))}catch(e){return n}},ue.getOIDName=function(e,t,n){null==n&&(n=null);try{var r=ue.getOID(e,t,n);if(r==n)return n;var i=se.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(e){return n}},ue.getString=function(e,t,n){null==n&&(n=null);try{return we(ue.getV(e,t))}catch(e){return n}},ue.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),s=[],a=0;a<o.length/2;a++)s.push(parseInt(o.substr(2*a,2),16));var l=[],u="";for(a=0;a<s.length;a++)128&s[a]?u+=t((127&s[a]).toString(2),7):(u+=t((127&s[a]).toString(2),7),l.push(new String(parseInt(u,2))),u="");var c=n.join(".");return l.length>0&&(c=c+"."+l.join(".")),c},ue.dump=function(e,t,n,r){var i=ue,o=i.getV,s=i.dump,a=i.getChildIdx,l=e;e instanceof se.asn1.ASN1Object&&(l=e.tohex());var u=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var c,h=t.ommit_long_octet;if("01"==(c=l.substr(n,2)))return"00"==(p=o(l,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==c)return r+"INTEGER "+u(p=o(l,n),h)+"\n";if("03"==c){var p=o(l,n);if(i.isASN1HEX(p.substr(2))){var d=r+"BITSTRING, encapsulates\n";return d+=s(p.substr(2),t,0,r+" ")}return r+"BITSTRING "+u(p,h)+"\n"}if("04"==c){p=o(l,n);if(i.isASN1HEX(p)){d=r+"OCTETSTRING, encapsulates\n";return d+=s(p,t,0,r+" ")}return r+"OCTETSTRING "+u(p,h)+"\n"}if("05"==c)return r+"NULL\n";if("06"==c){var f=o(l,n),g=se.asn1.ASN1Util.oidHexToInt(f),m=se.asn1.x509.OID.oid2name(g),v=g.replace(/\./g," ");return""!=m?r+"ObjectIdentifier "+m+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==c)return r+"ENUMERATED "+parseInt(o(l,n))+"\n";if("0c"==c)return r+"UTF8String '"+be(o(l,n))+"'\n";if("13"==c)return r+"PrintableString '"+be(o(l,n))+"'\n";if("14"==c)return r+"TeletexString '"+be(o(l,n))+"'\n";if("16"==c)return r+"IA5String '"+be(o(l,n))+"'\n";if("17"==c)return r+"UTCTime "+be(o(l,n))+"\n";if("18"==c)return r+"GeneralizedTime "+be(o(l,n))+"\n";if("1a"==c)return r+"VisualString '"+be(o(l,n))+"'\n";if("1e"==c)return r+"BMPString '"+Me(o(l,n))+"'\n";if("30"==c){if("3000"==l.substr(n,4))return r+"SEQUENCE {}\n";d=r+"SEQUENCE\n";var y=t;if((2==(w=a(l,n)).length||3==w.length)&&"06"==l.substr(w[0],2)&&"04"==l.substr(w[w.length-1],2)){m=i.oidname(o(l,w[0]));var b=JSON.parse(JSON.stringify(t));b.x509ExtName=m,y=b}for(var $=0;$<w.length;$++)d+=s(l,y,w[$],r+" ");return d}if("31"==c){d=r+"SET\n";var w=a(l,n);for($=0;$<w.length;$++)d+=s(l,t,w[$],r+" ");return d}if(0!=(128&(c=parseInt(c,16)))){var x=31&c;if(0!=(32&c)){for(d=r+"["+x+"]\n",w=a(l,n),$=0;$<w.length;$++)d+=s(l,t,w[$],r+" ");return d}p=o(l,n);if(ue.isASN1HEX(p)){var d=r+"["+x+"]\n";return d+=s(p,t,0,r+" ")}return("68747470"==p.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==x)&&(p=be(p)),d=r+"["+x+"] "+p+"\n"}return r+"UNKNOWN("+c+") "+o(l,n)+"\n"},ue.parse=function(e){var t=ue,n=t.parse,r=t.isASN1HEX,i=t.getV,o=t.getTLV,s=t.getChildIdx,a=se.asn1,l=a.ASN1Util.oidHexToInt,u=a.x509.OID.oid2name,c=be,h=Me,p=$e,d={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},f=e.substr(0,2),g={},m=i(e,0);if("01"==f)return"0101ff"==e?{bool:!0}:{bool:!1};if("02"==f)return{int:{hex:m}};if("03"==f)try{if("00"!=m.substr(0,2))throw"not encap";var v=m.substr(2);if(!r(v))throw"not encap";return{bitstr:{obj:n(v)}}}catch(e){var y=null;return m.length<=10&&(y=Xe(m)),null==y?{bitstr:{hex:m}}:{bitstr:{bin:y}}}else if("04"==f)try{if(!r(m))throw"not encap";return{octstr:{obj:n(m)}}}catch(e){return{octstr:{hex:m}}}else{if("05"==f)return{null:""};if("06"==f){var b=l(m),$=u(b);return""==$?{oid:b}:{oid:$}}if("0a"==f)return m.length>4?{enum:{hex:m}}:{enum:parseInt(m,16)};if("30"==f||"31"==f)return g[d[f]]=function(e){for(var t=[],r=s(e,0),i=0;i<r.length;i++){var a=r[i],l=o(e,a),u=n(l);t.push(u)}return t}(e),g;if("14"==f){var w=p(m);return g[d[f]]={str:w},g}if("1e"==f){w=h(m);return g[d[f]]={str:w},g}if(-1!=":0c:12:13:16:17:18:1a:".indexOf(f)){w=c(m);return g[d[f]]={str:w},g}if(f.match(/^8[0-9]$/))return null==(w=c(m))|""==w||null!=w.match(/[\x00-\x1F\x7F-\x9F]/)||null!=w.match(/[\u0000-\u001F\u0080–\u009F]/)?{tag:{tag:f,explicit:!1,hex:m}}:{tag:{tag:f,explicit:!1,str:w}};if(!f.match(/^a[0-9]$/)){var x=new se.asn1.ASN1Object;return x.hV=m,{asn1:{tlv:f+x.getLengthHexFromValue()+m}}}try{if(!r(m))throw new Error("not encap");return{tag:{tag:f,explicit:!0,obj:n(m)}}}catch(e){return{tag:{tag:f,explicit:!0,hex:m}}}}},ue.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(e){return-1}if(void 0===t)return 128==(192&n);try{return null!=t.match(/^\[[0-9]+\]$/)&&(!((r=parseInt(t.substr(1,t.length-1),10))>31)&&(128==(192&n)&&(31&n)==r))}catch(e){return!1}},ue.isASN1HEX=function(e){var t=ue;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0);return e.length-r.length-i.length==2*n},ue.checkStrictDER=function(e,t,n,r,i){var o=ue;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!se.lang.String.isHex(e))throw new Error("not hex string");n=e.length,i=(r=e.length/2)<128?1:Math.ceil(r.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var s=o.getVblen(e,t);if(s>r)throw new Error("value of L too long than hex: idx="+t);var a=o.getTLV(e,t),l=a.length-2-o.getL(e,t).length;if(l!==2*s)throw new Error("V string length and L's value not the same:"+l+"/"+2*s);if(0===t&&e.length!=a.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+a.length);var u=e.substr(t,2);if("02"===u){var c=o.getVidx(e,t);if("00"==e.substr(c,2)&&e.charCodeAt(c+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var h=o.getVblen(e,t),p=0,d=o.getChildIdx(e,t),f=0;f<d.length;f++){p+=o.getTLV(e,d[f]).length,o.checkStrictDER(e,d[f],n,r,i)}if(2*h!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+p)}},ue.oidname=function(e){var t=se.asn1;se.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),void 0!==se.asn1.x509&&se.asn1.x509||(se.asn1.x509={}),se.asn1.x509.Certificate=function(e){se.asn1.x509.Certificate.superclass.constructor.call(this);var t=se.asn1,n=t.DERBitString,r=t.DERSequence,i=t.x509,o=i.TBSCertificate,s=i.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.sigalg;null!=e.sigalg.name&&(t=e.sigalg.name);var n=e.tbsobj.tohex(),r=new se.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return Ae(this.tohex(),"CERTIFICATE")},this.tohex=function(){var e=this.params;if(null!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new o(e)),null==e.sighex&&null!=e.cakey&&this.sign(),null==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];return t.push(e.tbsobj),t.push(new s({name:e.sigalg})),t.push(new n({hex:"00"+e.sighex})),new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&(this.params=e)},et(se.asn1.x509.Certificate,se.asn1.ASN1Object),se.asn1.x509.TBSCertificate=function(e){se.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=se.asn1,n=t.x509,r=t.DERTaggedObject,i=t.DERInteger,o=t.DERSequence,s=n.AlgorithmIdentifier,a=n.Time,l=n.X500Name,u=n.Extensions,c=n.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=[],t=this.params;if(null!=t.version||1!=t.version){var n=2;null!=t.version&&(n=t.version-1);var h=new r({obj:new i({int:n})});e.push(h)}return e.push(new i(t.serial)),e.push(new s({name:t.sigalg})),e.push(new l(t.issuer)),e.push(new o({array:[new a(t.notbefore),new a(t.notafter)]})),e.push(new l(t.subject)),e.push(new c(tt.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new r({tag:"a3",obj:new u(t.ext)})),new se.asn1.DERSequence({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.TBSCertificate,se.asn1.ASN1Object),se.asn1.x509.Extensions=function(e){se.asn1.x509.Extensions.superclass.constructor.call(this);var t=se.asn1,n=t.DERSequence,r=t.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var i=this.aParam[t],o=i.extname,s=null;if(null!=i.extn)s=new r.PrivateExtension(i);else if("subjectKeyIdentifier"==o)s=new r.SubjectKeyIdentifier(i);else if("keyUsage"==o)s=new r.KeyUsage(i);else if("subjectAltName"==o)s=new r.SubjectAltName(i);else if("issuerAltName"==o)s=new r.IssuerAltName(i);else if("basicConstraints"==o)s=new r.BasicConstraints(i);else if("nameConstraints"==o)s=new r.NameConstraints(i);else if("cRLDistributionPoints"==o)s=new r.CRLDistributionPoints(i);else if("certificatePolicies"==o)s=new r.CertificatePolicies(i);else if("policyMappings"==o)s=new r.PolicyMappings(i);else if("policyConstraints"==o)s=new r.PolicyConstraints(i);else if("inhibitAnyPolicy"==o)s=new r.InhibitAnyPolicy(i);else if("authorityKeyIdentifier"==o)s=new r.AuthorityKeyIdentifier(i);else if("extKeyUsage"==o)s=new r.ExtKeyUsage(i);else if("authorityInfoAccess"==o)s=new r.AuthorityInfoAccess(i);else if("cRLNumber"==o)s=new r.CRLNumber(i);else if("cRLReason"==o)s=new r.CRLReason(i);else if("ocspNonce"==o)s=new r.OCSPNonce(i);else if("ocspNoCheck"==o)s=new r.OCSPNoCheck(i);else if("adobeTimeStamp"==o)s=new r.AdobeTimeStamp(i);else{if("subjectDirectoryAttributes"!=o)throw new Error("extension not supported:"+JSON.stringify(i));s=new r.SubjectDirectoryAttributes(i)}null!=s&&e.push(s)}return new n({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.x509.Extensions,se.asn1.ASN1Object),se.asn1.x509.Extension=function(e){se.asn1.x509.Extension.superclass.constructor.call(this);var t=se.asn1,n=t.DERObjectIdentifier,r=t.DEROctetString,i=(t.DERBitString,t.DERBoolean),o=t.DERSequence;this.tohex=function(){var e=new n({oid:this.oid}),t=new r({hex:this.getExtnValueHex()}),s=new Array;return s.push(e),this.critical&&s.push(new i),s.push(t),new o({array:s}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},et(se.asn1.x509.Extension,se.asn1.ASN1Object),se.asn1.x509.KeyUsage=function(e){se.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Error,n={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var e=this.getBinValue();return this.asn1ExtnValue=new se.asn1.DERBitString({bin:e}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var e=this.params;if("object"!=typeof e||"object"!=typeof e.names&&"string"!=typeof e.bin)throw new t("parameter not yet set");if(null!=e.names)return Qe(e.names,n);if(null!=e.bin)return e.bin;throw new t("parameter not set properly")},this.oid="2.5.29.15",void 0!==e&&(this.params=e)},et(se.asn1.x509.KeyUsage,se.asn1.x509.Extension),se.asn1.x509.BasicConstraints=function(e){se.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=se.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERSequence;this.getExtnValueHex=function(){var e=new Array;this.cA&&e.push(new n),this.pathLen>-1&&e.push(new r({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},et(se.asn1.x509.BasicConstraints,se.asn1.x509.Extension),se.asn1.x509.CRLDistributionPoints=function(e){se.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=se.asn1,n=t.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var r=[],i=0;i<e.length;i++)if(e[i]instanceof se.asn1.ASN1Object)r.push(e[i]);else{var o=new n.DistributionPoint(e[i]);r.push(o)}this.asn1ExtnValue=new t.DERSequence({array:r})},this.setByOneURI=function(e){var t=new n.DistributionPoint({fulluri:e});this.setByDPArray([t])},this.oid="2.5.29.31",void 0!==e&&(void 0!==e.array?this.setByDPArray(e.array):void 0!==e.uri&&this.setByOneURI(e.uri))},et(se.asn1.x509.CRLDistributionPoints,se.asn1.x509.Extension),se.asn1.x509.DistributionPoint=function(e){se.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=se.asn1,n=t.x509.DistributionPointName;this.tohex=function(){var e=new t.DERSequence;if(null!=this.asn1DP){var n=new t.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});e.appendASN1Object(n)}return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.dpobj?this.asn1DP=e.dpobj:void 0!==e.dpname?this.asn1DP=new n(e.dpname):void 0!==e.fulluri&&(this.asn1DP=new n({full:[{uri:e.fulluri}]})))},et(se.asn1.x509.DistributionPoint,se.asn1.ASN1Object),se.asn1.x509.DistributionPointName=function(e){se.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=se.asn1,n=t.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new n({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e)if(t.x509.GeneralNames.prototype.isPrototypeOf(e))this.type="full",this.tag="a0",this.asn1V=e;else{if(void 0===e.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new t.x509.GeneralNames(e.full)}},et(se.asn1.x509.DistributionPointName,se.asn1.ASN1Object),se.asn1.x509.CertificatePolicies=function(e){se.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=se.asn1,n=t.x509,r=t.DERSequence,i=n.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++)e.push(new i(this.params.array[t]));var n=new r({array:e});return this.asn1ExtnValue=n,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},et(se.asn1.x509.CertificatePolicies,se.asn1.x509.Extension),se.asn1.x509.PolicyInformation=function(e){se.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=se.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var e=[new r(this.params.policyoid)];if(void 0!==this.params.array){for(var t=[],o=0;o<this.params.array.length;o++)t.push(new i(this.params.array[o]));t.length>0&&e.push(new n({array:t}))}return new n({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(se.asn1.x509.PolicyInformation,se.asn1.ASN1Object),se.asn1.x509.PolicyQualifierInfo=function(e){se.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=se.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,o=t.x509.UserNotice;this.params=null,this.tohex=function(){return void 0!==this.params.cps?new n({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new r({str:this.params.cps})]}).tohex():null!=this.params.unotice?new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new o(this.params.unotice)]}).tohex():void 0},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(se.asn1.x509.PolicyQualifierInfo,se.asn1.ASN1Object),se.asn1.x509.UserNotice=function(e){se.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=se.asn1.DERSequence,n=(se.asn1.DERInteger,se.asn1.x509.DisplayText),r=se.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];return void 0!==this.params.noticeref&&e.push(new r(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new n(this.params.exptext)),new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(se.asn1.x509.UserNotice,se.asn1.ASN1Object),se.asn1.x509.NoticeReference=function(e){se.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=se.asn1.DERSequence,n=se.asn1.DERInteger,r=se.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],o=this.params.noticenum,s=0;s<o.length;s++)i.push(new n(o[s]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");return new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(se.asn1.x509.NoticeReference,se.asn1.ASN1Object),se.asn1.x509.DisplayText=function(e){se.asn1.x509.DisplayText.superclass.constructor.call(this,e),this.hT="0c",void 0!==e&&("ia5"===e.type?this.hT="16":"vis"===e.type?this.hT="1a":"bmp"===e.type&&(this.hT="1e"))},et(se.asn1.x509.DisplayText,se.asn1.DERAbstractString),se.asn1.x509.PolicyMappings=function(e){se.asn1.x509.PolicyMappings.superclass.constructor.call(this,e);var t=se.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){for(var e=this.params,t=[],r=0;r<e.array.length;r++){var i=e.array[r];t.push({seq:[{oid:i[0]},{oid:i[1]}]})}return this.asn1ExtnValue=n({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==e&&(this.params=e)},et(se.asn1.x509.PolicyMappings,se.asn1.x509.Extension),se.asn1.x509.PolicyConstraints=function(e){se.asn1.x509.PolicyConstraints.superclass.constructor.call(this,e);var t=se.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];return null!=e.reqexp&&t.push({tag:{tagi:"80",obj:{int:e.reqexp}}}),null!=e.inhibit&&t.push({tag:{tagi:"81",obj:{int:e.inhibit}}}),this.asn1ExtnValue=n({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==e&&(this.params=e)},et(se.asn1.x509.PolicyConstraints,se.asn1.x509.Extension),se.asn1.x509.InhibitAnyPolicy=function(e){se.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,e);var t=se.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=n({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==e&&(this.params=e)},et(se.asn1.x509.InhibitAnyPolicy,se.asn1.x509.Extension),se.asn1.x509.NameConstraints=function(e){se.asn1.x509.NameConstraints.superclass.constructor.call(this,e);var t=se.asn1,n=t.x509,r=t.ASN1Util.newObject,i=n.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];if(null!=e.permit&&null!=e.permit.length){for(var n=[],o=0;o<e.permit.length;o++)n.push(new i(e.permit[o]));t.push({tag:{tagi:"a0",obj:{seq:n}}})}if(null!=e.exclude&&null!=e.exclude.length){var s=[];for(o=0;o<e.exclude.length;o++)s.push(new i(e.exclude[o]));t.push({tag:{tagi:"a1",obj:{seq:s}}})}return this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==e&&(this.params=e)},et(se.asn1.x509.NameConstraints,se.asn1.x509.Extension),se.asn1.x509.GeneralSubtree=function(e){se.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var t=se.asn1,n=t.x509.GeneralName,r=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=[new n(e)];return null!=e.min&&t.push({tag:{tagi:"80",obj:{int:e.min}}}),null!=e.max&&t.push({tag:{tagi:"81",obj:{int:e.max}}}),r({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.GeneralSubtree,se.asn1.ASN1Object),se.asn1.x509.ExtKeyUsage=function(e){se.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=se.asn1;this.setPurposeArray=function(e){this.asn1ExtnValue=new t.DERSequence;for(var n=0;n<e.length;n++){var r=new t.DERObjectIdentifier(e[n]);this.asn1ExtnValue.appendASN1Object(r)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},et(se.asn1.x509.ExtKeyUsage,se.asn1.x509.Extension),se.asn1.x509.AuthorityKeyIdentifier=function(e){se.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=se,n=t.asn1,r=n.DERTaggedObject,i=n.x509.GeneralNames;t.crypto.Util.isKey;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var e=new Array;this.asn1KID&&e.push(new r({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&e.push(new r({explicit:!1,tag:"a1",obj:new i([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&e.push(new r({explicit:!1,tag:"82",obj:this.asn1CertSN}));var t=new n.DERSequence({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new se.asn1.DEROctetString(e);else if("object"==typeof e&&se.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"==typeof e&&(t=tt.getKey(e));var n=tt.getKeyID(t);this.asn1KID=new se.asn1.DEROctetString({hex:n})}},this.setCertIssuerByParam=function(e){void 0!==e.str||void 0!==e.ldapstr||void 0!==e.hex||void 0!==e.certsubject||void 0!==e.certissuer?this.asn1CertIssuer=new se.asn1.x509.X500Name(e):"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new se.asn1.x509.X500Name({certissuer:e}))},this.setCertSNByParam=function(e){if(void 0!==e.str||void 0!==e.bigint||void 0!==e.hex)this.asn1CertSN=new se.asn1.DERInteger(e);else if("string"==typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new ot;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new se.asn1.DERInteger({hex:n})}},this.oid="2.5.29.35",void 0!==e&&(void 0!==e.kid&&this.setKIDByParam(e.kid),void 0!==e.issuer&&this.setCertIssuerByParam(e.issuer),void 0!==e.sn&&this.setCertSNByParam(e.sn),void 0!==e.issuersn&&"string"==typeof e.issuersn&&-1!=e.issuersn.indexOf("BEGIN ")&&e.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(e.issuersn),this.setCertIssuerByParam(e.issuersn)))},et(se.asn1.x509.AuthorityKeyIdentifier,se.asn1.x509.Extension),se.asn1.x509.SubjectKeyIdentifier=function(e){se.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=se.asn1.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new t(e);else if("object"==typeof e&&se.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN")){var n=e;"string"==typeof e&&(n=tt.getKey(e));var r=tt.getKeyID(n);this.asn1KID=new se.asn1.DEROctetString({hex:r})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},et(se.asn1.x509.SubjectKeyIdentifier,se.asn1.x509.Extension),se.asn1.x509.AuthorityInfoAccess=function(e){se.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=se.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,o=n.x509.GeneralName,s=0;s<e.length;s++){var a,l=e[s];if(void 0!==l.ocsp)a=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.1"}),new o({uri:l.ocsp})]});else{if(void 0===l.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(l));a=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.2"}),new o({uri:l.caissuer})]})}t.push(a)}this.asn1ExtnValue=new r({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},et(se.asn1.x509.AuthorityInfoAccess,se.asn1.x509.Extension),se.asn1.x509.SubjectAltName=function(e){se.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new se.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},et(se.asn1.x509.SubjectAltName,se.asn1.x509.Extension),se.asn1.x509.IssuerAltName=function(e){se.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new se.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},et(se.asn1.x509.IssuerAltName,se.asn1.x509.Extension),se.asn1.x509.SubjectDirectoryAttributes=function(e){se.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=se.asn1,n=t.DERSequence,r=t.ASN1Util.newObject,i=t.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++){var o=this.params.array[t];if(null==o.attr||null==o.array){var s={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==o.attr)s.seq[0].oid=i(o.attr),s.seq[1].set[0]={gentime:o.str};else if("placeOfBirth"==o.attr)s.seq[0].oid=i(o.attr),s.seq[1].set[0]={utf8str:o.str};else if("gender"==o.attr)s.seq[0].oid=i(o.attr),s.seq[1].set[0]={prnstr:o.str};else if("countryOfCitizenship"==o.attr)s.seq[0].oid=i(o.attr),s.seq[1].set[0]={prnstr:o.str};else{if("countryOfResidence"!=o.attr)throw new Error("unsupported attribute: "+o.attr);s.seq[0].oid=i(o.attr),s.seq[1].set[0]={prnstr:o.str}}e.push(new r(s))}else{var a={seq:[{oid:o.attr},{set:o.array}]};e.push(r(a))}}var l=new n({array:e});return this.asn1ExtnValue=l,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},et(se.asn1.x509.SubjectDirectoryAttributes,se.asn1.x509.Extension),se.asn1.x509.PrivateExtension=function(e){se.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=se,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,o=r.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.oid=i(e.extname),this.params=e},this.getExtnValueHex=function(){if(null==this.params.extname||null==this.params.extn)throw new Error("extname or extnhex not specified");var e=this.params.extn;if("string"==typeof e&&n(e))return e;if("object"==typeof e)try{return o(e).tohex()}catch(e){}throw new Error("unsupported extn value")},null!=e&&this.setByParam(e)},et(se.asn1.x509.PrivateExtension,se.asn1.x509.Extension),se.asn1.x509.CRL=function(e){se.asn1.x509.CRL.superclass.constructor.call(this);var t=se.asn1,n=t.DERSequence,r=t.DERBitString,i=t.x509,o=i.AlgorithmIdentifier,s=i.TBSCertList;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=new s(this.params).tohex(),t=new se.crypto.Signature({alg:this.params.sigalg});t.init(this.params.cakey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Ae(this.tohex(),"X509 CRL")},this.tohex=function(){var e=this.params;if(null==e.tbsobj&&(e.tbsobj=new s(e)),null==e.sighex&&null!=e.cakey&&this.sign(),null==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];return t.push(e.tbsobj),t.push(new o({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex})),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&(this.params=e)},et(se.asn1.x509.CRL,se.asn1.ASN1Object),se.asn1.x509.TBSCertList=function(e){se.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=se.asn1,n=t.DERInteger,r=t.DERSequence,i=t.DERTaggedObject,o=(t.DERObjectIdentifier,t.x509),s=o.AlgorithmIdentifier,a=o.Time,l=o.Extensions,u=o.X500Name;this.params=null,this.setByParam=function(e){this.params=e},this.getRevCertSequence=function(){for(var e=[],t=this.params.revcert,i=0;i<t.length;i++){var o=[new n(t[i].sn),new a(t[i].date)];null!=t[i].ext&&o.push(new l(t[i].ext)),e.push(new r({array:o}))}return new r({array:e})},this.tohex=function(){var e=[],t=this.params;if(null!=t.version){var o=t.version-1,c=new n({int:o});e.push(c)}if(e.push(new s({name:t.sigalg})),e.push(new u(t.issuer)),e.push(new a(t.thisupdate)),null!=t.nextupdate&&e.push(new a(t.nextupdate)),null!=t.revcert&&e.push(this.getRevCertSequence()),null!=t.ext){var h=new l(t.ext);e.push(new i({tag:"a0",explicit:!0,obj:h}))}return new r({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.TBSCertList,se.asn1.ASN1Object),se.asn1.x509.CRLEntry=function(e){se.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=se.asn1;this.setCertSerial=function(e){this.sn=new t.DERInteger(e)},this.setRevocationDate=function(e){this.time=new t.x509.Time(e)},this.tohex=function(){var e=new t.DERSequence({array:[this.sn,this.time]});return this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},et(se.asn1.x509.CRLEntry,se.asn1.ASN1Object),se.asn1.x509.CRLNumber=function(e){se.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new se.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",null!=e&&(this.params=e)},et(se.asn1.x509.CRLNumber,se.asn1.x509.Extension),se.asn1.x509.CRLReason=function(e){se.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new se.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",null!=e&&(this.params=e)},et(se.asn1.x509.CRLReason,se.asn1.x509.Extension),se.asn1.x509.OCSPNonce=function(e){se.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new se.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",null!=e&&(this.params=e)},et(se.asn1.x509.OCSPNonce,se.asn1.x509.Extension),se.asn1.x509.OCSPNoCheck=function(e){se.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new se.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",null!=e&&(this.params=e)},et(se.asn1.x509.OCSPNoCheck,se.asn1.x509.Extension),se.asn1.x509.AdobeTimeStamp=function(e){se.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=se.asn1,n=t.DERInteger,r=t.DERBoolean,i=t.DERSequence,o=t.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new n(1)];return t.push(new o({uri:e.uri})),null!=e.reqauth&&t.push(new r(e.reqauth)),this.asn1ExtnValue=new i({array:t}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},et(se.asn1.x509.AdobeTimeStamp,se.asn1.x509.Extension),se.asn1.x509.X500Name=function(e){se.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=se.asn1,n=t.x509,r=n.RDN;this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.split("/");n.shift();for(var i=[],o=0;o<n.length;o++)if(n[o].match(/^[^=]+=.+$/))i.push(n[o]);else{var s=i.length-1;i[s]=i[s]+"/"+n[o]}for(o=0;o<i.length;o++)this.asn1Array.push(new r({str:i[o],rule:this.sRule}))},this.setByLdapString=function(e,t){void 0!==t&&(this.sRule=t);var r=n.X500Name.ldapToCompat(e);this.setByString(r,t)},this.setByObject=function(e,t){for(var n in void 0!==t&&(this.sRule=t),e)if(e.hasOwnProperty(n)){var i=new r({str:n+"="+e[n],rule:this.sRule});this.asn1Array?this.asn1Array.push(i):this.asn1Array=[i]}},this.setByParam=function(e){var t;(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.array)?this.paramArray=e.array:void 0!==e.str?this.setByString(e.str):void 0!==e.ldapstr?this.setByLdapString(e.ldapstr):void 0!==e.hex?this.hTLV=e.hex:void 0!==e.certissuer?((t=new ot).readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()):void 0!==e.certsubject?((t=new ot).readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()):"object"==typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n={array:this.paramArray[e]};"utf8"!=this.sRule&&(n.rule=this.sRule);var i=new r(n);this.asn1Array.push(i)}var o=new t.DERSequence({array:this.asn1Array});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.X500Name,se.asn1.ASN1Object),se.asn1.x509.X500Name.compatToLDAP=function(e){if("/"!==e.substr(0,1))throw"malformed input";var t=(e=e.substr(1)).split("/");return t.reverse(),(t=t.map((function(e){return e.replace(/,/,"\\,")}))).join(",")},se.asn1.x509.X500Name.onelineToLDAP=function(e){return se.asn1.x509.X500Name.compatToLDAP(e)},se.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var s=(r.pop()+","+o).replace(/\\,/g,",");r.push(s),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}return(r=r.map((function(e){return e.replace("/","\\/")}))).reverse(),"/"+r.join("/")},se.asn1.x509.X500Name.ldapToOneline=function(e){return se.asn1.x509.X500Name.ldapToCompat(e)},se.asn1.x509.RDN=function(e){se.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=se.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new se.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=se.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n=this.paramArray[e];void 0!==n.rule&&"utf8"!=this.sRule&&(n.rule=this.sRule);var r=new t(n);this.asn1Array.push(r)}var i=new se.asn1.DERSet({array:this.asn1Array});return this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.RDN,se.asn1.ASN1Object),se.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var s=(r.pop()+"+"+o).replace(/\\\+/g,"+");r.push(s),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}var a=!1,l=[];for(i=0;r.length>0;i++){o=r.shift();if(!0===a){var u=l.pop();if(o.match(/"$/)){s=(u+"+"+o).replace(/^([^=]+)="(.*)"$/,"$1=$2");l.push(s),a=!1}else l.push(u+"+"+o)}else l.push(o);o.match(/^[^=]+="/)&&(a=!0)}return l},se.asn1.x509.AttributeTypeAndValue=function(e){se.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=se,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,o=n.DERPrintableString,s=n.DERTeletexString,a=n.DERIA5String,l=n.DERVisibleString,u=n.DERBMPString,c=t.lang.String.isMail,h=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str.match(/^([^=]+)=(.+)$/);if(!t)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=t[1],this.sValue=t[2]}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(n[1],n[2])},this._getDsType=function(){var e=this.sType,t=this.sValue,n=this.sRule;return"prn"===n?"CN"==e&&c(t)?"ia5":h(t)?"prn":"utf8":"utf8"===n?"CN"==e&&c(t)?"ia5":"C"==e?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(e,t,n){void 0!==n&&(this.sRule=n),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new o({str:t});if("tel"==e)return new s({str:t});if("ia5"==e)return new a({str:t});if("vis"==e)return new l({str:t});if("bmp"==e)return new u({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=se.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.AttributeTypeAndValue,se.asn1.ASN1Object),se.asn1.x509.SubjectPublicKeyInfo=function(e){se.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=se,n=t.asn1,r=n.DERInteger,i=n.DERBitString,o=n.DERObjectIdentifier,s=n.DERSequence,a=n.ASN1Util.newObject,l=n.x509.AlgorithmIdentifier,u=t.crypto;u.ECDSA,u.DSA;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new s({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof te){var t=a({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}).tohex();this.asn1AlgId=new l({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+t})}}catch(e){}try{if(e instanceof se.crypto.ECDSA){var n=new o({name:e.curveName});this.asn1AlgId=new l({name:"ecPublicKey",asn1params:n}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(e){}try{if(e instanceof se.crypto.DSA){n=new a({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new l({name:"dsa",asn1params:n});var s=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+s.tohex()})}}catch(e){}},void 0!==e&&this.setPubKey(e)},et(se.asn1.x509.SubjectPublicKeyInfo,se.asn1.ASN1Object),se.asn1.x509.Time=function(e){se.asn1.x509.Time.superclass.constructor.call(this);var t=se.asn1,n=t.DERUTCTime,r=t.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null==e||!e.str||null!=e.type&&null!=e.type||(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new n(e.str)),"gen"==e.type&&(t=new r(e.str))):t="gen"==this.type?new r:new n,null==t)throw new Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},se.asn1.x509.Time_bak=function(e){se.asn1.x509.Time_bak.superclass.constructor.call(this);var t=se.asn1,n=t.DERUTCTime,r=t.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new n(this.timeParams):new r(this.timeParams):"utc"==this.type?new n:new r,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},et(se.asn1.x509.Time,se.asn1.ASN1Object),se.asn1.x509.AlgorithmIdentifier=function(e){se.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=se.asn1,n=t.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var r in n)r===this.nameAlg&&(e=n[r]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=t.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var o=new t.DERSequence({array:i});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var r=this.nameAlg.toLowerCase();"withdsa"!==r.substr(-7,7)&&"withecdsa"!==r.substr(-9,9)&&(this.asn1Params=new t.DERNull)}},et(se.asn1.x509.AlgorithmIdentifier,se.asn1.ASN1Object),se.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},se.asn1.x509.GeneralName=function(e){se.asn1.x509.GeneralName.superclass.constructor.call(this);var t=se.asn1,n=t.x509,r=n.X500Name,i=n.OtherName,o=t.DERIA5String,s=(t.DERPrintableString,t.DEROctetString),a=t.DERTaggedObject,l=t.ASN1Object,u=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e,t,n=this.params,c=!1;if(void 0!==n.other)e="a0",t=new i(n.other);else if(void 0!==n.rfc822)e="81",t=new o({str:n.rfc822});else if(void 0!==n.dns)e="82",t=new o({str:n.dns});else if(void 0!==n.dn)e="a4",c=!0,t="string"==typeof n.dn?new r({str:n.dn}):n.dn instanceof se.asn1.x509.X500Name?n.dn:new r(n.dn);else if(void 0!==n.ldapdn)e="a4",c=!0,t=new r({ldapstr:n.ldapdn});else if(void 0!==n.certissuer||void 0!==n.certsubj){var h,p;e="a4",c=!0;var d=null;if(void 0!==n.certsubj?(h=!1,p=n.certsubj):(h=!0,p=n.certissuer),p.match(/^[0-9A-Fa-f]+$/),-1!=p.indexOf("-----BEGIN ")&&(d=Te(p)),null==d)throw new Error("certsubj/certissuer not cert");var f,g=new ot;g.hex=d,f=h?g.getIssuerHex():g.getSubjectHex(),(t=new l).hTLV=f}else if(void 0!==n.uri)e="86",t=new o({str:n.uri});else{if(void 0===n.ip)throw new u("improper params");var m;e="87";var v=n.ip;try{if(v.match(/^[0-9a-f]+$/)){var y=v.length;if(8!=y&&16!=y&&32!=y&&64!=y)throw"err";m=v}else m=Le(v)}catch(e){throw new u("malformed IP address: "+n.ip+":"+e.message)}t=new s({hex:m})}return new a({tag:e,explicit:c,obj:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.GeneralName,se.asn1.ASN1Object),se.asn1.x509.GeneralNames=function(e){se.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=se.asn1;this.setByParamArray=function(e){for(var n=0;n<e.length;n++){var r=new t.x509.GeneralName(e[n]);this.asn1Array.push(r)}},this.tohex=function(){return new t.DERSequence({array:this.asn1Array}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,void 0!==e&&this.setByParamArray(e)},et(se.asn1.x509.GeneralNames,se.asn1.ASN1Object),se.asn1.x509.OtherName=function(e){se.asn1.x509.OtherName.superclass.constructor.call(this);var t=se.asn1,n=t.DERObjectIdentifier,r=t.DERSequence,i=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null==e.oid||null==e.value)throw new Error("oid or value not specified");var t=new n({oid:e.oid}),o=i({tag:{tag:"a0",explicit:!0,obj:e.value}});return new r({array:[t,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.x509.OtherName,se.asn1.ASN1Object),se.asn1.x509.OID=new function(){var e=se.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];if(void 0===this.name2oidList[t])throw"Name of ObjectIdentifier not defined: "+t;var n=this.name2oidList[t],r=new e({oid:n});return this.objCache[t]=r,r},this.atype2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];var n;if(t.match(/^\d+\.\d+\.[0-9.]+$/))n=t;else if(void 0!==this.atype2oidList[t])n=this.atype2oidList[t];else{if(void 0===this.name2oidList[t])throw new Error("AttributeType name undefined: "+t);n=this.name2oidList[t]}var r=new e({oid:n});return this.objCache[t]=r,r},this.registerOIDs=function(e){if(this.checkOIDs(e))for(var t in e)this.name2oidList[t]=e[t]},this.checkOIDs=function(e){try{var t=Object.keys(e);return 0!=t.length&&(t.map((function(e,t,n){if(!this[e].match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")}),e),!0)}catch(e){return!1}}},se.asn1.x509.OID.oid2name=function(e){var t=se.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},se.asn1.x509.OID.oid2atype=function(e){var t=se.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},se.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=se.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},se.asn1.x509.X509Util={},se.asn1.x509.X509Util.newCertPEM=function(e){var t=se.asn1.x509;t.TBSCertificate;return new(0,t.Certificate)(e).getPEM()},void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),void 0!==se.asn1.cms&&se.asn1.cms||(se.asn1.cms={}),se.asn1.cms.Attribute=function(e){var t=Error,n=se.asn1,r=n.DERSequence,i=n.DERSet,o=n.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(e){this.params=e},this.getValueArray=function(){throw new t("not yet implemented abstract")},this.tohex=function(){var e=new o({oid:this.typeOid}),t=new i({array:this.getValueArray()});return new r({array:[e,t]}).tohex()},this.getEncodedHex=function(){return this.tohex()}},et(se.asn1.cms.Attribute,se.asn1.ASN1Object),se.asn1.cms.ContentType=function(e){var t=se.asn1;t.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){return[new t.DERObjectIdentifier(this.params.type)]},null!=e&&this.setByParam(e)},et(se.asn1.cms.ContentType,se.asn1.cms.Attribute),se.asn1.cms.MessageDigest=function(e){var t=se.asn1,n=t.DEROctetString;t.cms.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){return[new n(this.params)]},null!=e&&this.setByParam(e)},et(se.asn1.cms.MessageDigest,se.asn1.cms.Attribute),se.asn1.cms.SigningTime=function(e){var t=se.asn1;t.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){return[new t.x509.Time(this.params)]},null!=e&&this.setByParam(e)},et(se.asn1.cms.SigningTime,se.asn1.cms.Attribute),se.asn1.cms.SigningCertificate=function(e){var t=Error,n=se,r=n.asn1,i=r.DERSequence,o=r.cms,s=o.ESSCertID;n.crypto;o.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var a=n[o];0!=e.hasis||"string"!=typeof a||-1==a.indexOf("-----BEGIN")&&!ue.isASN1HEX(a)||(a={cert:a}),0!=a.hasis&&0==e.hasis&&(a.hasis=!1),r.push(new s(a))}var l=new i({array:r});return[new i({array:[l]})]},null!=e&&this.setByParam(e)},et(se.asn1.cms.SigningCertificate,se.asn1.cms.Attribute),se.asn1.cms.ESSCertID=function(e){se.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=se,r=n.asn1,i=r.DEROctetString,o=r.DERSequence,s=r.cms.IssuerSerial;this.params=null,this.getCertHash=function(e,r){if(null!=e.hash)return e.hash;if("string"==typeof e&&-1==e.indexOf("-----BEGIN")&&!ue.isASN1HEX(e))return e;var i,o,s;if("string"==typeof e)i=e;else{if(null==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(o=-1!=i.indexOf("-----BEGIN")?Te(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?o=Te(e):ue.isASN1HEX(e)&&(o=e)),null!=e.alg)s=e.alg;else{if(null==r)throw new t("hash alg unspecified");s=r}return n.crypto.Util.hashHex(o,s)},this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha1"),n=[];return n.push(new i({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||null!=e.cert&&0!=e.hasis||null!=e.issuer&&null!=e.serial)&&n.push(new s(e)),new o({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.ESSCertID,se.asn1.ASN1Object),se.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=se,r=n.asn1,i=r.DERSequence,o=(r.x509,r.cms),s=o.ESSCertIDv2;n.crypto;o.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var a=n[o];null==e.alg&&0!=e.hasis||"string"!=typeof a||-1==a.indexOf("-----BEGIN")&&!ue.isASN1HEX(a)||(a={cert:a}),null==a.alg&&null!=e.alg&&(a.alg=e.alg),0!=a.hasis&&0==e.hasis&&(a.hasis=!1),r.push(new s(a))}var l=new i({array:r});return[new i({array:[l]})]},null!=e&&this.setByParam(e)},et(se.asn1.cms.SigningCertificateV2,se.asn1.cms.Attribute),se.asn1.cms.ESSCertIDv2=function(e){se.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=se.asn1,n=t.DEROctetString,r=t.DERSequence,i=t.cms.IssuerSerial,o=t.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),s=[];return null!=e.alg&&"sha256"!=e.alg&&s.push(new o({name:e.alg})),s.push(new n({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||null!=e.cert&&0!=e.hasis||null!=e.issuer&&null!=e.serial)&&s.push(new i(e)),new r({array:s}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.ESSCertIDv2,se.asn1.cms.ESSCertID),se.asn1.cms.IssuerSerial=function(e){var t=Error,n=se.asn1,r=n.DERInteger,i=n.DERSequence,o=n.cms,s=n.x509.GeneralNames,a=ot;o.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.tohex=function(){var e,n,o=this.params;if("string"==typeof o&&-1!=o.indexOf("-----BEGIN")||null!=o.cert){var l;l=null!=o.cert?o.cert:o;var u=new a;u.readCertPEM(l),e=u.getIssuer(),n={hex:u.getSerialNumberHex()}}else{if(null==o.issuer||!o.serial)throw new t("cert or issuer and serial parameter not specified");e=o.issuer,n=o.serial}var c=new s([{dn:e}]),h=new r(n);return new i({array:[c,h]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.IssuerSerial,se.asn1.ASN1Object),se.asn1.cms.SignerIdentifier=function(e){var t=se.asn1,n=(t.DERInteger,t.DERSequence,t.cms),r=n.IssuerAndSerialNumber,i=n.SubjectKeyIdentifier;t.x509.X500Name,Error;n.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("isssn"==e.type)return new r(e).tohex();if("skid"==e.type)return new i(e).tohex();throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.SignerIdentifier,se.asn1.ASN1Object),se.asn1.cms.IssuerAndSerialNumber=function(e){var t=se.asn1,n=t.DERInteger,r=t.DERSequence,i=t.cms,o=t.x509.X500Name,s=ot,a=Error;i.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e,t,i=this.params;if("string"==typeof i&&-1!=i.indexOf("-----BEGIN")||null!=i.cert){var l;l=null!=i.cert?i.cert:i;var u=new s;u.readCertPEM(l),e=u.getIssuer(),t={hex:u.getSerialNumberHex()}}else{if(null==i.issuer||!i.serial)throw new a("cert or issuer and serial parameter not specified");e=i.issuer,t=i.serial}var c=new o(e),h=new n(t);return new r({array:[c,h]}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(se.asn1.cms.IssuerAndSerialNumber,se.asn1.ASN1Object),se.asn1.cms.SubjectKeyIdentifier=function(e){var t=se.asn1,n=(t.DERInteger,t.DERSequence,t.ASN1Util.newObject),r=t.cms,i=(r.IssuerAndSerialName,r.SubjectKeyIdentifier,t.x509.X500Name,ot),o=Error;r.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var e,t=this.params;if(null==t.cert&&null==t.skid)throw new o("property cert nor skid undefined");null!=t.cert?e=new i(t.cert).getExtSubjectKeyIdentifier().kid.hex:null!=t.skid&&(e=t.skid);return n({tag:{tage:"a0",obj:{octstr:{hex:e}}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.SubjectKeyIdentifier,se.asn1.ASN1Object),se.asn1.cms.AttributeList=function(e){var t=Error,n=se.asn1,r=n.DERSet,i=n.cms;i.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;null!=e.sortflag&&(n=e.sortflag);for(var o=e.array,s=[],a=0;a<o.length;a++){var l=o[a],u=l.attr;if("contentType"==u)s.push(new i.ContentType(l));else if("messageDigest"==u)s.push(new i.MessageDigest(l));else if("signingTime"==u)s.push(new i.SigningTime(l));else if("signingCertificate"==u)s.push(new i.SigningCertificate(l));else if("signingCertificateV2"==u)s.push(new i.SigningCertificateV2(l));else if("signaturePolicyIdentifier"==u)s.push(new se.asn1.cades.SignaturePolicyIdentifier(l));else{if("signatureTimeStamp"!=u&&"timeStampToken"!=u)throw new t("unknown attr: "+u);s.push(new se.asn1.cades.SignatureTimeStamp(l))}}var c=new r({array:s,sortflag:n});return this.hTLV=c.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.AttributeList,se.asn1.ASN1Object),se.asn1.cms.SignerInfo=function(e){var t=Error,n=se,r=n.asn1,i=r.DERInteger,o=r.DEROctetString,s=r.DERSequence,a=r.DERTaggedObject,l=r.cms,u=l.SignerIdentifier,c=l.AttributeList,h=(l.ContentType,l.EncapsulatedContentInfo,l.MessageDigest,l.SignedData,r.x509.AlgorithmIdentifier),p=n.crypto,d=tt;l.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new c(e.sattrs).tohex(),r=d.getKey(e.signkey),i=new p.Signature({alg:t});i.init(r),i.updateHex(n);var o=i.sign();e.sighex=o},this.tohex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new u(e.id)),n.push(new h({name:e.hashalg})),null!=e.sattrs){var r=new c(e.sattrs);try{n.push(new a({tag:"a0",explicit:!1,obj:r}))}catch(e){throw new t("si sattr error: "+e)}}if(null!=e.sigalgfield?n.push(new h({name:e.sigalgfield})):n.push(new h({name:e.sigalg})),null==e.sighex&&null!=e.signkey&&this.sign(),n.push(new o({hex:e.sighex})),null!=e.uattrs){r=new c(e.uattrs);try{n.push(new a({tag:"a1",explicit:!1,obj:r}))}catch(e){throw new t("si uattr error: "+e)}}return new s({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.SignerInfo,se.asn1.ASN1Object),se.asn1.cms.EncapsulatedContentInfo=function(e){var t=se.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier,o=t.DEROctetString;t.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(t.push(new i(e.type)),null!=e.content&&(null!=e.content.hex||null!=e.content.str)&&1!=e.isDetached){var s=new o(e.content),a=new n({tag:"a0",explicit:!0,obj:s});t.push(a)}return new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(se.asn1.cms.EncapsulatedContentInfo,se.asn1.ASN1Object),se.asn1.cms.ContentInfo=function(e){var t=se.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier;t.x509.OID.name2obj;se.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i(e.type));var o=new n({tag:"a0",explicit:!0,obj:e.obj});return t.push(o),new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(se.asn1.cms.ContentInfo,se.asn1.ASN1Object),se.asn1.cms.SignedData=function(e){Error;var t=se.asn1,n=(t.ASN1Object,t.DERInteger),r=t.DERSet,i=t.DERSequence,o=(t.DERTaggedObject,t.cms),s=o.EncapsulatedContentInfo,a=o.SignerInfo,l=o.ContentInfo,u=o.CertificateSet,c=o.RevocationInfoChoices,h=t.x509.AlgorithmIdentifier;se.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var e=this.params;this._setDigestAlgs(e),this._setContentTypeByEContent(e),this._setMessageDigestByEContent(e),this._setSignerInfoVersion(e),this._setSignedDataVersion(e)},this._setDigestAlgs=function(e){for(var t={},n=e.sinfos,r=0;r<n.length;r++){t[n[r].hashalg]=1}e.hashalgs=Object.keys(t).sort()},this._setContentTypeByEContent=function(e){for(var t=e.econtent.type,n=e.sinfos,r=0;r<n.length;r++){var i=n[r];this._getAttrParamByName(i,"contentType").type=t}},this._setMessageDigestByEContent=function(e){var t=e.econtent,n=(e.econtent.type,t.content.hex);null==n&&"data"==t.type&&null!=t.content.str&&(n=xe(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var o=r[i],s=o.hashalg,a=this._getAttrParamByName(o,"messageDigest"),l=se.crypto.Util.hashHex(n,s);a.hex=l}},this._getAttrParamByName=function(e,t){for(var n=e.sattrs.array,r=0;r<n.length;r++)if(n[r].attr==t)return n[r]},this._setSignerInfoVersion=function(e){for(var t=e.sinfos,n=0;n<t.length;n++){var r=t[n],i=1;"skid"==r.id.type&&(i=3),r.version=i}},this._setSignedDataVersion=function(e){var t=this._getSignedDataVersion(e);e.version=t},this._getSignedDataVersion=function(e){if(null!=e.revinfos)for(var t=e.revinfos,n=0;n<t.length;n++){if(null!=t[n].ocsp)return 5}var r=e.sinfos;for(n=0;n<r.length;n++){if(3==e.sinfos[n].version)return 3}return"data"!=e.econtent.type?3:1},this.tohex=function(){var e=this.params;null!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=e.fixed&&this.checkAndFixParam();var t=[];t.push(new n({int:e.version}));for(var o=[],l=0;l<e.hashalgs.length;l++){var p=e.hashalgs[l];o.push(new h({name:p}))}t.push(new r({array:o})),t.push(new s(e.econtent)),null!=e.certs&&t.push(new u(e.certs)),null!=e.revinfos&&t.push(new c(e.revinfos));var d=[];for(l=0;l<e.sinfos.length;l++){var f=e.sinfos[l];d.push(new a(f))}return t.push(new r({array:d})),new i({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){return new l({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.SignedData,se.asn1.ASN1Object),se.asn1.cms.CertificateSet=function(e){se.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=se.asn1,r=n.DERTaggedObject,i=n.DERSet,o=n.ASN1Object;this.params=null,this.tohex=function(){var e,n=this.params,s=[];if(n instanceof Array)e=n;else{if(null==n.array)throw new t("cert array not specified");e=n.array}for(var a=0;a<e.length;a++){var l=Te(e[a]),u=new o;u.hTLV=l,s.push(u)}var c={array:s};0==n.sortflag&&(c.sortflag=!1);var h=new i(c);return new r({tag:"a0",explicit:!1,obj:h}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.CertificateSet,se.asn1.ASN1Object),se.asn1.cms.RevocationInfoChoices=function(e){se.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new Error("params is not array");for(var t=[],n=0;n<e.length;n++)t.push(new se.asn1.cms.RevocationInfoChoice(e[n]));return se.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.RevocationInfoChoices,se.asn1.ASN1Object),se.asn1.cms.RevocationInfoChoice=function(e){se.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(null!=e.crl&&"string"==typeof e.crl){var t=e.crl;return-1!=e.crl.indexOf("-----BEGIN")&&(t=Te(e.crl)),t}if(null!=e.ocsp)return se.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new se.asn1.cms.OtherRevocationFormat(e)}}).tohex();throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.RevocationInfoChoice,se.asn1.ASN1Object),se.asn1.cms.OtherRevocationFormat=function(e){se.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=se,r=n.asn1.ASN1Util.newObject,i=n.lang.String.isHex;this.params=null,this.tohex=function(){var e=this.params;if(null==e.ocsp)throw new t("property ocsp not specified");if(!i(e.ocsp)||!ue.isASN1HEX(e.ocsp))throw new t("ocsp value not ASN.1 hex string");return r({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:e.ocsp}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cms.OtherRevocationFormat,se.asn1.ASN1Object),se.asn1.cms.CMSUtil=new function(){},se.asn1.cms.CMSUtil.newSignedData=function(e){return new se.asn1.cms.SignedData(e)},se.asn1.cms.CMSUtil.verifySignedData=function(e){var t=se,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades.SignaturePolicyIdentifier,t.lang.String.isHex),o=ue,s=o.getVbyList,a=o.getTLVbyList,l=o.getIdxbyList,u=o.getChildIdx,c=o.getTLV,h=o.oidname,p=t.crypto.Util.hashHex;void 0===e.cms&&i(e.cms);var d=e.cms,f=function(e,t){var n=t.idx;t.signerid_issuer1=a(e,n,[1,0],"30"),t.signerid_serial1=s(e,n,[1,1],"02"),t.hashalg=h(s(e,n,[2,0],"06"));var r=l(e,n,[3],"a0");t.idxSignedAttrs=r,g(e,t,r);var i=u(e,n).length;if(i<6)throw"malformed SignerInfo";t.sigalg=h(s(e,n,[i-2,0],"06")),t.sigval=s(e,n,[i-1],"04")},g=function(e,t,n){var r=u(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var o,a=r[i],l=s(e,a,[0],"06");"2a864886f70d010905"===l?(o=be(s(e,a,[1,0])),t.saSigningTime=o):"2a864886f70d010904"===l&&(o=s(e,a,[1,0],"04"),t.saMessageDigest=o)}},m=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,o=t.parse.econtent,s=n.hashalg,a=n.saMessageDigest;i.validMessageDigest=!1,p(o,s)===a&&(i.validMessageDigest=!0),function(e,t,n,r){var i,o=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var s=u(e,o),a=0;a<s.length;a++){var l=c(e,s[a]),h=new ot;h.readCertHex(l),i[a]=h,t.certkeys[a]=h.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=s.length;for(a=0;a<i.length;a++){var p=h.getIssuerHex(),d=h.getSerialNumberHex();n.signerid_issuer1===p&&n.signerid_serial1===d&&(n.certkey_idx=a)}}(e,t,n),i.validSignatureValue=!1;var l=n.sigalg,h="31"+c(e,n.idxSignedAttrs).substr(2);n.signedattrshex=h;var d=t.certs[n.certkey_idx].getPublicKey(),f=new se.crypto.Signature({alg:l});f.init(d),f.updateHex(h);var g=f.verify(n.sigval);i.validSignatureValue_isValid=g,!0===g&&(i.validSignatureValue=!0),n.isValid=!1,i.validMessageDigest&&i.validSignatureValue&&(n.isValid=!0)},v={isValid:!1,parse:{}};return function(e,t){if("2a864886f70d010702"!==s(e,0,[0],"06"))return t;t.cmsType="signedData",t.econtent=s(e,0,[1,0,2,1,0]),function(e,t){for(var n,r=3;r<6;r++)if(void 0!==(n=l(e,0,[1,0,r]))){var i=e.substr(n,2);"a0"===i&&(t.certsIdx=n),"a1"===i&&(t.revinfosIdx=n),"31"===i&&(t.signerinfosIdx=n)}}(e,t),t.signerInfos=[],function(e,t){var n=t.signerinfosIdx;if(void 0!==n){var r=u(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var o={idx:r[i]};f(e,o),t.signerInfos.push(o)}}}(e,t)}(d,v.parse),function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,o=0;o<r;o++){var s=n[o];m(e,t,s,o),s.isValid||(i=!1)}t.isValid=i}(d,v),v},se.asn1.cms.CMSParser=function(){var e=Error,t=ot,n=new t,r=ue,i=r.getV,o=r.getTLV,s=(r.getIdxbyList,r.getTLVbyList),a=r.getTLVbyListEx,l=r.getVbyList,u=r.getVbyListEx,c=r.getChildIdx;this.getCMSSignedData=function(e){var t=s(e,0,[1,0]);return this.getSignedData(t)},this.getSignedData=function(e){var t=c(e,0),n={},r=i(e,t[0]),s=parseInt(r,16);n.version=s;var l=o(e,t[1]);n.hashalgs=this.getHashAlgArray(l);var u=o(e,t[2]);n.econtent=this.getEContent(u);var h=a(e,0,["[0]"]);null!=h&&(n.certs=this.getCertificateSet(h));a(e,0,["[1]"]);var p=a(e,0,[3]);return n.sinfos=this.getSignerInfos(p),n},this.getHashAlgArray=function(e){for(var n=c(e,0),r=new t,i=[],s=0;s<n.length;s++){var a=o(e,n[s]),l=r.getAlgorithmIdentifierName(a);i.push(l)}return i},this.getEContent=function(e){var t={},n=l(e,0,[0]),r=l(e,0,[1,0]);return t.type=se.asn1.x509.OID.oid2name(ue.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=c(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),s=this.getSignerInfo(i);t.push(s)}return t},this.getSignerInfo=function(e){var t={},i=c(e,0),s=r.getInt(e,i[0],-1);-1!=s&&(t.version=s);var l=o(e,i[1]),h=this.getIssuerAndSerialNumber(l);t.id=h;var p=o(e,i[2]),d=n.getAlgorithmIdentifierName(p);t.hashalg=d;var f=a(e,0,["[0]"]);if(null!=f){var g=this.getAttributeList(f);t.sattrs=g}var m=a(e,0,[3]),v=n.getAlgorithmIdentifierName(m);t.sigalg=v;var y=u(e,0,[4]);t.sighex=y;var b=a(e,0,["[1]"]);if(null!=b){var $=this.getAttributeList(b);t.uattrs=$}return t},this.getSignerIdentifier=function(e){if("30"==e.substr(0,2))return this.getIssuerAndSerialNumber(e);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(e){var t={type:"isssn"},r=c(e,0),s=o(e,r[0]);t.issuer=n.getX500Name(s);var a=i(e,r[1]);return t.serial={hex:a},t},this.getAttributeList=function(e){for(var t=[],n=c(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),s=this.getAttribute(i);t.push(s)}return{array:t}},this.getAttribute=function(e){var t={},n=c(e,0),i=r.getOID(e,n[0]),s=se.asn1.x509.OID.oid2name(i);t.attr=s;var a=o(e,n[1]),l=c(a,0);if(1==l.length)t.valhex=o(a,l[0]);else{for(var u=[],h=0;h<l.length;h++)u.push(o(a,l[h]));t.valhex=u}return"contentType"==s?this.setContentType(t):"messageDigest"==s?this.setMessageDigest(t):"signingTime"==s?this.setSigningTime(t):"signingCertificate"==s?this.setSigningCertificate(t):"signingCertificateV2"==s?this.setSigningCertificateV2(t):"signaturePolicyIdentifier"==s&&this.setSignaturePolicyIdentifier(t),t},this.setContentType=function(e){var t=r.getOIDName(e.valhex,0,null);null!=t&&(e.type=t,delete e.valhex)},this.setSigningTime=function(e){var t=be(i(e.valhex,0));e.str=t,delete e.valhex},this.setMessageDigest=function(e){var t=i(e.valhex,0);e.hex=t,delete e.valhex},this.setSigningCertificate=function(e){var t=c(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=c(n,0),i=[],s=0;s<r.length;s++){var a=o(n,r[s]),l=this.getESSCertID(a);i.push(l)}e.array=i}if(t.length>1){var u=o(e.valhex,t[1]);e.polhex=u}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=c(e.valhex,0);if(n.length>0){var s=r.getOID(e.valhex,n[0]);e.oid=s}if(n.length>1){var a=new t,l=c(e.valhex,n[1]),u=o(e.valhex,l[0]),h=a.getAlgorithmIdentifierName(u);e.alg=h;var p=i(e.valhex,l[1]);e.hash=p}delete e.valhex},this.setSigningCertificateV2=function(e){var t=c(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=c(n,0),i=[],s=0;s<r.length;s++){var a=o(n,r[s]),l=this.getESSCertIDv2(a);i.push(l)}e.array=i}if(t.length>1){var u=o(e.valhex,t[1]);e.polhex=u}delete e.valhex},this.getESSCertID=function(e){var t={},n=c(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var s=o(e,n[1]),a=this.getIssuerSerial(s);null!=a.serial&&(t.serial=a.serial),null!=a.issuer&&(t.issuer=a.issuer)}return t},this.getESSCertIDv2=function(t){var r={},s=c(t,0);if(s.length<1||3<s.length)throw new e("wrong number of elements");var a=0;if("30"==t.substr(s[0],2)){var l=o(t,s[0]);r.alg=n.getAlgorithmIdentifierName(l),a++}else r.alg="sha256";var u=i(t,s[a]);if(r.hash=u,s.length>a+1){var h=o(t,s[a+1]),p=this.getIssuerSerial(h);r.issuer=p.issuer,r.serial=p.serial}return r},this.getIssuerSerial=function(e){var t={},r=c(e,0),s=o(e,r[0]),a=n.getGeneralNames(s)[0].dn;t.issuer=a;var l=i(e,r[1]);return t.serial={hex:l},t},this.getCertificateSet=function(e){for(var t=c(e,0),n=[],r=0;r<t.length;r++){var i=o(e,t[r]);if("30"==i.substr(0,2)){var s=Ae(i,"CERTIFICATE");n.push(s)}}return{array:n,sortflag:!1}}},void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),void 0!==se.asn1.tsp&&se.asn1.tsp||(se.asn1.tsp={}),se.asn1.tsp.TimeStampToken=function(e){var t=se.asn1.tsp;t.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var e=new t.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=e.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.TimeStampToken,se.asn1.cms.SignedData),se.asn1.tsp.TSTInfo=function(e){Error;var t=se.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,o=t.DERGeneralizedTime,s=t.DERObjectIdentifier,a=t.DERTaggedObject,l=t.tsp,u=l.MessageImprint,c=l.Accuracy,h=(t.x509.X500Name,t.x509.GeneralName);if(l.TSTInfo.superclass.constructor.call(this),this.dVersion=new r({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var e=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(e.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(e.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(e.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");e.push(this.dGenTime),null!=this.dAccuracy&&e.push(this.dAccuracy),null!=this.dOrdering&&e.push(this.dOrdering),null!=this.dNonce&&e.push(this.dNonce),null!=this.dTsa&&e.push(this.dTsa);var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){if("string"==typeof e.policy){if(!e.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new s({oid:e.policy})}void 0!==e.messageImprint&&(this.dMessageImprint=new u(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new r(e.serial)),void 0!==e.genTime&&(this.dGenTime=new o(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new c(e.accuracy)),void 0!==e.ordering&&1==e.ordering&&(this.dOrdering=new i),void 0!==e.nonce&&(this.dNonce=new r(e.nonce)),void 0!==e.tsa&&(this.dTsa=new a({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},et(se.asn1.tsp.TSTInfo,se.asn1.ASN1Object),se.asn1.tsp.Accuracy=function(e){var t=se.asn1,n=t.ASN1Util.newObject;t.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return null!=e.seconds&&"number"==typeof e.seconds&&t.push({int:e.seconds}),null!=e.millis&&"number"==typeof e.millis&&t.push({tag:{tagi:"80",obj:{int:e.millis}}}),null!=e.micros&&"number"==typeof e.micros&&t.push({tag:{tagi:"81",obj:{int:e.micros}}}),n({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.Accuracy,se.asn1.ASN1Object),se.asn1.tsp.MessageImprint=function(e){var t=se.asn1,n=t.DERSequence,r=t.DEROctetString,i=t.x509.AlgorithmIdentifier;t.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=new i({name:e.alg}),o=new r({hex:e.hash});return new n({array:[t,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.tsp.MessageImprint,se.asn1.ASN1Object),se.asn1.tsp.TimeStampReq=function(e){var t=se.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,o=(t.ASN1Object,t.DERObjectIdentifier),s=t.tsp,a=s.MessageImprint;s.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return t.push(new r({int:1})),e.messageImprint instanceof se.asn1.ASN1Object?t.push(e.messageImprint):t.push(new a(e.messageImprint)),null!=e.policy&&t.push(new o(e.policy)),null!=e.nonce&&t.push(new r(e.nonce)),1==e.certreq&&t.push(new i),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.TimeStampReq,se.asn1.ASN1Object),se.asn1.tsp.TimeStampResp=function(e){var t=se.asn1,n=t.DERSequence,r=(t.ASN1Object,t.tsp),i=r.PKIStatusInfo;r.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,o=[];if(null!=e.econtent||null!=e.tst)if(null!=e.statusinfo?o.push(new i(e.statusinfo)):o.push(new i("granted")),null!=e.econtent)o.push(new r.TimeStampToken(e).getContentInfo());else{if(!(e.tst instanceof t.ASN1Object))throw new Error("improper member tst value");o.push(e.tst)}else{if(null==e.statusinfo)throw new Error("parameter for token nor statusinfo not specified");o.push(new i(e.statusinfo))}return new n({array:o}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.TimeStampResp,se.asn1.ASN1Object),se.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=se.asn1,r=n.DERSequence,i=n.tsp,o=i.PKIStatus,s=i.PKIFreeText,a=i.PKIFailureInfo;i.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new o(e));else{if(null==e.status)throw new t("property 'status' unspecified");n.push(new o(e.status)),null!=e.statusstr&&n.push(new s(e.statusstr)),null!=e.failinfo&&n.push(new a(e.failinfo))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.PKIStatusInfo,se.asn1.ASN1Object),se.asn1.tsp.PKIStatus=function(e){var t=Error,n=se.asn1,r=n.DERInteger;n.tsp.PKIStatus.superclass.constructor.call(this);var i={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var e,n=this.params;if("string"==typeof n)try{e=i[n]}catch(e){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("unsupported params");e=n}return new r({int:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.PKIStatus,se.asn1.ASN1Object),se.asn1.tsp.PKIFreeText=function(e){var t=Error,n=se.asn1,r=n.DERSequence,i=n.DERUTF8String;n.tsp.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new t("wrong params: not array");for(var n=[],o=0;o<e.length;o++)n.push(new i({str:e[o]}));return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.PKIFreeText,se.asn1.ASN1Object),se.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=se.asn1,r=n.DERBitString,i=n.tsp.PKIFailureInfo,o={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};i.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var e=this.params,n=0;if("number"==typeof e&&0<=e&&e<=25){for(var r=(n|=1<<e).toString(2),i="",s=r.length-1;s>=0;s--)i+=r[s];return i}if("string"==typeof e&&null!=o[e])return Qe([e],o);if("object"==typeof e&&null!=e.length)return Qe(e,o);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new r({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.tsp.PKIFailureInfo,se.asn1.ASN1Object),se.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},se.asn1.tsp.SimpleTSAAdapter=function(e){var t=se,n=t.asn1.tsp,r=t.crypto.Util.hashHex;n.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var i=r(e,t);this.params.econtent.content.messageImprint={alg:t,hash:i},this.params.econtent.content.serial={int:this.serial++};var o=Math.floor(1e9*Math.random());return this.params.econtent.content.nonce={int:o},new n.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},et(se.asn1.tsp.SimpleTSAAdapter,se.asn1.tsp.AbstractTSAAdapter),se.asn1.tsp.FixedTSAAdapter=function(e){var t=se,n=t.asn1.tsp,r=t.crypto.Util.hashHex;n.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var i=r(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},new n.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},et(se.asn1.tsp.FixedTSAAdapter,se.asn1.tsp.AbstractTSAAdapter),se.asn1.tsp.TSPUtil=new function(){},se.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new se.asn1.tsp.TimeStampToken(e)},se.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){return(new se.asn1.tsp.TSPParser).getTimeStampReq(e)},se.asn1.tsp.TSPUtil.parseMessageImprint=function(e){return(new se.asn1.tsp.TSPParser).getMessageImprint(e)},se.asn1.tsp.TSPParser=function(){Error;var e=new ot,t=ue,n=t.getV,r=t.getTLV,i=t.getIdxbyList,o=(t.getTLVbyListEx,t.getChildIdx),s=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],a={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=o(e,0);if(1==t.length)return this.getPKIStatusInfo(r(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(r(e,t[0])),i=r(e,t[1]),s=this.getToken(i);return s.statusinfo=n,s}},this.getToken=function(e){var t=(new se.asn1.cms.CMSParser).getCMSSignedData(e);return this.setTSTInfo(t),t},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var n=t.content.hex,r=this.getTSTInfo(n);t.content=r}},this.getTSTInfo=function(t){var i={},s=o(t,0),a=n(t,s[1]);i.policy=ze(a);var l=r(t,s[2]);i.messageImprint=this.getMessageImprint(l);var u=n(t,s[3]);i.serial={hex:u};var c=n(t,s[4]);i.genTime={str:be(c)};var h=0;if(s.length>5&&"30"==t.substr(s[5],2)){var p=r(t,s[5]);i.accuracy=this.getAccuracy(p),h++}s.length>5+h&&"01"==t.substr(s[5+h],2)&&("ff"==n(t,s[5+h])&&(i.ordering=!0),h++);if(s.length>5+h&&"02"==t.substr(s[5+h],2)){var d=n(t,s[5+h]);i.nonce={hex:d},h++}if(s.length>5+h&&"a0"==t.substr(s[5+h],2)){var f=r(t,s[5+h]);f="30"+f.substr(2),pGeneralNames=e.getGeneralNames(f);var g=pGeneralNames[0].dn;i.tsa=g,h++}if(s.length>5+h&&"a1"==t.substr(s[5+h],2)){var m=r(t,s[5+h]);m="30"+m.substr(2);var v=e.getExtParamArray(m);i.ext=v,h++}return i},this.getAccuracy=function(e){for(var t={},r=o(e,0),i=0;i<r.length;i++){var s=e.substr(r[i],2),a=n(e,r[i]),l=parseInt(a,16);"02"==s?t.seconds=l:"80"==s?t.millis=l:"81"==s&&(t.micros=l)}return t},this.getMessageImprint=function(e){if("30"!=e.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var r={},s=(o(e,0),i(e,0,[0,0])),a=n(e,s),l=t.hextooidstr(a),u=se.asn1.x509.OID.oid2name(l);if(""==u)throw new Error("hashAlg name undefined: "+l);var c=u,h=i(e,0,[1]);return r.alg=c,r.hash=n(e,h),r},this.getPKIStatusInfo=function(e){var t={},i=o(e,0),a=0;try{var l=n(e,i[0]),u=parseInt(l,16);t.status=s[u]}catch(e){}if(i.length>1&&"30"==e.substr(i[1],2)){var c=r(e,i[1]);t.statusstr=this.getPKIFreeText(c),a++}if(i.length>a&&"03"==e.substr(i[1+a],2)){var h=r(e,i[1+a]);t.failinfo=this.getPKIFailureInfo(h)}return t},this.getPKIFreeText=function(e){for(var n=[],r=o(e,0),i=0;i<r.length;i++)n.push(t.getString(e,r[i]));return n},this.getPKIFailureInfo=function(e){var n=t.getInt(e,0);return null!=a[n]?a[n]:n},this.getTimeStampReq=function(e){var i={certreq:!1},s=o(e,0);if(s.length<2)throw new Error("TimeStampReq must have at least 2 items");var a=r(e,s[1]);i.messageImprint=se.asn1.tsp.TSPUtil.parseMessageImprint(a);for(var l=2;l<s.length;l++){var u=s[l],c=e.substr(u,2);if("06"==c){var h=n(e,u);i.policy=t.hextooidstr(h)}"02"==c&&(i.nonce=n(e,u)),"01"==c&&(i.certreq=!0)}return i}},void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),void 0!==se.asn1.cades&&se.asn1.cades||(se.asn1.cades={}),se.asn1.cades.SignaturePolicyIdentifier=function(e){var t=se.asn1.cades,n=t.SignaturePolicyId;t.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new n(this.params)]},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(se.asn1.cades.SignaturePolicyIdentifier,se.asn1.cms.Attribute),se.asn1.cades.SignaturePolicyId=function(e){var t=se.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=(t.x509.AlgorithmIdentifier,t.cades),o=i.SignaturePolicyId,s=i.OtherHashAlgAndValue;o.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return t.push(new r(e.oid)),t.push(new s(e)),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(se.asn1.cades.SignaturePolicyId,se.asn1.ASN1Object),se.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=se.asn1,r=n.DERSequence,i=n.DEROctetString,o=n.x509.AlgorithmIdentifier;n.cades.OtherHashAlgAndValue.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(null==e.alg)throw new t("property 'alg' not specified");if(null==e.hash&&null==e.cert)throw new t("property 'hash' nor 'cert' not specified");var n=null;if(null!=e.hash)n=e.hash;else if(null!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var s=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(s=Te(e.cert)),n=se.crypto.Util.hashHex(s,e.alg)}var a=[];return a.push(new o({name:e.alg})),a.push(new i({hex:n})),new r({array:a}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cades.OtherHashAlgAndValue,se.asn1.ASN1Object),se.asn1.cades.OtherHashValue=function(e){se.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=se,r=(n.lang.String.isHex,n.asn1.DEROctetString);n.crypto.Util.hashHex;this.params=null,this.tohex=function(){var e=this.params;if(null==e.hash&&null==e.cert)throw new t("hash or cert not specified");var n=null;if(null!=e.hash)n=e.hash;else if(null!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var i=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(i=Te(e.cert)),n=se.crypto.Util.hashHex(i,"sha1")}return new r({hex:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cades.OtherHashValue,se.asn1.ASN1Object),se.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=se,r=n.lang.String.isHex,i=n.asn1,o=i.ASN1Object;i.x509;i.cades.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var e=this.params;if(null!=e.tst){if(r(e.tst))return(i=new o).hTLV=e.tst,[i];if(e.tst instanceof o)return[e.tst];throw new t("params.tst has wrong value")}if(null!=e.res){var n=e.res;if(n instanceof o&&(n=n.tohex()),"string"!=typeof n||!r(n))throw new t("params.res has wrong value");var i;ue.getTLVbyList(n,0,[1]);return(i=new o).hTLV=e.tst,[i]}},null!=e&&this.setByParam(e)},et(se.asn1.cades.SignatureTimeStamp,se.asn1.cms.Attribute),se.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=se,r=n.asn1,i=r.DERSequence,o=r.cades,s=o.OtherCertID,a=n.lang.String.isHex;o.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var e=this.params,n=[],r=0;r<e.array.length;r++){var o=e.array[r];if("string"==typeof o)if(-1!=o.indexOf("-----BEGIN"))o={cert:o};else{if(!a(o))throw new t("unsupported value: "+o);o={hash:o}}null!=e.alg&&null==o.alg&&(o.alg=e.alg),null!=e.hasis&&null==o.hasis&&(o.hasis=e.hasis);var l=new s(o);n.push(l)}return[new i({array:n})]},null!=e&&this.setByParam(e)},et(se.asn1.cades.CompleteCertificateRefs,se.asn1.cms.Attribute),se.asn1.cades.OtherCertID=function(e){var t=se.asn1,n=t.DERSequence,r=t.cms.IssuerSerial,i=t.cades,o=i.OtherHashValue,s=i.OtherHashAlgAndValue;i.OtherCertID.superclass.constructor.call(this),this.params=e,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:_isHex(e)&&(e={hash:e}));var t=[],i=null;if(i=null!=e.alg?new s(e):new o(e),t.push(i),null!=e.cert&&1==e.hasis||null!=e.issuer&&null!=e.serial){var a=new r(e);t.push(a)}return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cades.OtherCertID,se.asn1.ASN1Object),se.asn1.cades.OtherHash=function(e){Error;var t=se,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,o=r.OtherHashValue,s=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:s(e)&&(e={hash:e}));return(null!=e.alg?new i(e):new o(e)).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.cades.OtherHash,se.asn1.ASN1Object),se.asn1.cades.CAdESUtil=new function(){},se.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){return(new se.asn1.cms.CMSParser).getCMSSignedData(e)},se.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=ue,i=r.getChildIdx,o=r.getTLV,s=r.getV,a=se.asn1,l=a.ASN1Object,u=a.cms,c=u.AttributeList,h=u.SignerInfo,p={},d=i(e,t);if(6!=d.length)throw"not supported items for SignerInfo (!=6)";var f=d.shift();p.version=o(e,f);var g=d.shift();p.si=o(e,g);var m=d.shift();p.digalg=o(e,m);var v=d.shift();p.sattrs=o(e,v);var y=d.shift();p.sigalg=o(e,y);var b=d.shift();p.sig=o(e,b),p.sigval=s(e,b);var $=null;return p.obj=new h,($=new l).hTLV=p.version,p.obj.dCMSVersion=$,($=new l).hTLV=p.si,p.obj.dSignerIdentifier=$,($=new l).hTLV=p.digalg,p.obj.dDigestAlgorithm=$,($=new l).hTLV=p.sattrs,p.obj.dSignedAttrs=$,($=new l).hTLV=p.sigalg,p.obj.dSigAlg=$,($=new l).hTLV=p.sig,p.obj.dSig=$,p.obj.dUnsignedAttrs=new c,p},void 0!==se.asn1.csr&&se.asn1.csr||(se.asn1.csr={}),se.asn1.csr.CertificationRequest=function(e){var t=se.asn1,n=t.DERBitString,r=t.DERSequence,i=t.csr,o=(t.x509,i.CertificationRequestInfo);i.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new o(this.params).tohex(),t=new se.crypto.Signature({alg:this.params.sigalg});t.init(this.params.sbjprvkey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Ae(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var e=this.params,t=new se.asn1.csr.CertificationRequestInfo(this.params),i=new se.asn1.x509.AlgorithmIdentifier({name:e.sigalg});if(null==e.sighex&&null!=e.sbjprvkey&&this.sign(),null==e.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var o=new n({hex:"00"+e.sighex});return new r({array:[t,i,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.csr.CertificationRequest,se.asn1.ASN1Object),se.asn1.csr.CertificationRequestInfo=function(e){var t=se.asn1,n=(t.DERBitString,t.DERSequence),r=t.DERInteger,i=t.DERUTF8String,o=t.DERTaggedObject,s=t.ASN1Util.newObject,a=t.csr,l=t.x509,u=l.X500Name,c=l.Extensions,h=l.SubjectPublicKeyInfo;a.AttributeList;a.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){null!=e&&(this.params=e)},this.tohex=function(){var e=this.params,t=[];if(t.push(new r({int:0})),t.push(new u(e.subject)),t.push(new h(tt.getKey(e.sbjpubkey))),null!=e.attrs){var a=function(e){for(var t=Error,n=se.asn1.x509.Extensions,r=[],i=0;i<e.length;i++){var o=e[i],s=o.attr;if("extensionRequest"==s){var a={seq:[{oid:"1.2.840.113549.1.9.14"},{set:[new n(o.ext)]}]};r.push(a)}else if("unstructuredName"==s){a={seq:[{oid:"1.2.840.113549.1.9.2"},{set:o.names}]};r.push(a)}else{if("challengePassword"!=s)throw new t("unknown CSR attribute");a={seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:o.password}]}]};r.push(a)}}return{set:r}}(e.attrs),l=s({tag:{tage:"a0",obj:a}});t.push(l)}else if(null!=e.extreq){var p=new c(e.extreq);l=s({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[p]}]}}});t.push(l)}else t.push(new o({tag:"a0",explicit:!1,obj:new i({str:""})}));return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(se.asn1.csr.CertificationRequestInfo,se.asn1.ASN1Object),se.asn1.csr.AttributeList=function(e){},et(se.asn1.csr.AttributeList,se.asn1.ASN1Object),se.asn1.csr.CSRUtil=new function(){},se.asn1.csr.CSRUtil.newCSRPEM=function(e){return new se.asn1.csr.CertificationRequest(e).getPEM()},se.asn1.csr.CSRUtil.getParam=function(e,t){var n=ue,r=n.getV,i=n.getIdxbyList,o=n.getTLVbyList,s=n.getTLVbyListEx,a=n.getVbyListEx,l={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var u=Te(e,"CERTIFICATE REQUEST");t&&(l.tbs=o(u,0,[0]));try{var c=s(u,0,[0,1]);if("3000"==c)l.subject={};else{var h=new ot;l.subject=h.getX500Name(c)}}catch(e){}var p=s(u,0,[0,2]),d=tt.getKey(p,null,"pkcs8pub");l.sbjpubkey=tt.getPEM(d,"PKCS8PUB");var f=function(e){var t=i(e,0,[0,3,0,0],"06");return"2a864886f70d01090e"!=r(e,t)?null:o(e,0,[0,3,0,1,0],"30")}(u);h=new ot;null!=f&&(l.extreq=h.getExtParamArray(f));try{var g=s(u,0,[1],"30");h=new ot;l.sigalg=h.getAlgorithmIdentifierName(g)}catch(e){}try{var m=a(u,0,[2]);l.sighex=m}catch(e){}return l},se.asn1.csr.CSRUtil.verifySignature=function(e){try{var t=null;if("string"==typeof e&&-1!=e.indexOf("-----BEGIN CERTIFICATE REQUEST")?t=se.asn1.csr.CSRUtil.getParam(e,!0):"object"==typeof e&&null!=e.sbjpubkey&&null!=e.sigalg&&null!=e.sighex&&null!=e.tbs&&(t=e),null==t)return!1;var n=new se.crypto.Signature({alg:t.sigalg});return n.init(t.sbjpubkey),n.updateHex(t.tbs),n.verify(t.sighex)}catch(e){return alert(e),!1}},void 0!==se&&se||(se={}),void 0!==se.asn1&&se.asn1||(se.asn1={}),void 0!==se.asn1.ocsp&&se.asn1.ocsp||(se.asn1.ocsp={}),se.asn1.ocsp.DEFAULT_HASH="sha1",se.asn1.ocsp.OCSPResponse=function(e){se.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);se.asn1.DEREnumerated;var t=se.asn1.ASN1Util.newObject,n=se.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var e=this.params.resstatus;return"number"==typeof e?e:"string"!=typeof e?-1:r.indexOf(e)},this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,r=this._getStatusCode();if(-1==r)throw new Error("responseStatus not supported: "+e.resstatus);if(0!=r)return t({seq:[{enum:{int:r}}]}).tohex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.OCSPResponse,se.asn1.ASN1Object),se.asn1.ocsp.ResponseBytes=function(e){se.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=se.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,o=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new o(e),s=[];return s.push(new r({name:"ocspBasic"})),s.push(new i({hex:t.tohex()})),new n({array:s}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.ResponseBytes,se.asn1.ASN1Object),se.asn1.ocsp.BasicOCSPResponse=function(e){se.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=se.asn1,r=n.ASN1Object,i=n.DERSequence,o=(n.DERGeneralizedTime,n.DERTaggedObject),s=n.DERBitString,a=(n.x509.Extensions,n.x509.AlgorithmIdentifier),l=n.ocsp;l.ResponderID;_SingleResponseList=l.SingleResponseList,_ResponseData=l.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.tohex(),n=new se.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.tohex=function(){var e=this.params;null==e.tbsresp&&(e.tbsresp=new _ResponseData(e)),null==e.sighex&&null!=e.reskey&&this.sign();var n=[];if(n.push(e.tbsresp),n.push(new a({name:e.sigalg})),n.push(new s({hex:"00"+e.sighex})),null!=e.certs&&null!=e.certs.length){for(var l=[],u=0;u<e.certs.length;u++){var c=e.certs[u],h=null;if(ue.isASN1HEX(c))h=c;else{if(!c.match(/-----BEGIN/))throw new t("certs["+u+"] not hex or PEM");h=Te(c)}l.push(new r({tlv:h}))}var p=new i({array:l});n.push(new o({tag:"a0",explicit:!0,obj:p}))}return new i({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.BasicOCSPResponse,se.asn1.ASN1Object),se.asn1.ocsp.ResponseData=function(e){se.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=se.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,o=n.DERTaggedObject,s=n.x509.Extensions,a=n.ocsp,l=a.ResponderID;_SingleResponseList=a.SingleResponseList,this.params=null,this.tohex=function(){var e=this.params;null!=e.respid&&new t("respid not specified"),null!=e.prodat&&new t("prodat not specified"),null!=e.array&&new t("array not specified");var n=[];if(n.push(new l(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),null!=e.ext){var a=new s(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:a}))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.ResponseData,se.asn1.ASN1Object),se.asn1.ocsp.ResponderID=function(e){se.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=se,n=t.asn1,r=n.ASN1Util.newObject,i=n.x509.X500Name,o=t.lang.String.isHex,s=Error;this.params=null,this.tohex=function(){var e=this.params;if(null!=e.key){var t,n=null;if("string"==typeof e.key){if(o(e.key)&&(n=e.key),e.key.match(/-----BEGIN CERTIFICATE/))null!=(t=new ot(e.key).getExtSubjectKeyIdentifier())&&(n=t.kid.hex)}else if(e.key instanceof ot)null!=(t=e.key.getExtSubjectKeyIdentifier())&&(n=t.kid.hex);if(null==n)throw new s("wrong key member value");return r({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:n}}}}).tohex()}if(null!=e.name){var a=null;if("string"==typeof e.name&&e.name.match(/-----BEGIN CERTIFICATE/))a=new ot(e.name).getSubject();else e.name instanceof ot?a=e.name.getSubject():"object"!=typeof e.name||null==e.name.array&&null==e.name.str||(a=e.name);if(null==a)throw new s("wrong name member value");return r({tag:{tag:"a1",explicit:!0,obj:new i(a)}}).tohex()}throw new s("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.ResponderID,se.asn1.ASN1Object),se.asn1.ocsp.SingleResponseList=function(e){se.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=se.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.tohex=function(){var e=this.params;if("object"!=typeof e||null==e.length)throw new Error("params not specified properly");for(var t=[],i=0;i<e.length;i++)t.push(new r(e[i]));return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.SingleResponseList,se.asn1.ASN1Object),se.asn1.ocsp.SingleResponse=function(e){var t=Error,n=se.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,o=n.DERTaggedObject,s=n.ocsp,a=s.CertID,l=s.CertStatus,u=n.x509.Extensions;s.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if(null==e.certid)throw new t("certid unspecified");if(null==e.status)throw new t("status unspecified");if(null==e.thisupdate)throw new t("thisupdate unspecified");if(n.push(new a(e.certid)),n.push(new l(e.status)),n.push(new i(e.thisupdate)),null!=e.nextupdate){var s=new i(e.nextupdate);n.push(new o({tag:"a0",explicit:!0,obj:s}))}if(null!=e.ext){var c=new u(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:c}))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.SingleResponse,se.asn1.ASN1Object),se.asn1.ocsp.CertID=function(e){var t=se,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,o=n.DERSequence,s=n.x509.AlgorithmIdentifier,a=n.ocsp,l=(a.DEFAULT_HASH,t.crypto.Util.hashHex),u=ot,c=ue.getVbyList;a.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(e,t,n,r){null==r&&(r=this.DEFAULT_HASH),this.params={alg:r,issname:e,isskey:t,sbjsn:n}},this.setByCert=function(e,t,n){null==n&&(n=this.DEFAULT_HASH),this.params={alg:n,issuerCert:e,subjectCert:t}},this.getParamByCerts=function(e,t,n){null==n&&(n=this.DEFAULT_HASH);var r=new u(e),i=new u(t),o=l(r.getSubjectHex(),n),s=r.getPublicKeyHex();return{alg:n,issname:o,isskey:l(c(s,0,[1],"03",!0),n),sbjsn:i.getSerialNumberHex()}},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var e,t,n,a,l=this.params;if(a=null==l.alg?this.DEFAULT_HASH:l.alg,null!=l.issuerCert&&null!=l.subjectCert){var u=this.getParamByCerts(l.issuerCert,l.subjectCert,a);e=u.issname,t=u.isskey,n=u.sbjsn}else{if(null==l.issname||null==l.isskey||null==l.sbjsn)throw new Error("required param members not defined");e=l.issname,t=l.isskey,n=l.sbjsn}var c=new s({name:a}),h=new r({hex:e}),p=new r({hex:t}),d=new i({hex:n}),f=new o({array:[c,h,p,d]});return this.hTLV=f.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.CertID,se.asn1.ASN1Object),se.asn1.ocsp.CertStatus=function(e){se.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("good"==e.status)return"8000";if("unknown"==e.status)return"8200";if("revoked"==e.status){var t=[{gentime:{str:e.time}}];null!=e.reason&&t.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:e.reason}}}});var n={tag:"a1",explicit:!1,obj:{seq:t}};return se.asn1.ASN1Util.newObject({tag:n}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(se.asn1.ocsp.CertStatus,se.asn1.ASN1Object),se.asn1.ocsp.Request=function(e){var t=se.asn1,n=t.DERSequence,r=t.ocsp;if(r.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var e=[];if(null===this.dReqCert)throw"reqCert not set";e.push(this.dReqCert);var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){var i=new r.CertID(e);this.dReqCert=i}},et(se.asn1.ocsp.Request,se.asn1.ASN1Object),se.asn1.ocsp.TBSRequest=function(e){var t=se.asn1,n=t.DERSequence,r=t.ocsp;r.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(e){for(var t=[],n=0;n<e.length;n++){var i=new r.Request(e[0]);t.push(i)}this.dRequestList=t},this.tohex=function(){var e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var t=new n({array:this.dRequestList});if(e.push(t),null!==this.dRequestExt)throw"requestExtensions not supported";var r=new n({array:e});return this.hTLV=r.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},et(se.asn1.ocsp.TBSRequest,se.asn1.ASN1Object),se.asn1.ocsp.OCSPRequest=function(e){var t=se.asn1,n=t.DERSequence,r=t.ocsp;if(r.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var e=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(e.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList){var i=new r.TBSRequest(e);this.dTbsRequest=i}},et(se.asn1.ocsp.OCSPRequest,se.asn1.ASN1Object),se.asn1.ocsp.OCSPUtil={},se.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=se.asn1.ocsp;void 0===n&&(n=r.DEFAULT_HASH);var i={alg:n,issuerCert:e,subjectCert:t};return new r.OCSPRequest({reqList:[i]}).tohex()},se.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=ue,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,o=(t.getIdxbyListEx,t.getV),s={};try{var a=r(e,0,[0],"0a");s.responseStatus=parseInt(a,16)}catch(e){}if(0!==s.responseStatus)return s;try{var l=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(l,2)?s.certStatus="good":"a1"===e.substr(l,2)?(s.certStatus="revoked",s.revocationTime=be(n(e,l,[0]))):"82"===e.substr(l,2)&&(s.certStatus="unknown")}catch(e){}try{var u=i(e,0,[1,0,1,0,0,2,0,2]);s.thisUpdate=be(o(e,u))}catch(e){}try{var c=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(c,2)&&(s.nextUpdate=be(n(e,c,[0])))}catch(e){}return s},se.asn1.ocsp.OCSPParser=function(){var e=Error,t=ot,n=new t,r=ue,i=r.getV,o=r.getTLV,s=r.getIdxbyList,a=r.getVbyList,l=r.getTLVbyList,u=r.getVbyListEx,c=r.getTLVbyListEx,h=r.getChildIdx;this.getOCSPRequest=function(t){var n=h(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);return this.getTBSRequest(o(t,n[0]))},this.getTBSRequest=function(e){var t={},r=c(e,0,[0],"30");t.array=this.getRequestList(r);var i=c(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=h(e,0),r=0;r<n.length;r++){e=o(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=h(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(o(t,r[0]));if(2==r.length){var a=s(t,0,[1,0]);i.ext=n.getExtParamArray(o(t,a))}return i},this.getCertID=function(n){var r=h(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var s=new t,a={};return a.alg=s.getAlgorithmIdentifierName(o(n,r[0])),a.issname=i(n,r[1]),a.isskey=i(n,r[2]),a.sbjsn=i(n,r[3]),a},this.getOCSPResponse=function(e){var t,n=h(e,0),r=i(e,n[0]),o=parseInt(r);if(1==n.length)return{resstatus:o};var s=l(e,0,[1,0]);return(t=this.getResponseBytes(s)).resstatus=o,t},this.getResponseBytes=function(e){var t,n=h(e,0),r=l(e,0,[1,0]);t=this.getBasicOCSPResponse(r);var o=i(e,n[0]);return t.restype=se.asn1.x509.OID.oid2name(ze(o)),t},this.getBasicOCSPResponse=function(e){var t,n=h(e,0);t=this.getResponseData(o(e,n[0]));var r=new ot;t.alg=r.getAlgorithmIdentifierName(o(e,n[1]));var s=i(e,n[2]);t.sighex=s.substr(2);var a=u(e,0,["[0]"]);if(null!=a){for(var l=h(a,0),c=[],p=0;p<l.length;p++){var d=o(a,l[p]);c.push(d)}t.certs=c}return t},this.getResponseData=function(e){var t=h(e,0),n=t.length,r={},s=0;"a0"==e.substr(t[0],2)&&s++,r.respid=this.getResponderID(o(e,t[s++]));var a=i(e,t[s++]);if(r.prodat=be(a),r.array=this.getSingleResponseList(o(e,t[s++])),"a1"==e.substr(t[n-1],2)){var u=l(e,t[n-1],[0]),c=new ot;r.ext=c.getExtParamArray(u)}return r},this.getResponderID=function(e){var t={};if("a2"==e.substr(0,2)){var n=a(e,0,[0]);t.key=n}if("a1"==e.substr(0,2)){var r=l(e,0,[0]),i=new ot;t.name=i.getX500Name(r)}return t},this.getSingleResponseList=function(e){for(var t=h(e,0),n=[],r=0;r<t.length;r++){var i=this.getSingleResponse(o(e,t[r]));n.push(i)}return n},this.getSingleResponse=function(e){var t=h(e,0),n={},r=this.getCertID(o(e,t[0]));n.certid=r;var s=this.getCertStatus(o(e,t[1]));if(n.status=s,"18"==e.substr(t[2],2)){var u=i(e,t[2]);n.thisupdate=be(u)}for(var c=3;c<t.length;c++){if("a0"==e.substr(t[c],2)){var p=a(e,t[c],[0],"18");n.nextupdate=be(p)}if("a1"==e.substr(t[c],2)){var d=new ot,f=l(e,0,[c,0]);n.ext=d.getExtParamArray(f)}}return n},this.getCertStatus=function(e){var t={};if("8000"==e)return{status:"good"};if("8200"==e)return{status:"unknown"};if("a1"==e.substr(0,2)){t.status="revoked";var n=be(a(e,0,[0]));t.time=n}return t}},void 0!==se&&se||(se={}),void 0!==se.lang&&se.lang||(se.lang={}),se.lang.String=function(){},"function"==typeof e?(ae=function(t){return fe(e.from(t,"utf8").toString("base64"))},le=function(t){return e.from(ge(t),"base64").toString("utf8")}):(ae=function(e){return me(Re(Be(e)))},le=function(e){return decodeURIComponent(Ie(ve(e)))}),se.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},se.lang.String.isHex=function(e){return He(e)},se.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},se.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=ge(e),se.lang.String.isBase64(e))},se.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},se.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},se.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},se.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};function qe(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=t(parseInt(a,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),o=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r}catch(e){return null}}function ze(e){if(!He(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],s=0;s<i.length/2;s++)o.push(parseInt(i.substr(2*s,2),16));var a=[],l="";for(s=0;s<o.length;s++)128&o[s]?l+=We((127&o[s]).toString(2),7):(l+=We((127&o[s]).toString(2),7),a.push(new String(parseInt(l,2))),l="");var u=t.join(".");return a.length>0&&(u=u+"."+a.join(".")),u}catch(e){return null}}function Ke(e){return Ge(new w(String(e),10))}function Ge(e){var t=e.toString(16);if("-"!=t.substr(0,1))return t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t),t;var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";return t=new w(r,16).xor(e).add(w.ONE).toString(16).replace(/^-/,"")}var We=function(e,t,n){return null==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Ye(e){if(e.length%2!=0)return-1;if(null==(e=e.toLowerCase()).match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var o=parseInt(i,2);return NaN==o?-1:o}catch(e){return-1}}function Je(e){if("number"!=typeof e)return null;if(e<0)return null;var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=We("",n,"0");var r=parseInt(t,2).toString(16);return r.length%2==1&&(r="0"+r),"0"+n+r}function Xe(e){if("string"!=typeof e)return null;if(e.length%2!=0)return null;if(!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7<t)return null;for(var n=e.substr(2),r="",i=0;i<n.length;i+=2){var o=n.substr(i,2),s=parseInt(o,16).toString(2);r+=s=("0000000"+s).slice(-8)}return r.substr(0,r.length-t)}catch(e){return null}}function Qe(e,t){for(var n=0,r=0;r<e.length;r++)n|=1<<t[e[r]];var i=n.toString(2),o="";for(r=i.length-1;r>=0;r--)o+=i[r];return o}function Ze(e,t,n){if("object"==typeof e){t=String(t).split(".");for(var r=0;r<t.length&&e;r++){var i=t[r];i.match(/^[0-9]+$/)&&(i=parseInt(i)),e=e[i]}return e||!1===e?e:n}}function et(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}void 0!==se&&se||(se={}),void 0!==se.crypto&&se.crypto||(se.crypto={}),se.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:g.algo.MD5,sha1:g.algo.SHA1,sha224:g.algo.SHA224,sha256:g.algo.SHA256,sha384:g.algo.SHA384,sha512:g.algo.SHA512,ripemd160:g.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",s="00"+r,a="",l=i-o.length-s.length,u=0;u<l;u+=2)a+="ff";return o+a+s},this.hashString=function(e,t){return new se.crypto.MessageDigest({alg:t}).digestString(e)},this.hashHex=function(e,t){return new se.crypto.MessageDigest({alg:t}).digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof te||e instanceof se.crypto.DSA||e instanceof se.crypto.ECDSA}},se.crypto.Util.md5=function(e){return new se.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(e)},se.crypto.Util.ripemd160=function(e){return new se.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(e)},se.crypto.Util.SECURERANDOMGEN=new Z,se.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return se.crypto.Util.SECURERANDOMGEN.nextBytes(t),pe(t)},se.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new w(se.crypto.Util.getRandomHexOfNbytes(e),16)},se.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=new Array((e-t)/8+1);return se.crypto.Util.SECURERANDOMGEN.nextBytes(n),n[0]=(255<<t&255^255)&n[0],pe(n)},se.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new w(se.crypto.Util.getRandomHexOfNbits(e),16)},se.crypto.Util.getRandomBigIntegerZeroToMax=function(e){for(var t=e.bitLength();;){var n=se.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},se.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(1==n)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e);return se.crypto.Util.getRandomBigIntegerZeroToMax(r).add(e)},se.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(null!==(e=se.crypto.MessageDigest.getCanonicalAlgName(e))&&void 0===t&&(t=se.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=se.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=g.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){return this.md.finalize().toString(g.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=se.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},se.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"==typeof e&&(e=(e=e.toLowerCase()).replace(/-/,"")),e},se.crypto.MessageDigest.getHashLength=function(e){var t=se.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},se.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},se.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(null==(e=e.toLowerCase())&&(e="hmacsha1"),"hmac"!=(e=e.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=se.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=se.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=g.algo.HMAC.create(r,this.pass)}catch(e){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+e}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=g.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){return this.mac.finalize().toString(g.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=xe(e)),void(this.pass=g.enc.Hex.parse(t))}if("object"!=typeof e)throw"KJUR.crypto.Mac unsupported password type: "+e;t=null;if(void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=ye(e.utf8)),void 0!==e.rstr&&(t=xe(e.rstr)),void 0!==e.b64&&(t=b(e.b64)),void 0!==e.b64u&&(t=ve(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=g.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=se.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},se.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new se.crypto.MessageDigest({alg:this.mdAlgName})}catch(e){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+e)}this.init=function(e,t){var n=null;try{n=void 0===t?tt.getKey(e):tt.getKey(e,t)}catch(e){throw"init failed:"+e}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==se.crypto.ECDSA&&(this.prvKey=new se.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof te&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof te&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof se.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof se.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==se.crypto.ECDSA&&(this.pubKey=new se.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof te&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof te&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==se.crypto.ECDSA&&this.pubKey instanceof se.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==se.crypto.DSA&&this.pubKey instanceof se.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=se.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=tt.getKey(e.prvkeypem);this.init(t)}catch(e){throw"fatal error to load pem private key: "+e}}},se.crypto.Cipher=function(e){},se.crypto.Cipher.encrypt=function(e,t,n,r){if(null!=Ze(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,o=e;null!=Ze(r,"key")&&(i=r.key),null!=Ze(r,"enc")&&(hEnc=r.enc);var s,a=g.enc.Hex.parse(i),l=g.enc.Hex.parse(o),u=g.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)s=g.TripleDES.encrypt(l,a,{iv:u});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);s=g.AES.encrypt(l,a,{iv:u})}return s+""}throw new Error("Cipher.encrypt: unsupported key or algorithm")},se.crypto.Cipher.decrypt=function(e,t,n,r){if(null!=Ze(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,o=e;null!=Ze(r,"key")&&(i=r.key),null!=Ze(r,"enc")&&(o=r.enc);var s,a=g.enc.Hex.parse(i),l=g.enc.Hex.parse(o),u=g.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)s=g.TripleDES.decrypt({ciphertext:l},a,{iv:u});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);s=g.AES.decrypt({ciphertext:l},a,{iv:u})}return g.enc.Hex.stringify(s)}throw new Error("Cipher.decrypt: unsupported key or algorithm")},se.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},void 0!==se&&se||(se={}),void 0!==se.crypto&&se.crypto||(se.crypto={}),se.crypto.ECDSA=function(e){var t=Error,n=w,r=re,i=se.crypto.ECDSA,o=se.crypto.ECParameterDB,s=i.getName,a=ue,l=a.getVbyListEx,u=a.isASN1HEX,c=new Z;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new n(e.bitLength(),c).mod(e.subtract(n.ONE)).add(n.ONE)},this.setNamedCurve=function(e){this.ecparams=o.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);return this.setPrivateKeyHex(r),{ecprvhex:r,ecpubhex:this.generatePublicKeyHex()}},this.generatePublicKeyHex=function(){var e=new n(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),r=t.getX().toBigInteger(),i=t.getY().toBigInteger(),o=this.ecparams.keycharlen,s="04"+("0000000000"+r.toString(16)).slice(-o)+("0000000000"+i.toString(16)).slice(-o);return this.setPublicKeyHex(s),s},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var r=new n(t,16),o=this.ecparams.n,s=new n(e.substring(0,this.ecparams.keycharlen),16);do{var a=this.getBigRandom(o),l=this.ecparams.G.multiply(a).getX().toBigInteger().mod(o)}while(l.compareTo(n.ZERO)<=0);var u=a.modInverse(o).multiply(s.add(r.multiply(l))).mod(o);return i.biRSSigToASN1Sig(l,u)},this.sign=function(e,t){var r=t,i=this.ecparams.n,o=n.fromByteArrayUnsigned(e);do{var s=this.getBigRandom(i),a=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i)}while(a.compareTo(w.ZERO)<=0);var l=s.modInverse(i).multiply(o.add(r.multiply(a))).mod(i);return this.serializeSig(a,l)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,o){try{var s,a,l=i.parseSigHex(t);s=l.r,a=l.s;var u=r.decodeFromHex(this.ecparams.curve,o),c=new n(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(c,s,a,u)}catch(e){return!1}},this.verify=function(e,t,i){var o,s,a;if(Bitcoin.Util.isArray(t)){var l=this.parseSig(t);o=l.r,s=l.s}else{if("object"!=typeof t||!t.r||!t.s)throw"Invalid value for signature";o=t.r,s=t.s}if(i instanceof re)a=i;else{if(!Bitcoin.Util.isArray(i))throw"Invalid format for pubkey value, must be byte array or ECPointFp";a=r.decodeFrom(this.ecparams.curve,i)}var u=n.fromByteArrayUnsigned(e);return this.verifyRaw(u,o,s,a)},this.verifyRaw=function(e,t,r,i){var o=this.ecparams.n,s=this.ecparams.G;if(t.compareTo(n.ONE)<0||t.compareTo(o)>=0)return!1;if(r.compareTo(n.ONE)<0||r.compareTo(o)>=0)return!1;var a=r.modInverse(o),l=e.multiply(a).mod(o),u=t.multiply(a).mod(o);return s.multiply(l).add(i.multiply(u)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),(i=i.concat(n)).push(2),i.push(r.length),(i=i.concat(r)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var r=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:n.fromByteArrayUnsigned(r),s:n.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:n.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:n.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===u(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=l(e,0,["[0]",0],"06"),n=l(e,0,[1],"04");try{r=l(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===u(e))throw new t("not ASN.1 hex string");var n,r,i;try{l(e,0,[1,0],"06"),n=l(e,0,[1,1],"06"),r=l(e,0,[2,0,1],"04");try{i=l(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(n),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===u(e))throw new t("not ASN.1 hex string");var n,r;try{l(e,0,[0,0],"06"),n=l(e,0,[0,1],"06"),r=l(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=s(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,n){if(!1===u(e))throw new t("not ASN.1 hex string");var r,i;try{r=l(e,0,[0,5,0,1],"06"),i=l(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},se.crypto.ECDSA.parseSigHex=function(e){var t=se.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new w(t.r,16),s:new w(t.s,16)}},se.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=ue,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],s=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(s,2))throw new Error("2nd item not ASN.1 integer");return{r:r(e,o),s:r(e,s)}},se.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=se.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return(n=("000000"+n).slice(-i))+(r=("000000"+r).slice(-i))}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},se.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return se.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},se.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new w(e,16),r=new w(t,16);return se.crypto.ECDSA.biRSSigToASN1Sig(n,r)},se.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=se.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).tohex()},se.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},void 0!==se&&se||(se={}),void 0!==se.crypto&&se.crypto||(se.crypto={}),se.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new w(e,16)}this.getByName=function(n){var r=n;if(void 0!==t[r]&&(r=t[n]),void 0!==e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,s,a,l,u,c,h,p,d,f){e[r]={};var g=n(o),m=n(s),v=n(a),y=n(l),b=n(u),$=new ie(g,m,v),w=$.decodePointHex("04"+c+h);e[r].name=r,e[r].keylen=i,e[r].keycharlen=2*Math.ceil(i/8),e[r].curve=$,e[r].G=w,e[r].n=y,e[r].h=b,e[r].oid=d,e[r].info=f;for(var x=0;x<p.length;x++)t[p[x]]=r}},se.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),se.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),se.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),se.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),se.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),se.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),se.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),se.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),se.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),se.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),void 0!==se&&se||(se={}),void 0!==se.crypto&&se.crypto||(se.crypto={}),se.crypto.DSA=function(){var e=ue,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=w;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(e,t,n,r,i){this.isPrivate=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=i},this.setPrivateHex=function(e,t,n,r,i){var o,s,a,l,u;o=new w(e,16),s=new w(t,16),a=new w(n,16),l="string"==typeof r&&r.length>1?new w(r,16):null,u=new w(i,16),this.setPrivate(o,s,a,l,u)},this.setPublic=function(e,t,n,r){this.isPublic=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=null},this.setPublicHex=function(e,t,n,r){var i,o,s,a;i=new w(e,16),o=new w(t,16),s=new w(n,16),a=new w(r,16),this.setPublic(i,o,s,a)},this.signWithMessageHash=function(e){var t=this.p,n=this.q,r=this.g,i=(this.y,this.x),o=se.crypto.Util.getRandomBigIntegerMinToMax(w.ONE.add(w.ONE),n.subtract(w.ONE)),s=new w(e.substr(0,n.bitLength()/4),16),a=r.modPow(o,t).mod(n),l=o.modInverse(n).multiply(s.add(i.multiply(a))).mod(n);return se.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:a}},{int:{bigint:l}}]})},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,o=this.y,s=this.parseASN1Signature(t),a=s[0],l=s[1],u=new w(e.substr(0,r.bitLength()/4),16);if(w.ZERO.compareTo(a)>0||a.compareTo(r)>0)throw"invalid DSA signature";if(w.ZERO.compareTo(l)>=0||l.compareTo(r)>0)throw"invalid DSA signature";var c=l.modInverse(r),h=u.multiply(c).mod(r),p=a.multiply(c).mod(r);return 0==i.modPow(h,n).multiply(o.modPow(p,n)).mod(n).mod(r).compareTo(a)},this.parseASN1Signature=function(e){try{return[new r(t(e,0,[0],"02"),16),new r(t(e,0,[1],"02"),16)]}catch(e){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(e){var r,i,o,s,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1],"02"),i=t(e,0,[2],"02"),o=t(e,0,[3],"02"),s=t(e,0,[4],"02"),a=t(e,0,[5],"02")}catch(e){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,o,s,a)},this.readPKCS8PrvKeyHex=function(e){var r,i,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1,1,0],"02"),i=t(e,0,[1,1,1],"02"),o=t(e,0,[1,1,2],"02"),s=t(e,0,[2,0],"02")}catch(e){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(r,i,o,null,s)},this.readPKCS8PubKeyHex=function(e){var r,i,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[0,1,0],"02"),i=t(e,0,[0,1,1],"02"),o=t(e,0,[0,1,2],"02"),s=t(e,0,[1,0],"02")}catch(e){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(r,i,o,s)},this.readCertPubKeyHex=function(e,r){var i,o,s,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),o=t(e,0,[0,5,0,1,1],"02"),s=t(e,0,[0,5,0,1,2],"02"),a=t(e,0,[0,5,1,0],"02")}catch(e){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,o,s,a)}};var tt=function(){var e=function(e,n,r){return t(g.AES,e,n,r)},t=function(e,t,n,r){var i=g.enc.Hex.parse(t),o=g.enc.Hex.parse(n),s=g.enc.Hex.parse(r),a={};a.key=o,a.iv=s,a.ciphertext=i;var l=e.decrypt(a,o,{iv:s});return g.enc.Hex.stringify(l)},n=function(e,t,n){return r(g.AES,e,t,n)},r=function(e,t,n,r){var i=g.enc.Hex.parse(t),o=g.enc.Hex.parse(n),s=g.enc.Hex.parse(r),a=e.encrypt(i,o,{iv:s}),l=g.enc.Hex.parse(a.toString());return g.enc.Base64.stringify(l)},i={"AES-256-CBC":{proc:e,eproc:n,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:n,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:n,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(e,n,r){return t(g.TripleDES,e,n,r)},eproc:function(e,t,n){return r(g.TripleDES,e,t,n)},keylen:24,ivlen:8},"DES-CBC":{proc:function(e,n,r){return t(g.DES,e,n,r)},eproc:function(e,t,n){return r(g.DES,e,t,n)},keylen:8,ivlen:8}},o=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,o=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),o=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),o=1);var s=e.indexOf("-----END");if(-1!=i&&-1!=s){var a=e.substring(i+2*o,s-o);a=a.replace(/\s+/g,""),t.data=a}return t},s=function(e,t,n){for(var r=n.substring(0,16),o=g.enc.Hex.parse(r),s=g.enc.Utf8.parse(t),a=i[e].keylen+i[e].ivlen,l="",u=null;;){var c=g.algo.MD5.create();if(null!=u&&c.update(u),c.update(s),c.update(o),u=c.finalize(),(l+=g.enc.Hex.stringify(u)).length>=2*a)break}var h={};return h.keyhex=l.substr(0,2*i[e].keylen),h.ivhex=l.substr(2*i[e].keylen,2*i[e].ivlen),h},a=function(e,t,n,r){var o=g.enc.Base64.parse(e),s=g.enc.Hex.stringify(o);return(0,i[t].proc)(s,n,r)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return s(e,t,n)},decryptKeyB64:function(e,t,n,r){return a(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=o(e),r=(n.type,n.cipher),i=n.ivsalt,l=n.data,u=s(r,t,i).keyhex;return a(l,r,u,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,o){var a="";if(void 0!==r&&null!=r||(r="AES-256-CBC"),void 0===i[r])throw new Error("KEYUTIL unsupported algorithm: "+r);void 0!==o&&null!=o||(o=function(e){var t=g.lib.WordArray.random(e);return g.enc.Hex.stringify(t)}(i[r].ivlen).toUpperCase());var l=function(e,t,n,r){return(0,i[t].eproc)(e,n,r)}(t,r,s(r,n,o).keyhex,o);a="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+r+","+o+"\r\n",a+="\r\n",a+=l.replace(/(.{64})/g,"$1\r\n"),a+="\r\n-----END "+e+" PRIVATE KEY-----\r\n"},getEncryptedPKCS8PEM:function(e,t,n){return Ae(this.getEncryptedPKCS8Hex(e,t,n),"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(e,t,n){var r;(r=null==n||null==n?{}:JSON.parse(JSON.stringify(n))).plain=e,this.initPBES2Param(r),this.encryptPBES2Param(r,t);var i=this.generatePBES2ASN1Param(r);return se.asn1.ASN1Util.newObject(i).tohex()},initPBES2Param:function(e){var t;(null==Ze(e,"encalg")&&(e.encalg="aes256-CBC"),null==Ze(e,"iter")&&(e.iter=2048),null==Ze(e,"prf")&&(e.prf="hmacWithSHA256"),null==Ze(e,"salt")&&(e.salt=g.enc.Hex.stringify(g.lib.WordArray.random(8))),null==Ze(e,"enciv"))&&("des-EDE3-CBC"==e.encalg&&(t=8),"aes128-CBC"==e.encalg&&(t=16),"aes256-CBC"==e.encalg&&(t=16),e.enciv=g.enc.Hex.stringify(g.lib.WordArray.random(t)))},encryptPBES2Param:function(e,t){var n=tt.getDKFromPBES2Param(e,t);try{var r=se.crypto.Cipher.encrypt(e.plain,n,e.encalg,{iv:e.enciv})}catch(t){throw new Error("encrypt error: "+e.plain+" "+n+" "+e.encalg+" "+e.enciv)}e.enc=r},generatePBES2ASN1Param:function(e){var t={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:e.salt}},{int:{hex:Ke(e.iter)}}]}]},{seq:[{oid:e.encalg},{octstr:{hex:e.enciv}}]}]}]},{octstr:{hex:e.enc}}]};return"hmacWithSHA1"!=e.prf&&t.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:e.prf},{null:""}]}),t},parseHexOfEncryptedPKCS8:function(e){var t=ue,n=t.getChildIdx,r=t.getV,i={},o=n(e,0);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+o.length);i.ciphertext=r(e,o[1]);var s=n(e,o[0]);if(2!=s.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+s.length);if("2a864886f70d01050d"!=r(e,s[0]))throw new Error("this only supports pkcs5PBES2");var a=n(e,s[1]);if(2!=s.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+a.length);var l=n(e,a[1]);if(2!=l.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+l.length);if("2a864886f70d0307"!=r(e,l[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,l[1]);var u=n(e,a[0]);if(2!=u.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length);if("2a864886f70d01050c"!=r(e,u[0]))throw new Error("this only supports pkcs5PBKDF2");var c=n(e,u[1]);if(c.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length);i.pbkdf2Salt=r(e,c[0]);var h=r(e,c[1]);try{i.pbkdf2Iter=parseInt(h,16)}catch(e){throw new Error("malformed format pbkdf2Iter: "+h)}return i},getPBKDF2KeyHexFromParam:function(e,t){var n=g.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=g.PBKDF2(t,n,{keySize:6,iterations:r});return g.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Te(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=tt.getPBKDF2KeyHexFromParam(r,t),o={};o.ciphertext=g.enc.Hex.parse(r.ciphertext);var s=g.enc.Hex.parse(i),a=g.enc.Hex.parse(r.encryptionSchemeIV),l=g.TripleDES.decrypt(o,s,{iv:a});return g.enc.Hex.stringify(l)},parsePBES2:function(e){var t=ue.parse(e);if("pkcs5PBES2"!=Ze(t,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=Ze(t,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var n=Ze(t,"seq.0.seq.1.seq.0.seq.1.seq");if(null==n)throw new Error("PBKDF2 parameter not found");var r=Ze(n,"0.octstr.hex"),i=Ze(n,"1.int.hex"),o=Ze(n,"2.seq.0.oid","hmacWithSHA1"),s=-1;try{s=parseInt(i,16)}catch(e){throw new Error("iter not proper value")}var a=Ze(t,"seq.0.seq.1.seq.1.seq.0.oid"),l=Ze(t,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),u=Ze(t,"seq.1.octstr.hex");if(null==a||null==l||null==u)throw new Error("encalg, enciv or enc is undefined");return{salt:r,iter:s,prf:o,encalg:a,enciv:l,enc:u}},getDKFromPBES2Param:function(e,t){var n={hmacWithSHA1:g.algo.SHA1,hmacWithSHA224:g.algo.SHA224,hmacWithSHA256:g.algo.SHA256,hmacWithSHA384:g.algo.SHA384,hmacWithSHA512:g.algo.SHA512}[e.prf];if(null==n)throw new Error("unsupported prf");var r={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8}[e.encalg];if(null==r)throw new Error("unsupported encalg");var i=g.enc.Hex.parse(e.salt),o=e.iter;try{var s=g.PBKDF2(t,i,{keySize:r,iterations:o,hasher:n});return g.enc.Hex.stringify(s)}catch(n){throw new Error("PBKDF2 error: "+n+" "+JSON.stringify(e)+" "+t)}},getPlainHexFromEncryptedPKCS8PEM:function(e,t){if(-1==e.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var n,r=Te(e);try{n=tt.parsePBES2(r)}catch(e){throw new Error("malformed PBES2 format: "+e.message)}var i=tt.getDKFromPBES2Param(n,t);return se.crypto.Cipher.decrypt(n.enc,i,n.encalg,{iv:n.enciv})},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this.getPlainHexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=ue,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var o=n(e,0);if(o.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(o[1],2))throw new Error("malformed PKCS8 private key(code:003)");var s=n(e,o[1]);if(2!=s.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(s[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)&&(i.algparam=r(e,s[1])),"04"!=e.substr(o[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Te(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new te;else if("2a8648ce380401"==n.algoid)t=new se.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new se.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=ue.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new te;else if("2a8648ce380401"===n)t=new se.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new se.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=ue,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var o=n(e,0);if(2!=o.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(o[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,o[0]),"02"!=e.substr(o[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=ue,n=t.getChildIdx,r=t.getV,i={algparam:null},o=n(e,0);if(2!=o.length)throw new Error("outer DERSequence shall have 2 elements: "+o.length);var s=o[0];if("30"!=e.substr(s,2))throw new Error("malformed PKCS8 public key(code:001)");var a=n(e,s);if(2!=a.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(a[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,a[0]),"06"==e.substr(a[1],2)?i.algparam=r(e,a[1]):"30"==e.substr(a[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,a[1],[0],"02"),i.algparam.q=t.getVbyList(e,a[1],[1],"02"),i.algparam.g=t.getVbyList(e,a[1],[2],"02")),"03"!=e.substr(o[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,o[1]).substr(2),i}}}();tt.getKey=function(e,t,n){var r=(m=ue).getChildIdx,i=(m.getV,m.getVbyList),o=se.crypto,s=o.ECDSA,a=o.DSA,l=te,u=Te,c=tt;if(void 0!==l&&e instanceof l)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==a&&e instanceof a)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(F=new l).setPublic(e.n,e.e),F;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(F=new l).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),F;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(F=new l).setPrivate(e.n,e.e,e.d),F;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(F=new a).setPublic(e.p,e.q,e.g,e.y),F;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(F=new a).setPrivate(e.p,e.q,e.g,e.y,e.x),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(F=new l).setPublic(ve(e.n),ve(e.e)),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(F=new l).setPrivateEx(ve(e.n),ve(e.e),ve(e.d),ve(e.p),ve(e.q),ve(e.dp),ve(e.dq),ve(e.qi)),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(F=new l).setPrivate(ve(e.n),ve(e.e),ve(e.d)),F;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var h=(T=new s({curve:e.crv})).ecparams.keycharlen,p="04"+("0000000000"+ve(e.x)).slice(-h)+("0000000000"+ve(e.y)).slice(-h);return T.setPublicKeyHex(p),T}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){h=(T=new s({curve:e.crv})).ecparams.keycharlen,p="04"+("0000000000"+ve(e.x)).slice(-h)+("0000000000"+ve(e.y)).slice(-h);var d=("0000000000"+ve(e.d)).slice(-h);return T.setPublicKeyHex(p),T.setPrivateKeyHex(d),T}if("pkcs5prv"===n){var f,g=e,m=ue;if(9===(f=r(g,0)).length)(F=new l).readPKCS5PrvKeyHex(g);else if(6===f.length)(F=new a).readPKCS5PrvKeyHex(g);else{if(!(f.length>2&&"04"===g.substr(f[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");(F=new s).readPKCS5PrvKeyHex(g)}return F}if("pkcs8prv"===n)return F=c.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return c._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return ot.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return ot.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var v=Te(e,"PUBLIC KEY");return c._getKeyFromPublicPKCS8Hex(v)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var y=u(e,"RSA PRIVATE KEY");return c.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=i(R=u(e,"DSA PRIVATE KEY"),0,[1],"02"),$=i(R,0,[2],"02"),x=i(R,0,[3],"02"),S=i(R,0,[4],"02"),E=i(R,0,[5],"02");return(F=new a).setPrivate(new w(b,16),new w($,16),new w(x,16),new w(S,16),new w(E,16)),F}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){y=u(e,"EC PRIVATE KEY");return c.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return c.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var C=c.getDecryptedKeyHex(e,t),A=new te;return A.readPKCS5PrvKeyHex(C),A}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var T,F=i(R=c.getDecryptedKeyHex(e,t),0,[1],"04"),k=i(R,0,[2,0],"06"),D=i(R,0,[3,0],"03").substr(2);if(void 0===se.crypto.OID.oidhex2name[k])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+k);return(T=new s({curve:se.crypto.OID.oidhex2name[k]})).setPublicKeyHex(D),T.setPrivateKeyHex(F),T.isPublic=!1,T}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var R;b=i(R=c.getDecryptedKeyHex(e,t),0,[1],"02"),$=i(R,0,[2],"02"),x=i(R,0,[3],"02"),S=i(R,0,[4],"02"),E=i(R,0,[5],"02");return(F=new a).setPrivate(new w(b,16),new w($,16),new w(x,16),new w(S,16),new w(E,16)),F}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return c.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},tt.generateKeypair=function(e,t){if("RSA"==e){var n=t;(s=new te).generate(n,"10001"),s.isPrivate=!0,s.isPublic=!0;var r=new te,i=s.n.toString(16),o=s.e.toString(16);return r.setPublic(i,o),r.isPrivate=!1,r.isPublic=!0,(a={}).prvKeyObj=s,a.pubKeyObj=r,a}if("EC"==e){var s,a,l=t,u=new se.crypto.ECDSA({curve:l}).generateKeyPairHex();return(s=new se.crypto.ECDSA({curve:l})).setPublicKeyHex(u.ecpubhex),s.setPrivateKeyHex(u.ecprvhex),s.isPrivate=!0,s.isPublic=!1,(r=new se.crypto.ECDSA({curve:l})).setPublicKeyHex(u.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(a={}).prvKeyObj=s,a.pubKeyObj=r,a}throw new Error("unknown algorithm: "+e)},tt.getPEM=function(e,t,n,r,i,o){var s=se,a=s.asn1,l=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,h=a.x509.SubjectPublicKeyInfo,p=s.crypto,d=p.DSA,f=p.ECDSA,g=te;function m(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function v(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function y(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==g&&e instanceof g||void 0!==d&&e instanceof d||void 0!==f&&e instanceof f)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ae(x=new h(e).tohex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate)return Ae(x=m(e).tohex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate){var b=new l({name:e.curveName}).tohex(),$=v(e).tohex(),w="";return w+=Ae(b,"EC PARAMETERS"),w+=Ae($,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate)return Ae(x=y(e).tohex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){var x=m(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",x,n,r,o)}if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){x=v(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",x,n,r,o)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate){x=y(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",x,n,r,o)}var S=function(e,t){if("string"==typeof t)return tt.getEncryptedPKCS8PEM(e,t);if("object"==typeof t&&null!=Ze(t,"passcode")){var n=JSON.parse(JSON.stringify(t)),r=n.passcode;return delete n.passcode,tt.getEncryptedPKCS8PEM(e,r,n)}};if("PKCS8PRV"==t&&null!=g&&e instanceof g&&1==e.isPrivate){var E=m(e).tohex();x=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ae(x,"PRIVATE KEY"):S(x,n)}if("PKCS8PRV"==t&&void 0!==f&&e instanceof f&&1==e.isPrivate){var C={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&C.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});E=new c(C).tohex(),x=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ae(x,"PRIVATE KEY"):S(x,n)}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate){E=new u({bigint:e.x}).tohex(),x=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ae(x,"PRIVATE KEY"):S(x,n)}throw new Error("unsupported object nor format")},tt.getKeyFromCSRPEM=function(e){var t=Te(e,"CERTIFICATE REQUEST");return tt.getKeyFromCSRHex(t)},tt.getKeyFromCSRHex=function(e){var t=tt.parseCSRHex(e);return tt.getKey(t.p8pubkeyhex,null,"pkcs8pub")},tt.parseCSRHex=function(e){var t=ue,n=t.getChildIdx,r=t.getTLV,i={},o=e;if("30"!=o.substr(0,2))throw new Error("malformed CSR(code:001)");var s=n(o,0);if(s.length<1)throw new Error("malformed CSR(code:002)");if("30"!=o.substr(s[0],2))throw new Error("malformed CSR(code:003)");var a=n(o,s[0]);if(a.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(o,a[2]),i},tt.getKeyID=function(e){var t=tt,n=ue;"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Te(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),o=n.getV(r,i).substring(2);return se.crypto.Util.hashHex(o,"sha1")},tt.getJWK=function(e,t,n,r,i){var o,s,a={},l=se.crypto.Util.hashHex;if("string"==typeof e)o=tt.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(s=Te(e));else{if("object"!=typeof e)throw new Error("unsupported keyinfo type");e instanceof ot?(o=e.getPublicKey(),s=e.hex):o=e}if(o instanceof te&&o.isPrivate)a.kty="RSA",a.n=me(o.n.toString(16)),a.e=me(o.e.toString(16)),a.d=me(o.d.toString(16)),a.p=me(o.p.toString(16)),a.q=me(o.q.toString(16)),a.dp=me(o.dmp1.toString(16)),a.dq=me(o.dmq1.toString(16)),a.qi=me(o.coeff.toString(16));else if(o instanceof te&&o.isPublic)a.kty="RSA",a.n=me(o.n.toString(16)),a.e=me(o.e.toString(16));else if(o instanceof se.crypto.ECDSA&&o.isPrivate){if("P-256"!==(c=o.getShortNISTPCurveName())&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);var u=o.getPublicKeyXYHex();a.kty="EC",a.crv=c,a.x=me(u.x),a.y=me(u.y),a.d=me(o.prvKeyHex)}else if(o instanceof se.crypto.ECDSA&&o.isPublic){var c;if("P-256"!==(c=o.getShortNISTPCurveName())&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);u=o.getPublicKeyXYHex();a.kty="EC",a.crv=c,a.x=me(u.x),a.y=me(u.y)}if(null==a.kty)throw new Error("unsupported keyinfo");return o.isPrivate||1==t||(a.kid=se.jws.JWS.getJWKthumbprint(a)),null!=s&&1!=n&&(a.x5c=[y(s)]),null!=s&&1!=r&&(a.x5t=fe(y(l(s,"sha1")))),null!=s&&1!=i&&(a["x5t#S256"]=fe(y(l(s,"sha256")))),a},tt.getJWKFromKey=function(e){return tt.getJWK(e,!0,!0,!0,!0)},te.getPosArrayOfChildrenFromHex=function(e){return ue.getChildIdx(e,0)},te.getHexValueArrayOfChildrenFromHex=function(e){var t,n=ue.getV,r=n(e,(t=te.getPosArrayOfChildrenFromHex(e))[0]),i=n(e,t[1]),o=n(e,t[2]),s=n(e,t[3]),a=n(e,t[4]),l=n(e,t[5]),u=n(e,t[6]),c=n(e,t[7]),h=n(e,t[8]);return(t=new Array).push(r,i,o,s,a,l,u,c,h),t},te.prototype.readPrivateKeyFromPEMString=function(e){var t=Te(e),n=te.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},te.prototype.readPKCS5PrvKeyHex=function(e){var t=te.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},te.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,o,s,a,l,u=ue,c=u.getVbyListEx;if(!1===u.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),n=c(e,0,[2,0,2],"02"),r=c(e,0,[2,0,3],"02"),i=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),s=c(e,0,[2,0,6],"02"),a=c(e,0,[2,0,7],"02"),l=c(e,0,[2,0,8],"02")}catch(e){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,o,s,a,l)},te.prototype.readPKCS5PubKeyHex=function(e){var t=ue,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),o=n(e,r[1]);this.setPublic(i,o)},te.prototype.readPKCS8PubKeyHex=function(e){var t=ue;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},te.prototype.readCertPubKeyHex=function(e,t){var n,r;(n=new ot).readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};new RegExp("[^0-9a-f]","gi");function nt(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function rt(e,t,n){for(var r="",i=0;r.length<t;)r+=we(n(xe(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function it(e){for(var t in se.crypto.Util.DIGESTINFOHEAD){var n=se.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}function ot(e){var t,n=ue,r=n.getChildIdx,i=n.getV,o=(n.dump,n.parse),s=n.getTLV,a=n.getVbyList,l=n.getVbyListEx,u=n.getTLVbyList,c=n.getTLVbyListEx,h=n.getIdxbyList,p=n.getIdxbyListEx,d=n.getVidx,f=n.getInt,g=n.oidname,m=n.hextooidstr,v=Te,y=Error;try{t=se.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=u(this.hex,0,[0,0]);if("a0"==e.substr(0,2)){var t=u(e,0,[0]),n=f(t,0);if(n<0||2<n)throw new Error("malformed version field");return this.version=n+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return l(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=c(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return g(l(e,0,[0],"06"))},this.getIssuer=function(e,t){return this.getX500Name(this.getIssuerHex(),e,t)},this.getIssuerHex=function(){return u(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return this.getIssuer().str},this.getSubject=function(e,t){return this.getX500Name(this.getSubjectHex(),e,t)},this.getSubjectHex=function(){return u(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return this.getSubject().str},this.getNotBefore=function(){var e=a(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getNotAfter=function(){var e=a(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return u(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var e=this.getSPKI();return null==e?null:a(e,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return h(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return h(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return tt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=u(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return a(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=u(this.hex,0,[0],"30"),i=new se.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,o,s;if(void 0===e){if(s=this.hex,3!==this.version)return-1;t=h(s,0,[0,7,0],"30"),o=r(s,t)}else{s=Te(e);var l=h(s,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(s,l))return void(this.aExtInfo=new Array);t=h(s,0,[0,3,0,1,0],"30"),o=r(s,t),this.hex=s}this.aExtInfo=new Array;for(var u=0;u<o.length;u++){var c={critical:!1},p=0;3===r(s,o[u]).length&&(c.critical=!0,p=1),c.oid=n.hextooidstr(a(s,o[u],[0],"06"));var f=h(s,o[u],[1+p]);c.vidx=d(s,f),this.aExtInfo.push(c)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=se.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getCriticalExtV=function(e,t,n){if(null!=t)return[t,n];var r=this.getExtInfo(e);return null==r?[null,null]:[s(this.hex,r.vidx),r.critical]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var o=i(e,10),a=parseInt(o,16);return r.cA=!0,r.pathLen=a,r}throw new Error("hExtV parse error: "+e)},this.getExtNameConstraints=function(e,t){var n=this.getCriticalExtV("nameConstraints",e,t);if(e=n[0],t=n[1],null!=e){var i={extname:"nameConstraints"};t&&(i.critical=!0);for(var o=r(e,0),a=0;a<o.length;a++){for(var l=[],u=r(e,o[a]),c=0;c<u.length;c++){var h=s(e,u[c]),p=this.getGeneralSubtree(h);l.push(p)}var d=e.substr(o[a],2);"a0"==d?i.permit=l:"a1"==d&&(i.exclude=l)}return i}},this.getGeneralSubtree=function(e){var t=r(e,0),n=t.length;if(n<1||2<n)throw new Error("wrong num elements");for(var o=this.getGeneralName(s(e,t[0])),a=1;a<n;a++){var l=e.substr(t[a],2),u=i(e,t[a]),c=parseInt(u,16);"80"==l&&(o.min=c),"81"==l&&(o.max=c)}return o},this.getExtKeyUsage=function(e,t){var n=this.getCriticalExtV("keyUsage",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r}},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=s(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),""==(n=n.replace(/0+$/,""))&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(ot.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var o=i(e,0);return r.kid={hex:o},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var o={extname:"authorityKeyIdentifier"};t&&(o.critical=!0);for(var a=r(e,0),l=0;l<a.length;l++){var u=e.substr(a[l],2);if("80"===u&&(o.kid={hex:i(e,a[l])}),"a1"===u){var c=s(e,a[l]),h=this.getGeneralNames(c);o.issuer=h[0].dn}"82"===u&&(o.sn={hex:i(e,a[l])})}return o},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var o={extname:"extKeyUsage",array:[]};t&&(o.critical=!0);for(var a=r(e,0),l=0;l<a.length;l++)o.array.push(g(i(e,a[l])));return o},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=s(this.hex,e.vidx);if(""===n)return t;for(var o=r(n,0),a=0;a<o.length;a++)t.push(g(i(n,o[a])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var o=this.getGeneralName(s(e,t[i]));void 0!==o&&n.push(o)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=we(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:_e(n)}:"a4"==t?{dn:this.getX500Name(n)}:"a0"==t?{other:this.getOtherName(e)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,o=this.getExtInfo("subjectAltName");if(void 0===o)return o;for(var a=new Array,l=s(this.hex,o.vidx),u=r(l,0),c=0;c<u.length;c++)n=l.substr(u[c],2),e=i(l,u[c]),"81"===n&&(t=be(e),a.push(["MAIL",t])),"82"===n&&(t=be(e),a.push(["DNS",t])),"84"===n&&(t=ot.hex2dn(e,0),a.push(["DN",t])),"86"===n&&(t=be(e),a.push(["URI",t])),"87"===n&&(t=_e(e),a.push(["IP",t]));return a},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var o=r(e,0),a=0;a<o.length;a++){var l=s(e,o[a]);i.array.push(this.getDistributionPoint(l))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),a=s(e,n[i]);"a0"==o&&(t.dpname=this.getDistributionPointName(a))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),a=s(e,n[i]);"a0"==o&&(t.full=this.getGeneralNames(a))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtCRLDistributionPoints();if(null==e)return e;for(var t=e.array,n=[],r=0;r<t.length;r++)try{null!=t[r].dpname.full[0].uri&&n.push(t[r].dpname.full[0].uri)}catch(e){}return n},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var o=a(this.hex,n[i],[0],"06"),s=a(this.hex,n[i],[1],"86");"2b06010505073001"===o&&t.ocsp.push(be(s)),"2b06010505073002"===o&&t.caissuer.push(be(s))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var o=r(e,0),u=0;u<o.length;u++){var c=l(e,o[u],[0],"06"),h=be(a(e,o[u],[1],"86"));if("2b06010505073001"==c)i.array.push({ocsp:h});else{if("2b06010505073002"!=c)throw new Error("unknown method: "+c);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var o=r(e,0),a=0;a<o.length;a++){var l=s(e,o[a]),u=this.getPolicyInformation(l);i.array.push(u)}return i},this.getPolicyInformation=function(e){var t={},n=a(e,0,[0],"06");t.policyoid=g(n);var i=p(e,0,[1],"30");if(-1!=i){t.array=[];for(var o=r(e,i),l=0;l<o.length;l++){var u=s(e,o[l]),c=this.getPolicyQualifierInfo(u);t.array.push(c)}}return t},this.getOtherName=function(e){var t={},n=r(e,0),i=a(e,n[0],[],"06"),s=a(e,n[1],[]);return t.oid=g(i),t.value=o(s),t},this.getPolicyQualifierInfo=function(e){var t={},n=a(e,0,[0],"06");if("2b06010505070201"===n){var r=l(e,0,[1],"16");t.cps=we(r)}else if("2b06010505070202"===n){var i=u(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){var t=null;try{return t=n.parse(e),this._asn1ToUnotice(t)}catch(e){return}},this._asn1ToUnotice=function(e){try{for(var t={},n=Ze(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeRef(n[r]);null!=i&&(t.noticeref=i);var o=this.asn1ToDisplayText(n[r]);null!=o&&(t.exptext=o)}return Object.keys(t).length>0?t:void 0}catch(e){return}},this._asn1ToNoticeRef=function(e){try{for(var t={},n=Ze(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeNum(n[r]);null!=i&&(t.noticenum=i);var o=this.asn1ToDisplayText(n[r]);null!=o&&(t.org=o)}return Object.keys(t).length>0?t:void 0}catch(e){return}},this._asn1ToNoticeNum=function(e){try{for(var t=Ze(e,"seq"),n=[],r=0;r<t.length;r++){var i=t[r];n.push(parseInt(Ze(i,"int.hex"),16))}return n}catch(e){return}},this.getDisplayText=function(e){var t={};return t.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[e.substr(0,2)],t.str=we(i(e,0)),t},this.asn1ToDisplayText=function(e){return null!=e.utf8str?{type:"utf8",str:e.utf8str.str}:null!=e.ia5str?{type:"ia5",str:e.ia5str.str}:null!=e.visstr?{type:"vis",str:e.visstr.str}:null!=e.bmpstr?{type:"bmp",str:e.bmpstr.str}:null!=e.prnstr?{type:"prn",str:e.prnstr.str}:void 0},this.getExtPolicyMappings=function(e,t){var n=this.getCriticalExtV("policyMappings",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyMappings"};t&&(r.critical=!0);try{for(var i=o(e).seq,s=[],a=0;a<i.length;a++){var l=i[a].seq;s.push([l[0].oid,l[1].oid])}r.array=s}catch(e){throw new y("malformed policyMappings")}return r}},this.getExtPolicyConstraints=function(e,t){var n=this.getCriticalExtV("policyConstraints",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyConstraints"};t&&(r.critical=!0);var i=o(e);try{for(var s=i.seq,a=0;a<s.length;a++){var l=s[a].tag;0==l.explicit&&("80"==l.tag&&(r.reqexp=parseInt(l.hex,16)),"81"==l.tag&&(r.inhibit=parseInt(l.hex,16)))}}catch(e){return new y("malformed policyConstraints value")}return r}},this.getExtInhibitAnyPolicy=function(e,t){var n=this.getCriticalExtV("inhibitAnyPolicy",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"inhibitAnyPolicy"};t&&(r.critical=!0);var i=f(e,0);return-1==i?new y("wrong value"):(r.skip=i,r)}},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new y("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var o=r(e,0);if(o.length>1){var a=s(e,o[1]),l=this.getGeneralName(a);null!=l.uri&&(i.uri=l.uri)}if(o.length>2){var u=s(e,o[2]);"0101ff"==u&&(i.reqauth=!0),"010100"==u&&(i.reqauth=!1)}return i},this.getExtSubjectDirectoryAttributes=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectDirectoryAttributes");if(void 0===n)return;e=s(this.hex,n.vidx),t=n.critical}var r={extname:"subjectDirectoryAttributes"};t&&(r.critical=!0);try{for(var i=o(e),a=[],l=0;l<i.seq.length;l++){var u=i.seq[l],c=Ze(u,"seq.0.oid"),h=Ze(u,"seq.1.set");if(null==c||null==h)throw"error";a.push({attr:c,array:h})}return r.array=a,r}catch(e){throw new Error("malformed subjectDirectoryAttributes extension value")}};var b=function(e){var t={};try{var n=e.seq[0].oid,r=se.asn1.x509.OID.name2oid(n);t.type=se.asn1.x509.OID.oid2atype(r);var i=e.seq[1];if(null!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(null!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(null!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(null!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(null!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(null!=i.visstr)t.ds="vis",t.value=i.visstr.str;else{if(null==i.bmpstr)throw"error";t.ds="bmp",t.value=i.bmpstr.str}return t}catch(e){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},$=function(e){try{return e.set.map((function(e){return b(e)}))}catch(e){throw new Error("improper ASN.1 parsed RDN: "+e)}};this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(i[o]);for(r=0;r<n.length;r++){var s=n[r],a=s.ds,l=s.value,u=s.type;if(":"+a,"prn"!=a&&"utf8"!=a&&"ia5"!=a)return"mixed";if("ia5"==a){if("CN"!=u)return"mixed";if(se.lang.String.isMail(l))continue;return"mixed"}if("C"==u){if("prn"==a)continue;return"mixed"}if(":"+a,null==t)t=a;else if(t!==a)return"mixed"}return null==t?"prn":t},this.getAttrTypeAndValue=function(e){var t=o(e);return b(t)},this.getRDN=function(e){var t=o(e);return $(t)},this.getX500NameArray=function(e){return function(e){try{return e.seq.map((function(e){return $(e)}))}catch(e){throw new Error("improper ASN.1 parsed X500Name: "+e)}}(o(e))},this.getX500Name=function(e,t,n){var r=this.getX500NameArray(e),i={str:this.dnarraytostr(r)};return i.array=r,1==n&&(i.hex=e),1==t&&(i.canon=this.c14nRDNArray(r)),i},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{h(this.hex,0,[0,7],"a3"),this.parseExt()}catch(e){}},this.getParam=function(e){var t={};return null==e&&(e={}),t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(e.dncanon,e.dnhex),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(e.dncanon,e.dnhex),t.sbjpubkey=Ae(this.getPublicKeyHex(),"PUBLIC KEY"),null!=this.aExtInfo&&this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),1==e.tbshex&&(t.tbshex=u(this.hex,0,[0])),1==e.nodnarray&&(delete t.issuer.array,delete t.subject.array),t},this.getExtParamArray=function(e){null==e&&(-1!=p(this.hex,0,[0,"[3]"])&&(e=c(this.hex,0,[0,"[3]",0],"30")));for(var t=[],n=r(e,0),i=0;i<n.length;i++){var o=s(e,n[i]),a=this.getExtParam(o);null!=a&&t.push(a)}return t},this.getExtParam=function(e){var t=r(e,0).length;if(2!=t&&3!=t)throw new Error("wrong number elements in Extension: "+t+" "+e);var n=m(a(e,0,[0],"06")),i=!1;3==t&&"0101ff"==u(e,0,[1])&&(i=!0);var s=u(e,0,[t-1,0]),l=void 0;if("2.5.29.14"==n?l=this.getExtSubjectKeyIdentifier(s,i):"2.5.29.15"==n?l=this.getExtKeyUsage(s,i):"2.5.29.17"==n?l=this.getExtSubjectAltName(s,i):"2.5.29.18"==n?l=this.getExtIssuerAltName(s,i):"2.5.29.19"==n?l=this.getExtBasicConstraints(s,i):"2.5.29.30"==n?l=this.getExtNameConstraints(s,i):"2.5.29.31"==n?l=this.getExtCRLDistributionPoints(s,i):"2.5.29.32"==n?l=this.getExtCertificatePolicies(s,i):"2.5.29.33"==n?l=this.getExtPolicyMappings(s,i):"2.5.29.35"==n?l=this.getExtAuthorityKeyIdentifier(s,i):"2.5.29.36"==n?l=this.getExtPolicyConstraints(s,i):"2.5.29.37"==n?l=this.getExtExtKeyUsage(s,i):"2.5.29.54"==n?l=this.getExtInhibitAnyPolicy(s,i):"1.3.6.1.5.5.7.1.1"==n?l=this.getExtAuthorityInfoAccess(s,i):"2.5.29.20"==n?l=this.getExtCRLNumber(s,i):"2.5.29.21"==n?l=this.getExtCRLReason(s,i):"2.5.29.9"==n?l=this.getExtSubjectDirectoryAttributes(s,i):"1.3.6.1.5.5.7.48.1.2"==n?l=this.getExtOcspNonce(s,i):"1.3.6.1.5.5.7.48.1.5"==n?l=this.getExtOcspNoCheck(s,i):"1.2.840.113583.1.1.9.1"==n?l=this.getExtAdobeTimeStamp(s,i):null!=ot.EXT_PARSER[n]&&(l=ot.EXT_PARSER[n](n,i,s)),null!=l)return l;var c={extname:n,extn:s};try{c.extn=o(s)}catch(e){}return i&&(c.critical=!0),c},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(null!=r[i].dpname&&null!=r[i].dpname.full)for(var o=r[i].dpname.full,s=0;s<o.length;s++){var a=o[i];null!=a.uri&&(a.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){return"/"+e.map((function(e){return function(e){return e.map((function(e){return function(e){return e.type+"="+e.value}(e).replace(/\+/,"\\+")})).join("+")}(e).replace(/\//,"\\/")})).join("/")},this.setCanonicalizedDN=function(e){var t;if(null!=e.str&&null==e.array){var n=new se.asn1.x509.X500Name({str:e.str}).tohex();t=this.getX500NameArray(n)}else t=e.array;null==e.canon&&(e.canon=this.c14nRDNArray(t))},this.c14nRDNArray=function(e){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],i=[],o=0;o<r.length;o++){var s=r[o],a=s.value;a=(a=(a=(a=a.replace(/^\s*/,"")).replace(/\s*$/,"")).replace(/\s+/g," ")).toLowerCase(),i.push(s.type.toLowerCase()+"="+a)}t.push(i.join("+"))}return"/"+t.join("/")},this.getInfo=function(){var e,t,n,r=function(e){for(var t="",n=" ",r="\n",i=e.array,o=0;o<i.length;o++){var s=i[o];if(null!=s.dn&&(t+=n+"dn: "+s.dn.str+r),null!=s.ip&&(t+=n+"ip: "+s.ip+r),null!=s.rfc822&&(t+=n+"rfc822: "+s.rfc822+r),null!=s.dns&&(t+=n+"dns: "+s.dns+r),null!=s.uri&&(t+=n+"uri: "+s.uri+r),null!=s.other)t+=n+"other: "+s.other.oid+"="+JSON.stringify(s.other.value).replace(/\"/g,"")+r}return t=t.replace(/\n$/,"")},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var o=0;o<i.array.length;o++){var s=i.array[o];void 0!==s.cps&&(t+=" cps: "+s.cps+"\n")}}return t},o=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];try{void 0!==i.dpname.full[0].uri&&(t+=" "+i.dpname.full[0].uri+"\n")}catch(e){}try{void 0!==i.dname.full[0].dn.hex&&(t+=" "+ot.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(e){}}return t},s=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",e+=" key algorithm: "+(t=this.getPublicKey()).type+"\n","RSA"===t.type&&(e+=" n="+Ve(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+Ve(t.e.toString(16))+"\n"),null!=(n=this.aExtInfo)){e+="X509v3 Extensions:\n";for(var a=0;a<n.length;a++){var l=n[a],u=se.asn1.x509.OID.oid2name(l.oid);""===u&&(u=l.oid);var c="";if(!0===l.critical&&(c="CRITICAL"),e+=" "+u+" "+c+":\n","basicConstraints"===u){var h=this.getExtBasicConstraints();void 0===h.cA?e+=" {}\n":(e+=" cA=true",void 0!==h.pathLen&&(e+=", pathLen="+h.pathLen),e+="\n")}else{var p;if("policyMappings"==u)e+=" "+this.getExtPolicyMappings().array.map((function(e){var t=e;return t[0]+":"+t[1]})).join(", ")+"\n";else if("policyConstraints"==u)e+=" ",null!=(p=this.getExtPolicyConstraints()).reqexp&&(e+=" reqexp="+p.reqexp),null!=p.inhibit&&(e+=" inhibit="+p.inhibit),e+="\n";else if("inhibitAnyPolicy"==u)e+=" skip="+(p=this.getExtInhibitAnyPolicy()).skip+"\n";else if("keyUsage"==u)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==u)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==u){var d=this.getExtAuthorityKeyIdentifier();void 0!==d.kid&&(e+=" kid="+d.kid.hex+"\n")}else{if("extKeyUsage"==u)e+=" "+this.getExtExtKeyUsage().array.join(", ")+"\n";else if("subjectAltName"==u)e+=r(this.getExtSubjectAltName())+"\n";else if("cRLDistributionPoints"==u)e+=o(this.getExtCRLDistributionPoints());else if("authorityInfoAccess"==u)e+=s(this.getExtAuthorityInfoAccess());else"certificatePolicies"==u&&(e+=i(this.getExtCertificatePolicies()))}}}}return e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",e+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):se.lang.String.isHex(e)&&this.readCertHex(e))}te.prototype.sign=function(e,t){var n=function(e){return se.crypto.Util.hashString(e,t)}(e);return this.signWithMessageHash(n,t)},te.prototype.signWithMessageHash=function(e,t){var n=ee(se.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),16);return nt(this.doPrivate(n).toString(16),this.n.bitLength())},te.prototype.signPSS=function(e,t,n){var r,i=(r=xe(e),se.crypto.Util.hashHex(r,t));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},te.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=we(e),o=i.length,s=this.n.bitLength()-1,a=Math.ceil(s/8),l=function(e){return se.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=o;else if(-2===n)n=a-o-2;else if(n<-2)throw new Error("invalid salt length");if(a<o+n+2)throw new Error("data too long");var u="";n>0&&(u=new Array(n),(new Z).nextBytes(u),u=String.fromCharCode.apply(String,u));var c=we(l(xe("\0\0\0\0\0\0\0\0"+i+u))),h=[];for(r=0;r<a-n-o-2;r+=1)h[r]=0;var p=String.fromCharCode.apply(String,h)+""+u,d=rt(c,p.length,l),f=[];for(r=0;r<p.length;r+=1)f[r]=p.charCodeAt(r)^d.charCodeAt(r);var g=65280>>8*a-s&255;for(f[0]&=~g,r=0;r<o;r++)f.push(c.charCodeAt(r));return f.push(188),nt(this.doPrivate(new w(f)).toString(16),this.n.bitLength())},te.prototype.verify=function(e,t){if(null==(t=t.toLowerCase()).match(/^[0-9a-f]+$/))return!1;var n=ee(t,16),r=this.n.bitLength();if(n.bitLength()>r)return!1;var i=this.doPublic(n).toString(16);if(i.length+3!=r/4)return!1;var o=it(i.replace(/^1f+00/,""));if(0==o.length)return!1;var s=o[0];return o[1]==function(e){return se.crypto.Util.hashString(e,s)}(e)},te.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=ee(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=it(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==r.length)return!1;r[0];return r[1]==e},te.prototype.verifyPSS=function(e,t,n,r){var i,o=(i=xe(e),se.crypto.Util.hashHex(i,n));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(o,t,n,r)},te.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new w(t,16),s=function(e){return se.crypto.Util.hashHex(e,n)},a=we(e),l=a.length,u=this.n.bitLength()-1,c=Math.ceil(u/8);if(-1===r||void 0===r)r=l;else if(-2===r)r=c-l-2;else if(r<-2)throw new Error("invalid salt length");if(c<l+r+2)throw new Error("data too long");var h=this.doPublic(o).toByteArray();for(i=0;i<h.length;i+=1)h[i]&=255;for(;h.length<c;)h.unshift(0);if(188!==h[c-1])throw new Error("encoded message does not end in 0xbc");var p=(h=String.fromCharCode.apply(String,h)).substr(0,c-l-1),d=h.substr(p.length,l),f=65280>>8*c-u&255;if(0!=(p.charCodeAt(0)&f))throw new Error("bits beyond keysize not zero");var g=rt(d,p.length,s),m=[];for(i=0;i<p.length;i+=1)m[i]=p.charCodeAt(i)^g.charCodeAt(i);m[0]&=~f;var v=c-l-r-2;for(i=0;i<v;i+=1)if(0!==m[i])throw new Error("leftmost octets not zero");if(1!==m[v])throw new Error("0x01 marker not found");return d===we(s(xe("\0\0\0\0\0\0\0\0"+a+String.fromCharCode.apply(String,m.slice(-r)))))},te.SALT_LEN_HLEN=-1,te.SALT_LEN_MAX=-2,te.SALT_LEN_RECOVER=-2,ot.EXT_PARSER={},ot.registExtParser=function(e,t){ot.EXT_PARSER[e]=t},ot.hex2dn=function(e,t){void 0===t&&(t=0);var n=new ot;ue.getTLV(e,t);return n.getX500Name(e).str},ot.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=ue.getChildIdx(e,t),i=0;i<r.length;i++)n.push(ot.hex2attrTypeValue(e,r[i]));return(n=n.map((function(e){return e.replace("+","\\+")}))).join("+")},ot.hex2attrTypeValue=function(e,t){var n=ue,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var o=r(e,i[0]),s=se.asn1.ASN1Util.oidHexToInt(o);return se.asn1.x509.OID.oid2atype(s)+"="+we(r(e,i[1]))},ot.getPublicKeyFromCertHex=function(e){var t=new ot;return t.readCertHex(e),t.getPublicKey()},ot.getPublicKeyFromCertPEM=function(e){var t=new ot;return t.readCertPEM(e),t.getPublicKey()},ot.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=ue.getVbyList,i={};return i.algparam=null,(t=new ot).readCertPEM(e),n=t.getPublicKeyHex(),i.keyhex=r(n,0,[1],"03").substr(2),i.algoid=r(n,0,[0,0],"06"),"2a8648ce3d0201"===i.algoid&&(i.algparam=r(n,0,[0,1],"06")),i},ot.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];void 0!==se&&se||(se={}),void 0!==se.jws&&se.jws||(se.jws={}),se.jws.JWS=function(){var e=se.jws.JWS.isSafeJSONString;this.parseJWS=function(t,n){if(void 0===this.parsedJWS||!n&&void 0===this.parsedJWS.sigvalH){var r=t.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],o=r[2],s=r[3],a=i+"."+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=s,this.parsedJWS.si=a,!n){var l=ve(s),u=ee(l,16);this.parsedJWS.sigvalH=l,this.parsedJWS.sigvalBI=u}var c=le(i),h=le(o);if(this.parsedJWS.headS=c,this.parsedJWS.payloadS=h,!e(c,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+c}}},se.jws.JWS.sign=function(e,t,n,r,i){var o,s,a,l=se,u=l.jws.JWS,c=u.readSafeJSONString,h=u.isSafeJSONString,p=l.crypto,d=(p.ECDSA,p.Mac),f=p.Signature,g=JSON;if("string"!=typeof t&&"object"!=typeof t)throw"spHeader must be JSON string or object: "+t;if("object"==typeof t&&(s=t,o=g.stringify(s)),"string"==typeof t){if(!h(o=t))throw"JWS Head is not safe JSON string: "+o;s=c(o)}if(a=n,"object"==typeof n&&(a=g.stringify(n)),""!=e&&null!=e||void 0===s.alg||(e=s.alg),""!=e&&null!=e&&void 0===s.alg&&(s.alg=e,o=g.stringify(s)),e!==s.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+s.alg;var m=null;if(void 0===u.jwsalg2sigalg[e])throw"unsupported alg name: "+e;m=u.jwsalg2sigalg[e];var v=ae(o)+"."+ae(a),y="";if("Hmac"==m.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var b=new d({alg:m,prov:"cryptojs",pass:r});b.updateString(v),y=b.doFinal()}else if(-1!=m.indexOf("withECDSA")){(w=new f({alg:m})).init(r,i),w.updateString(v);var $=w.sign();y=se.crypto.ECDSA.asn1SigToConcatSig($)}else{var w;if("none"!=m)(w=new f({alg:m})).init(r,i),w.updateString(v),y=w.sign()}return v+"."+me(y)},se.jws.JWS.verify=function(e,t,n){var r,i=se,o=i.jws.JWS,s=o.readSafeJSONString,a=i.crypto,l=a.ECDSA,u=a.Mac,c=a.Signature;if(r=te,!Ue(e))return!1;var h=e.split(".");if(3!==h.length)return!1;var p=h[0]+"."+h[1],d=ve(h[2]),f=s(le(h[0])),g=null,m=null;if(void 0===f.alg)throw"algorithm not specified in header";if((m=(g=f.alg).substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0)&&-1==(":"+n.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=tt.getKey(t)),!("RS"!=m&&"PS"!=m||t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==m&&!(t instanceof l))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===o.jwsalg2sigalg[f.alg])throw"unsupported alg name: "+g;if("none"==(v=o.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==v.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var y=new u({alg:v,pass:t});return y.updateString(p),d==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var b,$=null;try{$=l.concatSigToASN1Sig(d)}catch(e){return!1}return(b=new c({alg:v})).init(t),b.updateString(p),b.verify($)}return(b=new c({alg:v})).init(t),b.updateString(p),b.verify(d)},se.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),o.headerObj=se.jws.JWS.readSafeJSONString(le(t)),o.payloadObj=se.jws.JWS.readSafeJSONString(le(n)),o.headerPP=JSON.stringify(o.headerObj,null," "),null==o.payloadObj?o.payloadPP=le(n):o.payloadPP=JSON.stringify(o.payloadObj,null," "),void 0!==r&&(o.sigHex=ve(r)),o},se.jws.JWS.verifyJWT=function(e,t,n){var r=se.jws,i=r.JWS,o=i.readSafeJSONString,s=i.inArray,a=i.includedArray;if(!Ue(e))return!1;var l=e.split(".");if(3!=l.length)return!1;var u=l[0],c=l[1],h=(ve(l[2]),o(le(u))),p=o(le(c));if(void 0===h.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(h.alg,n.alg))return!1;if(void 0!==p.iss&&"object"==typeof n.iss&&!s(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"==typeof n.sub&&!s(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"==typeof n.aud)if("string"==typeof p.aud){if(!s(p.aud,n.aud))return!1}else if("object"==typeof p.aud&&!a(p.aud,n.aud))return!1;var d=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(d=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriod<d)&&(!(void 0!==p.nbf&&"number"==typeof p.nbf&&d<p.nbf-n.gracePeriod)&&(!(void 0!==p.iat&&"number"==typeof p.iat&&d<p.iat-n.gracePeriod)&&((void 0===p.jti||void 0===n.jti||p.jti===n.jti)&&!!i.verify(e,t,n.alg))))},se.jws.JWS.includedArray=function(e,t){var n=se.jws.JWS.inArray;if(null===e)return!1;if("object"!=typeof e)return!1;if("number"!=typeof e.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t))return!1;return!0},se.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!=typeof t)return!1;if("number"!=typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},se.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},se.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return"object"!=typeof(r=oe(e))||r.constructor===Array?0:(t&&(t[n]=r),1)}catch(e){return 0}},se.jws.JWS.readSafeJSONString=function(e){var t=null;try{return"object"!=typeof(t=oe(e))||t.constructor===Array?null:t}catch(e){return null}},se.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},se.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=xe(t);return me(se.crypto.Util.hashHex(n,"sha256"))},se.jws.IntDate={},se.jws.IntDate.get=function(e){var t=se.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},se.jws.IntDate.getZulu=function(e){return ke(e)},se.jws.IntDate.getNow=function(){return~~(new Date/1e3)},se.jws.IntDate.intDate2UTCString=function(e){return new Date(1e3*e).toUTCString()},se.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e);return("0000"+t.getUTCFullYear()).slice(-4)+("00"+(t.getUTCMonth()+1)).slice(-2)+("00"+t.getUTCDate()).slice(-2)+("00"+t.getUTCHours()).slice(-2)+("00"+t.getUTCMinutes()).slice(-2)+("00"+t.getUTCSeconds()).slice(-2)+"Z"},void 0!==se&&se||(se={}),void 0!==se.jws&&se.jws||(se.jws={}),se.jws.JWSJS=function(){var e=se.jws.JWS,t=e.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(e){this.init();var t=e.split(".");if(3!=t.length)throw"malformed input JWS";this.aHeader.push(t[0]),this.sPayload=t[1],this.aSignature.push(t[2])},this.addSignature=function(e,t,n,r){if(void 0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";var i=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var o=se.jws.JWS.sign(e,t,this.sPayload,n,r).split(".");o[0],o[2];this.aHeader.push(o[0]),this.aSignature.push(o[2])}catch(e){throw this.aHeader.length>i&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+e}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(2!==n.length)return!1;if(!1===this.verifyNth(t,n[0],n[1]))return!1}return!0},this.verifyNth=function(t,n,r){if(this.aHeader.length<=t||this.aSignature.length<=t)return!1;var i=this.aHeader[t],o=this.aSignature[t],s=i+"."+this.sPayload+"."+o,a=!1;try{a=e.verify(s,n,r)}catch(e){return!1}return a},this.readJWSJS=function(e){if("string"==typeof e){var n=t(e);if(null==n)throw"argument is not safe JSON object string";this.aHeader=n.headers,this.sPayload=n.payload,this.aSignature=n.signatures}else try{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!=typeof e.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.aSignature=e.signatures}catch(e){throw"malformed JWS-JS JSON object: "+e}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},t.SecureRandom=Z,t.rng_seed_time=G,t.BigInteger=w,t.RSAKey=te,t.ECDSA=se.crypto.ECDSA,t.DSA=se.crypto.DSA,t.Signature=se.crypto.Signature,t.MessageDigest=se.crypto.MessageDigest,t.Mac=se.crypto.Mac,t.KEYUTIL=tt,t.ASN1HEX=ue,t.X509=ot,t.X509CRL=function(e){var t=se.lang.String.isHex,n=ue,r=n.getV,i=n.getTLV,o=n.getVbyList,s=n.getTLVbyList,a=n.getTLVbyListEx,l=n.getIdxbyList,u=n.getIdxbyListEx,c=n.getChildIdx,h=new ot;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var e=l(this.hex,0,[0,0]),t=this.hex.substr(e,2);if("02"==t)this.posSigAlg=1;else{if("30"!=t)throw new Error("malformed 1st item of TBSCertList: "+t);this.posSigAlg=0}var n,r=l(this.hex,0,[0,this.posSigAlg+3]),i=this.hex.substr(r,2);if("17"==i||"18"==i)n=l(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,-1!=n&&"30"==this.hex.substr(n,2)&&(this.posRevCert=this.posSigAlg+4);else if("30"==i)this.posRevCert=this.posSigAlg+3;else{if("a0"!=i)throw new Error("malformed nextUpdate or revCert tag: "+i);this.posRevCert=null}},this.getVersion=function(){return 0==this.posSigAlg?null:parseInt(o(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var e=s(this.hex,0,[0,this.posSigAlg],"30");return h.getAlgorithmIdentifierName(e)},this.getIssuer=function(){return h.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return s(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var e=o(this.hex,0,[0,this.posSigAlg+2]);return result=we(e)},this.getNextUpdate=function(){var e=l(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:we(r(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=l(this.hex,0,[0,this.posRevCert]),n=c(this.hex,t),r=0;r<n.length;r++){var o=i(this.hex,n[r]);e.push(this.getRevCert(o))}return e},this.getRevCert=function(e){var t={},n=c(e,0);return t.sn={hex:o(e,0,[0],"02")},t.date=we(o(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(s(e,0,[2]))),t},this.findRevCert=function(e){var t=new ot(e).getSerialNumberHex();return this.findRevCertBySN(t)},this.findRevCertBySN=function(e){if(null==this.parsed&&this.getParam(),null==this.parsed.revcert)return null;for(var t=this.parsed.revcert,n=0;n<t.length;n++)if(e==t[n].sn.hex)return t[n];return null},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=s(this.hex,0,[0],"30"),i=new se.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(e){var t={},n=this.getVersion();null!=n&&(t.version=n),t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.thisupdate=this.getThisUpdate();var r=this.getNextUpdate();null!=r&&(t.nextupdate=r);var i=this.getRevCertArray();if(null!=i&&(t.revcert=i),-1!=u(this.hex,0,[0,"[0]"])){var o=a(this.hex,0,[0,"[0]",0]);t.ext=h.getExtParamArray(o)}return t.sighex=this.getSignatureValueHex(),this.parsed=t,"object"==typeof e&&(1==e.tbshex&&(t.tbshex=s(this.hex,0,[0])),1==e.nodnarray&&delete t.issuer.array),t},"string"==typeof e&&(t(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=Te(e)),this._setPos())},t.CryptoJS=g,t.b64tohex=b,t.b64toBA=$,t.ECFieldElementFp=ne,t.ECPointFp=re,t.ECCurveFp=ie,t.stoBA=ce,t.BAtos=he,t.BAtohex=pe,t.stohex=de,t.stob64=function(e){return y(de(e))},t.stob64u=function(e){return fe(y(de(e)))},t.b64utos=function(e){return he($(ge(e)))},t.b64tob64u=fe,t.b64utob64=ge,t.hex2b64=y,t.hextob64u=me,t.b64utohex=ve,t.utf8tob64u=ae,t.b64utoutf8=le,t.utf8tob64=function(e){return y(Re(Be(e)))},t.b64toutf8=function(e){return decodeURIComponent(Ie(b(e)))},t.utf8tohex=ye,t.hextoutf8=be,t.hextorstr=we,t.rstrtohex=xe,t.hextob64=Se,t.hextob64nl=function(e){return Ee(Se(e),64)},t.b64nltohex=Ce,t.hextopem=Ae,t.pemtohex=Te,t.hextoArrayBuffer=function(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t},t.ArrayBuffertohex=function(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t},t.zulutomsec=Fe,t.msectozulu=function(e){var t=new Date(e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),o=("00"+t.getUTCHours()).slice(-2),s=("00"+t.getUTCMinutes()).slice(-2),a=("00"+t.getUTCSeconds()).slice(-2),l=("000"+t.getUTCMilliseconds()).slice(-3);return n+r+i+o+s+a+(l=""!=(l=l.replace(/0+$/,""))?"."+l:l)+"Z"},t.zulutosec=ke,t.zulutodate=function(e){return new Date(Fe(e))},t.datetozulu=function(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var o=e.getUTCMilliseconds();0!==o&&(r+="."+(o=(o=("00"+o).slice(-3)).replace(/0+$/g,"")))}return r+="Z"},t.uricmptohex=Re,t.hextouricmp=Ie,t.ipv6tohex=Pe,t.hextoipv6=Oe,t.hextoip=_e,t.iptohex=Le,t.ucs2hextoutf8=Me,t.encodeURIComponentAll=Be,t.newline_toUnix=function(e){return e=e.replace(/\r\n/gm,"\n")},t.newline_toDos=function(e){return e=(e=e.replace(/\r\n/gm,"\n")).replace(/\n/gm,"\r\n")},t.hextoposhex=Ve,t.intarystrtohex=function(e){e=(e=(e=e.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return e.split(/,/).map((function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";return("00"+r.toString(16)).slice(-2)})).join("")}catch(e){throw"malformed integer array string: "+e}},t.strdiffidx=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1},t.oidtohex=qe,t.hextooid=ze,t.strpad=We,t.bitstrtoint=Ye,t.inttobitstr=Je,t.bitstrtobinstr=Xe,t.binstrtobitstr=function(e){if("string"!=typeof e)return null;if(null==e.match(/^[01]+$/))return null;try{return Je(parseInt(e,2))}catch(e){return null}},t.isBase64URLDot=Ue,t.namearraytobinstr=Qe,t.extendClass=et,t.foldnl=Ee,t.b64topem=function(e,t){return"-----BEGIN "+t+"-----\r\n"+Ee(e,64)+"\r\n-----END "+t+"-----\r\n"},t.pemtob64=function(e){return-1==e.indexOf("-----BEGIN ")||-1==e.indexOf("-----END ")?null:(e=(e=(e=e.replace(/^[\s\S]*?-----BEGIN [^-]+-----/m,"")).replace(/-----END [\s\S]+$/m,"")).replace(/\s+/g,"")).match(/^[0-9a-zA-Z+/=]+$/)?e:null},t.timeogen=De,t.aryval=Ze,t.inttohex=Ke,t.twoscompl=Ge,t.KJUR=se,t.crypto=se.crypto,t.asn1=se.asn1,t.jws=se.jws,t.lang=se.lang,t.VERSION="11.1.0",t.VERSION_FULL="jsrsasign(all) 11.1.0 (2024-02-01) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license"}).call(this,n(321).Buffer)},50:function(e,t){angular.module("graphdb.framework.rest.locations.service",[]).factory("LocationsRestService",n),n.$inject=["$http"];function n(e){return{getLocations:function(t){return e.get("rest/locations",{},{timeout:t?t.promise:null})},addLocation:function(t){return e.post("rest/locations",t)},editLocation:function(t){return e.put("rest/locations",t)},deleteLocation:function(t){return e.delete("rest/locations?uri="+t)},getActiveLocation:function(){return e({method:"GET",url:"rest/locations/active",noCancelOnRouteChange:!0})},setDefaultRepository:function(t){return e({url:"rest/locations/active/default-repository",method:"POST",data:{defaultRepository:t}})},getLocationRpcAddress:function(t){return e.get("rest/info/rpc-address",{params:{location:t}})}}}},51:function(e,t,n){"use strict";n.r(t);n(13),n(17),n(69);var r=n(2),i=n(19),o=n(25);function s(e,t,n,s,a,l,u,c,h,p,d,f){this.guideResumeSubscription=void 0,this.languageChangeSubscription=void 0,this.guideCancelSubscription=void 0,this.init=()=>{this._subscribeToGuideResumed(),this._subscribeToGuideCancel(),this._subscribeToGuidePause()},this.downloadGuidesFile=(e,t)=>f.downloadGuideResource(`${e}/${t}`).then(e=>{o.FileUtils.downloadAsFile(t,"application/text",e.data)}),this.startGuide=(e,i)=>{if(e&&e.options&&e.options.repositoryIdBase){const t=l.getRepositories();e.options.repositoryId=e.options.repositoryIdBase;for(let n=2;t.find(t=>t.id===e.options.repositoryId);n++)e.options.repositoryId=e.options.repositoryIdBase+n;e.options.translatedGuideName=r.GuideUtils.translateLocalMessage(n,s,e.guideName,{}),e.options.translatedGuideDescription=r.GuideUtils.translateLocalMessage(n,s,e.guideDescription,{})}const o=this._toStepsDescriptions(e);for(let e=0;e<o.length;e++)o[e].id=e;angular.isDefined(i)?a.resumeGuide(e.guideId,o,i):a.startGuide(e.guideId,o,i),t.$broadcast("guideStarted")},this.getGuides=()=>f.getGuides().then(e=>{const t=e.data||[];return t.forEach((e,t)=>{void 0===e.guideId&&(e.guideId=Date.now()+t)}),t}),this.isActive=()=>a.isActive(),this._toStepsDescriptions=e=>{if(!e)return[];let t=[];return e.steps.forEach(n=>{t=t.concat(this._getSteps(n,e.options))}),t},this._getSteps=(e,o)=>{const f={$translate:n,$interpolate:s,GuideUtils:r.GuideUtils,$rootScope:t,toastr:u,$location:c,$route:h,$timeout:p,ShepherdService:a,$repositories:l,YasguiComponentDirectiveUtil:i.YasguiComponentDirectiveUtil,EventEmitterService:d};let g=[];if(angular.isArray(e))e.forEach(t=>{g=g.concat(this._getSteps(t,angular.extend({},e.options,o)))});else{const t=PluginRegistry.get("guide.step").find(t=>t.guideBlockName===e.guideBlockName);if(t){const n=angular.extend({},t.options,e.options,o);t.getSteps?g=g.concat(this._getSteps(_.cloneDeep(t.getSteps(n,f)),o)):t.getStep?g.push(_.cloneDeep(t.getStep(n,f))):g=g.concat(this._getSteps(_.cloneDeep(t,t.options),o))}}return g.forEach((e,t)=>{e.stepN=t,e.stepsTotalN=g.length,!e.title&&e.mainAction&&(e.title="guide.step-action."+e.mainAction)}),g},this._subscribeToGuideResumed=()=>{this.guideResumeSubscription||(this.guideResumeSubscription=t.$on("guideResume",()=>{const e=a.getGuideId();this.getGuides().then(t=>{const n=t.find(t=>t.guideId===e),r=a.getCurrentStepId();this.startGuide(n,r)})}))},this._subscribeToGuideCancel=()=>{a.subscribeToGuideCancel(()=>t.$broadcast("guideReset"))},this._subscribeToGuidePause=()=>{a.subscribeToGuidePause(()=>t.$broadcast("guidePaused"))}}angular.module("graphdb.framework.guides.services",["graphdb.framework.guides.shepherd.services","graphdb.framework.rest.guides.service"]).service("GuidesService",s),s.$inject=["$http","$rootScope","$translate","$interpolate","ShepherdService","$repositories","toastr","$location","$route","$timeout","EventEmitterService","GuidesRestService"]},52:function(e,t,n){"use strict";n.r(t);n(9);angular.module("graphdb.framework.core.interceptors.unauthorized",["ngCookies"]).factory("$unauthorizedInterceptor",["$q","$location","$rootScope","$translate",function(e,t,n,r){return{responseError:function(i){let o=!1;return 401===i.status?i.config.url.indexOf("rest/security/authenticated-user")<0&&!n.hasExternalAuthUser()&&(o=!0):403===i.status&&(n.setPermissionDenied(t.path())?console.log(r.instant("unauthorized.console.warning")):o=!0),o?Promise.resolve(n.redirectToLogin()).then(()=>e.reject(i)):e.reject(i)}}}])},53:function(e,t,n){"use strict";n.r(t);n(9);angular.module("graphdb.framework.core.interceptors.authentication",["ngCookies"]).factory("$authenticationInterceptor",["AuthTokenService","LocalStorageAdapter","LSKeys",function(e,t,n){return{request:function(r){const i=r.headers||{};if([e.OPENID_CONFIG.openIdKeysUri,e.OPENID_CONFIG.openIdTokenUrl].some(e=>r.url.indexOf(e)>-1))return r;i["X-Requested-With"]="XMLHttpRequest";if(e.getAuthToken()&&(i.Authorization=e.getAuthToken()),!i["X-GraphDB-Repository"]){const e=t.get(n.REPOSITORY_ID),r=t.get(n.REPOSITORY_LOCATION);i["X-GraphDB-Repository"]=e||void 0,i["X-GraphDB-Repository-Location"]=r||void 0}return r.headers=i,r}}}])},55:function(e,t,n){"use strict";n.r(t);var r=n(5);const i={headers:{"X-GraphDB-Repository-Location":void 0,"X-GraphDB-Repository":void 0,"X-Requested-With":void 0,Authorization:void 0}};angular.module("graphdb.framework.core.services.openIDService",["toastr"]).service("$openIDAuth",["$http","$location","$window","toastr","$translate","AuthTokenService",function(e,t,n,o,s,a){const l="com.ontotext.graphdb.openid.",u=this;function c(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(`${n}=${encodeURIComponent(e[n])}`);return t.join("&")}this.login=function(e,t){const r=u.generateRandomString(),i=e.authFlow;if("code"===i){u.setStorageItem("pkce_state",r);const i=u.generateRandomString();u.setStorageItem("pkce_code_verifier",i);const o=u.pkceChallengeFromVerifier(i);n.location.href=u.getLoginUrl(r,o,t,e)}else"code_no_pkce"===i?(u.removeStorageItem("pkce_code_verifier"),n.location.href=u.getLoginUrl(r,"",t,e)):"implicit"===i?(u.setStorageItem("nonce",r),n.location.href=u.getLoginUrl(r,"",t,e)):(console.log("oidc: unknown auth flow: "+i),o.error(s.instant("openid.auth.unknown.flow",{authFlow:i})))},this.getLoginUrl=function(e,t,n,r){const i=[];let o="";switch(r.authFlow){case"code":o="code",i.push("state="+encodeURIComponent(e)),i.push("code_challenge="+encodeURIComponent(t)),i.push("code_challenge_method=S256");break;case"code_no_pkce":o="code";break;case"implicit":o="token id_token",i.push("nonce="+encodeURIComponent(e));break;default:throw new Error(s.instant("openid.auth.unknown.flow",{authFlow:r.authFlow}))}return i.unshift("response_type="+encodeURIComponent(o),"scope="+encodeURIComponent(u.getScope(r.extraScopes)),"client_id="+encodeURIComponent(r.clientId),"redirect_uri="+encodeURIComponent(n)),r.oracleDomain&&i.push("domain="+encodeURIComponent(r.oracleDomain)),r.authorizeParameters&&i.push(r.authorizeParameters),`${r.oidcAuthorizationEndpoint}?${i.join("&")}`},this.withOpenIdKeys=function(t,n){e.get(t,i).success((function(e){a.OPENID_CONFIG.openIdKeys={},e.keys.forEach((function(e){a.OPENID_CONFIG.openIdKeys[e.kid]=e})),n()}))},this.initOpenId=function(e,t,r,l){u.clientId=e.clientId,u.tokenType=e.tokenType,u.idTokenAudience=e.clientId,u.idTokenIssuer=e.issuer,u.accessTokenAudience=e.tokenAudience,u.accessTokenIssuer=e.tokenIssuer,a.OPENID_CONFIG.openIdTokenUrl=e.oidcTokenEndpoint,a.OPENID_CONFIG.openIdKeysUri=e.oidcJwksUri,e.proxyOidc&&(a.OPENID_CONFIG.openIdKeysUri="rest/openid/jwks",a.OPENID_CONFIG.openIdTokenUrl="rest/openid/token"),a.OPENID_CONFIG.openIdEndSessionUrl=e.oidcEndSessionEndpoint,a.OPENID_CONFIG.supportsOfflineAccess=e.oidcScopesSupported.includes("offline_access"),e.oracleDomain&&(i.headers["X-OAuth-Identity-Domain-Name"]=e.oracleDomain),u.withOpenIdKeys(a.OPENID_CONFIG.openIdKeysUri,(function(){if(u.isLoggedIn=u.hasValidIdToken(),u.isLoggedIn)u.setupTokensRefresh(!1,r,l);else if(u.hasValidRefreshToken())u.refreshTokens(r,l);else{const i=r;r=function(){u.isLoggedIn=!0,i(!0)},u.softLogout();const a=u.parseQueryString(n.location.search.substring(1));if(a.code)"code"===e.authFlow?u.getStorageItem("pkce_state")!==a.state?(o.error(s.instant("openid.auth.invalid.pkce.state")),console.log("oidc: PKCE state mismatch "+u.getStorageItem("pkce_state")+" != "+a.state),l()):u.retrieveTokensByCode(a.code,t,r,l):"code_no_pkce"===e.authFlow&&u.retrieveTokensByCode(a.code,t,r,l);else{const e=u.parseQueryString(n.location.pathname.substring(1));e.id_token?u.saveTokens(e,!0,!1,r):l()}}}))},this.authHeaderGraphDB=function(){return"id"===u.getStorageItem("token_type")?"Bearer "+u.getToken("id"):"Bearer "+u.getToken("access")},this.softLogout=function(){u.isLoggedIn=!1,u.setToken("id",null),u.setToken("access",null),u.setToken("refresh",null)},this.hardLogout=function(e){u.softLogout(),a.OPENID_CONFIG.openIdEndSessionUrl&&(n.location.href=`${a.OPENID_CONFIG.openIdEndSessionUrl}?client_id=${encodeURIComponent(u.clientId)}&post_logout_redirect_uri=${encodeURIComponent(e)}`)},this.getToken=function(e){return u.getStorageItem(e+"_token")},this.setToken=function(e,t){t?u.setStorageItem(e+"_token",t):u.removeStorageItem(e+"_token")},this.tokenHeader=function(e){const t=u.getToken(e);if(t){try{const e=r.KJUR.jws.JWS.readSafeJSONString(Object(r.b64utoutf8)(t.split(".")[0]));if(e)return e}catch(e){}return{error:s.instant("openid.auth.not.jwt.token",{token:t})}}return{}},this.verifyToken=function(e){const t=u.getToken(e),n=u.tokenHeader(e);if(!n.kid)return"id"!==e?n.error?(console.log(`oidc: token ${e} is not a JWT token (token considered valid)`),!0):(console.log(`oidc: invalid token ${e} (token is empty)`),!1):(console.log("oidc: invalid token id (not a JWT token)"),!1);const i=a.OPENID_CONFIG.openIdKeys[n.kid];if(!i)return console.log("oidc: no key to verify JWT token (token considered invalid)"),!1;const o=r.KEYUTIL.getKey(i),s={alg:[n.alg],iss:[u.idTokenIssuer]};return"id"===e?(s.aud=[u.idTokenAudience,u.idTokenIssuer],s.nonce=[u.getStorageItem("nonce")]):"access"===e&&(s.aud=[u.accessTokenAudience],s.iss=[u.accessTokenIssuer]),r.KJUR.jws.JWS.verifyJWT(t,o,s)},this.hasValidIdToken=function(){return u.getToken("id")?u.verifyToken("id")?(console.log("oidc: valid id token found"),!0):(console.log("oidc: stale id token"),!1):(console.log("oidc: no id token"),!1)},this.tokenPayload=function(e){const t=u.getToken(e);if(t){try{const e=r.KJUR.jws.JWS.readSafeJSONString(Object(r.b64utoutf8)(t.split(".")[1]));if(e)return e}catch(e){}return{error:s.instant("openid.auth.not.jwt.token",{token:t})}}return{}},this.saveTokens=function(e,n,r,i){(n||e.refresh_token)&&u.setToken("refresh",e.refresh_token),u.setToken("access",e.access_token),u.setToken("id",e.id_token),u.setStorageItem("token_type",u.tokenType),console.log("oidc: saved tokens"),u.setupTokensRefresh(n||r,i),u.removeStorageItem("pkce_state"),u.removeStorageItem("pkce_code_verifier"),n&&t.url("/")},this.retrieveTokensByCode=function(t,n,r,l){const h={grant_type:"authorization_code",client_id:u.clientId,redirect_uri:n,code:t},p=u.getStorageItem("pkce_code_verifier");p&&(h.code_verifier=p);const d={...i.headers,"Content-type":"application/x-www-form-urlencoded; charset=utf-8"};e({method:"POST",url:a.OPENID_CONFIG.openIdTokenUrl,headers:d,transformRequest:c,data:h}).success((function(e){u.saveTokens(e,!0,!1,r)})).error((function(e){o.error(s.instant("openid.auth.cannot.retrieve.token.msg",{error:getError(e)})),l()}))},this.refreshTokens=function(t,n){if(u.hasValidRefreshToken()){const r={grant_type:"refresh_token",client_id:u.clientId,refresh_token:u.getToken("refresh")},l={...i.headers,"Content-type":"application/x-www-form-urlencoded; charset=utf-8"};e({method:"POST",url:a.OPENID_CONFIG.openIdTokenUrl,headers:l,transformRequest:c,data:r}).success((function(e){console.log("oidc: refreshed tokens"),u.saveTokens(e,!1,!0,t),u.isLoggedIn=!0})).error((function(e){console.log("oidc: could not refresh tokens"),o.error(s.instant("openid.auth.cannot.refresh.token.msg",{error:getError(e)})),n&&n()}))}else console.log("oidc: refresh requested without a valid refresh token")},this.hasValidRefreshToken=function(){const e=u.tokenPayload("refresh");return!(e.nbf&&1e3*e.nbf-Date.now()>5e3)&&(!(e.exp&&Date.now()-1e3*e.exp>5e3)&&!(!e.iat&&!e.error))},this.setupTokensRefresh=function(e,t,n){if(u.hasValidRefreshToken()){clearTimeout(u.previousTimer);const r=u.tokenPayload("id");if(r.exp>0){const i=1e3*r.exp-Date.now()-6e4;if(!(e||i>1e3))return u.previousTimer=null,console.log("oidc: tokens will refresh now, "+i+"; "+e),void u.refreshTokens(t,n);u.previousTimer=setTimeout((function(){u.refreshTokens(t)}),i),console.log("oidc: tokens will refresh in "+i/1e3+" seconds at "+new Date(Date.now()+i))}}else console.log("oidc: no valid refresh token");t()},this.parseQueryString=function(e){const t={access_token:null,code:null,id_token:null,state:null};if(""===e)return t;return e.split("&").map((function(e){return e.split("=")})).forEach((function(e){t[e[0]]=decodeURIComponent(e[1])})),t},this.generateRandomString=function(){const e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,(function(e){return("0"+e.toString(16)).substr(-2)})).join("")},this.pkceChallengeFromVerifier=function(e){const t=new r.KJUR.crypto.MessageDigest({alg:"sha256",prov:"cryptojs"});return Object(r.hextob64u)(t.digestString(e))},this.getScope=function(e){let t="openid"+(a.OPENID_CONFIG.supportsOfflineAccess?" offline_access":"");return e&&(t+=" "+e),console.log(`oidc: requesting scopes '${t}'`),t},this.setStorageItem=function(e,t){localStorage.setItem(l+e,t)},this.getStorageItem=function(e){return localStorage.getItem(l+e)},this.removeStorageItem=function(e){localStorage.removeItem(l+e)}}])},56:function(e,t){angular.module("graphdb.framework.rest.security.service",[]).factory("SecurityRestService",n),n.$inject=["$http"];function n(e){return{getUser:function(n){return e.get("rest/security/users/"+t(n))},getAdminUser:function(){return e.get("rest/security/users/admin")},getUsers:function(){return e.get("rest/security/users")},createUser:function(n){return e({method:"POST",url:"rest/security/users/"+t(n.username),data:{password:n.pass,appSettings:n.appSettings,grantedAuthorities:n.grantedAuthorities}})},updateUser:function(n){return e({method:"PUT",url:"rest/security/users/"+t(n.username),data:{password:n.pass,appSettings:n.appSettings,grantedAuthorities:n.grantedAuthorities}})},updateUserData:function(n){return e({method:"PATCH",url:"rest/security/users/"+t(n.username),data:{password:n.password,appSettings:n.appSettings}})},deleteUser:function(n){return e.delete("rest/security/users/"+t(n))},getFreeAccess:function(){return e.get("rest/security/free-access")},setFreeAccess:function(t){return e.post("rest/security/free-access",t)},getSecurityConfig:function(){return e.get("rest/security/all")},toggleSecurity:function(t){return e.post("rest/security",t?"true":"false")},getRoles:function(){return e.get("rest/roles")},getRolesMapping:function(t){return e.get("rest/roles/mapping",{params:t})},getAuthenticatedUser:function(){return e.get("rest/security/authenticated-user")}};function t(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}}},57:function(e,t){!function(e){e.getError=function(e,t,n){if(angular.isObject(e)&&e.status&&e.data)return getError(e.data,t,n);if(t&&403===t)return"Access is restricted";if(e){let r="Generic error";if(angular.isString(e))-1===e.indexOf("<html>")&&(r=e,r=r.replace(/^(([a-z0-9_]+\.)+[a-zA-Z0-9_]+: )+/,""));else if(angular.isObject(e)){if("message"in e&&(r=e.message),"error"in e&&(r=e.error.message),"responseJSON"in e&&"message"in e.responseJSON)return getError(e.responseJSON,t,n);"responseText"in e&&(r=e.responseText)}return n>0&&r.length>n&&(r=r.substr(0,n)+"..."),r}return"There is an error"}}(window)},58:function(e,t,n){"use strict";n.r(t);n(9),n(59),n(60),n(26),n(48),n(43),n(27),n(21),n(82),n(83),n(42),n(41),n(61),n(62),n(23),n(47);var r=n(6),i=(n(13),n(67),n(44),n(68),n(0)),o=(n(51),n(70),n(17)),s=(n(313),n(322),n(18)),a=n(14),l=n(8);function u(e,t,n,r,i,o,s,a,u,c,h,p,d){e.doClear=!1,e.getActiveRepositorySize=()=>{const t=r.getActiveRepositoryObject();t&&(e.activeRepositorySizeError=void 0,c.getSize(t).then((function(t){e.activeRepositorySize=t.data})).catch((function(t){e.activeRepositorySizeError=t.data.message})))},e.onKeyDown=function(t){27===t.keyCode&&(e.doClear=!0)};const f=[];f.push(h.onSelectedRepositoryIdUpdated(t=>{t?(e.getActiveRepositorySize(),p.getNamespaces(t).then(t=>{e.repositoryNamespaces=t}).catch(e=>{const t=getError(e);d.error(t,s.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new l.NamespacesListModel})),f.push(h.onAutocompleteEnabledUpdated(t=>{e.isAutocompleteEnabled=t})),e.$on("$destroy",()=>f.forEach(e=>e())),e.$on("$routeChangeSuccess",(function(n,r,o){o&&(i.isAuthenticated()||i.isFreeAccessEnabled()?e.getActiveRepositorySize():t.redirectToLogin())}))}function c(e,t,n,l,u,c,h,p,d,f,g,m,v,y,b,w,x,S,E,C,A,T,F,k,D,R,I,P,O,j,L){e.descr=T.instant("main.gdb.description"),e.documentation="",e.menu=t,e.menuCollapsed=!1,e.tutorialState=1!==C.get(A.TUTORIAL_STATE),e.userLoggedIn=!1,e.embedded=c.search().embedded,e.productInfo=f,e.guidePaused="true"===C.get(o.GUIDE_PAUSE),e.hideRdfResourceSearch=!1,e.showRdfResourceSearch=()=>!e.hideRdfResourceSearch&&!!e.getActiveRepository()&&e.hasActiveLocation()&&(!e.isLoadingLocation()||e.isLoadingLocation()&&"/repository"===c.url()),e.onRdfResourceSearch=()=>{N()&&(e.hideRdfResourceSearch=!0,$("#search-resource-input-home input").focus(),u.info(Object(i.decodeHTML)(T.instant("search.resource.current.page.msg")),T.instant("search.resources.msg"),{allowHtml:!0}))};const N=()=>"/"===c.url();e.isMenuCollapsedOnLoad=function(){return $(".main-menu").hasClass("collapsed")},e.checkMenu=Object(s.debounce)((function(){const t=e.isMenuCollapsedOnLoad();e.menuCollapsed!==t&&(e.menuCollapsed=t)}),0,{trailing:!0});const M=e.$watch((function(){return e.isMenuCollapsedOnLoad()}),(function(t,n){t===n&&void 0!==t||e.checkMenu()}));e.showLabel=function(t){return!!t.children||!e.menuCollapsed};!function(){const t=new Date;e.currentYear=t.getFullYear(),e.previousYear=2002}(),$("#repositorySelectDropdown").on("hide.bs.dropdown",(function(e){D.isActive()&&$("#repositorySelectDropdown.autoCloseOff").length>0&&e.preventDefault()})),e.$on("$routeChangeSuccess",(function(t,n,r){e.clicked=!1,e.hideRdfResourceSearch=!1,$(".menu-element-root").removeClass("active"),g((function(){$(".menu-element.open a.menu-element-root").addClass("active"),$(".main-menu.collapsed .menu-element.open .menu-element-root").addClass("active")}),400),r&&p.checkLicenseStatus().then(()=>O.init())})),e.resumeGuide=function(){d.$broadcast("guideResume")},d.$on("guideReset",(function(){e.guidePaused=!1,d.guidePaused=!1})),d.$on("guideStarted",(function(){e.guidePaused=!1,d.guidePaused=!1})),d.$on("guidePaused",(function(){e.guidePaused=!0,d.guidePaused=!0})),d.$on("$translateChangeSuccess",(function(){e.menu.forEach((function(e){e.label=T.instant(e.labelKey),e.children&&e.children.forEach((function(e){e.label=T.instant(e.labelKey)}))})),d.helpInfo=E.trustAsHtml(Object(i.decodeHTML)(T.instant(d.helpInfo))),d.title=Object(i.decodeHTML)(T.instant(d.title)),e.initTutorial()})),e.copyToClipboard=function(e){m.openCopyToClipboardModal(e)},e.goToAddRepo=function(){c.path("/repository/create").search({previous:"home"})},e.goToEditRepo=function(e){c.path("repository/edit/"+e.id).search({previous:"home",location:e.location})},e.getLocationFromUri=function(e){return h.getLocationFromUri(e)},e.$on("$locationChangeSuccess",(function(){e.showFooter=!0})),e.$on("repositoryIsSet",(function(){e.setRestricted(),C.clearClassHieararchyState()})),e.graphdbVersion=e.engineVersion=f.productVersion,e.workbenchVersion=f.Workbench,e.connectorsVersion=f.connectors,e.sesameVersion=f.sesame,e.select=function(t,n,r){$(".main-menu").hasClass("collapsed")?$(n.target).parents(".menu-element").children(".menu-element-root").hasClass("active")?(e.selected=t,e.clicked=!r):(!$(n.target).parents(".menu-element").hasClass("open")&&r?e.clicked=!0:e.clicked=!r,e.selected===t?e.selected=-1:e.selected=t):(!$(n.target).parents(".menu-element").hasClass("open")&&r?e.clicked=!0:e.clicked=!r,0!==$(n.target).parent(".menu-element").find(".sub-menu").length?($(n.target).parents(".menu-element").children(".menu-element-root").hasClass("active")?$(".sub-menu li.active").parents(".menu-element").children(".menu-element-root").removeClass("active"):$(".sub-menu li.active").parents(".menu-element").children(".menu-element-root").addClass("active"),e.selected===t?e.selected=-1:e.selected=t):(g((function(){$(n.target).parents(".menu-element").children(".menu-element-root").addClass("active")}),50),e.selected=t))},$("body").bind("click",(function(t){!$(t.target).parents(".main-menu").length&&$(".main-menu").hasClass("collapsed")&&(e.clicked=!1,e.selected=-1)})),e.resolveUrl=(e,t)=>a.DocumentationUrlResolver.getDocumentationUrl(e,t),e.isCurrentPath=function(e){return c.path()==="/"+e},e.isCurrentSubmenuChildPath=function(t){return 0!==t.children.length&&t.children.some((function(t){return e.isCurrentPath(t.href)}))},"/"===c.path()?e.selected=-1:(g((function(){const t=c.path().replace("/",""),n=$('a[href^="'+t+'"]');e.selected=n.closest(".menu-element").index()-1}),200),e.isCurrentPath(c.path())),e.popoverTemplate="js/angular/templates/repositorySize.html",e.securityEnabled=!0,e.isSecurityEnabled=function(){return n.isSecurityEnabled()},e.isFreeAccessEnabled=function(){return n.isFreeAccessEnabled()},e.hasExternalAuthUser=function(){return n.hasExternalAuthUser()},e.isDefaultAuthEnabled=function(){return n.isDefaultAuthEnabled()},e.isUserLoggedIn=function(){return e.userLoggedIn},e.hasActiveLocation=function(){return h.hasActiveLocation()},e.getActiveLocation=function(){return h.getActiveLocation()},e.isLoadingLocation=function(){return h.isLoadingLocation()},e.getRepositories=function(){return h.getRepositories()},e.getReadableRepositories=function(){return h.getReadableRepositories()},e.getWritableRepositories=function(){return h.getWritableRepositories()},e.getActiveRepository=function(){return h.getActiveRepository()},e.canWriteRepoInLocation=function(e){return n.canWriteRepo(e)},e.canWriteActiveRepo=function(e){const t=h.getActiveRepositoryObject();return!!t&&(n.canWriteRepo(t)&&("SYSTEM"!==t.id||!e))},e.getActiveRepositoryObject=function(){return h.getActiveRepositoryObject()},e.getActiveRepositoryShortLocation=function(){const e=h.getActiveRepositoryObject();if(e){const t=e.location;if(t)return"@"+F.shortenIri(t)}return""},e.isActiveRepoOntopType=function(){return h.isActiveRepoOntopType()},e.isActiveRepoFedXType=function(){return h.isActiveRepoFedXType()},e.isLicenseValid=function(){return p.isLicenseValid()},e.setAttrs=function(t){e.attrs=t},e.setRestricted=function(){e.attrs&&(e.isRestricted=e.attrs.hasOwnProperty("license")&&!p.isLicenseValid()||e.attrs.hasOwnProperty("write")&&e.isSecurityEnabled()&&!e.canWriteActiveRepo()||e.attrs.hasOwnProperty("ontop")&&e.isActiveRepoOntopType()||e.attrs.hasOwnProperty("fedx")&&e.isActiveRepoFedXType())},e.toHumanReadableType=function(e){switch(e){case"graphdb":return"Graphdb";case"system":return"System";case"ontop":return"Ontop";case"fedx":return"FedX";default:return"Unknown"}},e.setRepository=function(e){h.setRepository(e)},e.logout=function(){n.clearAuthentication(),u.success("Signed out"),n.freeAccess?(h.resetActiveRepository(),n.updateReturnUrl()):n.isSecurityEnabled()&&d.redirectToLogin()},e.showMainManuAndStatusBar=()=>n.isAuthenticated()||e.isSecurityEnabled()&&e.isFreeAccessEnabled();const B=()=>{setTimeout(()=>{I.location.reload()},0)};let H=void 0;const U=e=>{if(P.AUTH_STORAGE_NAME===e.key){const e=n.isAuthenticated();n.updateReturnUrl(),H!==e&&(H=e,H?(c.url(d.returnToUrl||"/"),R.reload(),B()):(d.redirectToLogin(),B()))}};function V(e){e?$(":root").addClass("menu-collapsed"):$(":root").removeClass("menu-collapsed")}function q(){$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),V(!0),$(".main-menu").addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".toggle-menu").hide()):$(window).width()>720&&"collapsedMenu"===C.get(A.MENU_STATE)?($(".container-fluid.main-container").addClass("expanded"),V(!0),$(".main-menu").addClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right")):($(".container-fluid.main-container").removeClass("expanded"),V(!1),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"))}window.addEventListener("storage",U),e.$on("$destroy",()=>{window.removeEventListener("storage",U),M(),e.checkMenu&&g.cancel(e.checkMenu)}),e.isAdmin=function(){return e.hasRole(r.UserRole.ROLE_ADMIN)},e.isUser=function(){return e.hasRole(r.UserRole.ROLE_USER)},e.hasRole=function(e){return!!angular.isUndefined(e)||n.hasRole(e)},e.hasPermission=function(){return d.hasPermission()},e.canReadRepo=function(e){return n.canReadRepo(e)},e.checkForWrite=function(e,t){return n.checkForWrite(e,t)},e.setPopoverRepo=function(t){e.popoverRepo=t},e.isRepoActive=function(e){return h.isRepoActive(e)},e.getRepositorySize=function(){e.repositorySize={},e.popoverRepo&&(e.repositorySize.loading=!0,w.getSize(e.popoverRepo).then((function(t){e.repositorySize=t.data})))},e.getDegradedReason=function(){return h.getDegradedReason()},e.canManageRepositories=function(){return n.hasRole(r.UserRole.ROLE_REPO_MANAGER)&&!h.getDegradedReason()},e.getSavedQueries=function(){S.getSavedQueries().success((function(t){e.sampleQueries=t})).error((function(e){const t=getError(e);u.error(t,T.instant("query.editor.get.saved.queries.error"))}))},e.goToSparqlEditor=function(e){c.path("/sparql").search({savedQueryName:e.name,owner:e.owner,execute:!0})},e.declineTutorial=function(){C.set(A.TUTORIAL_STATE,1),e.tutorialState=!1},e.showTutorial=function(){e.tutorialState=!0,C.remove(A.TUTORIAL_STATE)},e.initTutorial=function(){if(!e.tutorialState&&"/"!==c.path())return;e.tutorialInfo=[{title:T.instant("main.info.title.welcome.page"),info:"<p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page"))+"</p><p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page.guides"))+"</p><p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page.footer"))+"</p>"},{title:T.instant("main.info.title.create.repo.page"),info:Object(i.decodeHTML)(T.instant("main.info.create.repo.page",{link:'<a href="https://graphdb.ontotext.com/documentation/'+f.productShortVersion+'/configuring-a-repository.html" target="_blank">'}))},{title:T.instant("main.info.title.load.sample.dataset"),info:T.instant("main.info.load.sample.dataset")},{title:T.instant("main.info.title.run.sparql.query"),info:Object(i.decodeHTML)(T.instant("main.info.run.sparql.query"))},{title:T.instant("menu.rest.api.label"),info:Object(i.decodeHTML)(T.instant("main.info.rest.api"))}],e.activePage=0,$(".pages-wrapper .page-slide").css("opacity",100);const t=$(".main-container")[0].offsetWidth+200;g((function(){const n=$(".pages-wrapper .page-slide");n.css("left",t+"px"),$(n[e.activePage]).css("left","0px"),$($(".btn-toolbar.pull-right .btn-group .btn")[0]).focus()}),50)},e.getTutorialPageHtml=function(e){return E.trustAsHtml(e.info)},e.checkSubMenuPosition=function(e){0===e?$(".main-menu.collapsed .sub-menu").removeClass("align-bottom"):$(window).height()<735?$(".main-menu.collapsed .sub-menu").addClass("align-bottom"):$(".main-menu.collapsed .sub-menu").removeClass("align-bottom")},q(),$(window).resize((function(){angular.isDefined(e.menuState)?$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),V(!0),$(".main-menu").addClass("collapsed"),$(".toggle-menu").hide(),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right")):$(window).width()>720&&e.menuState?$(".toggle-menu").show():($(".container-fluid.main-container").removeClass("expanded"),V(!1),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left")):q(),e.tutorialState&&"/"===c.path()&&e.initTutorial(),$(window).height()<735?($(".sub-menu").addClass("align-bottom"),$(".main-menu.collapsed li:nth-child(2) .sub-menu").removeClass("align-bottom")):$(".sub-menu").removeClass("align-bottom")})),e.slideToPage=function(t){const n=$(".main-container")[0].offsetWidth,r=$(".pages-wrapper .page-slide");r.css("opacity","0").delay(200).css("left",n+"px"),e.activePage=t,$(r[e.activePage]).css("opacity","100").css("left","0px")},e.slideNext=function(){let t=++e.activePage;t>=e.tutorialInfo.length&&(t=0),e.slideToPage(t),$($(".btn-toolbar.pull-right .btn-group .btn")[e.activePage]).focus()},e.toggleNavigation=function(){const t=$(".main-menu"),n=$(".sub-menu li.active");if(t.hasClass("collapsed"))n.parents(".menu-element").hasClass("open")?n.parents(".menu-element").children(".menu-element-root").removeClass("active"):n.parents(".menu-element").children(".menu-element-root").addClass("active"),$(".container-fluid.main-container").removeClass("expanded"),V(!1),t.removeClass("collapsed"),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"),d.$broadcast("onToggleNavWidth",!1);else{n.parents(".menu-element").children(".menu-element-root").addClass("active");const r=$(".menu-element");r.hasClass("open")&&(r.removeClass("open"),e.clicked=!1,e.selected=-1),$(".container-fluid.main-container").addClass("expanded"),V(!0),t.addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".main-menu.collapsed .menu-element.clicked").removeClass("clicked"),d.$broadcast("onToggleNavWidth",!0)}},e.$on("onToggleNavWidth",(function(t,n){if(e.menuState=n,n?C.set(A.MENU_STATE,"collapsedMenu"):C.set(A.MENU_STATE,"expandedMenu"),e.tutorialState&&"/"===c.path()){const t=$(".pages-wrapper")[0].offsetWidth+200;g((function(){const n=$(".pages-wrapper .page-slide");n.css("left",t+"px"),$(n[e.activePage]).css("left","0px")}),50)}})),n.securityInitialized&&e.getSavedQueries(),e.$on("securityInit",(function(t,r,i,o){e.securityEnabled=r,e.userLoggedIn=i,!r||i||o?(k.when(n.getPrincipal()).then(t=>{e.principal=t,e.isIgnoreSharedQueries=t&&t.appSettings.IGNORE_SHARED_QUERIES}).then(()=>{setTimeout(()=>e.getSavedQueries(),500)}),p.checkLicenseStatus().then(()=>O.init())):"/login"!==c.path()&&d.redirectToLogin()})),e.isTrackingAllowed=function(){return O.isTrackingAllowed()},e.getProductType=function(){return p.productType()},e.isEnterprise=function(){return"enterprise"===e.getProductType()},e.isFreeEdition=function(){return"free"===e.getProductType()},e.checkEdition=function(t){return null==t||_.indexOf(t,e.getProductType())>=0},e.showLicense=function(){return p.showLicense()},e.getLicense=function(){return p.license()},e.isLicenseHardcoded=function(){return p.isLicenseHardcoded()},e.getProductTypeHuman=function(){return p.productTypeHuman()},e.getHumanReadableSeconds=function(e,t){const n=Math.floor(e/86400),r=Math.floor(e%86400/3600),i=Math.floor(e%3600/60);let o;o=t&&e<10?e<1?_.ceil(e%60,1):_.round(e%60,1):_.round(e%60,0);let s="";return n&&(s+=n+"d "),(n||r)&&(s+=r+"h "),(n||r||i)&&(s+=i+"m "),s+=o+"s",s.replace(/( 0[a-z])+$/,"")},e.getHumanReadableTimestamp=function(e){const t=Date.now(),n=(t-e)/1e3;if(n<60)return T.instant("timestamp.moments.ago");if(n<600)return T.instant("timestamp.minutes.ago");{const r=new Date(t),i=new Date(e);if(r.getYear()===i.getYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate())return y("date")(e,"'"+T.instant("timestamp.today.at")+"' HH:mm");if(n<86400)return y("date")(e,"'"+T.instant("timestamp.yesterday.at")+"' HH:mm")}return y("date")(e,"'"+T.instant("timestamp.on")+"' yyyy-MM-dd '"+T.instant("timestamp.at")+"' HH:mm")};const z=()=>{const e=h.getActiveRepository();e!==j.getSelectedRepositoryId()&&(j.setSelectedRepositoryId(e),(()=>{if(h.isActiveRepoFedXType()||!p.isLicenseValid())return j.setAutocompleteEnabled(!1),void C.set(A.AUTOCOMPLETE_ENABLED,!1);L.checkAutocompleteStatus().then(e=>{j.setAutocompleteEnabled(e),C.set(A.AUTOCOMPLETE_ENABLED,e)}).catch(()=>{u.error(T.instant("explore.error.autocomplete"))})})())};d.$on("repositoryIsSet",z),window.addEventListener("storage",e=>{"ls."+A.AUTOCOMPLETE_ENABLED===e.key?j.setAutocompleteEnabled("true"===e.newValue):"ls."+A.REPOSITORY_ID===e.key&&z()}),e.downloadGuidesFile=(e,t)=>{D.downloadGuidesFile(e,t).catch(e=>{u.error(T.instant("guide.step_plugin.download-guide-resource.download.message.failure",{resourceFile:t}))})}}function h(e,t,n){e.getRepositorySize=function(t){n.getSize(t).then((function(t){e.size=t.data}))}}function p(e,t,n,r){e.colors=[{name:"black",shade:"dark"},{name:"white",shade:"light"},{name:"red",shade:"dark"},{name:"blue",shade:"dark"},{name:"yellow",shade:"light"}],e.myColor=e.colors[2],e.specialValue={id:"12345",value:"green"},e.checkedItem={name:"black",shade:"dark"},e.toggleOn=!0,e.toggleSwitch=function(){e.toggleOn=!e.toggleOn},e.repositories=["Repo1","Repo2","Repo3"],e.formats=["JSON","JSON-LD","Turtle"],e.onopen=e.onclose=()=>angular.noop(),e.openInfoPanel=!1,e.showInfoPanel=function(){e.openInfoPanel=!0},e.closeInfoPanel=function(){e.openInfoPanel=!1},e.slideOpen=!1,e.toggleSlide=function(){e.slideOpen=!e.slideOpen},e.slider={value:10,minValue:10,maxValue:90,options:{floor:0,ceil:100,step:1}},e.openModal=function(){const e=r.openSimpleModal({title:"Confirm",message:"Lorem ipsum dolor sit amet.",warning:!0});e.result.then((function(){e.dismiss("cancel")}))},e.demoToast=function(e,t=!0){n[e]("Consectetur adipiscing elit. Sic transit gloria mundi.",t?"Lorem ipsum dolor sit amet":void 0,{timeOut:3e5,extendedTimeOut:3e5})},e.clearToasts=function(){n.clear()},e.clearRepo=function(){t.setRepository("")}}angular.module("graphdb.workbench.se.controllers",["graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.repositories","graphdb.framework.core.services.licenseService","graphdb.framework.core.services.trackingService","graphdb.framework.core.services.theme-service","ngCookies","ngFileUpload","graphdb.framework.core","graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.license.service","graphdb.framework.rest.autocomplete.service","graphdb.framework.rest.repositories.service","graphdb.framework.rest.sparql.service","graphdb.framework.rest.plugins.service","graphdb.framework.rest.monitoring.service","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.workbenchsettingsstorageservice","graphdb.framework.core.services.autocomplete","graphdb.framework.utils.uriutils","graphdb.framework.guides.directives","graphdb.framework.guides.services","pageslide-directive","graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories","rzSlider"]).controller("mainCtrl",c).controller("homeCtrl",u).controller("repositorySizeCtrl",h).controller("uxTestCtrl",p),u.$inject=["$scope","$rootScope","$http","$repositories","$jwtAuth","$licenseService","$translate","AutocompleteRestService","LicenseRestService","RepositoriesRestService","WorkbenchContextService","RDF4JRepositoriesService","toastr"],c.$inject=["$scope","$menuItems","$jwtAuth","$http","toastr","$location","$repositories","$licenseService","$rootScope","productInfo","$timeout","ModalService","$interval","$filter","LicenseRestService","RepositoriesRestService","MonitoringRestService","SparqlRestService","$sce","LocalStorageAdapter","LSKeys","$translate","UriUtils","$q","GuidesService","$route","$window","AuthTokenService","TrackingService","WorkbenchContextService","AutocompleteService"],h.$inject=["$scope","$http","RepositoriesRestService"],p.$inject=["$scope","$repositories","toastr","ModalService"]},59:function(e,t){angular.module("graphdb.framework.core.services.theme-service",[]).factory("ThemeService",r),r.$inject=["WorkbenchSettingsStorageService","$translate","toastr"];const n={name:null,label:null,variables:{"primary-color-hue":null,"primary-color-saturation":null,"primary-color-lightness":null,"secondary-color-hue":null,"secondary-color-saturation":null,"secondary-color-lightness":null,"tertiary-color-hue":null,"tertiary-color-saturation":null,"tertiary-color-lightness":null,"icon-on-primary-color":null,"gray-color":null,"gray-color-dark":null,"color-danger-dark":null,"color-success-dark":null,"color-warning-dark":null,"color-info-dark":null,"color-danger-light":null,"color-success-light":null,"color-warning-light":null,"color-info-light":null,"color-help-light":null,"logo-color":null,"logo-text-color":null,"logo-background-color":null}};function r(e,t,r){const i=()=>{const e=s();return{name:e.name,label:t.instant(e.label)||e.label}},o=e=>{const t=PluginRegistry.findPlugin("themes",t=>t.name===e);return t||("default-theme"!==e?s():void 0)},s=()=>o("default-theme"),a=e=>{const i=function e(t,n,r,i){return Object.keys(t).forEach(o=>{o in n?angular.isObject(t[o])&&e(t[o],n[o],r+o+".",i):i.push(r+o)}),i}(n,e,"",[]);return!i.length||(r.error(t.instant("security.workbench.settings.theme.validation.missing-fields")),console.error(`\n Color theme validation error. Missing definitions in plugin theme: ${i.join(", ")}.\n Check the developers guide how to create a valid color theme.`),!1)},l=e=>{function t(e,t,n){e[t]||(e[t]=n)}function n(e,n=!0){const r={};for(const[t,n]of Object.entries(e.variables))r["--"+t]=n;if("properties"in e)for(const[t,n]of Object.entries(e.properties))r[t]=n;if(n)for(const e of["primary","secondary","tertiary"])t(r,`--${e}-color-hsl`,`var(--${e}-color-hue), var(--${e}-color-saturation), var(--${e}-color-lightness)`),t(r,`--${e}-color`,`hsl(var(--${e}-color-hsl))`),t(r,`--${e}-color-light`,`hsl(var(--${e}-color-hue), var(--${e}-color-saturation), calc(var(--${e}-color-lightness)*1.2))`),t(r,`--${e}-color-dark`,`hsl(var(--${e}-color-hue), var(--${e}-color-saturation), calc(var(--${e}-color-lightness)*0.8))`);return i=r,Object.entries(i).map(e=>e[0]+": "+e[1]+";").join("\n");var i}const r=e.dark;return`\n :root {\n ${n(e)}\n }\n\n :root.dark {\n ${r?n(r,!1):""}\n }\n `};return{applyDarkThemeMode:()=>{if("dark"===e.getWorkbenchSettings().mode){document.querySelector(":root").classList.add("dark")}},toggleThemeMode:e=>{const t=document.querySelector(":root");"dark"===e?t.classList.add("dark"):t.classList.remove("dark")},getDefaultTheme:i,getThemeDefinition:()=>{const t=e.getThemeName();let n=PluginRegistry.findPlugin("themes",e=>e.name===t);return n||(n=s()),n},getTheme:()=>{let n;const r=(()=>{const t=e.getThemeName();return o(t)})();return n=r?{name:r.name,label:t.instant(r.label)||r.label}:i(),n},getThemes:()=>PluginRegistry.get("themes").filter(a).map(e=>({name:e.name,label:t.instant(e.label)||e.label})),applyTheme:e=>{const t=(e=>{const t=l(e),n=new CSSStyleSheet;return n.title=e.name,n.replaceSync(t),n})(o(e));document.adoptedStyleSheets=[t]}}}},6:function(e,t,n){"use strict";n.r(t),n.d(t,"UserType",(function(){return i})),n.d(t,"UserRole",(function(){return r})),n.d(t,"UserUtils",(function(){return o}));const r=Object.freeze({ROLE_ADMIN:"ROLE_ADMIN",ROLE_USER:"ROLE_USER",ROLE_REPO_MANAGER:"ROLE_REPO_MANAGER",ROLE_MONITORING:"ROLE_MONITORING"}),i=Object.freeze({ADMIN:"admin",USER:"user",REPO_MANAGER:"repoManager"}),o={getUserRoleName:function(e){switch(e){case i.USER:return"User";case i.REPO_MANAGER:return"Repository manager";case i.ADMIN:return"Administrator";default:return"Unknown"}}}},60:function(e,t){angular.module("graphdb.framework.rest.sparql.service",[]).factory("SparqlRestService",n),n.$inject=["$http"];function n(e){return{getSavedQueries:function(){return e.get("rest/sparql/saved-queries")},getSavedQuery:function(t,n){let r="";null!=n&&(r="&owner="+encodeURIComponent(n));return e.get(`rest/sparql/saved-queries?name=${encodeURIComponent(t)}${r}`)},addKnownPrefixes:function(t){return e.post("rest/sparql/add-known-prefixes",t)},editSavedQuery:function(t){return e.put("rest/sparql/saved-queries",t)},deleteSavedQuery:function(t){return e.delete("rest/sparql/saved-queries?name="+encodeURIComponent(t))},addNewSavedQuery:function(t){return e.post("rest/sparql/saved-queries",t)},getQueryResult:function(t,n,r){return e.get("repositories/"+t,{params:n,headers:{Accept:r}})}}}},61:function(e,t){angular.module("graphdb.framework.core.services.licenseService",[]).service("$licenseService",["$window","$document","LicenseRestService","$translate",function(e,t,n,r){let i=void 0,o=!1,s=!1,a=!1,l=void 0,u=void 0;const c=e=>{l=e.productType,"standard"===l?u="Standard":"enterprise"===l?u="Enterprise":"free"===l?u="Free":"graphdb"===l&&(u="GraphDB")};return{checkLicenseStatus:()=>(o=!0,n.getHardcodedLicense().then(e=>(s="true"===e.data,n.getLicenseInfo())).then(e=>{i=e.data}).catch(()=>{s=!0,i={message:r.instant("no.license.set.msg"),valid:!1}}).finally(()=>{c(i),a=!0,o=!1})),isLicenseValid:()=>i&&i.valid,license:()=>i,loadingLicense:()=>o,isLicenseHardcoded:()=>s,showLicense:()=>a,productType:()=>l,productTypeHuman:()=>u,isFreeLicense:()=>{const e=i&&i.typeOfUse.toLowerCase();return"free"===l||"this is an evaluation license"===e||"evaluation"===e}}}])},62:function(e,t,n){"use strict";n.r(t);n(63),n(64),n(65),n(66);var r=n(7);angular.module("graphdb.framework.core.services.trackingService",["graphdb.framework.core.services.cookieService","graphdb.framework.core.services.installationCookieService","graphdb.framework.core.services.googleAnalyticsCookieService","graphdb.framework.core.directives.cookie-consent"]).service("TrackingService",["$window","$jwtAuth","$translate","$licenseService","toastr","InstallationCookieService","GoogleAnalyticsCookieService",function(e,t,n,i,o,s,a){const l=()=>{const t=i.isFreeLicense(),n=!e.wbDevMode;return t&&n},u=()=>{l()?t.getPrincipal().then(e=>{const t=r.CookieConsent.fromJSON(e.appSettings.COOKIE_CONSENT);if(t.getPolicyAccepted()){if(t.getStatisticConsent()){const e=i.license().installationId||"";s.setIfAbsent(e)}else s.remove();t.getThirdPartyConsent()?a.setIfAbsent():a.remove()}else c()}).catch(e=>{const t=getError(e.data,e.status);o.error(t,n.instant("common.error"))}):c()},c=()=>{s.remove(),a.remove()};return{init:u,getCookieConsent:()=>t.getPrincipal().then(e=>e&&e.appSettings&&e.appSettings.COOKIE_CONSENT?r.CookieConsent.fromJSON(e.appSettings.COOKIE_CONSENT):new r.CookieConsent(void 0,!0,!0)),updateCookieConsent:e=>t.getPrincipal().then(n=>{const r=n.appSettings,i=n.username;return r.COOKIE_CONSENT=e.toJSON(),t.updateUserData({appSettings:r,username:i})}).finally(()=>u()),isTrackingAllowed:l}}])},63:function(e,t){angular.module("graphdb.framework.core.services.cookieService",[]).service("CookieService",["$document","$cookies",function(e,t){return{get:e=>t[e],set:(t,r,i={})=>{e[0].cookie=new n(t,r,i).build()},remove:t=>{e[0].cookie=new n(t,"",{expiration:-1}).build()},getAll:()=>{const e={};for(const[n,r]of Object.entries(t))e[n]=r;return e}}}]);class n{constructor(e,t,n={}){this.key=encodeURIComponent(e),this.value=encodeURIComponent(t),this.setOptions(n)}setOptions(e){const{expiration:t,path:n,domain:r,secure:i,httpOnly:o,sameSite:s}=e;return t&&this.setExpiration(t),this.setPath(n),r&&this.setDomain(r),i&&this.setSecure(),o&&this.setHttpOnly(),s&&this.setSameSite(s),this}setExpiration(e){const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),this.expires=t.toUTCString(),this}setPath(e){return this.path=e||"/",this}setDomain(e){return this.domain=e,this}setSecure(){return this.secure=!0,this}setHttpOnly(){return this.httpOnly=!0,this}setSameSite(e){return this.sameSite=e,this}build(){let e=`${this.key}=${this.value}`;return this.expires&&(e+="; expires="+this.expires),e+="; path="+this.path,this.domain&&(e+="; domain="+this.domain),this.secure&&(e+="; secure"),this.httpOnly&&(e+="; HttpOnly"),this.sameSite&&(e+="; SameSite="+this.sameSite),e}}},64:function(e,t){angular.module("graphdb.framework.core.services.installationCookieService",[]).service("InstallationCookieService",["CookieService",function(e){const t=()=>e.get("_wb"),n=t=>{const n=`WB1.${t}.${Date.now()}`;e.set("_wb",n,{expiration:400})};return{get:t,set:n,setIfAbsent:e=>{t()||n(e)},remove:()=>{e.remove("_wb")}}}])},65:function(e,t){angular.module("graphdb.framework.core.services.googleAnalyticsCookieService",[]).service("GoogleAnalyticsCookieService",["$window","$document","CookieService",function(e,t,n){const r=()=>{const e=t[0].getElementsByTagName("script");return Array.from(e).some(e=>e.src&&e.src.includes("googletagmanager"))},i=()=>{e.dataLayer&&(e.dataLayer.push=function(){return null});const n=t[0].getElementsByTagName("script"),r=/googletagmanager/i;for(let e=n.length-1;e>=0;e--)(n[e].src&&r.test(n[e].src)||r.test(n[e].text))&&n[e].parentNode.removeChild(n[e]);e.google_tag_manager&&delete e.google_tag_manager,window.google_tag_data&&delete e.google_tag_data},o=()=>{const e=n.getAll();for(const[t,r]of Object.entries(e))t.startsWith("_ga")&&n.remove(t)};return{setIfAbsent:()=>{if(!r()){const e=t[0].createElement("script");e.text="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; j.async=true; j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl; f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WBP6C6Z4');",t[0].getElementsByTagName("head")[0].appendChild(e)}},remove:()=>{r()&&i(),o()}}}])},66:function(e,t,n){"use strict";n.r(t);var r=n(30);function i(e,t,n,i,o,s){return{restrict:"E",templateUrl:"js/angular/core/templates/cookie-policy/cookie-consent.html",link:e=>{let n=void 0;e.showCookieConsent=!1,e.acceptConsent=()=>{s.updateCookieConsent(n.setPolicyAccepted(!0)).then(()=>e.showCookieConsent=!1)},e.showCookiePolicy=()=>{t.open({templateUrl:"js/angular/core/templates/cookie-policy/cookie-policy.html",controller:r.CookiePolicyModalController,backdrop:"static",keyboard:!1,windowClass:"cookie-policy-modal"})};const a=()=>{s.getCookieConsent().then(t=>{n=t,e.showCookieConsent=!t.getPolicyAccepted()}).catch(e=>{const t=getError(e.data,e.status);o.error(t,i.instant("common.error"))})},l=e.$on("securityInit",(t,n,r)=>{r?a():e.showCookieConsent=!1});e.$on("$destroy",()=>{l()}),a()}}}angular.module("graphdb.framework.core.directives.cookie-consent",[]).directive("cookieConsent",i),i.$inject=["$jwtAuth","$uibModal","$licenseService","$translate","toastr","TrackingService"]},67:function(e,t){function n(e,t){const n={theme:"default-theme",mode:"light"},r=()=>{let r=e.get(t.WORKBENCH_SETTINGS);return r||(r=n),r};return{getWorkbenchSettings:r,saveWorkbenchSettings:n=>{e.set(t.WORKBENCH_SETTINGS,n)},getThemeName:()=>{const e=r();if(e&&e.theme)return e.theme},saveTheme:n=>{const i=r();i.theme=n,e.set(t.WORKBENCH_SETTINGS,i)}}}angular.module("graphdb.framework.utils.workbenchsettingsstorageservice",[]).factory("WorkbenchSettingsStorageService",n),n.$inject=["LocalStorageAdapter","LSKeys"]},68:function(e,t,n){"use strict";n.r(t);n(26);function r(e,t,n){return{checkAutocompleteStatus:()=>e.checkAutocompleteStatus().then(e=>(n.set(t.AUTOCOMPLETE_ENABLED,e.data),e.data))}}angular.module("graphdb.framework.core.services.autocomplete",["graphdb.framework.rest.autocomplete.service"]).factory("AutocompleteService",r),r.$inject=["AutocompleteRestService","LSKeys","LocalStorageAdapter"]},69:function(e,t){function n(e){return{getGuides:()=>e.get("rest/guides"),downloadGuideResource:t=>e.get("rest/guides/download/"+t)}}angular.module("graphdb.framework.rest.guides.service",[]).factory("GuidesRestService",n),n.$inject=["$http"]},7:function(e,t,n){"use strict";n.r(t),n.d(t,"CookieConsent",(function(){return r})),n.d(t,"ConsentTypes",(function(){return i}));class r{constructor(e,t,n,r){this.policyAccepted=e,this.statistic=t,this.thirdParty=n,this.updatedAt=r}setPolicyAccepted(e){return this.policyAccepted=e,this.updateTimestamp(),this}setStatisticConsent(e){return this.statistic=e,this.updateTimestamp(),this}setThirdPartyConsent(e){return this.thirdParty=e,this.updateTimestamp(),this}updateTimestamp(){this.updatedAt=Date.now()}getPolicyAccepted(){return this.policyAccepted}getStatisticConsent(){return this.statistic}getThirdPartyConsent(){return this.thirdParty}toJSON(){return{policyAccepted:this.policyAccepted,statistic:this.statistic,thirdParty:this.thirdParty,updatedAt:this.updatedAt}}static fromJSON(e){return new r(e&&e.policyAccepted,e&&e.statistic,e&&e.thirdParty,e&&e.updatedAt)}}const i={STATISTIC:"statistic",THIRD_PARTY:"thirdParty"}},70:function(e,t){angular.module("graphdb.framework.guides.directives",[]).directive("guideSelector",(function(){return{}}))},71:function(e,t){
77
+ /**
78
+ * angular-cancel-on-navigate - AngularJS module that cancels HTTP requests on location change (navigation)
79
+ * @version v0.1.0
80
+ * @link https://github.com/AlbertBrand/angular-cancel-on-navigate
81
+ * @license MIT
82
+ *
83
+ * ONTO: This helps with keeping the angular ajax pool under control when a big repo is being initialized
84
+ * and an impatient user is clicking around the Workbench.
85
+ */
86
+ angular.module("angularCancelOnNavigateModule",[]).config(["$httpProvider",function(e){e.interceptors.push("HttpRequestTimeoutInterceptor")}]).run(["$rootScope","HttpPendingRequestsService",function(e,t){e.$on("$locationChangeSuccess",(function(e,n,r){const i=new URL(n),o=new URL(r);i.origin===o.origin&&i.pathname===o.pathname||t.cancelAll()}))}]),angular.module("angularCancelOnNavigateModule").service("HttpPendingRequestsService",["$q",function(e){const t=[];return{newTimeout:function(){const n=e.defer();return t.push(n),n.promise},cancelAll:function(){angular.forEach(t,(function(e){e.promise.isGloballyCancelled=!0,e.resolve()})),t.length=0}}}]),angular.module("angularCancelOnNavigateModule").factory("HttpRequestTimeoutInterceptor",["$q","HttpPendingRequestsService",function(e,t){return{request:function(e){const n=e||{};return void 0!==n.timeout||n.noCancelOnRouteChange||(n.timeout=t.newTimeout()),n},responseError:function(t){return t.config.timeout&&t.config.timeout.isGloballyCancelled?e.defer().promise:e.reject(t)}}}])},72:function(e,t,n){"use strict";n.r(t);n(23);var r=n(8);function i(e,t,n,i,o,s,a,l,u){return{templateUrl:"js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html",restrict:"AE",scope:{onOpen:"&"},link:function(t,n){t.showRdfSearchInput=!1,t.showInput=()=>{c().then(r=>{t.repositoryNamespaces=r,t.showRdfSearchInput=!0,n.find(".view-res-input").focus(),window.addEventListener("mousedown",o),t.onOpen(),e.$broadcast("rdfResourceSearchExpanded")}).catch(e=>{const t=getError(e);a.error(t,s.instant("error.getting.namespaces.for.repo"))})},t.onKeyDown=e=>{"Escape"===e.key&&t.hideInput()},t.hideInput=()=>{window.removeEventListener("mousedown",o),t.showRdfSearchInput=!1};const o=e=>{"search-box"===e.target.id||$(e.target).closest("#search-box").length||t.$apply(()=>t.hideInput())},c=()=>{const e=i.getActiveRepository();return e?u.getNamespaces(e):Promise.resolve(new r.NamespacesListModel)},h=[];h.push(l.onAutocompleteEnabledUpdated(e=>{t.isAutocompleteEnabled=e}));t.$on("$destroy",()=>{window.addEventListener("mousedown",o),h.forEach(e=>e())})}}}angular.module("graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).directive("rdfResourceSearch",i),i.$inject=["$rootScope","AutocompleteRestService","RDF4JRepositoriesRestService","$repositories","$licenseService","$translate","toastr","WorkbenchContextService","RDF4JRepositoriesService"]},73:function(e,t,n){"use strict";n.r(t);n(13),n(22);function r(e,t,n,r,i){return{templateUrl:"js/angular/core/directives/languageselector/templates/languageSelector.html",restrict:"E",link:function(o){const s=t.get(n.PREFERRED_LANG),a=navigator.languages;o.selectedLang={},o.languages=r.getAvailableLanguages(),e.fallbackLanguage(r.getDefaultLanguage()),o.changeLanguage=function(s){if(r.getLanguage()!==s.key){const a={locale:s.key,cancel:!1};i.emit("before-language-change",a,i=>{i&&i.cancel||function(i){o.selectedLang=i,e.use(i.key),t.set(n.PREFERRED_LANG,i.key),r.setLanguage(o.selectedLang.key),o.$broadcast("language-changed",{locale:i.key})}(s)})}},o.getLanguageTooltip=function(t){return t&&o.selectedLang?o.selectedLang.key!==t.key?e.instant("change.language.tooltip",{},void 0,t.key)+" "+t.name:e.instant("current.language.tooltip",{},void 0,t.key):""},new Promise(e=>{if(s)o.selectedLang=o.languages.find(e=>e.key===s);else if(a)for(const e of a)if(o.selectedLang=o.languages.find(t=>t.key===e),o.selectedLang)break;setTimeout(()=>{e(!0)})}).then((function(){o.selectedLang||(o.selectedLang=o.languages.find(e=>e.key===r.getDefaultLanguage())),e.use(o.selectedLang.key),r.setLanguage(o.selectedLang.key)}))}}}angular.module("graphdb.framework.core.directives.languageselector.languageselector",["graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.event-emitter-service"]).directive("languageSelector",r),r.$inject=["$translate","LocalStorageAdapter","LSKeys","$languageService","EventEmitterService"]},74:function(e,t){function n(e,t){return{template:'\n <style>\n .copy-btn {\n line-height: 0.75;\n }\n </style>\n <button class="btn btn-link btn-sm copy-btn" gdb-tooltip="{{tooltipText | translate}}" ng-click="copyToClipboard()"><i class="fa fa-clone"></i></button>\n ',restrict:"E",scope:{tooltipText:"@",textToCopy:"@"},link:function(n,r){n.copyToClipboard=function(){const i=n.textToCopy?n.textToCopy:r.parent().find(".copyable").text();if(navigator.clipboard)navigator.clipboard.writeText(i).then(()=>{t.success(e.instant("import.help.messages.copied_to_clipboard"))}).catch(e=>{console.error("Could not copy text: ",e)});else{const n=document.createElement("textarea");n.value=i,document.body.appendChild(n),n.select();try{document.execCommand("copy")?t.success(e.instant("import.help.messages.copied_to_clipboard")):console.error("Unable to copy text")}catch(e){console.error("Could not copy text: ",e)}finally{document.body.removeChild(n)}}}}}}angular.module("graphdb.framework.core.directives.copytoclipboard.copytoclipboard",[]).directive("copyToClipboard",n),n.$inject=["$translate","toastr"]},75:function(e,t,n){"use strict";n.r(t);var r=n(0);function i(e,t){return{restrict:"A",scope:{gdbTooltip:"@",fixedPosition:"=",titleClass:"@",showTrigger:"=",hideTrigger:"="},link:function(n,i,o){let s="mouseenter",a="mouseleave";o.showTrigger&&(s=o.showTrigger),o.hideTrigger&&(a=o.hideTrigger),n.createTooltip=function(e){o.gdbTooltip&&(n.tooltipElement=angular.element("<div>").addClass("angular-tooltip").addClass(n.titleClass),angular.element(document).find("body").append(n.tooltipElement),n.updateTooltip(o.gdbTooltip),n.tooltipElement.addClass("angular-tooltip-fade-in"))},n.updateTooltip=function(o){n.tooltipElement.html(Object(r.decodeHTML)(o)),t(n.tooltipElement.contents())(n),function e(t={}){const r=n.calculatePosition(n.tooltipElement,n.getDirection());n.tooltipElement.addClass("angular-tooltip-"+r.direction).css(r),t.left===r.left&&t.top===r.top||e(r)}(),e((function(){i.removeAttr("ng-attr-title"),i.removeAttr("title")}))},n.$watch("gdb-tooltip",(function(e){n.tooltipElement&&n.updateTooltip(e)})),n.removeTooltip=function(){angular.element(document.querySelectorAll(".angular-tooltip")).remove()},n.getDirection=function(){return i.attr("tooltip-placement")||"top"},n.calculatePosition=function(e,t){const r=e[0].getBoundingClientRect(),o=i[0].getBoundingClientRect(),s=window.scrollX||document.documentElement.scrollLeft,a=window.scrollY||document.documentElement.scrollTop,l={};let u=null;return n.stringStartsWith(t,"left")?l.left=o.left-r.width-6+s:n.stringStartsWith(t,"right")?l.left=o.left+o.width+6+s:n.stringContains(t,"left")?l.left=o.left-r.width+12+s:n.stringContains(t,"right")?l.left=o.left+o.width-12+s:l.left=o.left+o.width/2-r.width/2+s,n.stringStartsWith(t,"top")?l.top=o.top-r.height-6+a:n.stringStartsWith(t,"bottom")?l.top=o.top+o.height+6+a:n.stringContains(t,"top")?l.top=o.top-r.height+12+a:n.stringContains(t,"bottom")?l.top=o.top+o.height-12+a:l.top=o.top+o.height/2-r.height/2+a,n.fixedPosition&&(l.left<s?u=t.replace("left","right"):l.left+r.width>window.innerWidth+s&&(u=t.replace("right","left")),l.top<a?u=t.replace("top","bottom"):l.top+r.height>window.innerHeight+a&&(u=t.replace("bottom","top")),u)?n.calculatePosition(e,u):(l.left+="px",l.top+="px",l.direction=t,l)},n.stringStartsWith=function(e,t){return e.substr(0,t.length)===t},n.stringContains=function(e,t){return-1!==e.indexOf(t)},o.gdbTooltip?(i.on(s,n.createTooltip),i.on(a,n.removeTooltip)):(i.off(s,n.createTooltip),i.off(a,n.removeTooltip)),i.on("destroy",n.removeTooltip),n.$on("$destroy",n.removeTooltip)}}}angular.module("graphdb.framework.core.directives.angular-tooltips",[]).directive("gdbTooltip",i),i.$inject=["$timeout","$compile"]},76:function(e,t){angular.module("graphdb.framework.core.directives.uppercased",[]).directive("uppercased",(function(){return{require:"ngModel",link:function(e,t,n,r){r.$parsers.push((function(e){return e?e.toUpperCase():""})),t.css("text-transform","uppercase")}}}))},77:function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(4),o=n(3),s=n(38);function a(e,t,n,a){return{restrict:"E",templateUrl:"js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html",link:function(u){u.OPERATION_STATUS=i.OPERATION_STATUS,u.OPERATION_GROUP_TYPE=r.OPERATION_GROUP_TYPE,u.OPERATION_TYPE=o.OPERATION_TYPE,u.operationsSummary=void 0,u.activeOperations=void 0;let c=void 0,h=!1,p=0;const d=s.SequenceGeneratorUtil.getFibonacciSequenceGenerator(),f=e=>{if(u.activeOperations.operations)return u.activeOperations.operations.reduce((t,n)=>e!==n.operationGroup||r.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===n.operationGroup||r.OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION===n.operationGroup?t:r.OPERATION_GROUP_TYPE.QUERIES_OPERATION===n.operationGroup||r.OPERATION_GROUP_TYPE.IMPORT_OPERATION===n.operationGroup?t+n.runningOperationCount:t+1,0)},g=e=>u.activeOperations.operations.reduce((t,n)=>e!==n.operationGroup?t:i.OPERATION_STATUS_SORT_ORDER.getOrder(n.status)>i.OPERATION_STATUS_SORT_ORDER.getOrder(t)?n.status:t,i.OPERATION_STATUS.INFORMATION),m=e=>{if(angular.equals(u.activeOperations,e))return;u.activeOperations=e,u.activeOperations.operations.sort((e,t)=>o.OPERATION_TYPE_SORT_ORDER[e.type]-o.OPERATION_TYPE_SORT_ORDER[t.type]);const t=[],n=[];u.activeOperations.operations.forEach(e=>{const r=e.operationGroup;n.includes(r)||(n.push(r),t.push((e=>{const t=f(e);return new l(e,t,g(e))})(r)))}),u.operationsSummary=t},v=()=>{if(!a.isAuthenticated()||h)return void(u.activeOperations=void 0);if(p>0)return void p--;const e=t.getActiveRepository();e&&n.monitorActiveOperations(e).then(e=>{m(e),d.reset(),p=0}).catch(()=>p=d.next()).finally(()=>h=!1)};u.$on("$destroy",()=>{c&&e.cancel(c)}),v(),c=e(()=>v(),2e3)}}}angular.module("graphdb.framework.core.directives.operationsstatusesmonitor",[]).directive("operationsStatusesMonitor",a),a.$inject=["$interval","$repositories","MonitoringRestService","$jwtAuth"];class l{constructor(e,t,n){this.type=e,this.runningOperations=t,this.status=n}}},78:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(39);function o(e,t,n,o,s,a,l,u,c){return{restrict:"E",require:"ngModel",scope:{ngModel:"=",namespaces:"=",isAutocompleteEnabled:"=",placeholder:"@",styleClass:"@",multiline:"@",defaultresults:"=",onModelChange:"&",keypress:"&",required:"=?",validateUri:"=?",validateSimpleRdfStarValue:"=?",validateLiteralValue:"=?",validateDefaultValue:"=?"},templateUrl:"js/angular/core/directives/autocomplete/templates/autocomplete.html",link:function(e,l,h,p){let d,f,g=l.find(".autocomplete-input");e.searchInput=e.ngModel||"",e.placeholder=h.$attr.placeholder||u.instant("search.resources.msg"),l.autoCompleteStatus=void 0,l.autoCompleteWarning=!1,e.onBlur=()=>{setTimeout(()=>{e.autoCompleteUriResults=[]},0)},e.onChange=()=>(e.searchInput=v(e.searchInput),l.autoCompleteStatus?E(e.searchInput):Promise.resolve()),e.onKeyDown=n=>{if("Enter"===n.key)n.preventDefault(),S()?x():e.keypress({$event:n});else if(e.searchInput&&e.searchInput.length>0&&!l.autoCompleteWarning&&!l.autoCompleteStatus){l.autoCompleteWarning=!0;const e=Object(r.decodeHTML)(u.instant("explore.autocomplete.warning.msg"));t.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}l.autoCompleteStatus&&!angular.isUndefined(e.autoCompleteUriResults)&&("ArrowDown"===n.key&&e.activeSearchElm<e.autoCompleteUriResults.length-1&&(e.activeSearchElm++,C()),"ArrowUp"===n.key&&e.activeSearchElm>0&&(n.preventDefault(),e.activeSearchElm--,A()),"Escape"===n.key&&(e.autoCompleteUriResults=[]),e.searchInput||w())},e.getResultItemHtml=e=>a.trustAsHtml(e.description),e.selectResource=t=>{"prefix"===t.type?(e.searchInput=v(t.value+":"),g.focus(),e.onChange()):"default"===t.type?(e.searchInput=t.value,e.autoCompleteUriResults=[],g.focus()):t&&"string"==typeof t&&m(t)?(e.searchInput=t,e.autoCompleteUriResults=[]):(e.searchInput="<"+t.value+">",e.autoCompleteUriResults=[])},e.setActiveItemIndex=t=>{l.autoCompleteStatus&&(e.activeSearchElm=t)},e.positionAutocompleteWrapper=function(e){c(()=>{const t=l.find(".autocomplete-results-wrapper"),n=t.get(0);if(e)return n.style.left="auto",void(n.style.right="auto");if(n&&"auto"!==n.style.right)return;const r=t.parent().find(".autocomplete-select")[0].getBoundingClientRect(),i=document.body.getElementsByClassName("edit-rule-row")[0].getBoundingClientRect(),o=document.body.getBoundingClientRect(),s=n.getBoundingClientRect();if(n&&s.right>=o.width){const e=i.right-r.right;n.style.left="auto",n.style.right=`-${e}px`}else n&&s.right<o.width&&(n.style.right="auto",n.style.left="0px")},0)},e.$watch("autoCompleteUriResults",(function(t){const n=!t||t&&0===t.length;e.positionAutocompleteWrapper(n)})),p.$validators.custom=function(t){return!(e.validateUri||e.validateLiteralValue||e.validateDefaultValue)||!t||(e.validateUri&&m(t)||e.validateSimpleRdfStarValue&&y(t)||e.validateLiteralValue&&$(t)||e.validateDefaultValue&&b(t)?(l.find(".autocomplete-editable").removeClass("invalid"),!0):(l.find(".autocomplete-editable").addClass("invalid"),!1))};const m=e=>{const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i},v=t=>{if(!t)return;if(!/^<?(http|urn).*>?/.test(t)){const r=t.split(":"),i=r[0],o=r[1];if(!angular.isUndefined(o)){const t=n.getNamespaceUriForPrefix(e.namespaces,i);if(d=t!==d?t:d,d)return g.val(d),"<"+d+o+">"}}return t},y=e=>/^<<.*>>$/.test(e),b=t=>e.defaultresults.some(e=>e.value===t),$=e=>/^"([^"\\]*(?:\\.[^"\\]*)*)"(@[a-zA-Z]+(-[a-zA-Z0-9]+)*)?(\^\^[^\s]+)?$/.test(e),w=()=>{e.searchInput="",e.selectedElementIndex=-1,e.autoCompleteUriResults=[]},x=()=>{if(S())if("prefix"===e.autoCompleteUriResults[e.activeSearchElm].type)e.searchInput=v(e.autoCompleteUriResults[e.activeSearchElm].value+":"),e.autoCompleteUriResults=[];else{const t=e.autoCompleteUriResults[e.activeSearchElm];e.selectResource({type:t.type,value:t.value,description:t.description})}else{const n=e.searchInput;m(n)?e.selectResource(n):t.error(u.instant("invalid.uri.msg"))}},S=()=>l.autoCompleteStatus&&e.autoCompleteUriResults&&e.autoCompleteUriResults.length>0,E=t=>{if(!t)return;let n=t.replace(d,d+";");return l.autoCompleteStatus?(";"===n.charAt(0)&&(n=n.slice(1)),n=(e=>{let t=e;if(-1===t.indexOf(";")&&m(t)){t=t.replace(/<|>/g,"");const e=/[^/^#]*$/.exec(t)[0];return t.split(e)[0]+";"+e}return t})(n),f&&f.resolve(),f=s.defer(),o.getAutocompleteSuggestions(n,f.promise).then(i.mapUriAsNtripleAutocompleteResponse).then(t=>{f=null,e.defaultresults&&e.defaultresults.length>0?e.autoCompleteUriResults=F(e.defaultresults,e.searchInput,t):e.autoCompleteUriResults=t,e.activeSearchElm=0})):Promise.resolve()},C=()=>{const e=l.find(".autocomplete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-6-e.scrollTop()>90&&e.scrollTop(n[0].offsetTop-t.height()-6-90)},A=()=>{const e=l.find(".autocomplete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()+6<=e.scrollTop()-34&&e.scrollTop(e.scrollTop()-34)},T=[];T.push(e.$watch("isAutocompleteEnabled",()=>{l.autoCompleteStatus=!!e.isAutocompleteEnabled,""===e.searchInput||e.ngModel||e.onChange()})),T.push(e.$watch("searchInput",t=>{e.autoexpand&&e.adjustTextareaHeight();e.ngModel=t,e.onModelChange()})),T.push(e.$on("$destroy",()=>{T.forEach(e=>e())})),e.isMultiline="true"===h.multiline,e.isMultiline&&(g=l.find(".autocomplete-textarea"));e.initialRows=h.initialRows||1,e.autoexpand=h.autoexpand||!1,e.adjustTextareaHeight=()=>{e.isMultiline&&c(()=>{const e=g[0];e.style.overflow="hidden",e.style.height="0px",e.style.height=e.scrollHeight+"px"},0)};const F=(e,t,n)=>e.filter(e=>e&&e.value.toLowerCase().includes(t.toLowerCase())).map(e=>({type:e.type,value:e.value,description:k(u.instant(e.description),t)})).concat(n),k=(e,t)=>{const n=e.toLowerCase().indexOf(t.toLowerCase());if(-1===n)return e;const r=n+t.length;return e.substring(0,n)+"<b>"+e.substring(n,r)+"</b>"+e.substring(r)}}}}angular.module("graphdb.framework.core.directives.autocomplete",[]).directive("autocomplete",o),o.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$q","$sce","$repositories","$translate","$timeout"]},79:function(e,t){function n(){return{restrict:"A",scope:{propIndeterminate:"="},link:(e,t,n)=>{const r=[];r.push(e.$watch("propIndeterminate",()=>{t.prop("indeterminate",!!e.propIndeterminate)}));e.$on("$destroy",()=>{r.forEach(e=>e())})}}}angular.module("graphdb.framework.core.directives.prop-indeterminate",[]).directive("propIndeterminate",n),n.$inject=[]},8:function(e,t,n){"use strict";n.r(t),n.d(t,"NamespacesListModel",(function(){return r}));class r{constructor(e=[]){this._namespaces=e,this.sort()}get namespaces(){return this._namespaces}sort(){this._namespaces.sort((e,t)=>{const n=e.prefix.toUpperCase(),r=t.prefix.toUpperCase();return n<r?-1:n>r?1:0})}}},80:function(e,t){angular.module("graphdb.framework.core.directives.page-info-tooltip",[]).directive("pageInfoTooltip",(function(){return{restrict:"E",templateUrl:"js/angular/templates/pageInfoTooltip.html",link:function(e,t){e.isPopoverOpen=!1;const n=()=>{e.$apply(()=>{e.isPopoverOpen=!0})},r=()=>{e.$apply(()=>{e.isPopoverOpen=!1})};t.on("mouseenter",n),t.on("mouseleave",r),e.$on("$destroy",(function(){t.off("mouseenter",n),t.off("mouseleave",r)}))}}}))},81:function(e,t){angular.module("graphdb.framework.core.services.language-service",[]).provider("$languageService",(function(){const e={defaultLanguage:"en",availableLanguages:[{key:"en",name:"English"},{key:"fr",name:"Français"}]}||{defaultLanguage:"en",availableLanguages:[{key:"en",name:"English"}]};let t=e.defaultLanguage;this.getDefaultLanguage=function(){return e.defaultLanguage},this.$get=function(){return{setLanguage:e=>{t=e},getLanguage:()=>t,getDefaultLanguage:()=>e.defaultLanguage,getAvailableLanguages:()=>e.availableLanguages,getSupportedLanguages:()=>e.availableLanguages.map(e=>e.key)}}}))},82:function(e,t){var n;
87
+ /*! 12.2.13 */
88
+ !window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=(n=window.XMLHttpRequest.prototype.setRequestHeader,function(e,t){if("__setXHR_"===e){var r=t(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}));var r=angular.module("ngFileUpload",[]);r.version="12.2.13",r.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function i(r){function i(e){u.notify&&u.notify(e),c.progressFunc&&n((function(){c.progressFunc(e)}))}function o(e){return null!=r._start&&a?{loaded:e.loaded+r._start,total:r._file&&r._file.size||e.total,type:e.type,config:r,lengthComputable:!0,target:e.target}:e}function l(){e(r).then((function(e){if(a&&r._chunkSize&&!r._finished&&r._file){var t=r._file&&r._file.size||0;i({loaded:Math.min(r._end,t),total:t,config:r,type:"progress"}),s.upload(r,!0)}else r._finished&&delete r._finished,u.resolve(e)}),(function(e){u.reject(e)}),(function(e){u.notify(e)}))}r.method=r.method||"POST",r.headers=r.headers||{};var u=r._deferred=r._deferred||t.defer(),c=u.promise;return r.disableProgress||(r.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(r.__XHR=e,r.xhrFn&&r.xhrFn(e),e.upload.addEventListener("progress",(function(e){e.config=r,i(o(e))}),!1),e.upload.addEventListener("load",(function(e){e.lengthComputable&&(e.config=r,i(o(e)))}),!1))}}),a?r._chunkSize&&r._end&&!r._finished?(r._start=r._end,r._end+=r._chunkSize,l()):r.resumeSizeUrl?e.get(r.resumeSizeUrl).then((function(e){r._start=r.resumeSizeResponseReader?r.resumeSizeResponseReader(e.data):parseInt((null==e.data.size?e.data:e.data.size).toString()),r._chunkSize&&(r._end=r._start+r._chunkSize),l()}),(function(e){throw e})):r.resumeSize?r.resumeSize().then((function(e){r._start=e,r._chunkSize&&(r._end=r._start+r._chunkSize),l()}),(function(e){throw e})):(r._chunkSize&&(r._start=0,r._end=r._start+r._chunkSize),l()):l(),c.success=function(e){return c.then((function(t){e(t.data,t.status,t.headers,r)})),c},c.error=function(e){return c.then(null,(function(t){e(t.data,t.status,t.headers,r)})),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,(function(t){e(t)})),c},c.abort=c.pause=function(){return r.__XHR&&n((function(){r.__XHR.abort()})),c},c.xhr=function(e){return r.xhrFn=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(r.xhrFn),c},s.promisesCount++,c.finally&&c.finally instanceof Function&&c.finally((function(){s.promisesCount--})),c}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var s=this;s.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var a=this.isResumeSupported();this.isUploadInProgress=function(){return s.promisesCount>0},this.rename=function(e,t){return e.ngfName=t,e},this.jsonBlob=function(e){null==e||angular.isString(e)||(e=JSON.stringify(e));var t=new window.Blob([e],{type:"application/json"});return t._ngfBlob=!0,t},this.json=function(e){return angular.toJson(e)},this.isFile=function(e){return null!=e&&(e instanceof window.Blob||e.flashId&&e.name&&e.size)},this.upload=function(e,t){function n(t,n){if(t._ngfBlob)return t;if(e._file=e._file||t,null!=e._start&&a){e._end&&e._end>=t.size&&(e._finished=!0,e._end=t.size);var r=t.slice(e._start,e._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,e._chunkSize&&(n.append("_chunkSize",e._chunkSize),n.append("_currentChunkSize",e._end-e._start),n.append("_chunkNumber",Math.floor(e._start/e._chunkSize)),n.append("_totalSize",e._file.size)),r}return t}function r(t,i,o){if(void 0!==i)if(angular.isDate(i)&&(i=i.toISOString()),angular.isString(i))t.append(o,i);else if(s.isFile(i)){var a=n(i,t),l=o.split(",");l[1]&&(a.ngfName=l[1].replace(/^\s+|\s+$/g,""),o=l[0]),e._fileKey=e._fileKey||o,t.append(o,a,a.ngfName||a.name)}else if(angular.isObject(i)){if(i.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+o;i.$$ngfCircularDetection=!0;try{for(var u in i)if(i.hasOwnProperty(u)&&"$$ngfCircularDetection"!==u){var c=null==e.objectKey?"[i]":e.objectKey;i.length&&parseInt(u)>-1&&(c=null==e.arrayKey?c:e.arrayKey),r(t,i[u],o+c.replace(/[ik]/g,u))}}finally{delete i.$$ngfCircularDetection}}else t.append(o,i)}return t||(e=o(e)),e._isDigested||(e._isDigested=!0,e._chunkSize=s.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push((function(t){var n,i=new window.FormData;for(n in t=t||e.fields||{},e.file&&(t.file=e.file),t)if(t.hasOwnProperty(n)){var o=t[n];e.formDataAppender?e.formDataAppender(i,n,o):r(i,o,n)}return i}))),i(e)},this.http=function(t){return(t=o(t)).transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=s.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,i(t)},this.translateScalars=function(e){if(angular.isString(e)){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e},this.urlToBlob=function(n){var r=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then((function(e){var t=new Uint8Array(e.data),i=e.headers("content-type")||"image/WebP",o=new window.Blob([t],{type:i}),s=n.match(/.*\/(.+?)(\?.*)?$/);s.length>1&&(o.name=s[1]),r.resolve(o)}),(function(e){r.reject(e)})),r.promise},this.setDefaults=function(e){this.defaults=e||{}},this.defaults={},this.version=r.version}]),r.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(e,t,n,r,i){function o(e,t,n){var i=[l.emptyPromise()];return angular.forEach(e,(function(r,o){0===r.type.indexOf("image/jpeg")&&l.attrGetter("ngfFixOrientation",t,n,{$file:r})&&i.push(l.happyPromise(l.applyExifRotation(r),r).then((function(t){e.splice(o,1,t)})))})),r.all(i)}function s(e,t,n,i){var o=l.attrGetter("ngfResize",t,n);if(!o||!l.isResizeSupported()||!e.length)return l.emptyPromise();if(o instanceof Function){var s=r.defer();return o(e).then((function(r){a(r,e,t,n,i).then((function(e){s.resolve(e)}),(function(e){s.reject(e)}))}),(function(e){s.reject(e)}))}return a(o,e,t,n,i)}function a(e,t,n,i,o){function s(r,s){if(0===r.type.indexOf("image")){if(e.pattern&&!l.validatePattern(r,e.pattern))return;e.resizeIf=function(e,t){return l.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})};var u=l.resize(r,e);a.push(u),u.then((function(e){t.splice(s,1,e)}),(function(e){r.$error="resize",(r.$errorMessages=r.$errorMessages||{}).resize=!0,r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name),o.$ngfValidations.push({name:"resize",valid:!1}),l.applyModelValidation(o,t)}))}}for(var a=[l.emptyPromise()],u=0;u<t.length;u++)s(t[u],u);return r.all(a)}var l=i;return l.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=l.defaults[t];return null==n||angular.isString(n)?n:JSON.stringify(n)},l.attrGetter=function(t,n,r,i){var o=this.getAttrWithDefaults(n,t);if(!r)return o;try{return i?e(o)(r,i):e(o)(r)}catch(e){if(t.search(/min|max|pattern/i))return o;throw e}},l.shouldUpdateOn=function(e,t,n){var r=l.attrGetter("ngfModelOptions",t,n);return!r||!r.updateOn||r.updateOn.split(" ").indexOf(e)>-1},l.emptyPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.resolve.apply(e,n)})),e.promise},l.rejectPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.reject.apply(e,n)})),e.promise},l.happyPromise=function(e,n){var i=r.defer();return e.then((function(e){i.resolve(e)}),(function(e){t((function(){throw e})),i.resolve(n)})),i.promise},l.updateModel=function(n,r,i,a,u,c,h){function p(o,s,u,h,p){r.$$ngfPrevValidFiles=o,r.$$ngfPrevInvalidFiles=s;var d=o&&o.length?o[0]:null,f=s&&s.length?s[0]:null;n&&(l.applyModelValidation(n,o),n.$setViewValue(p?d:o)),a&&e(a)(i,{$files:o,$file:d,$newFiles:u,$duplicateFiles:h,$invalidFiles:s,$invalidFile:f,$event:c});var g=l.attrGetter("ngfModelInvalid",r);g&&t((function(){e(g).assign(i,p?f:s)})),t((function(){}))}function d(){function e(){t((function(){p($?g.concat(b):b,$?m.concat(y):y,u,v,w)}),S&&S.debounce?S.debounce.change||S.debounce:0)}var o=x?f:b;s(o,r,i,n).then((function(){x?l.validate(f,$?g.length:0,n,r,i).then((function(t){b=t.validsFiles,y=t.invalidsFiles,e()})):e()}),(function(){for(var t=0;t<o.length;t++){var n=o[t];if("resize"===n.$error){var r=b.indexOf(n);r>-1&&(b.splice(r,1),y.push(n)),e()}}}))}var f,g,m,v=[],y=[],b=[];g=r.$$ngfPrevValidFiles||[],m=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(g=function(e){return angular.isArray(e)?e:[e]}(n.$modelValue));var $=l.attrGetter("ngfKeep",r,i);f=(u||[]).slice(0),("distinct"===$||!0===l.attrGetter("ngfKeepDistinct",r,i))&&function(){function e(e,t){return e.name===t.name&&(e.$ngfOrigSize||e.size)===(t.$ngfOrigSize||t.size)&&e.type===t.type}function t(t){var n;for(n=0;n<g.length;n++)if(e(t,g[n]))return!0;for(n=0;n<m.length;n++)if(e(t,m[n]))return!0;return!1}if(u){f=[],v=[];for(var n=0;n<u.length;n++)t(u[n])?v.push(u[n]):f.push(u[n])}}();var w=!$&&!l.attrGetter("ngfMultiple",r,i)&&!l.attrGetter("multiple",r);if(!$||f.length){l.attrGetter("ngfBeforeModelChange",r,i,{$files:u,$file:u&&u.length?u[0]:null,$newFiles:f,$duplicateFiles:v,$event:c});var x=l.attrGetter("ngfValidateAfterResize",r,i),S=l.attrGetter("ngfModelOptions",r,i);l.validate(f,$?g.length:0,n,r,i).then((function(e){h?p(f,[],u,v,w):(S&&S.allowInvalid||x?b=f:(b=e.validFiles,y=e.invalidFiles),l.attrGetter("ngfFixOrientation",r,i)&&l.isExifSupported()?o(b,r,i).then((function(){d()})):d())}))}},l}]),r.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,r){function i(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=r.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return-1===e.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(e)}function o(e,t,n,r,o,a,l,u){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function h(){return g("ngfChange")||g("ngfSelect")}function p(t){if(u.shouldUpdateOn("change",n,e)){var i=t.__files_||t.target&&t.target.files,o=[];if(!i)return;for(var s=0;s<i.length;s++)o.push(i[s]);u.updateModel(r,n,e,h(),o.length?o:null,t)}}function d(e,r){function i(t){e.attr("id","ngf-"+t),r.attr("id","ngf-label-"+t)}for(var o=0;o<t[0].attributes.length;o++){var s=t[0].attributes[o];"type"!==s.name&&"class"!==s.name&&"style"!==s.name&&("id"===s.name?(i(s.value),m.push(n.$observe("id",i))):e.attr(s.name,s.value||"required"!==s.name&&"multiple"!==s.name?s.value:s.name))}}function f(t){u.shouldUpdateOn("click",n,e)&&b.val()&&(b.val(null),u.updateModel(r,n,e,h(),null,t,!0))}var g=function(e,t){return u.attrGetter(e,n,t)};u.registerModelChangeValidator(r,n,e);var m=[];g("ngfMultiple")&&m.push(e.$watch(g("ngfMultiple"),(function(){b.attr("multiple",g("ngfMultiple",e))}))),g("ngfCapture")&&m.push(e.$watch(g("ngfCapture"),(function(){b.attr("capture",g("ngfCapture",e))}))),g("ngfAccept")&&m.push(e.$watch(g("ngfAccept"),(function(){b.attr("accept",g("ngfAccept",e))}))),m.push(n.$observe("accept",(function(){b.attr("accept",g("accept"))})));var v=0,y=0,b=t;c()||(b=function(){if(c())return t;var e=angular.element('<input type="file">'),n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),d(e,n),s.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),b.bind("change",p),c()?t.bind("click",f):t.bind("click touchstart touchend",(function(n){if(t.attr("disabled"))return!1;if(!g("ngfSelectDisabled",e)){var r=function(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if(t){if("touchstart"===e.type)return y=t[0].clientX,v=t[0].clientY,!0;if("touchend"===e.type){var n=t[0].clientX,r=t[0].clientY;if(Math.abs(n-y)>20||Math.abs(r-v)>20)return e.stopPropagation(),e.preventDefault(),!1}return!0}}(n);if(null!=r)return r;f(n);try{c()||document.body.contains(b[0])||(s.push({el:t,ref:b.parent()}),document.body.appendChild(b.parent()[0]),b.bind("change",p))}catch(e){}return i(navigator.userAgent)?setTimeout((function(){b[0].click()}),0):b[0].click(),!1}})),-1!==navigator.appVersion.indexOf("MSIE 10")&&b.bind("click",(function e(t){if(b&&!b.attr("__ngf_ie10_Fix_")){if(!b[0].parentNode)return void(b=null);t.preventDefault(),t.stopPropagation(),b.unbind("click");var n=b.clone();return b.replaceWith(n),(b=n).attr("__ngf_ie10_Fix_","true"),b.bind("change",p),b.bind("click",e),b[0].click(),!1}b.removeAttr("__ngf_ie10_Fix_")})),r&&r.$formatters.push((function(e){return(null==e||0===e.length)&&b.val()&&b.val(null),e})),e.$on("$destroy",(function(){c()||b.parent().remove(),angular.forEach(m,(function(e){e()}))})),a((function(){for(var e=0;e<s.length;e++){var t=s[e];document.body.contains(t.el[0])||(s.splice(e,1),t.ref.remove())}})),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,b,p)}var s=[];return{restrict:"AEC",require:"?ngModel",link:function(e,n,i,s){o(e,n,i,s,0,t,0,r)}}}]),function(){function e(e,t,n,r,i,o,s,a){function l(o){var s=e.attrGetter("ngfNoObjectUrl",i,n);e.dataUrl(o,s).finally((function(){t((function(){var e=(s?o.$ngfDataUrl:o.$ngfBlobUrl)||o.$ngfDataUrl;a?r.css("background-image","url('"+(e||"")+"')"):r.attr("src",e),e?r.removeClass("ng-hide"):r.addClass("ng-hide")}))}))}t((function(){var t=n.$watch(i[o],(function(t){var u=s;if("ngfThumbnail"===o&&(u||(u={width:r[0].naturalWidth||r[0].clientWidth,height:r[0].naturalHeight||r[0].clientHeight}),0===u.width&&window.getComputedStyle)){var c=getComputedStyle(r[0]);c.width&&c.width.indexOf("px")>-1&&c.height&&c.height.indexOf("px")>-1&&(u={width:parseInt(c.width.slice(0,-2)),height:parseInt(c.height.slice(0,-2))})}return angular.isString(t)?(r.removeClass("ng-hide"),a?r.css("background-image","url('"+t+"')"):r.attr("src",t)):void(!t||!t.type||0!==t.type.search(function(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}(r[0]))||a&&0!==t.type.indexOf("image")?r.addClass("ng-hide"):u&&e.isResizeSupported()?(u.resizeIf=function(r,o){return e.attrGetter("ngfResizeIf",i,n,{$width:r,$height:o,$file:t})},e.resize(t,u).then((function(e){l(e)}),(function(e){throw e}))):l(t))}));n.$on("$destroy",(function(){t()}))}))}r.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var r=e;return r.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),i=0;return angular.forEach(e,(function(n){r.dataUrl(n,!0).finally((function(){if(++i===e.length){var n=[];angular.forEach(e,(function(e){n.push(e.$ngfDataUrl)})),t.resolve(n,e)}}))})),t.promise}return r.dataUrl(e,!0)},r.dataUrl=function(e,i){if(!e)return r.emptyPromise(e,e);if(i&&null!=e.$ngfDataUrl||!i&&null!=e.$ngfBlobUrl)return r.emptyPromise(i?e.$ngfDataUrl:e.$ngfBlobUrl,e);var o=i?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(o)return o;var s=n.defer();return t((function(){if(window.FileReader&&e&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||e.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!i){var o;try{o=n.createObjectURL(e)}catch(n){return void t((function(){e.$ngfBlobUrl="",s.reject()}))}t((function(){if(e.$ngfBlobUrl=o,o){s.resolve(o,e),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:o,size:e.size}),r.blobUrlsTotalSize+=e.size||0;for(var t=r.defaults.blobUrlsMaxMemory||268435456,i=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>t||r.blobUrls.length>i)&&r.blobUrls.length>1;){var a=r.blobUrls.splice(0,1)[0];n.revokeObjectURL(a.url),r.blobUrlsTotalSize-=a.size}}}))}else{var a=new FileReader;a.onload=function(n){t((function(){e.$ngfDataUrl=n.target.result,s.resolve(n.target.result,e),t((function(){delete e.$ngfDataUrl}),1e3)}))},a.onerror=function(){t((function(){e.$ngfDataUrl="",s.reject()}))},a.readAsDataURL(e)}}else t((function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",s.reject()}))})),(o=i?e.$$ngfDataUrlPromise=s.promise:e.$$ngfBlobUrlPromise=s.promise).finally((function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]})),o},r}]),r.directive("ngfSrc",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfSrc",t.attrGetter("ngfResize",o,r),!1)}}}]),r.directive("ngfBackground",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfBackground",t.attrGetter("ngfResize",o,r),!0)}}}]),r.directive("ngfThumbnail",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){var s=t.attrGetter("ngfSize",o,r);e(t,n,r,i,o,"ngfThumbnail",s,t.attrGetter("ngfAsBackground",o,r))}}}]),r.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]),r.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,r,i){if(angular.isString(n))return t.trustAsResourceUrl(n);var o=n&&((r?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!o?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,r)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&o?i?t.trustAsResourceUrl(o):o:n)||"")}}])}(),r.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){var r=e;return r.validatePattern=function(e,t){if(!t)return!0;var n=function e(t){var n="",r=[];if(t.length>2&&"/"===t[0]&&"/"===t[t.length-1])n=t.substring(1,t.length-1);else{var i=t.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var s=e(i[o]);s.regexp?(n+="("+s.regexp+")",o<i.length-1&&(n+="|")):r=r.concat(s.excludes)}else 0===t.indexOf("!")?r.push("^((?!"+e(t.substring(1)).regexp+").)*$"):(0===t.indexOf(".")&&(t="*"+t),n=(n="^"+t.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$").replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}(t),r=!0;if(n.regexp&&n.regexp.length){var i=new RegExp(n.regexp,"i");r=null!=e.type&&i.test(e.type)||null!=e.name&&i.test(e.name)}for(var o=n.excludes.length;o--;){var s=new RegExp(n.excludes[o],"i");r=r&&(null==e.type||s.test(e.type))&&(null==e.name||s.test(e.name))}return r},r.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},r.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push((function(i){if(e.$dirty){var o=i;i&&!angular.isArray(i)&&(o=[i]),r.validate(o,0,e,t,n).then((function(){r.applyModelValidation(e,o)}))}return i}))},r.applyModelValidation=function(e,t){(function(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)})(e,t),angular.forEach(e.$ngfValidations,(function(t){e.$setValidity(t.name,t.valid)}))},r.getValidationAttr=function(e,t,n,i,o){var s="ngf"+n[0].toUpperCase()+n.substr(1),a=r.attrGetter(s,e,t,{$file:o});if(null==a&&(a=r.attrGetter("ngfValidate",e,t,{$file:o}))){var l=(i||n).split(".");a=a[l[0]],l.length>1&&(a=a&&a[l[1]])}return a},r.validate=function(e,n,i,o,s){function a(t,n,a){if(e){for(var l=e.length,u=null;l--;){var d=e[l];if(d){var f=r.getValidationAttr(o,s,t,n,d);null!=f&&(a(d,f,l)||(-1===c.indexOf(t)?(d.$error=t,(d.$errorMessages=d.$errorMessages||{})[t]=!0,d.$errorParam=f,-1===p.indexOf(d)&&p.push(d),h||e.splice(l,1),u=!1):e.splice(l,1)))}}null!==u&&i.$ngfValidations.push({name:t,valid:u})}}function l(n,a,l,d,f){function g(t,r,i){function o(o){if(o())if(-1===c.indexOf(n)){if(r.$error=n,(r.$errorMessages=r.$errorMessages||{})[n]=!0,r.$errorParam=i,-1===p.indexOf(r)&&p.push(r),!h){var s=e.indexOf(r);s>-1&&e.splice(s,1)}t.resolve(!1)}else{var a=e.indexOf(r);a>-1&&e.splice(a,1),t.resolve(!0)}else t.resolve(!0)}null!=i?d(r,i).then((function(e){o((function(){return!f(e,i)}))}),(function(){o((function(){return u("ngfValidateForce",{$file:r})}))})):t.resolve(!0)}var m=[r.emptyPromise(!0)];e&&(e=void 0===e.length?[e]:e,angular.forEach(e,(function(e){var i=t.defer();return m.push(i.promise),!l||null!=e.type&&0===e.type.search(l)?void("dimensions"===n&&null!=r.attrGetter("ngfDimensions",o)?r.imageDimensions(e).then((function(t){g(i,e,u("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))}),(function(){i.resolve(!1)})):"duration"===n&&null!=r.attrGetter("ngfDuration",o)?r.mediaDuration(e).then((function(t){g(i,e,u("ngfDuration",{$file:e,$duration:t}))}),(function(){i.resolve(!1)})):g(i,e,r.getValidationAttr(o,s,n,a,e))):void i.resolve(!0)})));var v=t.defer();return t.all(m).then((function(e){for(var t=!0,r=0;r<e.length;r++)if(!e[r]){t=!1;break}i.$ngfValidations.push({name:n,valid:t}),v.resolve(t)})),v.promise}(i=i||{}).$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,(function(e){e.valid=!0}));var u=function(e,t){return r.attrGetter(e,o,s,t)},c=(r.attrGetter("ngfIgnoreInvalid",o,s)||"").split(" "),h=r.attrGetter("ngfRunAllValidations",o,s);if(null==e||0===e.length)return r.emptyPromise({validFiles:e,invalidFiles:[]});e=void 0===e.length?[e]:e.slice(0);var p=[];a("pattern",null,r.validatePattern),a("minSize","size.min",(function(e,t){return e.size+.1>=r.translateScalars(t)})),a("maxSize","size.max",(function(e,t){return e.size-.1<=r.translateScalars(t)}));var d=0;if(a("maxTotalSize",null,(function(t,n){return!((d+=t.size)>r.translateScalars(n))||(e.splice(0,e.length),!1)})),a("validateFn",null,(function(e,t){return!0===t||null===t||""===t})),!e.length)return r.emptyPromise({validFiles:[],invalidFiles:p});var f=t.defer(),g=[];return g.push(l("maxHeight","height.max",/image/,this.imageDimensions,(function(e,t){return e.height<=t}))),g.push(l("minHeight","height.min",/image/,this.imageDimensions,(function(e,t){return e.height>=t}))),g.push(l("maxWidth","width.max",/image/,this.imageDimensions,(function(e,t){return e.width<=t}))),g.push(l("minWidth","width.min",/image/,this.imageDimensions,(function(e,t){return e.width>=t}))),g.push(l("dimensions",null,/image/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(l("ratio",null,/image/,this.imageDimensions,(function(e,t){for(var n=t.toString().split(","),i=!1,o=0;o<n.length;o++)Math.abs(e.width/e.height-r.ratioToFloat(n[o]))<.01&&(i=!0);return i}))),g.push(l("maxRatio","ratio.max",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)<1e-4}))),g.push(l("minRatio","ratio.min",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)>-1e-4}))),g.push(l("maxDuration","duration.max",/audio|video/,this.mediaDuration,(function(e,t){return e<=r.translateScalars(t)}))),g.push(l("minDuration","duration.min",/audio|video/,this.mediaDuration,(function(e,t){return e>=r.translateScalars(t)}))),g.push(l("duration",null,/audio|video/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(l("validateAsyncFn",null,null,(function(e,t){return t}),(function(e){return!0===e||null===e||""===e}))),t.all(g).then((function(){if(h)for(var t=0;t<e.length;t++){e[t].$error&&e.splice(t--,1)}h=!1,a("maxFiles",null,(function(e,t,r){return t>n+r})),f.resolve({validFiles:e,invalidFiles:p})})),f.promise},r.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var i=t.defer();return n((function(){i.resolve({width:e.$ngfWidth,height:e.$ngfHeight})})),i.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var o=t.defer();return n((function(){return 0!==e.type.indexOf("image")?void o.reject("not image"):void r.dataUrl(e).then((function(t){function r(){var t=s[0].naturalWidth||s[0].clientWidth,n=s[0].naturalHeight||s[0].clientHeight;s.remove(),e.$ngfWidth=t,e.$ngfHeight=n,o.resolve({width:t,height:n})}function i(){s.remove(),o.reject("load error")}var s=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");s.on("load",r),s.on("error",i);var a=0;(function e(){n((function(){s[0].parentNode&&(s[0].clientWidth?r():a++>10?i():e())}),1e3)})(),angular.element(document.getElementsByTagName("body")[0]).append(s)}),(function(){o.reject("load error")}))})),e.$ngfDimensionPromise=o.promise,e.$ngfDimensionPromise.finally((function(){delete e.$ngfDimensionPromise})),e.$ngfDimensionPromise},r.mediaDuration=function(e){if(e.$ngfDuration){var i=t.defer();return n((function(){i.resolve(e.$ngfDuration)})),i.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var o=t.defer();return n((function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void o.reject("not media"):void r.dataUrl(e).then((function(t){function r(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),o.resolve(t)}function i(){s.remove(),o.reject("load error")}var s=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");s.on("loadedmetadata",r),s.on("error",i);var a=0;(function e(){n((function(){s[0].parentNode&&(s[0].duration?r():a>10?i():e())}),1e3)})(),angular.element(document.body).append(s)}),(function(){o.reject("load error")}))})),e.$ngfDurationPromise=o.promise,e.$ngfDurationPromise.finally((function(){delete e.$ngfDurationPromise})),e.$ngfDurationPromise},r}]),r.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=function(e,r,i,o,s,a,l,u){var c=t.defer(),h=document.createElement("canvas"),p=document.createElement("img");return p.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(p),p.onload=function(){var e=p.width,t=p.height;if(p.parentNode.removeChild(p),null==u||!1!==u(e,t))try{if(a){var d=n.ratioToFloat(a);d>e/t?i=(r=e)/d:r=(i=t)*d}r||(r=e),i||(i=t);var f=function(e,t,n,r,i){var o=i?Math.max(n/e,r/t):Math.min(n/e,r/t);return{width:e*o,height:t*o,marginX:e*o-n,marginY:t*o-r}}(e,t,r,i,l);h.width=Math.min(f.width,r),h.height=Math.min(f.height,i),h.getContext("2d").drawImage(p,Math.min(0,-f.marginX/2),Math.min(0,-f.marginY/2),f.width,f.height),c.resolve(h.toDataURL(s||"image/WebP",o||.934))}catch(e){c.reject(e)}else c.reject("resizeIf")},p.onerror=function(){p.parentNode.removeChild(p),c.reject()},p.src=e,c.promise};return n.dataUrltoBlob=function(e,t,n){for(var r=e.split(","),i=r[0].match(/:(.*?);/)[1],o=atob(r[1]),s=o.length,a=new Uint8Array(s);s--;)a[s]=o.charCodeAt(s);var l=new window.Blob([a],{type:i});return l.name=t,l.$ngfOrigSize=n,l},n.isResizeSupported=function(){var e=document.createElement("canvas");return window.atob&&e.getContext&&e.getContext("2d")&&window.Blob},n.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(e){this.$ngfName=e},configurable:!0}),n.resize=function(e,i){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var o=t.defer();return n.dataUrl(e,!0).then((function(t){r(t,i.width,i.height,i.quality,i.type||e.type,i.ratio,i.centerCrop,i.resizeIf).then((function(r){if("image/jpeg"===e.type&&!1!==i.restoreExif)try{r=n.restoreExif(t,r)}catch(e){setTimeout((function(){throw e}),1)}try{var s=n.dataUrltoBlob(r,e.name,e.size);o.resolve(s)}catch(e){o.reject(e)}}),(function(t){"resizeIf"===t&&o.resolve(e),o.reject(t)}))}),(function(e){o.reject(e)})),o.promise},n}]),function(){function e(e,n,r,i,o,s,a,l,u,c){function h(){return n.attr("disabled")||v("ngfDropDisabled",e)}function p(t,n,r){if(t){var i;try{i=t&&t.getData&&t.getData("text/html")}catch(e){}g(t.items,t.files,!1!==v("ngfAllowDir",e),v("multiple")||v("ngfMultiple",e)).then((function(e){e.length?d(e,n):f(r,i).then((function(e){d(e,n)}))}))}}function d(t,n){l.updateModel(i,r,e,v("ngfChange")||v("ngfDrop"),t,n)}function f(t,n){if(!l.shouldUpdateOn(t,r,e)||"string"!=typeof n)return l.rejectPromise([]);var i=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,(function(e,t,n){i.push(n)}));var o=[],s=[];if(i.length){angular.forEach(i,(function(e){o.push(l.urlToBlob(e).then((function(e){s.push(e)})))}));var a=c.defer();return c.all(o).then((function(){a.resolve(s)}),(function(e){a.reject(e)})),a.promise}return l.emptyPromise()}function g(t,n,i,o){function s(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var r=[l.emptyPromise()];if(p){var i={type:"directory"};i.name=i.path=(t||"")+e.name,d.push(i)}var o=e.createReader(),a=[],g=function(){o.readEntries((function(i){try{i.length?(a=a.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(a.slice(0),(function(n){d.length<=u&&h>=f&&r.push(s(n,(t||"")+e.name+"/"))})),c.all(r).then((function(){n.resolve()}),(function(e){n.reject(e)})))}catch(e){n.reject(e)}}),(function(e){n.reject(e)}))};g()}else e.file((function(e){try{e.path=(t||"")+e.name,p&&(e=l.rename(e,e.path)),d.push(e),f+=e.size,n.resolve()}catch(e){n.reject(e)}}),(function(e){n.reject(e)}));return n.promise}var u=l.getValidationAttr(r,e,"maxFiles");null==u&&(u=Number.MAX_VALUE);var h=l.getValidationAttr(r,e,"maxTotalSize");null==h&&(h=Number.MAX_VALUE);var p=v("ngfIncludeDir",e),d=[],f=0,g=[l.emptyPromise()];if(t&&t.length>0&&"file:"!==a.location.protocol)for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var y=t[m].webkitGetAsEntry();if(y.isDirectory&&!i)continue;null!=y&&g.push(s(y))}else{var b=t[m].getAsFile();null!=b&&(d.push(b),f+=b.size)}if(d.length>u||f>h||!o&&d.length>0)break}else if(null!=n)for(var $=0;$<n.length;$++){var w=n.item($);if((w.type||w.size>0)&&(d.push(w),f+=w.size),d.length>u||f>h||!o&&d.length>0)break}var x=c.defer();return c.all(g).then((function(){if(o||p||!d.length)x.resolve(d);else{for(var e=0;d[e]&&"directory"===d[e].type;)e++;x.resolve([d[e]])}}),(function(e){x.reject(e)})),x.promise}var m=t(),v=function(e,t,n){return l.attrGetter(e,r,t,n)};if(v("dropAvailable")&&s((function(){e[v("dropAvailable")]?e[v("dropAvailable")].value=m:e[v("dropAvailable")]=m})),m){null==v("ngfSelect")&&l.registerModelChangeValidator(i,r,e);var y,b=null,$=o(v("ngfStopPropagation")),w=1;n[0].addEventListener("dragover",(function(t){if(!h()&&l.shouldUpdateOn("drop",r,e)){if(t.preventDefault(),$(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var i=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy"}s.cancel(b),y||(y="C",function(e,t,n,r){var i=v("ngfDragOverClass",e,{$event:n}),o="dragover";if(angular.isString(i))o=i;else if(i&&(i.delay&&(w=i.delay),i.accept||i.reject)){var s=n.dataTransfer.items;if(null!=s&&s.length)for(var a=i.pattern||v("ngfPattern",e,{$event:n}),u=s.length;u--;){if(!l.validatePattern(s[u],a)){o=i.reject;break}o=i.accept}else o=i.accept}r(o)}(e,0,t,(function(r){y=r,n.addClass(y),v("ngfDrag",e,{$isDragging:!0,$class:y,$event:t})})))}}),!1),n[0].addEventListener("dragenter",(function(t){!h()&&l.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation())}),!1),n[0].addEventListener("dragleave",(function(t){!h()&&l.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation(),b=s((function(){y&&n.removeClass(y),y=null,v("ngfDrag",e,{$isDragging:!1,$event:t})}),w||100))}),!1),n[0].addEventListener("drop",(function(t){!h()&&l.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation(),y&&n.removeClass(y),y=null,p(t.dataTransfer,t,"dropUrl"))}),!1),n[0].addEventListener("paste",(function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!h()&&l.shouldUpdateOn("paste",r,e)&&p(t.clipboardData||t.originalEvent.clipboardData,t,"pasteUrl")}),!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",(function(e){e.metaKey||e.ctrlKey||e.preventDefault()})))}else!0===v("ngfHideOnDropNotAvailable",e)&&n.css("display","none")}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}r.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(t,n,r,i,o,s){return{restrict:"AEC",require:"?ngModel",link:function(o,a,l,u){e(o,a,l,u,t,n,r,i,0,s)}}}]),r.directive("ngfNoFileDrop",(function(){return function(e,n){t()&&n.css("display","none")}})),r.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,r){return function(i,o,s){if(t()){var a=e(r.attrGetter("ngfDropAvailable",s));n((function(){a(i),a.assign&&a.assign(i,!0)}))}}}])}(),r.service("UploadExif",["UploadResize","$q",function(e,t){var n=e;return n.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&n.isResizeSupported()},n.readOrientation=function(e){var n=t.defer(),r=new FileReader,i=e.slice?e.slice(0,65536):e;return r.readAsArrayBuffer(i),r.onerror=function(e){return n.reject(e)},r.onload=function(e){var t={orientation:1},r=new DataView(this.result);if(65496!==r.getUint16(0,!1))return n.resolve(t);for(var i=r.byteLength,o=2;i>o;){var s=r.getUint16(o,!1);if(o+=2,65505===s){if(1165519206!==r.getUint32(o+=2,!1))return n.resolve(t);var a=18761===r.getUint16(o+=6,!1);o+=r.getUint32(o+4,a);var l=r.getUint16(o,a);o+=2;for(var u=0;l>u;u++)if(274===r.getUint16(o+12*u,a)){var c=r.getUint16(o+12*u+8,a);return c>=2&&8>=c&&(r.setUint16(o+12*u+8,1,a),t.fixedArrayBuffer=e.target.result),t.orientation=c,n.resolve(t)}}else{if(65280!=(65280&s))break;o+=r.getUint16(o,!1)}}return n.resolve(t)},n.promise},n.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return n.emptyPromise(e);var r=t.defer();return n.readOrientation(e).then((function(t){return t.orientation<2||t.orientation>8?r.resolve(e):void n.dataUrl(e,!0).then((function(i){var o=document.createElement("canvas"),s=document.createElement("img");s.onload=function(){try{o.width=t.orientation>4?s.height:s.width,o.height=t.orientation>4?s.width:s.height;var i=o.getContext("2d");(function(e,t,n,r){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,r);case 4:return e.transform(1,0,0,-1,0,r);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,r,0);case 7:return e.transform(0,-1,-1,0,r,n);case 8:e.transform(0,-1,1,0,0,n)}})(i,t.orientation,s.width,s.height),i.drawImage(s,0,0);var a=o.toDataURL(e.type||"image/WebP",.934);a=n.restoreExif(function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;r>i;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(t.fixedArrayBuffer),a);var l=n.dataUrltoBlob(a,e.name);r.resolve(l)}catch(e){return r.reject(e)}},s.onerror=function(){r.reject()},s.src=i}),(function(e){r.reject(e)}))}),(function(e){r.reject(e)})),r.promise},n.restoreExif=function(e,t){var n={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,s="",a="",l="",u=0;do{r=(t=e[u++])>>2,i=(3&t)<<4|(n=e[u++])>>4,o=(15&n)<<2|(a=e[u++])>>6,l=63&a,isNaN(n)?o=l=64:isNaN(a)&&(l=64),s=s+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(l),t=n=a="",r=i=o=l=""}while(u<e.length);return s},restore:function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(255===(t=e[n])[0]&225===t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),s=r.slice(i),a=o;return(a=a.concat(t)).concat(s)},slice2Segments:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o="",s="",a=0,l=[];/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=this.KEY_STR.indexOf(e.charAt(a++))<<2|(r=this.KEY_STR.indexOf(e.charAt(a++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(a++)))>>2,o=(3&i)<<6|(s=this.KEY_STR.indexOf(e.charAt(a++))),l.push(t),64!==i&&l.push(n),64!==s&&l.push(o),t=n=o="",r=i=s=""}while(a<e.length);return l}};return n.restore(e,t)},n}])},83:function(e,t){
89
+ /*! 12.2.13 */
90
+ !function(){function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}function t(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(e){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var n=function(e){if(!e.__listeners){e.upload||(e.upload={}),e.__listeners=[];var t=e.upload.addEventListener;e.upload.addEventListener=function(n,r){e.__listeners[n]=r,t&&t.apply(this,arguments)}}};e("open",(function(e){return function(t,r,i){n(this),this.__url=r;try{e.apply(this,[t,r,i])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",i]))}}})),e("getResponseHeader",(function(e){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==e?null:e.apply(this,[t])}})),e("getAllResponseHeaders",(function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}})),e("abort",(function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}})),e("setRequestHeader",(function(e){return function(t,r){if("__setXHR_"===t){n(this);var i=r(this);i instanceof Function&&i(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,e.apply(this,arguments)}})),e("send",(function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var r=arguments[0],i={url:n.__url,jsonp:!1,cache:!0,complete:function(e,r){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(e=null),n.__completed=!0,!e&&n.__listeners.load&&n.__listeners.load({type:"load",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),!e&&n.__listeners.loadend&&n.__listeners.loadend({type:"loadend",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),"abort"===e&&n.__listeners.abort&&n.__listeners.abort({type:"abort",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),void 0!==r.status&&t(n,"status",(function(){return 0===r.status&&e&&"abort"!==e?500:r.status})),void 0!==r.statusText&&t(n,"statusText",(function(){return r.statusText})),t(n,"readyState",(function(){return 4})),void 0!==r.response&&t(n,"response",(function(){return r.response}));var i=r.responseText||(e&&0===r.status&&"abort"!==e?e:void 0);t(n,"responseText",(function(){return i})),t(n,"response",(function(){return i})),e&&t(n,"err",(function(){return e})),n.__fileApiXHR=r,n.onreadystatechange&&n.onreadystatechange(),n.onload&&n.onload()},progress:function(e){if(e.target=n,n.__listeners.progress&&n.__listeners.progress(e),n.__total=e.total,n.__loaded=e.loaded,e.total===e.loaded){var t=this;setTimeout((function(){n.__completed||(n.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))}),FileAPI.noContentTimeout||1e4)}},headers:n.__requestHeaders,data:{},files:{}},o=0;o<r.data.length;o++){var s=r.data[o];null!=s.val&&null!=s.val.name&&null!=s.val.size&&null!=s.val.type?i.files[s.key]=s.val:i.data[s.key]=s.val}setTimeout((function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.__fileApiXHR=FileAPI.upload(i)}),1)}else{if(this.__origError)throw this.__origError;e.apply(n,arguments)}}})),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}}}}(),function(){function e(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function t(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do{t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent}while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=e(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var n,r,i,o,s,a=document.createElement("script"),l=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)n=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(i=0;i<l.length;i++)if((o=(s=l[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=s.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),a.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(a)}FileAPI.ngfFixIE=function(n,r,i){if(!e())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.bind("mouseenter",(function(){var e=r.parent();n.attr("disabled")?e&&e.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",(function(e){o.apply(this,[e]),i.apply(this,[e])})),r.attr("__ngf_flash_","true")),e.addClass("js-fileapi-wrapper"),function(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}(n)||(e.css("position","absolute").css("top",t(n[0]).top+"px").css("left",t(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))}));var o=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var r=0;r<n.length;r++)n[r].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var r={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(r.target.result=n.result),r},r=function(r){var i;t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r))),"load"===r.type?(e.onloadend&&e.onloadend(n("loadend",r)),i=n("load",r),e.onload&&e.onload(i),e.dispatchEvent(i)):"progress"===r.type?(i=n("progress",r),e.onprogress&&e.onprogress(i),e.dispatchEvent(i)):(i=n("error",r),e.onerror&&e.onerror(i),e.dispatchEvent(i))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,r)},this.readAsText=function(e){FileAPI.readAsText(e,r)}})},84:function(e,t,n){var r;
91
+ /*!
92
+ * angular-translate - v2.19.1 - 2024-01-21
93
+ *
94
+ * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
95
+ */void 0===(r=function(){return function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(e,t,n,r){"use strict";var i,o,s,a,l,u,c,h,p,d,f,g,m,v,y,b,$={},w=[],x=e,S=[],E="translate-cloak",C=!1,A=!1,T=!0,F=".",k=!1,D=!1,R=0,I=!0,P="default",O={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},_=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((n=i.languages[e])&&n.length)return n;for(e=0;e<o.length;e++)if((n=i[o[e]])&&n.length)return n;return null};_.displayName="angular-translate/service: getFirstBrowserLanguage";var j=function(){var e=_()||"";return O[P]&&(e=O[P](e)),e};j.displayName="angular-translate/service: getLocale";var L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N=function(){return this.toString().replace(/^\s+|\s+$/g,"")},M=function(e){return angular.isString(e)?e.toLowerCase():e},B=function(e){if(e){for(var t,n=[],r=M(e),i=0,s=w.length;i<s;i++)n.push(M(w[i]));if((i=L(n,r))>-1)return w[i];if(o)for(var a in o)if(o.hasOwnProperty(a)){var l=!1,u=Object.prototype.hasOwnProperty.call(o,a)&&M(a)===M(e);if("*"===a.slice(-1)&&(l=M(a.slice(0,-1))===M(e.slice(0,a.length-1))),(u||l)&&(t=o[a],L(n,M(t))>-1))return t}var c=e.split("_");return c.length>1&&L(n,M(c[0]))>-1?c[0]:void 0}},H=function(e,t){if(!e&&!t)return $;if(e&&!t){if(angular.isString(e))return $[e]}else angular.isObject($[e])||($[e]={}),angular.extend($[e],U(t));return this};this.translations=H,this.cloakClassName=function(e){return e?(E=e,this):E},this.allowNamespaces=function(e){return void 0===e?T:(T=e,this)},this.nestedObjectDelimeter=function(e){return e?(F=e,this):F};var U=function(e,t,n,r){var i,o,s;if(t||(t=[]),n||(n={}),!T)return e;for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s=e[i],angular.isObject(s)?U(s,t.concat(i),n,i):(o=t.length?""+t.join(F)+F+i:i,t.length&&i===r&&(n[""+t.join(F)]="@:"+o),n[o]=s));return n};U.displayName="flatObject",this.addInterpolation=function(e){return S.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return d=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(V(e),this):i};var V=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return q(e),this};var q=function(e){return e?(angular.isString(e)?(a=!0,s=[e]):angular.isArray(e)&&(a=!1,s=e),angular.isString(i)&&L(s,i)<0&&s.push(i),this):a?s[0]:s};this.use=function(e){if(e){if(!$[e]&&!f)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return l=e,this}return l},this.resolveClientLocale=function(){return j()};var z=function(e){return e?(x=e,this):h?h+x:x};this.storageKey=z,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return f=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(h=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return p=e,this},this.usePostCompiling=function(e){return C=!!e,this},this.forceAsyncReload=function(e){return A=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},P=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():j();return i=w.length&&B(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(o=t),this):w},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?R:(R=e,this)},this.statefulFilter=function(e){return void 0===e?I:(I=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return D=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var o,h,P,O=t.get(d||"$translateDefaultInterpolation"),_=!1,M={},K={},G=function(e,t,n,a,u,p){!l&&i&&(l=i);var d=u&&u!==l?B(u)||u:l;if(u&&se(u),angular.isArray(e))return function(e){for(var i={},o=[],s=function(e){var o=r.defer(),s=function(t){i[e]=t,o.resolve([e,t])};return G(e,t,n,a,u,p).then(s,s),o.promise},l=0,c=e.length;l<c;l++)o.push(s(e[l]));return r.all(o).then((function(){return i}))}(e);var f=r.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=N.apply(e);var g=function(){var e=K[d]||K[i];if(h=0,c&&!e){var t=o.get(x);if(e=K[t],s&&s.length){var n=L(s,t);h=0===n?1:0,L(s,i)<0&&s.push(i)}}return e}();if(g){var m=function(){u||(d=l),re(e,t,n,a,d,p).then(f.resolve,f.reject)};m.displayName="promiseResolved",g.finally(m).catch(angular.noop)}else re(e,t,n,a,d,p).then(f.resolve,f.reject);return f.promise},W=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},Y=function(e){l=e,c&&o.put(G.storageKey(),l),n.$emit("$translateChangeSuccess",{language:e}),O.setLocale(l);var t=function(e,t){M[t].setLocale(l)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(M,t),n.$emit("$translateChangeEnd",{language:e})},J=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),_=!0;var o=y;"string"==typeof o&&(o=t.get(o));var s=angular.extend({},g,{key:e,$http:angular.extend({},{cache:o},g.$http)}),a=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,(function(e){angular.extend(r,U(e))})):angular.extend(r,U(t)),_=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};a.displayName="onLoaderSuccess";var l=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return l.displayName="onLoaderError",t.get(f)(s).then(a,l),i.promise};if(c&&(!(o=t.get(c)).get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(S.length){var X=function(e){var n=t.get(e);n.setLocale(i||l),M[n.getInterpolationIdentifier()]=n};X.displayName="interpolationFactoryAdder",angular.forEach(S,X)}var Q=function(e,t,n,i,o){var s=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,t)&&null!==r[t]){i.setLocale(e);var a=r[t];if("@:"===a.substr(0,2))Q(e,a.substr(2),n,i,o).then(s.resolve,s.reject);else{var u=i.interpolate(r[t],n,"service",o,t);u=oe(t,r[t],u,n,e),s.resolve(u)}i.setLocale(l)}else s.reject()};return a.displayName="fallbackTranslationResolver",function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call($,e))t.resolve($[e]);else if(K[e]){var n=function(e){H(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",K[e].then(n,t.reject)}else t.reject();return t.promise}(e).then(a,s.reject),s.promise},Z=function(e,t,n,r,i){var o,s=$[e];if(s&&Object.prototype.hasOwnProperty.call(s,t)&&null!==s[t]){if(r.setLocale(e),o=r.interpolate(s[t],n,"filter",i,t),o=oe(t,s[t],o,n,e,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){var a=o.$$unwrapTrustedValue();if("@:"===a.substr(0,2))return Z(e,a.substr(2),n,r,i)}else if("@:"===o.substr(0,2))return Z(e,o.substr(2),n,r,i);r.setLocale(l)}return o},ee=function(e,n,r,i){return p?t.get(p)(e,l,n,r,i):e},te=function(e,t,n,i,o,a){var l=r.defer();if(e<s.length){var u=s[e];Q(u,t,n,i,a).then((function(e){l.resolve(e)}),(function(){return te(e+1,t,n,i,o,a).then(l.resolve,l.reject)}))}else if(o)l.resolve(o);else{var c=ee(t,n,o);p&&c?l.resolve(c):l.reject(W(t))}return l.promise},ne=function(e,t,n,r,i){var o;if(e<s.length){var a=s[e];(o=Z(a,t,n,r,i))||""===o||(o=ne(e+1,t,n,r))}return o},re=function(e,t,n,i,o,a){var l=r.defer(),u=o?$[o]:$,c=n?M[n]:O;if(u&&Object.prototype.hasOwnProperty.call(u,e)&&null!==u[e]){var d=u[e];if("@:"===d.substr(0,2))G(d.substr(2),t,n,i,o,a).then(l.resolve,l.reject);else{var f=c.interpolate(d,t,"service",a,e);f=oe(e,d,f,t,o),l.resolve(f)}}else{var g;p&&!_&&(g=ee(e,t,i)),o&&s&&s.length?function(e,t,n,r,i){return te(P>0?P:h,e,t,n,r,i)}(e,t,c,i,a).then((function(e){l.resolve(e)}),(function(e){l.reject(W(e))})):p&&!_&&g?i?l.resolve(i):l.resolve(g):i?l.resolve(i):l.reject(W(e))}return l.promise},ie=function(e,t,n,r,i){var o,a=r?$[r]:$,l=O;if(M&&Object.prototype.hasOwnProperty.call(M,n)&&(l=M[n]),a&&Object.prototype.hasOwnProperty.call(a,e)&&null!==a[e]){var u=a[e];"@:"===u.substr(0,2)?o=ie(u.substr(2),t,n,r,i):(o=l.interpolate(u,t,"filter",i,e),o=oe(e,u,o,t,r,i))}else{var c;p&&!_&&(c=ee(e,t,i)),r&&s&&s.length?(h=0,o=function(e,t,n,r){return ne(P>0?P:h,e,t,n,r)}(e,t,l,i)):o=p&&!_&&c?c:W(e)}return o},oe=function(e,n,r,i,o,s){var a=b;return a&&("string"==typeof a&&(a=t.get(a)),a)?a(e,n,r,i,o,s):r},se=function(e){$[e]||!f||K[e]||(K[e]=J(e).then((function(e){return H(e.key,e.table),e})))};G.preferredLanguage=function(e){return e&&V(e),i},G.cloakClassName=function(){return E},G.allowNamespaces=function(){return T},G.nestedObjectDelimeter=function(){return F},G.fallbackLanguage=function(e){if(null!=e){if(q(e),f&&s&&s.length)for(var t=0,n=s.length;t<n;t++)K[s[t]]||(K[s[t]]=J(s[t]));G.use(G.use())}return a?s[0]:s},G.useFallbackLanguage=function(e){if(null!=e)if(e){var t=L(s,e);t>-1&&(P=t)}else P=0},G.proposedLanguage=function(){return u},G.storage=function(){return o},G.negotiateLocale=B,G.use=function(e){if(!e)return l;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=B(e);return w.length>0&&!i?r.reject(e):(i&&(e=i),u=e,!A&&$[e]||!f||K[e]?K[e]?K[e].then((function(e){return u===e.key&&Y(e.key),t.resolve(e.key),e}),(function(e){return!l&&s&&s.length>0&&s[0]!==e?G.use(s[0]).then(t.resolve,t.reject):t.reject(e)})):(t.resolve(e),Y(e)):(K[e]=J(e).then((function(n){return H(n.key,n.table),t.resolve(n.key),u===e&&Y(n.key),n}),(function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)})),K[e].finally((function(){!function(e){u===e&&(u=void 0),K[e]=void 0}(e)})).catch(angular.noop)),t.promise)},G.resolveClientLocale=function(){return j()},G.storageKey=function(){return z()},G.isPostCompilingEnabled=function(){return C},G.isForceAsyncReloadEnabled=function(){return A},G.isKeepContent=function(){return D},G.refresh=function(e){if(!f)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=r.defer(),i={};function o(e){var t=J(e);return K[e]=t,t.then((function(t){$[e]={},H(e,t.table),i[e]=!0}),angular.noop),t}if(t.promise.then((function(){for(var e in $)$.hasOwnProperty(e)&&(e in i||delete $[e]);l&&Y(l)}),angular.noop).finally((function(){n.$emit("$translateRefreshEnd",{language:e})})),e)$[e]?o(e).then(t.resolve,t.reject):t.reject();else{var a=s&&s.slice()||[];l&&-1===a.indexOf(l)&&a.push(l),r.all(a.map(o)).then(t.resolve,t.reject)}return t.promise},G.instant=function(e,t,n,r,o){var a=r&&r!==l?B(r)||r:l;if(null===e||angular.isUndefined(e))return e;if(r&&se(r),angular.isArray(e)){for(var u={},c=0,h=e.length;c<h;c++)u[e[c]]=G.instant(e[c],t,n,r,o);return u}if(angular.isString(e)&&e.length<1)return e;e&&(e=N.apply(e));var d,f,g=[];i&&g.push(i),a&&g.push(a),s&&s.length&&(g=g.concat(s));for(var y=0,b=g.length;y<b;y++){var w=g[y];if($[w]&&void 0!==$[w][e]&&(d=ie(e,t,n,a,o)),void 0!==d)break}return d||""===d||(m||v?d=W(e):(d=O.interpolate(e,t,"filter",o),p&&!_&&(f=ee(e,t,o)),p&&!_&&f&&(d=f))),d},G.versionInfo=function(){return"2.19.1"},G.loaderCache=function(){return y},G.directivePriority=function(){return R},G.statefulFilter=function(){return I},G.isReady=function(){return k};var ae=r.defer();ae.promise.then((function(){k=!0})),G.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),k?t.resolve():ae.promise.then(t.resolve),t.promise},G.getAvailableLanguageKeys=function(){return w.length>0?w:null},G.getTranslationTable=function(e){return(e=e||G.use())&&$[e]?angular.copy($[e]):null};var le=n.$on("$translateReady",(function(){ae.resolve(),le(),le=null})),ue=n.$on("$translateChangeEnd",(function(){ae.resolve(),ue(),ue=null}));if(f){if(angular.equals($,{})&&G.use()&&G.use(G.use()),s&&s.length)for(var ce=function(e){return H(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},he=0,pe=s.length;he<pe;he++){var de=s[he];!A&&$[de]||(K[de]=J(de).then(ce))}}else n.$emit("$translateReady",{language:G.use()});return G}]}function n(e,t){"use strict";var n={setLocale:function(e){},getInterpolationIdentifier:function(){return"default"},useSanitizeValueStrategy:function(e){return t.useStrategy(e),this},interpolate:function(n,r,i,o,s){var a;return r=r||{},r=t.sanitize(r,"params",o,i),angular.isNumber(n)?a=""+n:angular.isString(n)?(a=e(n)(r),a=t.sanitize(a,"text",o,i)):a="",a}};return n}function r(e,t,n,r,i){"use strict";var o=function(){return this.toString().replace(/^\s+|\s+$/g,"")},s=function(e){return angular.isString(e)?e.toLowerCase():e};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(a,l){var u=l.translateValues?l.translateValues:void 0,c=l.translateInterpolation?l.translateInterpolation:void 0,h=l.translateSanitizeStrategy?l.translateSanitizeStrategy:void 0,p=a[0].outerHTML.match(/translate-value-+/i),d="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",f="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(a,g,m){a.interpolateParams={},a.preText="",a.postText="",a.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(a);var v={},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=o.apply(g.text()).replace(/\n/g," "),r=n.match(d);if(angular.isArray(r)){a.preText=r[1],a.postText=r[3],v.translate=t(r[2])(a.$parent);var i=n.match(f);angular.isArray(i)&&i[2]&&i[2].length&&(y._unwatchOld=a.$watch(i[2],(function(e){v.translate=e,E()})))}else v.translate=n||void 0}else v.translate=e;E()},b=function(e){m.$observe(e,(function(t){v[e]=t,E()}))};!function(e,t,n){if(t.translateValues&&angular.extend(e,r(t.translateValues)(a.$parent)),p)for(var i in n)Object.prototype.hasOwnProperty.call(t,i)&&"translateValue"===i.substr(0,14)&&"translateValues"!==i&&(e[s(i.substr(14,1))+i.substr(15)]=n[i])}(a.interpolateParams,m,l);var $=!0;for(var w in m.$observe("translate",(function(e){void 0===e?y(""):""===e&&$||(v.translate=e,E()),$=!1})),m)m.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&w.length>13&&b(w);if(m.$observe("translateDefault",(function(e){a.defaultText=e,E()})),h&&m.$observe("translateSanitizeStrategy",(function(e){a.sanitizeStrategy=r(e)(a.$parent),E()})),u&&m.$observe("translateValues",(function(e){e&&a.$parent.$watch((function(){angular.extend(a.interpolateParams,r(e)(a.$parent))}))})),p){var x=function(e){m.$observe(e,(function(t){var n=s(e.substr(14,1))+e.substr(15);a.interpolateParams[n]=t}))};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&"translateValue"===S.substr(0,14)&&"translateValues"!==S&&x(S)}var E=function(){for(var e in v)v.hasOwnProperty(e)&&void 0!==v[e]&&C(e,v[e],a,a.interpolateParams,a.defaultText,a.translateNamespace)},C=function(t,n,r,i,o,s){n?(s&&"."===n.charAt(0)&&(n=s+n),e(n,i,c,o,r.translateLanguage,r.sanitizeStrategy).then((function(e){A(e,r,!0,t)}),(function(e){A(e,r,!1,t)}))):A(n,r,!1,t)},A=function(t,r,i,o){if(i||void 0!==r.defaultText&&(t=r.defaultText),"translate"===o){(i||!i&&!e.isKeepContent()&&void 0===m.translateKeepContent)&&g.empty().append(r.preText+t+r.postText);var s=e.isPostCompilingEnabled(),a=void 0!==l.translateCompile,u=a&&"false"!==l.translateCompile;(s&&!a||u)&&n(g.contents())(r)}else{var c=m.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),g.attr(c,t)}};(u||p||m.translateDefault)&&a.$watch("interpolateParams",E,!0),a.$on("translateLanguageChanged",E);var T=i.$on("$translateChangeSuccess",E);g.text().length?m.translate?y(m.translate):y(""):m.translate&&y(m.translate),E(),a.$on("$destroy",T)}}}}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,i){var s,a,l,u={},c=function(){angular.forEach(s,(function(t,o){t&&(u[o]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,a,i.translateInterpolation,void 0,n.translateLanguage,l).then((function(e){r.attr(o,e)}),(function(e){r.attr(o,e)})))})),angular.forEach(u,(function(e,t){s[t]||(r.removeAttr(t),delete u[t])}))};o(n,i.translateAttr,(function(e){s=e}),c),o(n,i.translateValues,(function(e){a=e}),c),o(n,i.translateSanitizeStrategy,(function(e){l=e}),c),i.translateValues&&n.$watch(i.translateValues,c,!0),n.$on("translateLanguageChanged",c);var h=t.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",h)}}}function o(e,t,n,r){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,(function(e){n(e),r()}),!0),n(e.$eval(t)))}function s(e,t){"use strict";return{compile:function(n){var r=function(t){t.addClass(e.cloakClassName())},i=function(t){t.removeClass(e.cloakClassName())};return r(n),function(n,o,s){var a=i.bind(this,o),l=r.bind(this,o);s.translateCloak&&s.translateCloak.length?(s.$observe("translateCloak",(function(t){e(t).then(a,l)})),t.$on("$translateChangeSuccess",(function(){e(s.translateCloak).then(a,l)}))):e.onReady(a)}}}}function a(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",(function(t){e.translateLanguage=t})),e.$watch("translateLanguage",(function(){e.$broadcast("translateLanguageChanged")}))}}}}function u(e,t){"use strict";var n=function(n,r,i,o){if(!angular.isObject(r)){var s=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};r=e(r)(s)}return t.instant(n,r,i,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],s.$inject=["$translate","$rootScope"],u.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",(function(){"use strict";var e,t,n,r=null,i=!1,o=!1;(n={sanitize:function(e,t){return"text"===t&&(e=a(e)),e},escape:function(e,t){return"text"===t&&(e=s(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=u(e,a)),e},escapeParameters:function(e,t){return"params"===t&&(e=u(e,s)),e},sce:function(e,t,n){return"text"===t?e=l(e):"params"===t&&"filter"!==n&&(e=u(e,s)),e},sceParameters:function(e,t){return"params"===t&&(e=u(e,l)),e}}).escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return i=!0,r=e,this},this.$get=["$injector","$log",function(s,a){var l={};return s.has("$sanitize")&&(e=s.get("$sanitize")),s.has("$sce")&&(t=s.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,u,c){return r||i||o||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),o=!0),u||null===u||(u=r),u?(c||(c="service"),function(e,t,r,i){return angular.forEach(i,(function(i){if(angular.isFunction(i))e=i(e,t,r);else if(angular.isFunction(n[i]))e=n[i](e,t,r);else{if(!angular.isString(n[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!l[n[i]])try{l[n[i]]=s.get(n[i])}catch(e){throw l[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=l[n[i]](e,t,r)}})),e}(e,t,c,angular.isArray(u)?u:[u])):e}}}];var s=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},a=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},l=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},u=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,(function(e,i){angular.isFunction(e)||(r[i]=u(e,t,n))})),n.splice(-1,1),r}return angular.isNumber(e)||!0===e||!1===e||angular.isUndefined(e)||null===e?e:t(e)}})),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",s),s.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",a),a.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",l),l.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",u),u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},85:function(e,t,n){n(445),e.exports=angular},9:function(e,t,n){"use strict";n.r(t);n(432),n(433),n(434),n(435),n(436),n(437),n(18),n(439),n(440),n(57),n(441),n(40),n(46),n(84);const r={title:"",message:"",confirmButtonKey:"common.yes.btn",backdrop:!0};function i(e,t,n){return{openSimpleModal:o,openConfirmationModal:i,openModalAlert:function(t){const n="modal-alert "+t.dialogClass;return e.open({templateUrl:"js/angular/core/templates/modal/modal-simple.html",controller:"SimpleModalCtrl",size:t.size,windowClass:n,resolve:{config:()=>_.merge({},r,t)}})},openCopyToClipboardModal:function(t){return e.open({templateUrl:"js/angular/core/templates/modal/copy-to-clipboard-modal.html",controller:"CopyToClipboardModalCtrl",resolve:{uri:function(){return t}}})},openConfirmation:function(e,t,n=(()=>{}),r=(()=>{})){i({title:e,message:t},n,r)},openCustomModal:function(t){return e.open({templateUrl:t.templateUrl,controller:t.controller,size:t.size,windowClass:t.dialogClass,backdrop:t.backdrop,resolve:{config:()=>_.merge({},r,t)}})}};function i(e,t=(()=>{}),n=(()=>{})){o(_.merge({warning:!0},e)).result.then(t,n)}function o(t){return e.open({templateUrl:t.warning?"js/angular/core/templates/modal/modal-warning.html":"js/angular/core/templates/modal/modal-simple.html",controller:"SimpleModalCtrl",size:t.size,windowClass:t.dialogClass,backdrop:t.backdrop,resolve:{config:()=>_.merge({},r,t)}})}}function o(e){return{getDetails:function(t){return e.get("rest/explore/details",{params:{uri:t},headers:{Accept:"application/json"}})},getGraph:function(t){const n=encodeURIComponent(t);return e.get("rest/explore/graph?uri="+n+"&role=subject",{headers:{Accept:"application/rdf+json"}})},getNamespaceUriForPrefix:function(e,t){let n="";for(let r=0;r<e.length;r++)if(e[r].prefix===t){n=e[r].uri;break}return n},getNamespacePrefixForUri:function(e,t){let n="";for(let r=0;r<e.length;r++)if(e[r].uri===t){n=e[r].prefix;break}return n},getLocalName:function(e){if(angular.isUndefined(e))return e;{let t;const n=e.length-1;let r=e.toString().lastIndexOf("/");r===n&&(t=e.substr(0,n),r=t.lastIndexOf("/"));let i=e.toString().lastIndexOf("#");return i===n&&(t=e.substr(0,n),i=t.lastIndexOf("/")),e.toString().substring(Math.max(i,r)+1)}}}}angular.module("graphdb.framework.core",["ui.bootstrap","jlareau.bowser","LocalStorageModule","graphdb.framework.core.controllers","pascalprecht.translate"]).provider("$menuItems",(function(){const e=function(t,n){for(let r=0;r<t.length;r++){const i=t[r];if(i.label===n)return i;const o=e(i.children,n);if(!angular.isUndefined(o))return o}},t=function(e,t){for(let n=0;n<e.length;n++){if(e[n].label===t)return!0}return!1},n=function(e,t){return e.order<t.order?-1:e.order>t.order?1:0},r=function(e,t){return{label:e.label,labelKey:e.labelKey,href:e.href,hrefFun:e.hrefFun,order:e.order,role:e.role,editions:e.editions,icon:e.icon,guideSelector:e.guideSelector,children:t}};let i;const o=[];let s=[];this.addItem=function(e){angular.isUndefined(e.parent)?t(o,e.label)||(o.push(r(e,[])),this.updateItemsWithMissedParent()):this.addItemToParent(e)||s.push(e)},this.addItemToParent=function(n){const i=e(o,n.parent);return!angular.isUndefined(i)&&!t(i.children,n.label)&&(i.children.push(r(n,n.children?n.children:[])),!0)},this.updateItemsWithMissedParent=function(){if(s.length>0){const e=[],t=this;s.forEach((function(n){t.addItemToParent(n)||e.push(n)})),s=e}},this.$get=function(){o.sort(n);for(let e=0;e<o.length;e++){o[e].children.sort(n)}return o},this.setProductInfo=function(e){i=e},this.getProductInfo=function(){return i}})).factory("ModalService",i).factory("ClassInstanceDetailsService",o).factory("AuthTokenService",(function(){const e="com.ontotext.graphdb.auth";return{AUTH_STORAGE_NAME:e,getAuthToken:function(){return localStorage.getItem(e)},setAuthToken:function(t){localStorage.setItem(e,t)},clearAuthToken:function(){localStorage.removeItem(e)},OPENID_CONFIG:{}}})),i.$inject=["$uibModal","$timeout","$sce"],o.$inject=["$http"]}});