graphdb-workbench 10.0.0-M2-1 → 10.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (728) hide show
  1. package/README.md +10 -2
  2. package/dist/0.f8448f998a59db17e94e.bundle.js +25 -0
  3. package/dist/1.46d9ecd4119bac145f3b.bundle.js +81 -0
  4. package/dist/10.a26ae97905866618b14e.bundle.js +7 -0
  5. package/dist/100.aef098a33fbb925e0d2d.bundle.js +1 -0
  6. package/dist/101.42eacc63e0fb5834b78a.bundle.js +1 -0
  7. package/dist/102.4f78eeab62aac245879e.bundle.js +1 -0
  8. package/dist/103.f38f3cd69ff610955aaf.bundle.js +1 -0
  9. package/dist/104.2e21f1462021dca17db1.bundle.js +1 -0
  10. package/dist/105.76381cb7984bcbc9ba9a.bundle.js +1 -0
  11. package/dist/106.23e14c6b280756d04533.bundle.js +1 -0
  12. package/dist/107.75e40619cb45972dc39f.bundle.js +1 -0
  13. package/dist/108.f09444e990531d27e0be.bundle.js +1 -0
  14. package/dist/109.ef97393181ee534042d8.bundle.js +1 -0
  15. package/dist/11.0fc995ac096734b915c6.bundle.js +1 -0
  16. package/dist/110.d59b8565d2255a282669.bundle.js +1 -0
  17. package/dist/111.fff9f089f65f01013923.bundle.js +1 -0
  18. package/dist/112.5bd3fcd7c37f1024fe26.bundle.js +1 -0
  19. package/dist/113.2fa29eca15d32deb3320.bundle.js +1 -0
  20. package/dist/114.d78615087abe68db7b2f.bundle.js +1 -0
  21. package/dist/115.558ce3da00d3be87d18a.bundle.js +1 -0
  22. package/dist/116.577aab1d9bafd0053623.bundle.js +1 -0
  23. package/dist/117.c20f037799328c931eba.bundle.js +1 -0
  24. package/dist/118.39c8b47405ab93c40847.bundle.js +1 -0
  25. package/dist/119.19ee7b3ae143f817c5b1.bundle.js +1 -0
  26. package/dist/12.7877dd6008df9acf44e1.bundle.js +1 -0
  27. package/dist/120.b944d5e63424d4307fc8.bundle.js +1 -0
  28. package/dist/121.3a8954e4c885c56a9817.bundle.js +1 -0
  29. package/dist/122.71a8cf0330504672fffc.bundle.js +1 -0
  30. package/dist/123.c6957ecb441d8a09932a.bundle.js +1 -0
  31. package/dist/124.27e85a0284e2ebeb7d6e.bundle.js +1 -0
  32. package/dist/125.9e925ae0dd1217d81d89.bundle.js +1 -0
  33. package/dist/126.a32b57d6108545746ed3.bundle.js +1 -0
  34. package/dist/127.90d1975083eef3d4a715.bundle.js +1 -0
  35. package/dist/128.544f1a82e19dd245c7de.bundle.js +1 -0
  36. package/dist/129.64ec11449e0c734500c2.bundle.js +1 -0
  37. package/dist/13.fe78f15334507bcc08ae.bundle.js +1 -0
  38. package/dist/130.f8e68ac86e17b3622d40.bundle.js +1 -0
  39. package/dist/131.4868fc3a837277c30273.bundle.js +1 -0
  40. package/dist/132.7815ab1168a254cb0d47.bundle.js +1 -0
  41. package/dist/133.f87e1685dd5ed920f9b5.bundle.js +1 -0
  42. package/dist/134.8998ff724a077ecff2ce.bundle.js +1 -0
  43. package/dist/135.c07268699f76ef7a02ff.bundle.js +1 -0
  44. package/dist/136.908f1f6fe3054f99b560.bundle.js +1 -0
  45. package/dist/137.8262ca9736e9818284cd.bundle.js +1 -0
  46. package/dist/138.8c149cad49010a65b3ca.bundle.js +1 -0
  47. package/dist/139.97ee12e7a3c05be03456.bundle.js +1 -0
  48. package/dist/14.0bb211bcdc29c6d8b3b5.bundle.js +29 -0
  49. package/dist/140.6b3c57ffec700081328b.bundle.js +1 -0
  50. package/dist/141.4981056237955a34b2e2.bundle.js +1 -0
  51. package/dist/142.4d60c1795eed3a9570f9.bundle.js +1 -0
  52. package/dist/143.b7057852f7859cf39e75.bundle.js +1 -0
  53. package/dist/144.3f85f8eacae521d52355.bundle.js +1 -0
  54. package/dist/145.9281069e9e77978b640a.bundle.js +1 -0
  55. package/dist/146.51d2987de4defe7df7c7.bundle.js +1 -0
  56. package/dist/147.54016549674d35bc2869.bundle.js +1 -0
  57. package/dist/148.ad95b30f508a0bd02970.bundle.js +1 -0
  58. package/dist/149.8dd1281617389f8c189b.bundle.js +1 -0
  59. package/dist/15.6a74adbd30b4d2930e10.bundle.js +1 -0
  60. package/dist/150.5e0ee4350f8edd0e7b9a.bundle.js +1 -0
  61. package/dist/151.6b81c99a1ec1b184b82d.bundle.js +1 -0
  62. package/dist/152.2e1aa910a68f0086825b.bundle.js +1 -0
  63. package/dist/153.7a64973115bdaec26406.bundle.js +1 -0
  64. package/dist/154.5938248b52830d0a80a2.bundle.js +1 -0
  65. package/dist/155.a4511849c1001c5f2ba6.bundle.js +1 -0
  66. package/dist/156.bbcaf52acb0cecbc6257.bundle.js +1 -0
  67. package/dist/157.51181d03518519f84b5e.bundle.js +1 -0
  68. package/dist/158.640e412f6002ee1d7341.bundle.js +1 -0
  69. package/dist/159.10457cbb053c1315d93a.bundle.js +1 -0
  70. package/dist/16.2f60fbeaccd97aefaae2.bundle.js +1 -0
  71. package/dist/160.c46bfdf09357a4c62a53.bundle.js +1 -0
  72. package/dist/{103.05b86c1b360c05133b49.bundle.js → 161.0f35ee11981f0ea0455f.bundle.js} +1 -2
  73. package/dist/{104.089568ff7c49a29de892.bundle.js → 162.fef28120701e7d200b01.bundle.js} +1 -2
  74. package/dist/{105.81b74220f7fa646e719b.bundle.js → 163.38565d40ac5f71d1c875.bundle.js} +1 -2
  75. package/dist/164.b2116f472aa847618aee.bundle.js +1 -0
  76. package/dist/168.2d4b5a75da5430c73efc.bundle.js +1 -0
  77. package/dist/169.6897f56896e3664e8b53.bundle.js +1 -0
  78. package/dist/17.2bff7856b13fd72e2db4.bundle.js +1 -0
  79. package/dist/170.d5c0d475c5b6ad84ef77.bundle.js +1 -0
  80. package/dist/171.60cdc91b2bf682a20911.bundle.js +1 -0
  81. package/dist/172.1fb9ead3e508a7cfa5f3.bundle.js +1 -0
  82. package/dist/173.95602c81a2692624a015.bundle.js +1 -0
  83. package/dist/174.aac1982e67b5ca1731c1.bundle.js +1 -0
  84. package/dist/175.5e49a28397900168f816.bundle.js +1 -0
  85. package/dist/176.2e6d1a9f4eac4fdd8422.bundle.js +1 -0
  86. package/dist/177.3b6aabf3c4db8519ea74.bundle.js +1 -0
  87. package/dist/178.e10370553beb5c6bb839.bundle.js +1 -0
  88. package/dist/179.784cbd536b8e636c1272.bundle.js +1 -0
  89. package/dist/18.d6be3e6583bf3dacd54f.bundle.js +2 -0
  90. package/dist/180.d37db50f3ce1b3a04a65.bundle.js +1 -0
  91. package/dist/181.f307cabdc4ed7a10ff64.bundle.js +1 -0
  92. package/dist/182.e8fe148e90fcd334b9b9.bundle.js +1 -0
  93. package/dist/183.a086e00d4dc3c7855611.bundle.js +1 -0
  94. package/dist/184.ff8a39692d0ff666c9e6.bundle.js +1 -0
  95. package/dist/185.8b9f0b866e848f8a1aac.bundle.js +1 -0
  96. package/dist/186.798880846274da7033da.bundle.js +1 -0
  97. package/dist/{120.3b0b67fbfa81ec95e044.bundle.js → 187.eb92a35d38294bc21703.bundle.js} +1 -2
  98. package/dist/{121.ff452d05188836228deb.bundle.js → 188.641582484af80415d29a.bundle.js} +1 -2
  99. package/dist/189.7ccbb0ef67513ae7001a.bundle.js +1 -0
  100. package/dist/19.c2a5c3e7a49a4acba486.bundle.js +2 -0
  101. package/dist/{123.289bb9a87ce416004c0a.bundle.js → 190.a3609218c5d8e873a46f.bundle.js} +1 -2
  102. package/dist/191.4c817606bf66c16d9ad1.bundle.js +1 -0
  103. package/dist/{125.51ff26fe7687752811e4.bundle.js → 192.21f366a1ea7e6905f120.bundle.js} +1 -2
  104. package/dist/193.4d40b788bd7ddcf16788.bundle.js +1 -0
  105. package/dist/{127.4d0a2164fb95df43ea22.bundle.js → 194.0170093f1daf20e82b5f.bundle.js} +1 -2
  106. package/dist/{128.c7a3530622ede2f34e72.bundle.js → 195.d7d8af61458f9416878f.bundle.js} +1 -2
  107. package/dist/{129.2d32313059ae96dba010.bundle.js → 196.6e6b7589cd1342a0b2b5.bundle.js} +1 -2
  108. package/dist/{130.7302112cf14a10bd1306.bundle.js → 197.c071fa1fe9e081a3b053.bundle.js} +1 -2
  109. package/dist/{131.eb262b5100305bdc23ee.bundle.js → 198.3c5ca9ac5a745b4b23a1.bundle.js} +1 -2
  110. package/dist/199.00ac5221a334189ea09a.bundle.js +1 -0
  111. package/dist/2.78b4e53269171c9c08a5.bundle.js +1 -0
  112. package/dist/20.8fd969e3860ddffedcc3.bundle.js +1 -0
  113. package/dist/{133.f855496341ba657eb673.bundle.js → 200.aa3f4dcf9cf98409dbf5.bundle.js} +1 -2
  114. package/dist/201.a1b147e78f43a3bc99c3.bundle.js +1 -0
  115. package/dist/202.20e71b18f57e7d234ff0.bundle.js +1 -0
  116. package/dist/{136.74f131c98a163b48e3df.bundle.js → 203.0219c2ba2d4fe4881af2.bundle.js} +1 -2
  117. package/dist/204.cc169603e18b84e7e65b.bundle.js +1 -0
  118. package/dist/{138.9111fe731587313e4574.bundle.js → 205.99fb3c89cd9b9183ddbf.bundle.js} +1 -2
  119. package/dist/206.43b04d2170165e13353c.bundle.js +1 -0
  120. package/dist/207.798c195e1d7d3f301131.bundle.js +1 -0
  121. package/dist/208.34f042066a757f4fd8c0.bundle.js +1 -0
  122. package/dist/{142.5ced0a8e7a08aea7988f.bundle.js → 209.288844c6a42ff4d5685a.bundle.js} +1 -2
  123. package/dist/21.c981976c6528073c0a2f.bundle.js +1 -0
  124. package/dist/210.1ac38e393ca959703d4b.bundle.js +1 -0
  125. package/dist/211.d2721b9785e609e2f817.bundle.js +1 -0
  126. package/dist/212.b6b19c939f21132b451c.bundle.js +1 -0
  127. package/dist/213.5a5116f764e6357e53ab.bundle.js +1 -0
  128. package/dist/{147.f6bd445276a200981cff.bundle.js → 214.a2640be51c42d820bb83.bundle.js} +1 -2
  129. package/dist/215.209396a71f130477e2b3.bundle.js +1 -0
  130. package/dist/216.16e2e982acc750b4045a.bundle.js +1 -0
  131. package/dist/217.8540eb1d1a0946e72dbf.bundle.js +1 -0
  132. package/dist/218.ef33580c82d20f39f75f.bundle.js +1 -0
  133. package/dist/219.1652bc940cdd0088dc18.bundle.js +1 -0
  134. package/dist/22.9d339503774f4f6c0a8b.bundle.js +1 -0
  135. package/dist/{153.ebc378a7a60222b69484.bundle.js → 220.f8f9c348b1fc0cc72bd6.bundle.js} +1 -2
  136. package/dist/221.b18a92f0ba880edaebbf.bundle.js +1 -0
  137. package/dist/222.a52ebecd1d5201437ebe.bundle.js +1 -0
  138. package/dist/23.87ca8226d464e3699b8e.bundle.js +3 -0
  139. package/dist/24.9076b75f45ce0579f7be.bundle.js +1 -0
  140. package/dist/25.073791b8dd02c5b31183.bundle.js +1 -0
  141. package/dist/26.6e06be7172a866ad45f9.bundle.js +2 -0
  142. package/dist/27.5152c2a1f3b1369e21b0.bundle.js +1 -0
  143. package/dist/28.90b784e728e3d5e4c6aa.bundle.js +1 -0
  144. package/dist/29.e2309b858706718f1732.bundle.js +1 -0
  145. package/dist/3.cf89087c137e759ecd19.bundle.js +27 -0
  146. package/dist/30.32fb84930c42bae43a74.bundle.js +1 -0
  147. package/dist/31.31b7b4bd073b82c09fda.bundle.js +1 -0
  148. package/dist/32.6725d94946764db833b8.bundle.js +1 -0
  149. package/dist/33.fa9f0e662060f2e97267.bundle.js +1 -0
  150. package/dist/34.af22bc6d5ed2bcb72a09.bundle.js +1 -0
  151. package/dist/35.e601e19e63c6ddaf2484.bundle.js +1 -0
  152. package/dist/36.df47a70d8efbf1cd033b.bundle.js +1 -0
  153. package/dist/37.085cdb373f74d55eee07.bundle.js +2 -0
  154. package/dist/38.fc172c7b0d24ab0f8a35.bundle.js +1 -0
  155. package/dist/39.5ca9fa51ec3c63459317.bundle.js +1 -0
  156. package/dist/4.851f9ade6202116ecfb9.bundle.js +1 -0
  157. package/dist/40.309ec5212fd53fe696bb.bundle.js +1 -0
  158. package/dist/41.3870740f1d24570cb415.bundle.js +1 -0
  159. package/dist/42.b926c2c8620df5c7ed6d.bundle.js +1 -0
  160. package/dist/43.d4551e1f6cac0a1a77e5.bundle.js +1 -0
  161. package/dist/44.46c9e2d54a9f07d78368.bundle.js +1 -0
  162. package/dist/45.a916daee1f0c6873c890.bundle.js +1 -0
  163. package/dist/46.4f57238bd032edc81d6d.bundle.js +1 -0
  164. package/dist/47.4fbfdaa63628c501a30c.bundle.js +1 -0
  165. package/dist/48.3fbd50adcb0c7dd7ec60.bundle.js +1 -0
  166. package/dist/49.0707795b3b6e40387da8.bundle.js +1 -0
  167. package/dist/5.7cfbc07050f137932ffe.bundle.js +1 -0
  168. package/dist/50.8f6cc698b42c96f2b41f.bundle.js +1 -0
  169. package/dist/51.514a339efd6cd11db0f8.bundle.js +1 -0
  170. package/dist/52.410a7d8b4cb433fb24ca.bundle.js +1 -0
  171. package/dist/53.174d18435f7bf3bf05a0.bundle.js +1 -0
  172. package/dist/54.7cb3bd3ae8055e350629.bundle.js +1 -0
  173. package/dist/55.f0762e755ba58cbaac26.bundle.js +1 -0
  174. package/dist/56.3b0312e77f8607a4d957.bundle.js +1 -0
  175. package/dist/57.dfb7a710da8ca09c725b.bundle.js +1 -0
  176. package/dist/58.ac0fa95bbbe4b2dfb0fc.bundle.js +1 -0
  177. package/dist/59.273ffcd48e856d2752ff.bundle.js +1 -0
  178. package/dist/6.c5eea752e1f541f494e8.bundle.js +1 -0
  179. package/dist/60.00a29320ea162becd718.bundle.js +1 -0
  180. package/dist/61.3794de8b6d022738bafa.bundle.js +1 -0
  181. package/dist/62.cf39ad55adb1616560ec.bundle.js +1 -0
  182. package/dist/63.8880f667c958d12b338b.bundle.js +1 -0
  183. package/dist/64.fdd90fedc8a5dc3cacaf.bundle.js +1 -0
  184. package/dist/65.cdc961a8042c385c49c6.bundle.js +1 -0
  185. package/dist/66.c3b906de2fcf69089b7b.bundle.js +1 -0
  186. package/dist/67.9c851e5930459a5f5903.bundle.js +1 -0
  187. package/dist/68.05bba948c414a1e21c8f.bundle.js +1 -0
  188. package/dist/69.c5561c83fe410ea9a908.bundle.js +1 -0
  189. package/dist/7.14f008aaac190939acd3.bundle.js +7 -0
  190. package/dist/70.f2557c225be5923bab24.bundle.js +1 -0
  191. package/dist/71.e9c3c5ccc70f443c97cf.bundle.js +1 -0
  192. package/dist/72.0780a8424293909f94a4.bundle.js +1 -0
  193. package/dist/73.57e88cee0af3f67aee77.bundle.js +1 -0
  194. package/dist/74.48e90caf0b5ecd351f1d.bundle.js +1 -0
  195. package/dist/75.c75a824264d0e67421ed.bundle.js +1 -0
  196. package/dist/76.2ad0f5373462bc70bebf.bundle.js +1 -0
  197. package/dist/77.303a075d21928354102c.bundle.js +1 -0
  198. package/dist/78.66f3e9630550f20287ff.bundle.js +1 -0
  199. package/dist/79.29d39a29721f936ae688.bundle.js +1 -0
  200. package/dist/8.b5e29f80f8a5766d70d5.bundle.js +2 -0
  201. package/dist/80.8af0388db859fcc9fbf3.bundle.js +1 -0
  202. package/dist/{47.686e599732ae6f41120c.bundle.js → 81.2ff1f5047ab4e0591585.bundle.js} +1 -2
  203. package/dist/82.27bb51dfeb4898504e96.bundle.js +1 -0
  204. package/dist/83.a59d34bc50cf323af43d.bundle.js +1 -0
  205. package/dist/84.a4ee7bb5d3ed2e6ead5e.bundle.js +1 -0
  206. package/dist/{51.895a3dacdc3a8eaee275.bundle.js → 85.1f1b07562fbf97ab3e11.bundle.js} +1 -2
  207. package/dist/86.637667a4555ae621aff0.bundle.js +1 -0
  208. package/dist/87.b76338a62297ad83960b.bundle.js +1 -0
  209. package/dist/88.532e7295b49b1071d45c.bundle.js +1 -0
  210. package/dist/89.90bb1cf65f183ecce47c.bundle.js +1 -0
  211. package/dist/9.610b595b60a0fc51466a.bundle.js +1 -0
  212. package/dist/90.683c4d5b142356f274ef.bundle.js +1 -0
  213. package/dist/{56.91947e80d8e04223ac58.bundle.js → 91.2437dfc2ea1bc89f53f3.bundle.js} +1 -2
  214. package/dist/92.a12cfd3b602e98b344de.bundle.js +1 -0
  215. package/dist/93.a5cb6192d32cb016bb60.bundle.js +1 -0
  216. package/dist/94.f6a3e7628449796419b6.bundle.js +1 -0
  217. package/dist/95.15f0e472c49c81a68c3a.bundle.js +1 -0
  218. package/dist/96.2bf3b75fb0efb6b9e7e8.bundle.js +1 -0
  219. package/dist/97.bd1988af419f7373b569.bundle.js +1 -0
  220. package/dist/98.060c6842b3a8ed94dd20.bundle.js +1 -0
  221. package/dist/{64.ac922cb38c3ff6c431fb.bundle.js → 99.6360b70da56083cd76fe.bundle.js} +1 -2
  222. package/dist/bundle.39b836d40f0926aeec16.bundle.js +91 -0
  223. package/dist/css/aclmanagement.css +114 -0
  224. package/dist/css/angular-tooltips.css +144 -0
  225. package/dist/css/autocomplete-select.css +62 -0
  226. package/dist/css/backup-and-restore.css +7 -0
  227. package/dist/css/bootstrap-graphdb-theme-dark-auto.css +36 -0
  228. package/dist/css/bootstrap-graphdb-theme.css +514 -252
  229. package/dist/css/clustermanagement.css +145 -266
  230. package/dist/css/common.css +105 -0
  231. package/dist/css/dependencies.css +4 -4
  232. package/dist/css/domain-range-graph.css +3 -3
  233. package/dist/css/explore.css +7 -1
  234. package/dist/css/export.css +13 -9
  235. package/dist/css/find.css +2 -3
  236. package/dist/css/fonts/icons.eot +0 -0
  237. package/dist/css/fonts/icons.svg +14 -5
  238. package/dist/css/fonts/icons.ttf +0 -0
  239. package/dist/css/fonts/icons.woff +0 -0
  240. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
  241. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
  242. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
  243. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
  244. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  245. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  246. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  247. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  248. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
  249. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
  250. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
  251. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
  252. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
  253. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
  254. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
  255. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
  256. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  257. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  258. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  259. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  260. package/dist/css/graphs-config.css +4 -4
  261. package/dist/css/graphs-vizualizations.css +11 -10
  262. package/dist/css/guides.css +9 -0
  263. package/dist/css/jmx.css +22 -0
  264. package/dist/css/lib/angular-xeditable/xeditable.min.css +2 -2
  265. package/dist/css/new-sparql.css +68 -2
  266. package/dist/css/operations-statuses-monitor.css +111 -0
  267. package/dist/css/plugins.css +7 -18
  268. package/dist/css/rdf-class-hierarchy-labels.css +2 -2
  269. package/dist/css/rdf-class-hierarchy.css +3 -3
  270. package/dist/css/rdf-details-side-panel.css +8 -1
  271. package/dist/css/rdf-resource-search.css +5 -2
  272. package/dist/css/repositories.css +73 -31
  273. package/dist/css/repository.create.css +14 -4
  274. package/dist/css/shepherd-custom.css +80 -0
  275. package/dist/css/workbench-custom.css +54 -14
  276. package/dist/css/yasr.custom.css +28 -6
  277. package/dist/font/{icons.f404525bf0491c43fc1c35fc43fe14d8.eot → icons.23e96f215ba03e98233de883d2c30b60.eot} +0 -0
  278. package/dist/i18n/locale-en.json +488 -129
  279. package/dist/i18n/locale-fr.json +602 -261
  280. package/dist/icon.png +0 -0
  281. package/dist/img/{graphdb-logo-sq.75ddb875d9a986a6ac944450ae134725.svg → graphdb-logo-sq.3a5fb4b3f1e0e248dc308da1bf4de9f8.svg} +4 -4
  282. package/dist/img/{graphdb-logo.cb18d544b9cf2eb6062daa81bdb1f850.svg → graphdb-logo.741abf3e3881e1566e4504c9f00b91c0.svg} +3 -4
  283. package/dist/img/{graphdb-small.635110bdf15de2ad589b6e3fdaa75887.svg → graphdb-small.5f94ee13e65870be1db31bb89e6deded.svg} +6 -6
  284. package/dist/img/graphdb-splash.1ef2940889acddc03c7defb3f9f41f8d.svg +1 -0
  285. package/dist/img/{icons.2271b2cdd5a3d1037d80bf831f4918cc.svg → icons.ab6168834b8775f511d09c8fad540b27.svg} +14 -5
  286. package/dist/index.html +87 -85
  287. package/dist/js/angular/autocomplete/templates/modal/add-label.html +9 -8
  288. package/dist/js/angular/chatgpt/templates/chat.html +113 -0
  289. package/dist/js/angular/chatgpt/templates/chatInfo.html +11 -0
  290. package/dist/js/angular/chatgpt/templates/modal/settings.html +61 -0
  291. package/dist/js/angular/clustermanagement/templates/modal/add-nodes-dialog.html +67 -0
  292. package/dist/js/angular/clustermanagement/templates/modal/cluster-create-dialog.html +173 -0
  293. package/dist/js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html +9 -14
  294. package/dist/js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html +118 -0
  295. package/dist/js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html +39 -0
  296. package/dist/js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html +86 -0
  297. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +18 -0
  298. package/dist/js/angular/core/directives/languageselector/templates/languageSelector.html +9 -7
  299. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +57 -0
  300. package/dist/js/angular/core/directives/queryeditor/templates/query-editor.html +44 -56
  301. package/dist/js/angular/core/directives/queryeditor/templates/query-sample.html +11 -11
  302. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +4 -6
  303. package/dist/js/angular/core/templates/core-errors.html +27 -18
  304. package/dist/js/angular/core/templates/inactive-plugin-warning-page.html +1 -2
  305. package/dist/js/angular/core/templates/modal/copy-to-clipboard-modal.html +9 -10
  306. package/dist/js/angular/core/templates/modal/modal-warning.html +1 -1
  307. package/dist/js/angular/core/templates/search-resource-input.html +9 -9
  308. package/dist/js/angular/externalsync/templates/deleteConnector.html +5 -5
  309. package/dist/js/angular/graphexplore/templates/modal/save-graph.html +10 -11
  310. package/dist/js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html +4 -6
  311. package/dist/js/angular/graphexplore/templates/searchIconInputTemplate.html +5 -7
  312. package/dist/js/angular/import/templates/filesTable.html +15 -15
  313. package/dist/js/angular/import/templates/settingsModal.html +231 -231
  314. package/dist/js/angular/import/templates/textSnippet.html +4 -4
  315. package/dist/js/angular/import/templates/urlImport.html +7 -5
  316. package/dist/js/angular/repositories/templates/fedx-repo.html +53 -49
  317. package/dist/js/angular/repositories/templates/ontop-repo.html +191 -60
  318. package/dist/js/angular/security/templates/modal/default-authorities.html +12 -12
  319. package/dist/js/angular/security/templates/user.html +102 -41
  320. package/dist/js/angular/security/templates/users.html +24 -17
  321. package/dist/js/angular/settings/modal/location-settings.html +17 -18
  322. package/dist/js/angular/settings/modal/validate-license.html +19 -6
  323. package/dist/js/angular/templates/graphdb-small.svg +6 -6
  324. package/dist/js/angular/templates/modal/add-fedx-remote-repo.html +17 -15
  325. package/dist/js/angular/templates/modal/add-location.html +18 -22
  326. package/dist/js/angular/templates/modal/edit-location.html +11 -11
  327. package/dist/js/angular/templates/modal/editRepoFile.html +2 -2
  328. package/dist/js/angular/templates/modal/upload-repository-config.html +2 -2
  329. package/dist/js/angular/templates/repositorySize.html +7 -1
  330. package/dist/js/lib/angucomplete-alt/angucomplete-alt.css +2 -2
  331. package/dist/js/lib/rzslider/rzslider.min.css +1 -1
  332. package/dist/license-checker-static.json +128 -0
  333. package/dist/license-checker.json +872 -0
  334. package/dist/main.3ac2b4b19f56209c6467.css +1 -0
  335. package/dist/main.948c3b96766ce09e145b.bundle.js +1 -0
  336. package/dist/pages/aclmanagement.html +177 -0
  337. package/dist/pages/autocomplete.html +16 -12
  338. package/dist/pages/choose-repository-type.html +8 -8
  339. package/dist/pages/cluster-management/clusterInfo.html +160 -138
  340. package/dist/pages/connectorsInfo.html +23 -18
  341. package/dist/pages/create-index.html +18 -18
  342. package/dist/pages/createConnector.html +137 -137
  343. package/dist/pages/dependencies.html +23 -31
  344. package/dist/pages/domainRangeInfo.html +16 -19
  345. package/dist/pages/edit.html +15 -15
  346. package/dist/pages/explore.html +22 -25
  347. package/dist/pages/export.html +38 -39
  348. package/dist/pages/find.html +3 -3
  349. package/dist/pages/graph-config/saveGraphConfig.html +43 -43
  350. package/dist/pages/graphs-visualizations.html +71 -78
  351. package/dist/pages/guides.html +60 -0
  352. package/dist/pages/home.html +46 -28
  353. package/dist/pages/import.html +11 -10
  354. package/dist/pages/info.html +18 -18
  355. package/dist/pages/jdbc-create.html +48 -46
  356. package/dist/pages/jdbc.html +4 -4
  357. package/dist/pages/licenseInfo.html +66 -48
  358. package/dist/pages/login.html +5 -6
  359. package/dist/pages/monitor/backup-and-restore.html +80 -0
  360. package/dist/pages/monitor/queries.html +7 -8
  361. package/dist/pages/monitor/resources.html +213 -79
  362. package/dist/pages/namespaces.html +22 -21
  363. package/dist/pages/plugins.html +9 -10
  364. package/dist/pages/rdfClassHierarchyInfo.html +31 -35
  365. package/dist/pages/rdfrank.html +25 -27
  366. package/dist/pages/registerLicenseInfo.html +10 -12
  367. package/dist/pages/repositories.html +170 -193
  368. package/dist/pages/repository.html +124 -58
  369. package/dist/pages/similarity-indexes.html +18 -18
  370. package/dist/pages/sparql-template-create.html +30 -29
  371. package/dist/pages/sparql-templates.html +4 -4
  372. package/dist/pages/sparql.html +11 -11
  373. package/dist/pages/ux-test1.html +102 -0
  374. package/dist/pages/ux-test2.html +17 -0
  375. package/dist/pages/webapi.html +4 -4
  376. package/dist/plugin-registry.js +14 -0
  377. package/dist/plugins.js +1967 -84
  378. package/dist/res/sparql/keyboard-shortcuts.html +7 -1
  379. package/dist/res/swagger/css/onto-theme.css +8 -0
  380. package/dist/res/swagger/css/reset.css +1 -2
  381. package/dist/res/swagger/css/screen.css +6 -15
  382. package/dist/res/swagger/fonts/icons.woff +0 -0
  383. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
  384. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
  385. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
  386. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
  387. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  388. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  389. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  390. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  391. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
  392. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
  393. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
  394. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
  395. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
  396. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
  397. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
  398. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
  399. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  400. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  401. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  402. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  403. package/dist/res/swagger/fonts/rubik-italic.woff +0 -0
  404. package/dist/res/swagger/fonts/rubik-italic.woff2 +0 -0
  405. package/dist/res/swagger/fonts/rubik-light.woff +0 -0
  406. package/dist/res/swagger/fonts/rubik-light.woff2 +0 -0
  407. package/dist/res/swagger/fonts/rubik-lightitalic.woff +0 -0
  408. package/dist/res/swagger/fonts/rubik-lightitalic.woff2 +0 -0
  409. package/dist/res/swagger/fonts/rubik-medium.woff +0 -0
  410. package/dist/res/swagger/fonts/rubik-medium.woff2 +0 -0
  411. package/dist/res/swagger/fonts/rubik-mediumitalic.woff +0 -0
  412. package/dist/res/swagger/fonts/rubik-mediumitalic.woff2 +0 -0
  413. package/dist/res/swagger/fonts/rubik-regular.woff +0 -0
  414. package/dist/res/swagger/fonts/rubik-regular.woff2 +0 -0
  415. package/dist/res/swagger/index.html +27 -25
  416. package/dist/vendor.7b6ede99ef82acd3dcf5.bundle.js +27 -0
  417. package/dist/{vendor.4ba46e62f4d43dab5e82.css → vendor.d1c629ceaacea40a5f4a.css} +1 -1
  418. package/package.json +13 -9
  419. package/dist/0.32d0f91ca9c8d09fb6f1.bundle.js +0 -82
  420. package/dist/0.32d0f91ca9c8d09fb6f1.bundle.js.map +0 -1
  421. package/dist/1.6300131e72a9f28f9df3.bundle.js +0 -27
  422. package/dist/1.6300131e72a9f28f9df3.bundle.js.map +0 -1
  423. package/dist/10.bb0713b18c3e55445fa7.bundle.js +0 -2
  424. package/dist/10.bb0713b18c3e55445fa7.bundle.js.map +0 -1
  425. package/dist/100.acbece8e389effbcfa2e.bundle.js +0 -2
  426. package/dist/100.acbece8e389effbcfa2e.bundle.js.map +0 -1
  427. package/dist/101.abc28aeafc8c037b80dc.bundle.js +0 -2
  428. package/dist/101.abc28aeafc8c037b80dc.bundle.js.map +0 -1
  429. package/dist/102.236df15ec49946c8799a.bundle.js +0 -2
  430. package/dist/102.236df15ec49946c8799a.bundle.js.map +0 -1
  431. package/dist/103.05b86c1b360c05133b49.bundle.js.map +0 -1
  432. package/dist/104.089568ff7c49a29de892.bundle.js.map +0 -1
  433. package/dist/105.81b74220f7fa646e719b.bundle.js.map +0 -1
  434. package/dist/106.5de7943f8a3adda97372.bundle.js +0 -2
  435. package/dist/106.5de7943f8a3adda97372.bundle.js.map +0 -1
  436. package/dist/11.288d37db1902f00f7c8e.bundle.js +0 -2
  437. package/dist/11.288d37db1902f00f7c8e.bundle.js.map +0 -1
  438. package/dist/110.5a553b21d45a64e7e321.bundle.js +0 -2
  439. package/dist/110.5a553b21d45a64e7e321.bundle.js.map +0 -1
  440. package/dist/111.04e34833a2c4fc227899.bundle.js +0 -2
  441. package/dist/111.04e34833a2c4fc227899.bundle.js.map +0 -1
  442. package/dist/112.b2bdfd64c50509d05503.bundle.js +0 -2
  443. package/dist/112.b2bdfd64c50509d05503.bundle.js.map +0 -1
  444. package/dist/113.b386b036c2a3d9077f64.bundle.js +0 -2
  445. package/dist/113.b386b036c2a3d9077f64.bundle.js.map +0 -1
  446. package/dist/114.0768e042a8e6ec856942.bundle.js +0 -2
  447. package/dist/114.0768e042a8e6ec856942.bundle.js.map +0 -1
  448. package/dist/115.374b221f284e8755ef31.bundle.js +0 -2
  449. package/dist/115.374b221f284e8755ef31.bundle.js.map +0 -1
  450. package/dist/116.ca9d40889c222f47c45f.bundle.js +0 -2
  451. package/dist/116.ca9d40889c222f47c45f.bundle.js.map +0 -1
  452. package/dist/117.92f7630bfb95444a87e8.bundle.js +0 -2
  453. package/dist/117.92f7630bfb95444a87e8.bundle.js.map +0 -1
  454. package/dist/118.7e28dcfd80b93a705d71.bundle.js +0 -2
  455. package/dist/118.7e28dcfd80b93a705d71.bundle.js.map +0 -1
  456. package/dist/119.e3a038ffb960ed3661fe.bundle.js +0 -2
  457. package/dist/119.e3a038ffb960ed3661fe.bundle.js.map +0 -1
  458. package/dist/12.9004ab127289745129a4.bundle.js +0 -4
  459. package/dist/12.9004ab127289745129a4.bundle.js.map +0 -1
  460. package/dist/120.3b0b67fbfa81ec95e044.bundle.js.map +0 -1
  461. package/dist/121.ff452d05188836228deb.bundle.js.map +0 -1
  462. package/dist/122.1b8056c745358fa2f6cb.bundle.js +0 -2
  463. package/dist/122.1b8056c745358fa2f6cb.bundle.js.map +0 -1
  464. package/dist/123.289bb9a87ce416004c0a.bundle.js.map +0 -1
  465. package/dist/124.75965fcb93d0fe988609.bundle.js +0 -2
  466. package/dist/124.75965fcb93d0fe988609.bundle.js.map +0 -1
  467. package/dist/125.51ff26fe7687752811e4.bundle.js.map +0 -1
  468. package/dist/126.b89a0728154793be4eb9.bundle.js +0 -2
  469. package/dist/126.b89a0728154793be4eb9.bundle.js.map +0 -1
  470. package/dist/127.4d0a2164fb95df43ea22.bundle.js.map +0 -1
  471. package/dist/128.c7a3530622ede2f34e72.bundle.js.map +0 -1
  472. package/dist/129.2d32313059ae96dba010.bundle.js.map +0 -1
  473. package/dist/13.897f9af290de9fbd43bb.bundle.js +0 -16
  474. package/dist/13.897f9af290de9fbd43bb.bundle.js.map +0 -1
  475. package/dist/130.7302112cf14a10bd1306.bundle.js.map +0 -1
  476. package/dist/131.eb262b5100305bdc23ee.bundle.js.map +0 -1
  477. package/dist/132.264b9ebf860e308417ad.bundle.js +0 -2
  478. package/dist/132.264b9ebf860e308417ad.bundle.js.map +0 -1
  479. package/dist/133.f855496341ba657eb673.bundle.js.map +0 -1
  480. package/dist/134.91de2ab11c49967200ad.bundle.js +0 -2
  481. package/dist/134.91de2ab11c49967200ad.bundle.js.map +0 -1
  482. package/dist/135.82e48e81e60b2ab89e04.bundle.js +0 -2
  483. package/dist/135.82e48e81e60b2ab89e04.bundle.js.map +0 -1
  484. package/dist/136.74f131c98a163b48e3df.bundle.js.map +0 -1
  485. package/dist/137.89253235e0e48f86534b.bundle.js +0 -2
  486. package/dist/137.89253235e0e48f86534b.bundle.js.map +0 -1
  487. package/dist/138.9111fe731587313e4574.bundle.js.map +0 -1
  488. package/dist/139.642cab70149cdfc8c034.bundle.js +0 -2
  489. package/dist/139.642cab70149cdfc8c034.bundle.js.map +0 -1
  490. package/dist/14.3c22be70e13b5347940a.bundle.js +0 -3
  491. package/dist/14.3c22be70e13b5347940a.bundle.js.map +0 -1
  492. package/dist/140.8fcbd3b16a54b9ca5d80.bundle.js +0 -2
  493. package/dist/140.8fcbd3b16a54b9ca5d80.bundle.js.map +0 -1
  494. package/dist/141.09939d5f25d69d9e1bdd.bundle.js +0 -2
  495. package/dist/141.09939d5f25d69d9e1bdd.bundle.js.map +0 -1
  496. package/dist/142.5ced0a8e7a08aea7988f.bundle.js.map +0 -1
  497. package/dist/143.1bd6e2941d5c9fdc9e77.bundle.js +0 -2
  498. package/dist/143.1bd6e2941d5c9fdc9e77.bundle.js.map +0 -1
  499. package/dist/144.34dd1b710f93da283e39.bundle.js +0 -2
  500. package/dist/144.34dd1b710f93da283e39.bundle.js.map +0 -1
  501. package/dist/145.832e90a54396296da91b.bundle.js +0 -2
  502. package/dist/145.832e90a54396296da91b.bundle.js.map +0 -1
  503. package/dist/146.a4ab1f2f5177d9e27861.bundle.js +0 -2
  504. package/dist/146.a4ab1f2f5177d9e27861.bundle.js.map +0 -1
  505. package/dist/147.f6bd445276a200981cff.bundle.js.map +0 -1
  506. package/dist/148.1c23268b87514b7220b3.bundle.js +0 -2
  507. package/dist/148.1c23268b87514b7220b3.bundle.js.map +0 -1
  508. package/dist/149.82fc16905f1377c6610a.bundle.js +0 -2
  509. package/dist/149.82fc16905f1377c6610a.bundle.js.map +0 -1
  510. package/dist/15.ba4fe6f57951d2f73adc.bundle.js +0 -2
  511. package/dist/15.ba4fe6f57951d2f73adc.bundle.js.map +0 -1
  512. package/dist/150.6d8e3bb0cbc5774322d9.bundle.js +0 -2
  513. package/dist/150.6d8e3bb0cbc5774322d9.bundle.js.map +0 -1
  514. package/dist/151.c752cbb4d5f9299df813.bundle.js +0 -2
  515. package/dist/151.c752cbb4d5f9299df813.bundle.js.map +0 -1
  516. package/dist/152.78d7840c4b8f93748bfe.bundle.js +0 -2
  517. package/dist/152.78d7840c4b8f93748bfe.bundle.js.map +0 -1
  518. package/dist/153.ebc378a7a60222b69484.bundle.js.map +0 -1
  519. package/dist/154.4452ad65074e44967389.bundle.js +0 -2
  520. package/dist/154.4452ad65074e44967389.bundle.js.map +0 -1
  521. package/dist/155.12819130f26753e109ad.bundle.js +0 -2
  522. package/dist/155.12819130f26753e109ad.bundle.js.map +0 -1
  523. package/dist/16.a236b38d63123b1a3c61.bundle.js +0 -4
  524. package/dist/16.a236b38d63123b1a3c61.bundle.js.map +0 -1
  525. package/dist/17.d8d59fa7fbb3b422fdf8.bundle.js +0 -2
  526. package/dist/17.d8d59fa7fbb3b422fdf8.bundle.js.map +0 -1
  527. package/dist/18.bc2da9ff57be136ef082.bundle.js +0 -2
  528. package/dist/18.bc2da9ff57be136ef082.bundle.js.map +0 -1
  529. package/dist/19.19811699b6e54f19f71e.bundle.js +0 -3
  530. package/dist/19.19811699b6e54f19f71e.bundle.js.map +0 -1
  531. package/dist/2.fb2f97f5c543a24296f6.bundle.js +0 -2
  532. package/dist/2.fb2f97f5c543a24296f6.bundle.js.map +0 -1
  533. package/dist/20.df3652981fc73c6a8b8c.bundle.js +0 -2
  534. package/dist/20.df3652981fc73c6a8b8c.bundle.js.map +0 -1
  535. package/dist/21.b7fbdf3c3b22b578928c.bundle.js +0 -2
  536. package/dist/21.b7fbdf3c3b22b578928c.bundle.js.map +0 -1
  537. package/dist/22.2da0e8ec2ac2048ecd60.bundle.js +0 -3
  538. package/dist/22.2da0e8ec2ac2048ecd60.bundle.js.map +0 -1
  539. package/dist/23.4140c4c20347efc963a4.bundle.js +0 -2
  540. package/dist/23.4140c4c20347efc963a4.bundle.js.map +0 -1
  541. package/dist/24.219ce55f8f6a5bd02dad.bundle.js +0 -2
  542. package/dist/24.219ce55f8f6a5bd02dad.bundle.js.map +0 -1
  543. package/dist/25.e79de2370b1ee4072e19.bundle.js +0 -2
  544. package/dist/25.e79de2370b1ee4072e19.bundle.js.map +0 -1
  545. package/dist/26.c1619706b8cbb1ab23cb.bundle.js +0 -2
  546. package/dist/26.c1619706b8cbb1ab23cb.bundle.js.map +0 -1
  547. package/dist/27.350dba622e243e1ab5fb.bundle.js +0 -2
  548. package/dist/27.350dba622e243e1ab5fb.bundle.js.map +0 -1
  549. package/dist/28.e687c87a5f1dc8a30fd0.bundle.js +0 -2
  550. package/dist/28.e687c87a5f1dc8a30fd0.bundle.js.map +0 -1
  551. package/dist/29.34a4af65623cd4af6899.bundle.js +0 -2
  552. package/dist/29.34a4af65623cd4af6899.bundle.js.map +0 -1
  553. package/dist/3.dfa66b44200c3fca24a2.bundle.js +0 -2
  554. package/dist/3.dfa66b44200c3fca24a2.bundle.js.map +0 -1
  555. package/dist/30.f4738c7c2d74f00f2e5f.bundle.js +0 -2
  556. package/dist/30.f4738c7c2d74f00f2e5f.bundle.js.map +0 -1
  557. package/dist/31.ab8f2e70841221e1d427.bundle.js +0 -2
  558. package/dist/31.ab8f2e70841221e1d427.bundle.js.map +0 -1
  559. package/dist/32.3210a7952ffcb57daa1a.bundle.js +0 -2
  560. package/dist/32.3210a7952ffcb57daa1a.bundle.js.map +0 -1
  561. package/dist/33.fcf9c56901b5590bd603.bundle.js +0 -2
  562. package/dist/33.fcf9c56901b5590bd603.bundle.js.map +0 -1
  563. package/dist/34.2c344c05bfc4048c3d53.bundle.js +0 -2
  564. package/dist/34.2c344c05bfc4048c3d53.bundle.js.map +0 -1
  565. package/dist/35.423c4a91e80adf5d97c8.bundle.js +0 -2
  566. package/dist/35.423c4a91e80adf5d97c8.bundle.js.map +0 -1
  567. package/dist/36.247686b6d65de11ec10d.bundle.js +0 -2
  568. package/dist/36.247686b6d65de11ec10d.bundle.js.map +0 -1
  569. package/dist/37.5f6089a939b59309cc82.bundle.js +0 -2
  570. package/dist/37.5f6089a939b59309cc82.bundle.js.map +0 -1
  571. package/dist/38.9e79a9ec2f9d5af38692.bundle.js +0 -2
  572. package/dist/38.9e79a9ec2f9d5af38692.bundle.js.map +0 -1
  573. package/dist/39.b64ae969a5f5fea4504c.bundle.js +0 -2
  574. package/dist/39.b64ae969a5f5fea4504c.bundle.js.map +0 -1
  575. package/dist/4.188966396c80909f58cd.bundle.js +0 -2
  576. package/dist/4.188966396c80909f58cd.bundle.js.map +0 -1
  577. package/dist/40.1303e99feecbba2614a7.bundle.js +0 -2
  578. package/dist/40.1303e99feecbba2614a7.bundle.js.map +0 -1
  579. package/dist/41.687956ca2240355a838f.bundle.js +0 -2
  580. package/dist/41.687956ca2240355a838f.bundle.js.map +0 -1
  581. package/dist/42.78e0302e87b9d244a1d7.bundle.js +0 -2
  582. package/dist/42.78e0302e87b9d244a1d7.bundle.js.map +0 -1
  583. package/dist/43.ee0de548c525f8e422ba.bundle.js +0 -2
  584. package/dist/43.ee0de548c525f8e422ba.bundle.js.map +0 -1
  585. package/dist/44.38b4979d4b201ae1fffb.bundle.js +0 -2
  586. package/dist/44.38b4979d4b201ae1fffb.bundle.js.map +0 -1
  587. package/dist/45.8a0ab002ad0f614964e5.bundle.js +0 -2
  588. package/dist/45.8a0ab002ad0f614964e5.bundle.js.map +0 -1
  589. package/dist/46.720c0f65b93f4fe01a7c.bundle.js +0 -2
  590. package/dist/46.720c0f65b93f4fe01a7c.bundle.js.map +0 -1
  591. package/dist/47.686e599732ae6f41120c.bundle.js.map +0 -1
  592. package/dist/48.bdb51ad865126b918831.bundle.js +0 -2
  593. package/dist/48.bdb51ad865126b918831.bundle.js.map +0 -1
  594. package/dist/49.74a24e08097ef1f6fcd2.bundle.js +0 -2
  595. package/dist/49.74a24e08097ef1f6fcd2.bundle.js.map +0 -1
  596. package/dist/5.9bbd38317d375cd02da2.bundle.js +0 -8
  597. package/dist/5.9bbd38317d375cd02da2.bundle.js.map +0 -1
  598. package/dist/50.313e315d4c339ad1bcdd.bundle.js +0 -2
  599. package/dist/50.313e315d4c339ad1bcdd.bundle.js.map +0 -1
  600. package/dist/51.895a3dacdc3a8eaee275.bundle.js.map +0 -1
  601. package/dist/52.1f6bc47f1c9abcc79e8d.bundle.js +0 -2
  602. package/dist/52.1f6bc47f1c9abcc79e8d.bundle.js.map +0 -1
  603. package/dist/53.f6c19075252833268cca.bundle.js +0 -2
  604. package/dist/53.f6c19075252833268cca.bundle.js.map +0 -1
  605. package/dist/54.599ca3ae32ee1fb5f937.bundle.js +0 -2
  606. package/dist/54.599ca3ae32ee1fb5f937.bundle.js.map +0 -1
  607. package/dist/55.c20a51cb1d894f9113b4.bundle.js +0 -2
  608. package/dist/55.c20a51cb1d894f9113b4.bundle.js.map +0 -1
  609. package/dist/56.91947e80d8e04223ac58.bundle.js.map +0 -1
  610. package/dist/57.ab4ee313c9d6c7e29384.bundle.js +0 -2
  611. package/dist/57.ab4ee313c9d6c7e29384.bundle.js.map +0 -1
  612. package/dist/58.99c83a8dac31c1b681df.bundle.js +0 -2
  613. package/dist/58.99c83a8dac31c1b681df.bundle.js.map +0 -1
  614. package/dist/59.99da52e1d8946ac0f601.bundle.js +0 -2
  615. package/dist/59.99da52e1d8946ac0f601.bundle.js.map +0 -1
  616. package/dist/6.6c67a1bcf82bb335b0c4.bundle.js +0 -2
  617. package/dist/6.6c67a1bcf82bb335b0c4.bundle.js.map +0 -1
  618. package/dist/60.92b9758945e497e52bac.bundle.js +0 -2
  619. package/dist/60.92b9758945e497e52bac.bundle.js.map +0 -1
  620. package/dist/61.42887fbc87f941cf7c81.bundle.js +0 -2
  621. package/dist/61.42887fbc87f941cf7c81.bundle.js.map +0 -1
  622. package/dist/62.c21410d6e123395d3920.bundle.js +0 -2
  623. package/dist/62.c21410d6e123395d3920.bundle.js.map +0 -1
  624. package/dist/63.1ab0c580ba57aee5479c.bundle.js +0 -2
  625. package/dist/63.1ab0c580ba57aee5479c.bundle.js.map +0 -1
  626. package/dist/64.ac922cb38c3ff6c431fb.bundle.js.map +0 -1
  627. package/dist/65.9fcde753699dc94bea1d.bundle.js +0 -2
  628. package/dist/65.9fcde753699dc94bea1d.bundle.js.map +0 -1
  629. package/dist/66.8213a0430e7543b6d7f7.bundle.js +0 -2
  630. package/dist/66.8213a0430e7543b6d7f7.bundle.js.map +0 -1
  631. package/dist/67.320a484bc979f5076d8c.bundle.js +0 -2
  632. package/dist/67.320a484bc979f5076d8c.bundle.js.map +0 -1
  633. package/dist/68.a69e9e22327878f44dbd.bundle.js +0 -2
  634. package/dist/68.a69e9e22327878f44dbd.bundle.js.map +0 -1
  635. package/dist/69.be786580c66ac4ee18cb.bundle.js +0 -2
  636. package/dist/69.be786580c66ac4ee18cb.bundle.js.map +0 -1
  637. package/dist/7.0fd9bc389f42820382e4.bundle.js +0 -3
  638. package/dist/7.0fd9bc389f42820382e4.bundle.js.map +0 -1
  639. package/dist/70.93cfa1f02948e8276451.bundle.js +0 -2
  640. package/dist/70.93cfa1f02948e8276451.bundle.js.map +0 -1
  641. package/dist/71.6b8c8bce52a95f2da242.bundle.js +0 -2
  642. package/dist/71.6b8c8bce52a95f2da242.bundle.js.map +0 -1
  643. package/dist/72.6cbb41a38d917191c660.bundle.js +0 -2
  644. package/dist/72.6cbb41a38d917191c660.bundle.js.map +0 -1
  645. package/dist/73.801e05b4acc74a3e268c.bundle.js +0 -2
  646. package/dist/73.801e05b4acc74a3e268c.bundle.js.map +0 -1
  647. package/dist/74.1c6322e5f93d5376fd76.bundle.js +0 -2
  648. package/dist/74.1c6322e5f93d5376fd76.bundle.js.map +0 -1
  649. package/dist/75.c95c9015a30a98acb353.bundle.js +0 -2
  650. package/dist/75.c95c9015a30a98acb353.bundle.js.map +0 -1
  651. package/dist/76.29111b9618d43a0dd149.bundle.js +0 -2
  652. package/dist/76.29111b9618d43a0dd149.bundle.js.map +0 -1
  653. package/dist/77.6ced6f6e26dfe1c4e00f.bundle.js +0 -2
  654. package/dist/77.6ced6f6e26dfe1c4e00f.bundle.js.map +0 -1
  655. package/dist/78.7c7d2a0d9e7c2d2483e6.bundle.js +0 -2
  656. package/dist/78.7c7d2a0d9e7c2d2483e6.bundle.js.map +0 -1
  657. package/dist/79.696045e048461f420813.bundle.js +0 -2
  658. package/dist/79.696045e048461f420813.bundle.js.map +0 -1
  659. package/dist/8.22695f5c20dcddc1c7f9.bundle.js +0 -2
  660. package/dist/8.22695f5c20dcddc1c7f9.bundle.js.map +0 -1
  661. package/dist/80.b5e832779f88ebe839e2.bundle.js +0 -2
  662. package/dist/80.b5e832779f88ebe839e2.bundle.js.map +0 -1
  663. package/dist/81.5a0776b89463df60bd1a.bundle.js +0 -2
  664. package/dist/81.5a0776b89463df60bd1a.bundle.js.map +0 -1
  665. package/dist/82.0a98b482c7c37a9812fc.bundle.js +0 -2
  666. package/dist/82.0a98b482c7c37a9812fc.bundle.js.map +0 -1
  667. package/dist/83.8beeb651df72c23d53ac.bundle.js +0 -2
  668. package/dist/83.8beeb651df72c23d53ac.bundle.js.map +0 -1
  669. package/dist/84.6f35fe422db61d53ae3e.bundle.js +0 -2
  670. package/dist/84.6f35fe422db61d53ae3e.bundle.js.map +0 -1
  671. package/dist/85.2d1142fcbdf4c9868e94.bundle.js +0 -2
  672. package/dist/85.2d1142fcbdf4c9868e94.bundle.js.map +0 -1
  673. package/dist/86.ce91cb69963c2b84e551.bundle.js +0 -2
  674. package/dist/86.ce91cb69963c2b84e551.bundle.js.map +0 -1
  675. package/dist/87.d4aa485128cd374a11c7.bundle.js +0 -2
  676. package/dist/87.d4aa485128cd374a11c7.bundle.js.map +0 -1
  677. package/dist/88.b4cd8e99a6af1abea692.bundle.js +0 -2
  678. package/dist/88.b4cd8e99a6af1abea692.bundle.js.map +0 -1
  679. package/dist/89.8ce40cc9d5fe2596fdf9.bundle.js +0 -2
  680. package/dist/89.8ce40cc9d5fe2596fdf9.bundle.js.map +0 -1
  681. package/dist/9.d94f24c12177433d455a.bundle.js +0 -2
  682. package/dist/9.d94f24c12177433d455a.bundle.js.map +0 -1
  683. package/dist/90.94988124ca51fa46932e.bundle.js +0 -2
  684. package/dist/90.94988124ca51fa46932e.bundle.js.map +0 -1
  685. package/dist/91.bfbbacbaea095478d82e.bundle.js +0 -2
  686. package/dist/91.bfbbacbaea095478d82e.bundle.js.map +0 -1
  687. package/dist/92.791121a262e5f42a2ba2.bundle.js +0 -2
  688. package/dist/92.791121a262e5f42a2ba2.bundle.js.map +0 -1
  689. package/dist/93.7da268902b8515abecf6.bundle.js +0 -2
  690. package/dist/93.7da268902b8515abecf6.bundle.js.map +0 -1
  691. package/dist/94.88f1bd8fa645739c4f30.bundle.js +0 -2
  692. package/dist/94.88f1bd8fa645739c4f30.bundle.js.map +0 -1
  693. package/dist/95.bbd1b757de3af20f2ac1.bundle.js +0 -2
  694. package/dist/95.bbd1b757de3af20f2ac1.bundle.js.map +0 -1
  695. package/dist/96.38e7df277c99946f9a20.bundle.js +0 -2
  696. package/dist/96.38e7df277c99946f9a20.bundle.js.map +0 -1
  697. package/dist/97.1818744137f2fb66596a.bundle.js +0 -2
  698. package/dist/97.1818744137f2fb66596a.bundle.js.map +0 -1
  699. package/dist/98.1a14af46a31cf35db0e5.bundle.js +0 -2
  700. package/dist/98.1a14af46a31cf35db0e5.bundle.js.map +0 -1
  701. package/dist/99.bd486f7d738e281a0752.bundle.js +0 -2
  702. package/dist/99.bd486f7d738e281a0752.bundle.js.map +0 -1
  703. package/dist/bundle.5eeff901b77240e58d27.bundle.js +0 -89
  704. package/dist/bundle.5eeff901b77240e58d27.bundle.js.map +0 -1
  705. package/dist/css/fonts/rubik-italic.woff +0 -0
  706. package/dist/css/fonts/rubik-italic.woff2 +0 -0
  707. package/dist/css/fonts/rubik-light.woff +0 -0
  708. package/dist/css/fonts/rubik-light.woff2 +0 -0
  709. package/dist/css/fonts/rubik-lightitalic.woff +0 -0
  710. package/dist/css/fonts/rubik-lightitalic.woff2 +0 -0
  711. package/dist/css/fonts/rubik-medium.woff +0 -0
  712. package/dist/css/fonts/rubik-medium.woff2 +0 -0
  713. package/dist/css/fonts/rubik-mediumitalic.woff +0 -0
  714. package/dist/css/fonts/rubik-mediumitalic.woff2 +0 -0
  715. package/dist/css/fonts/rubik-regular.woff +0 -0
  716. package/dist/css/fonts/rubik-regular.woff2 +0 -0
  717. package/dist/css/lib/bootstrap-switch/bootstrap-switch.min.css +0 -10
  718. package/dist/img/graphdb-splash.2eb3f7f02aa7e25a2545459e096f3738.svg +0 -141
  719. package/dist/js/angular/clustermanagement/templates/modal/clone-modal.html +0 -27
  720. package/dist/js/lib/nvd3/nv.d3.css +0 -755
  721. package/dist/main.e5d47f1d0bcd23074c38.css +0 -1
  722. package/dist/main.f10730ef6eebe969b494.bundle.js +0 -2
  723. package/dist/main.f10730ef6eebe969b494.bundle.js.map +0 -1
  724. package/dist/pages/cluster-management/cluster-configuration.html +0 -183
  725. package/dist/res/swagger/css/style.css +0 -250
  726. package/dist/res/swagger/css/typography.css +0 -60
  727. package/dist/vendor.327ffd7c7997ca288654.bundle.js +0 -50
  728. package/dist/vendor.327ffd7c7997ca288654.bundle.js.map +0 -1
@@ -1,89 +0,0 @@
1
- !function(e){function t(t){for(var n,i,a=t[0],s=t[1],o=0,c=[];o<a.length;o++)i=a[o],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);c.length;)c.shift()()}var n={},r={107: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 a=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=a);var s,o=document.createElement("script");o.charset="utf-8",o.timeout=120,i.nc&&o.setAttribute("nonce",i.nc),o.src=function(e){return i.p+""+({}[e]||e)+"."+{0:"32d0f91ca9c8d09fb6f1",1:"6300131e72a9f28f9df3",2:"fb2f97f5c543a24296f6",3:"dfa66b44200c3fca24a2",4:"188966396c80909f58cd",5:"9bbd38317d375cd02da2",6:"6c67a1bcf82bb335b0c4",7:"0fd9bc389f42820382e4",8:"22695f5c20dcddc1c7f9",9:"d94f24c12177433d455a",10:"bb0713b18c3e55445fa7",11:"288d37db1902f00f7c8e",12:"9004ab127289745129a4",13:"897f9af290de9fbd43bb",14:"3c22be70e13b5347940a",15:"ba4fe6f57951d2f73adc",16:"a236b38d63123b1a3c61",17:"d8d59fa7fbb3b422fdf8",18:"bc2da9ff57be136ef082",19:"19811699b6e54f19f71e",20:"df3652981fc73c6a8b8c",21:"b7fbdf3c3b22b578928c",22:"2da0e8ec2ac2048ecd60",23:"4140c4c20347efc963a4",24:"219ce55f8f6a5bd02dad",25:"e79de2370b1ee4072e19",26:"c1619706b8cbb1ab23cb",27:"350dba622e243e1ab5fb",28:"e687c87a5f1dc8a30fd0",29:"34a4af65623cd4af6899",30:"f4738c7c2d74f00f2e5f",31:"ab8f2e70841221e1d427",32:"3210a7952ffcb57daa1a",33:"fcf9c56901b5590bd603",34:"2c344c05bfc4048c3d53",35:"423c4a91e80adf5d97c8",36:"247686b6d65de11ec10d",37:"5f6089a939b59309cc82",38:"9e79a9ec2f9d5af38692",39:"b64ae969a5f5fea4504c",40:"1303e99feecbba2614a7",41:"687956ca2240355a838f",42:"78e0302e87b9d244a1d7",43:"ee0de548c525f8e422ba",44:"38b4979d4b201ae1fffb",45:"8a0ab002ad0f614964e5",46:"720c0f65b93f4fe01a7c",47:"686e599732ae6f41120c",48:"bdb51ad865126b918831",49:"74a24e08097ef1f6fcd2",50:"313e315d4c339ad1bcdd",51:"895a3dacdc3a8eaee275",52:"1f6bc47f1c9abcc79e8d",53:"f6c19075252833268cca",54:"599ca3ae32ee1fb5f937",55:"c20a51cb1d894f9113b4",56:"91947e80d8e04223ac58",57:"ab4ee313c9d6c7e29384",58:"99c83a8dac31c1b681df",59:"99da52e1d8946ac0f601",60:"92b9758945e497e52bac",61:"42887fbc87f941cf7c81",62:"c21410d6e123395d3920",63:"1ab0c580ba57aee5479c",64:"ac922cb38c3ff6c431fb",65:"9fcde753699dc94bea1d",66:"8213a0430e7543b6d7f7",67:"320a484bc979f5076d8c",68:"a69e9e22327878f44dbd",69:"be786580c66ac4ee18cb",70:"93cfa1f02948e8276451",71:"6b8c8bce52a95f2da242",72:"6cbb41a38d917191c660",73:"801e05b4acc74a3e268c",74:"1c6322e5f93d5376fd76",75:"c95c9015a30a98acb353",76:"29111b9618d43a0dd149",77:"6ced6f6e26dfe1c4e00f",78:"7c7d2a0d9e7c2d2483e6",79:"696045e048461f420813",80:"b5e832779f88ebe839e2",81:"5a0776b89463df60bd1a",82:"0a98b482c7c37a9812fc",83:"8beeb651df72c23d53ac",84:"6f35fe422db61d53ae3e",85:"2d1142fcbdf4c9868e94",86:"ce91cb69963c2b84e551",87:"d4aa485128cd374a11c7",88:"b4cd8e99a6af1abea692",89:"8ce40cc9d5fe2596fdf9",90:"94988124ca51fa46932e",91:"bfbbacbaea095478d82e",92:"791121a262e5f42a2ba2",93:"7da268902b8515abecf6",94:"88f1bd8fa645739c4f30",95:"bbd1b757de3af20f2ac1",96:"38e7df277c99946f9a20",97:"1818744137f2fb66596a",98:"1a14af46a31cf35db0e5",99:"bd486f7d738e281a0752",100:"acbece8e389effbcfa2e",101:"abc28aeafc8c037b80dc",102:"236df15ec49946c8799a",103:"05b86c1b360c05133b49",104:"089568ff7c49a29de892",105:"81b74220f7fa646e719b",106:"5de7943f8a3adda97372",110:"5a553b21d45a64e7e321",111:"04e34833a2c4fc227899",112:"b2bdfd64c50509d05503",113:"b386b036c2a3d9077f64",114:"0768e042a8e6ec856942",115:"374b221f284e8755ef31",116:"ca9d40889c222f47c45f",117:"92f7630bfb95444a87e8",118:"7e28dcfd80b93a705d71",119:"e3a038ffb960ed3661fe",120:"3b0b67fbfa81ec95e044",121:"ff452d05188836228deb",122:"1b8056c745358fa2f6cb",123:"289bb9a87ce416004c0a",124:"75965fcb93d0fe988609",125:"51ff26fe7687752811e4",126:"b89a0728154793be4eb9",127:"4d0a2164fb95df43ea22",128:"c7a3530622ede2f34e72",129:"2d32313059ae96dba010",130:"7302112cf14a10bd1306",131:"eb262b5100305bdc23ee",132:"264b9ebf860e308417ad",133:"f855496341ba657eb673",134:"91de2ab11c49967200ad",135:"82e48e81e60b2ab89e04",136:"74f131c98a163b48e3df",137:"89253235e0e48f86534b",138:"9111fe731587313e4574",139:"642cab70149cdfc8c034",140:"8fcbd3b16a54b9ca5d80",141:"09939d5f25d69d9e1bdd",142:"5ced0a8e7a08aea7988f",143:"1bd6e2941d5c9fdc9e77",144:"34dd1b710f93da283e39",145:"832e90a54396296da91b",146:"a4ab1f2f5177d9e27861",147:"f6bd445276a200981cff",148:"1c23268b87514b7220b3",149:"82fc16905f1377c6610a",150:"6d8e3bb0cbc5774322d9",151:"c752cbb4d5f9299df813",152:"78d7840c4b8f93748bfe",153:"ebc378a7a60222b69484",154:"4452ad65074e44967389",155:"12819130f26753e109ad"}[e]+".bundle.js"}(e);var u=new Error;s=function(t){o.onerror=o.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,n[1](u)}r[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:o})}),12e4);o.onerror=o.onload=s,document.head.appendChild(o)}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 a=window.webpackJsonp=window.webpackJsonp||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var o=0;o<a.length;o++)t(a[o]);var u=s;i(i.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"decodeHTML",(function(){return r}));n(3),n(22),n(26),n(166),n(32),n(167),n(17),n(27),n(28);const r=function(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value},i=["ngRoute","graphdb.workbench.se.controllers","graphdb.framework.core","angularCancelOnNavigateModule","oc.lazyLoad","pascalprecht.translate","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch","graphdb.framework.core.directives.languageselector.languageselector"],a=["$routeProvider","$locationProvider","$menuItemsProvider","toastrConfig","localStorageServiceProvider","$tooltipProvider","$httpProvider","$templateRequestProvider","$translateProvider"];$.get("rest/info/version?local=1",(function(e){const t=e.productVersion.match(/^(\d+\.\d+)/);t.length?e.productShortVersion=t[1]:e.productShortVersion=e.productVersion,function(e){const t=angular.module("graphdb.workbench",i);t.config([...a,function(t,r,i,a,s,o,u,c,l){l.useStaticFilesLoader({prefix:"i18n/locale-",suffix:".json"}),l.preferredLanguage("en"),l.useSanitizeValueStrategy("escape"),angular.extend(a,{timeOut:5e3,positionClass:"toast-bottom-right"}),s.setStorageType("localStorage").setNotify(!0,!0);var h=t.$get[t.$get.length-1]({$on:function(){}});t.when("_openid_implicit_",{controller:function(){},template:"<div></div>"}),h.routes._openid_implicit_.regexp=/[&/](?:id_token=.*&access_token=|access_token=.*&id_token=)/,PluginRegistry.get("route").forEach((function(e){t.when(e.url,{controller:e.controller,templateUrl:e.templateUrl,title:e.title,helpInfo:e.helpInfo,reloadOnSearch:void 0===e.reloadOnSearch||e.reloadOnSearch,resolve:{preload:["$ocLazyLoad","$q",function(t,r){return e.path?n(168)(`./${e.path}`).then(n=>{t.inject(e.module)}):r.defer().resolve()}]}})})),t.otherwise({templateUrl:"pages/not_found.html"}),r.html5Mode(!0),o.setTriggers({show:"hide"}),o.options({appendToBody:!0}),i.setProductInfo(e),PluginRegistry.get("main.menu").forEach((function(e){e.items.forEach((function(e){i.addItem(e)}))})),u.interceptors.push("$unauthorizedInterceptor");const f=c.$get[3];"function"==typeof f&&(c.$get[3]=function(e,t,n){const r=f(e,t,n);return function(t,n){return e.get(t)||(t+="?v=10.0.0-M2-1"),r(t,n)}})}]),t.constant("productInfo",e),t.run(["$rootScope","$route","toastr","$sce","$translate",function(e,t,n,i,a){function s(){t.current.title?document.title=r(a.instant(t.current.title))+" | GraphDB Workbench":document.title="GraphDB Workbench",e.helpInfo=i.trustAsHtml(r(a.instant(t.current.helpInfo))),e.title=r(a.instant(t.current.title))}e.$on("$routeChangeSuccess",(function(){s(),n.clear()})),e.$on("$translateChangeSuccess",(function(){s()}))}]),t.filter("titlecase",(function(){return function(e){var t=""+e;return t.charAt(0).toUpperCase()+t.slice(1)}})),angular.bootstrap(document,["graphdb.workbench"])}(e)}))},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 a}));const r=Object.freeze({ROLE_ADMIN:"ROLE_ADMIN",ROLE_USER:"ROLE_USER",ROLE_REPO_MANAGER:"ROLE_REPO_MANAGER"}),i=Object.freeze({ADMIN:"admin",USER:"user",REPO_MANAGER:"repoManager"}),a={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"}}}},function(e,t,n){(function(e){var n,r,i,a,s,o,u,c,l,h,f,p={userAgent:!1},d={},g=g||(n=Math,i=(r={}).lib={},a=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=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).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 a=0;a<i;a++){var s=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=s<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>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=a.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)}}),o=r.enc={},u=o.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).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)}},c=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}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)}},l=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,a=this.blockSize,o=i/(4*a),u=(o=e?n.ceil(o):n.max((0|o)-this._minBufferSize,0))*a,c=n.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(r,l);var h=r.splice(0,u);t.sigBytes-=c}return new s.init(h,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=h.extend({cfg:a.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 f.HMAC.init(e,n).finalize(t)}}}),f=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 a=e[r];n.push(a.high),n.push(a.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=(p=g).lib,n=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,a=p.enc.Base64,s=p.algo.EvpKDF,o=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?d:f).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?d:f).decrypt(e,t,n,r)}}}});t.StreamCipher=o.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=p.mode={},c=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]},l=(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();l.Encryptor=l.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;c.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),l.Decryptor=l.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),c.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=l,l=(p.pad={}).Pkcs7={pad:function(e,t){for(var n,i=(n=(n=4*t)-e.sigBytes%n)<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);n=r.create(a,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=o.extend({cfg:o.cfg.extend({mode:u,padding:l}),reset:function(){o.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)}}),f=(u=(p.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?r.create([1398893684,1701076831]).concat(e).concat(t):t).toString(a)},parse:function(e){var t=(e=a.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:u}),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}})),p=(p.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})}},d=t.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:p}),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=f.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,f.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=g,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],a=[],s=[],o=[],u=[],c=[],l=[],h=[],f=[],p=[],d=0;256>d;d++)p[d]=128>d?d<<1:d<<1^283;var m=0,v=0;for(d=0;256>d;d++){var y=(y=v^v<<1^v<<2^v<<3^v<<4)>>>8^255&y^99;r[m]=y,i[y]=m;var b=p[m],w=p[b],x=p[w],S=257*p[y]^16843008*y;a[m]=S<<24|S>>>8,s[m]=S<<16|S>>>16,o[m]=S<<8|S>>>24,u[m]=S,S=16843009*x^65537*w^257*b^16843008*m,c[y]=S<<24|S>>>8,l[y]=S<<16|S>>>16,h[y]=S<<8|S>>>24,f[y]=S,m?(m=b^p[p[p[x^b]]],v^=p[p[v]]):m=v=1}var E=[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=[],a=0;a<n;a++)if(a<t)i[a]=e[a];else{var s=i[a-1];a%t?6<t&&4==a%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^=E[a/t|0]<<24),i[a]=i[a-t]^s}for(e=this._invKeySchedule=[],t=0;t<n;t++)a=n-t,s=t%4?i[a]:i[a-4],e[t]=4>t||4>=a?s:c[r[s>>>24]]^l[r[s>>>16&255]]^h[r[s>>>8&255]]^f[r[255&s]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,o,u,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,c,l,h,f,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,s,o){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],h=e[t+2]^n[2],f=e[t+3]^n[3],p=4,d=1;d<u;d++){var g=r[c>>>24]^i[l>>>16&255]^a[h>>>8&255]^s[255&f]^n[p++],m=r[l>>>24]^i[h>>>16&255]^a[f>>>8&255]^s[255&c]^n[p++],v=r[h>>>24]^i[f>>>16&255]^a[c>>>8&255]^s[255&l]^n[p++];f=r[f>>>24]^i[c>>>16&255]^a[l>>>8&255]^s[255&h]^n[p++],c=g,l=m,h=v}g=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[h>>>8&255]<<8|o[255&f])^n[p++],m=(o[l>>>24]<<24|o[h>>>16&255]<<16|o[f>>>8&255]<<8|o[255&c])^n[p++],v=(o[h>>>24]<<24|o[f>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^n[p++],f=(o[f>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&h])^n[p++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=f},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,a=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],o=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.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]=[],a=u[r];for(n=0;24>n;n++)i[n/6|0]|=t[(o[n]-1+a)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(o[n+24]-1+a)%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 a=0;16>a;a++){for(var s=i[a],o=this._lBlock,u=this._rBlock,h=0,f=0;8>f;f++)h|=c[f][((u^s[f])&l[f])>>>0];this._lBlock=u,this._rBlock=o^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),a=a.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(a)}(),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 a=(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(a>>>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=[],a=0,s=0;s<n;s++)if(s%4){var o=r.indexOf(e.charAt(s-1))<<s%4*2,u=r.indexOf(e.charAt(s))>>>6-s%4*2;i[a>>>2]|=(o|u)<<24-a%4*8,a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,a,s){return((e=e+(t&n|~t&r)+i+s)<<a|e>>>32-a)+t}function n(e,t,n,r,i,a,s){return((e=e+(t&r|n&~r)+i+s)<<a|e>>>32-a)+t}function r(e,t,n,r,i,a,s){return((e=e+(t^n^r)+i+s)<<a|e>>>32-a)+t}function i(e,t,n,r,i,a,s){return((e=e+(n^(t|~r))+i+s)<<a|e>>>32-a)+t}for(var a=g,s=(u=a.lib).WordArray,o=u.Hasher,u=a.algo,c=[],l=0;64>l;l++)c[l]=4294967296*e.abs(e.sin(l+1))|0;u=u.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,a){for(var s=0;16>s;s++){var o=e[u=a+s];e[u]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}s=this._hash.words;var u=e[a+0],l=(o=e[a+1],e[a+2]),h=e[a+3],f=e[a+4],p=e[a+5],d=e[a+6],g=e[a+7],m=e[a+8],v=e[a+9],y=e[a+10],b=e[a+11],w=e[a+12],x=e[a+13],S=e[a+14],E=e[a+15],A=t(A=s[0],D=s[1],C=s[2],F=s[3],u,7,c[0]),F=t(F,A,D,C,o,12,c[1]),C=t(C,F,A,D,l,17,c[2]),D=t(D,C,F,A,h,22,c[3]);A=t(A,D,C,F,f,7,c[4]),F=t(F,A,D,C,p,12,c[5]),C=t(C,F,A,D,d,17,c[6]),D=t(D,C,F,A,g,22,c[7]),A=t(A,D,C,F,m,7,c[8]),F=t(F,A,D,C,v,12,c[9]),C=t(C,F,A,D,y,17,c[10]),D=t(D,C,F,A,b,22,c[11]),A=t(A,D,C,F,w,7,c[12]),F=t(F,A,D,C,x,12,c[13]),C=t(C,F,A,D,S,17,c[14]),A=n(A,D=t(D,C,F,A,E,22,c[15]),C,F,o,5,c[16]),F=n(F,A,D,C,d,9,c[17]),C=n(C,F,A,D,b,14,c[18]),D=n(D,C,F,A,u,20,c[19]),A=n(A,D,C,F,p,5,c[20]),F=n(F,A,D,C,y,9,c[21]),C=n(C,F,A,D,E,14,c[22]),D=n(D,C,F,A,f,20,c[23]),A=n(A,D,C,F,v,5,c[24]),F=n(F,A,D,C,S,9,c[25]),C=n(C,F,A,D,h,14,c[26]),D=n(D,C,F,A,m,20,c[27]),A=n(A,D,C,F,x,5,c[28]),F=n(F,A,D,C,l,9,c[29]),C=n(C,F,A,D,g,14,c[30]),A=r(A,D=n(D,C,F,A,w,20,c[31]),C,F,p,4,c[32]),F=r(F,A,D,C,m,11,c[33]),C=r(C,F,A,D,b,16,c[34]),D=r(D,C,F,A,S,23,c[35]),A=r(A,D,C,F,o,4,c[36]),F=r(F,A,D,C,f,11,c[37]),C=r(C,F,A,D,g,16,c[38]),D=r(D,C,F,A,y,23,c[39]),A=r(A,D,C,F,x,4,c[40]),F=r(F,A,D,C,u,11,c[41]),C=r(C,F,A,D,h,16,c[42]),D=r(D,C,F,A,d,23,c[43]),A=r(A,D,C,F,v,4,c[44]),F=r(F,A,D,C,w,11,c[45]),C=r(C,F,A,D,E,16,c[46]),A=i(A,D=r(D,C,F,A,l,23,c[47]),C,F,u,6,c[48]),F=i(F,A,D,C,g,10,c[49]),C=i(C,F,A,D,S,15,c[50]),D=i(D,C,F,A,p,21,c[51]),A=i(A,D,C,F,w,6,c[52]),F=i(F,A,D,C,h,10,c[53]),C=i(C,F,A,D,y,15,c[54]),D=i(D,C,F,A,o,21,c[55]),A=i(A,D,C,F,m,6,c[56]),F=i(F,A,D,C,E,10,c[57]),C=i(C,F,A,D,d,15,c[58]),D=i(D,C,F,A,x,21,c[59]),A=i(A,D,C,F,f,6,c[60]),F=i(F,A,D,C,b,10,c[61]),C=i(C,F,A,D,l,15,c[62]),D=i(D,C,F,A,v,21,c[63]);s[0]=s[0]+A|0,s[1]=s[1]+D|0,s[2]=s[2]+C|0,s[3]=s[3]+F|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 a=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>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=o.clone.call(this);return e._hash=this._hash.clone(),e}}),a.MD5=o._createHelper(u),a.HmacMD5=o._createHmacHelper(u)}(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],a=n[1],s=n[2],o=n[3],u=n[4],c=0;80>c;c++){if(16>c)r[c]=0|e[t+c];else{var l=r[c-3]^r[c-8]^r[c-14]^r[c-16];r[c]=l<<1|l>>>31}l=(i<<5|i>>>27)+u+r[c],l=20>c?l+(1518500249+(a&s|~a&o)):40>c?l+(1859775393+(a^s^o)):60>c?l+((a&s|a&o|s&o)-1894007588):l+((a^s^o)-899497514),u=o,o=s,s=a<<30|a>>>2,a=i,i=l}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+o|0,n[4]=n[4]+u|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,a=[],s=[],o=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{l=u;for(var h=e.sqrt(l),f=2;f<=h;f++)if(!(l%f)){l=!1;break e}l=!0}l&&(8>c&&(a[c]=o(e.pow(u,.5))),s[c]=o(e.pow(u,1/3)),c++),u++}var p=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],u=n[4],c=n[5],l=n[6],h=n[7],f=0;64>f;f++){if(16>f)p[f]=0|e[t+f];else{var d=p[f-15],g=p[f-2];p[f]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+p[f-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[f-16]}d=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+s[f]+p[f],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),h=l,l=c,c=u,u=o+d|0,o=a,a=i,i=r,r=d+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+l|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=(a=t.x64).Word,i=a.WordArray,a=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)],o=[],u=0;80>u;u++)o[u]=e();a=a.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],a=h[3],u=h[4],c=h[5],l=h[6],h=h[7],f=n.high,p=n.low,d=r.high,g=r.low,m=i.high,v=i.low,y=a.high,b=a.low,w=u.high,x=u.low,S=c.high,E=c.low,A=l.high,F=l.low,C=h.high,D=h.low,R=f,$=p,I=d,T=g,P=m,_=v,k=y,O=b,j=w,N=x,H=S,B=E,L=A,M=F,U=C,V=D,q=0;80>q;q++){var K=o[q];if(16>q)var z=K.high=0|e[t+2*q],G=K.low=0|e[t+2*q+1];else{z=((G=(z=o[q-15]).high)>>>1|(W=z.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=o[q-2]).high)>>>19|(X=Y.low)<<13)^(G<<3|X>>>29)^G>>>6,X=(X>>>19|G<<13)^(X<<3|G>>>29)^(X>>>6|G<<26),J=(G=o[q-7]).high,Q=(Z=o[q-16]).high,Z=Z.low;z=(z=(z=z+J+((G=W+G.low)>>>0<W>>>0?1:0))+Y+((G=G+X)>>>0<X>>>0?1:0))+Q+((G=G+Z)>>>0<Z>>>0?1:0);K.high=z,K.low=G}J=j&H^~j&L,Z=N&B^~N&M,K=R&I^R&P^I&P;var ee=$&T^$&_^T&_,te=(W=(R>>>28|$<<4)^(R<<30|$>>>2)^(R<<25|$>>>7),Y=($>>>28|R<<4)^($<<30|R>>>2)^($<<25|R>>>7),(X=s[q]).high),ne=X.low;Q=U+((j>>>14|N<<18)^(j>>>18|N<<14)^(j<<23|N>>>9))+((X=V+((N>>>14|j<<18)^(N>>>18|j<<14)^(N<<23|j>>>9)))>>>0<V>>>0?1:0),U=L,V=M,L=H,M=B,H=j,B=N,j=k+(Q=(Q=(Q=Q+J+((X=X+Z)>>>0<Z>>>0?1:0))+te+((X=X+ne)>>>0<ne>>>0?1:0))+z+((X=X+G)>>>0<G>>>0?1:0))+((N=O+X|0)>>>0<O>>>0?1:0)|0,k=P,O=_,P=I,_=T,I=R,T=$,R=Q+(K=W+K+((G=Y+ee)>>>0<Y>>>0?1:0))+(($=X+G|0)>>>0<X>>>0?1:0)|0}p=n.low=p+$,n.high=f+R+(p>>>0<$>>>0?1:0),g=r.low=g+T,r.high=d+I+(g>>>0<T>>>0?1:0),v=i.low=v+_,i.high=m+P+(v>>>0<_>>>0?1:0),b=a.low=b+O,a.high=y+k+(b>>>0<O>>>0?1:0),x=u.low=x+N,u.high=w+j+(x>>>0<N>>>0?1:0),E=c.low=E+B,c.high=S+H+(E>>>0<B>>>0?1:0),F=l.low=F+M,l.high=A+L+(F>>>0<M>>>0?1:0),D=h.low=D+V,h.high=C+U+(D>>>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(a),t.HmacSHA512=n._createHmacHelper(a)}(),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]),a=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]),o=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]),u=t.create([0,1518500249,1859775393,2400959708,2840853838]),c=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[w=t+n];e[w]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var l,h,f,p,d,g,m,v,y,b,w=this._hash.words,x=(r=u.words,c.words),S=i.words,E=a.words,A=s.words,F=o.words;g=l=w[0],m=h=w[1],v=f=w[2],y=p=w[3],b=d=w[4];var C;for(n=0;80>n;n+=1)C=l+e[t+S[n]]|0,C=16>n?C+((h^f^p)+r[0]):32>n?C+((h&f|~h&p)+r[1]):48>n?C+(((h|~f)^p)+r[2]):64>n?C+((h&p|f&~p)+r[3]):C+((h^(f|~p))+r[4]),C=(C=(C|=0)<<A[n]|C>>>32-A[n])+d|0,l=d,d=p,p=f<<10|f>>>22,f=h,h=C,C=g+e[t+E[n]]|0,C=16>n?C+((m^(v|~y))+x[0]):32>n?C+((m&y|v&~y)+x[1]):48>n?C+(((m|~v)^y)+x[2]):64>n?C+((m&v|~m&y)+x[3]):C+((m^v^y)+x[4]),C=(C=(C|=0)<<F[n]|C>>>32-F[n])+b|0,g=b,b=y,y=v<<10|v>>>22,v=m,m=C;C=w[1]+f+y|0,w[1]=w[2]+p+b|0,w[2]=w[3]+d+g|0,w[3]=w[4]+l+m|0,w[4]=w[0]+h+v|0,w[0]=C},_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 a=this._oKey=n.clone(),s=this._iKey=n.clone(),o=a.words,u=s.words,c=0;c<r;c++)o[c]^=1549556828,u[c]^=909522486;a.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,a=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,a=i.create(n.hasher,e),s=r.create(),o=r.create([1]),u=s.words,c=o.words,l=n.keySize;for(n=n.iterations;u.length<l;){var h=a.update(t).finalize(o);a.reset();for(var f=h.words,p=f.length,d=h,g=1;g<n;g++){d=a.finalize(d),a.reset();for(var m=d.words,v=0;v<p;v++)f[v]^=m[v]}s.concat(h),c[0]++}return s.sigBytes=4*l,s}});t.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)}}();
2
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
3
- */
4
- var m,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="=";function b(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);if(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)),y)for(;(3&r.length)>0;)r+=y;return r}function w(e){var t,n,r,i="",a=0;for(t=0;t<e.length&&e.charAt(t)!=y;++t)(r=v.indexOf(e.charAt(t)))<0||(0==a?(i+=R(r>>2),n=3&r,a=1):1==a?(i+=R(n<<2|r>>4),n=15&r,a=2):2==a?(i+=R(n),i+=R(r>>2),n=3&r,a=3):(i+=R(n<<2|r>>4),i+=R(15&r),a=0));return 1==a&&(i+=R(n<<2)),i}function x(e){var t,n=w(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 S(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 E(){return new S(null)}"Microsoft Internet Explorer"==p.appName?(S.prototype.am=function(e,t,n,r,i,a){for(var s=32767&t,o=t>>15;--a>=0;){var u=32767&this[e],c=this[e++]>>15,l=o*u+c*s;i=((u=s*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+o*c+(i>>>30),n[r++]=1073741823&u}return i},m=30):"Netscape"!=p.appName?(S.prototype.am=function(e,t,n,r,i,a){for(;--a>=0;){var s=t*this[e++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},m=26):(S.prototype.am=function(e,t,n,r,i,a){for(var s=16383&t,o=t>>14;--a>=0;){var u=16383&this[e],c=this[e++]>>14,l=o*u+c*s;i=((u=s*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+o*c,n[r++]=268435455&u}return i},m=28),S.prototype.DB=m,S.prototype.DM=(1<<m)-1,S.prototype.DV=1<<m;S.prototype.FV=Math.pow(2,52),S.prototype.F1=52-m,S.prototype.F2=2*m-52;var A,F,C="0123456789abcdefghijklmnopqrstuvwxyz",D=new Array;for(A="0".charCodeAt(0),F=0;F<=9;++F)D[A++]=F;for(A="a".charCodeAt(0),F=10;F<36;++F)D[A++]=F;for(A="A".charCodeAt(0),F=10;F<36;++F)D[A++]=F;function R(e){return C.charAt(e)}function $(e,t){var n=D[e.charCodeAt(t)];return null==n?-1:n}function I(e){var t=E();return t.fromInt(e),t}function T(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 P(e){this.m=e}function _(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 k(e,t){return e&t}function O(e,t){return e|t}function j(e,t){return e^t}function N(e,t){return e&~t}function H(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 B(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function L(){}function M(e){return e}function U(e){this.r2=E(),this.q3=E(),S.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}P.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},P.prototype.revert=function(e){return e},P.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},P.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},P.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},_.prototype.convert=function(e){var t=E();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(S.ZERO)>0&&this.m.subTo(t,t),t},_.prototype.revert=function(e){var t=E();return e.copyTo(t),this.reduce(t),t},_.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)},_.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},_.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},S.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},S.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},S.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,a=0;--r>=0;){var s=8==n?255&e[r]:$(e,r);s<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&S.ZERO.subTo(this,this)},S.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},S.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},S.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},S.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,a=(1<<i)-1,s=Math.floor(e/this.DB),o=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+s+1]=this[n]>>i|o,o=(this[n]&a)<<r;for(n=s-1;n>=0;--n)t[n]=0;t[s]=o,t.t=this.t+s+1,t.s=this.s,t.clamp()},S.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,a=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&a)<<i,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<i),t.t=this.t-n,t.clamp()}},S.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()},S.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&&S.ZERO.subTo(t,t)},S.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()},S.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=E());var a=E(),s=this.s,o=e.s,u=this.DB-T(r[r.t-1]);u>0?(r.lShiftTo(u,a),i.lShiftTo(u,n)):(r.copyTo(a),i.copyTo(n));var c=a.t,l=a[c-1];if(0!=l){var h=l*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),f=this.FV/h,p=(1<<this.F1)/h,d=1<<this.F2,g=n.t,m=g-c,v=null==t?E():t;for(a.dlShiftTo(m,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),S.ONE.dlShiftTo(c,v),v.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--m>=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*f+(n[g-1]+d)*p);if((n[g]+=a.am(0,y,n,m,0,c))<y)for(a.dlShiftTo(m,v),n.subTo(v,n);n[g]<--y;)n.subTo(v,n)}null!=t&&(n.drShiftTo(c,t),s!=o&&S.ZERO.subTo(t,t)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),s<0&&S.ZERO.subTo(n,n)}}},S.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},S.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},S.prototype.exp=function(e,t){if(e>4294967295||e<1)return S.ONE;var n=E(),r=E(),i=t.convert(this),a=T(e)-1;for(i.copyTo(n);--a>=0;)if(t.sqrTo(n,r),(e&1<<a)>0)t.mulTo(r,i,n);else{var s=n;n=r,r=s}return t.revert(n)},S.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,a="",s=this.t,o=this.DB-s*this.DB%t;if(s-- >0)for(o<this.DB&&(n=this[s]>>o)>0&&(i=!0,a=R(n));s>=0;)o<t?(n=(this[s]&(1<<o)-1)<<t-o,n|=this[--s]>>(o+=this.DB-t)):(n=this[s]>>(o-=t)&r,o<=0&&(o+=this.DB,--s)),n>0&&(i=!0),i&&(a+=R(n));return i?a:"0"},S.prototype.negate=function(){var e=E();return S.ZERO.subTo(this,e),e},S.prototype.abs=function(){return this.s<0?this.negate():this},S.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},S.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)},S.prototype.mod=function(e){var t=E();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(S.ZERO)>0&&e.subTo(t,t),t},S.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new P(t):new _(t),this.exp(e,n)},S.ZERO=I(0),S.ONE=I(1),L.prototype.convert=M,L.prototype.revert=M,L.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},L.prototype.sqrTo=function(e,t){e.squareTo(t)},U.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=E();return e.copyTo(t),this.reduce(t),t},U.prototype.revert=function(e){return e},U.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)},U.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},U.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var V=[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],q=(1<<26)/V[V.length-1];
5
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
6
- */
7
- function K(){this.i=0,this.j=0,this.S=new Array}S.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},S.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=I(n),i=E(),a=E(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(e)+s},S.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,a=0,s=0,o=0;o<e.length;++o){var u=$(e,o);u<0?"-"==e.charAt(o)&&0==this.signum()&&(i=!0):(s=t*s+u,++a>=n&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),i&&S.ZERO.subTo(this,this)},S.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(S.ONE.shiftLeft(e-1),O,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(S.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)}},S.prototype.bitwiseTo=function(e,t,n){var r,i,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},S.prototype.changeBit=function(e,t){var n=S.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},S.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()},S.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},S.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]}},S.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()},S.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)},S.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},S.prototype.millerRabin=function(e){var t=this.subtract(S.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>V.length&&(e=V.length);for(var i=E(),a=0;a<e;++a){i.fromInt(V[Math.floor(Math.random()*V.length)]);var s=i.modPow(r,this);if(0!=s.compareTo(S.ONE)&&0!=s.compareTo(t)){for(var o=1;o++<n&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(S.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0},S.prototype.clone=
8
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
9
- */
10
- function(){var e=E();return this.copyTo(e),e},S.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]},S.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},S.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},S.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},S.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},S.prototype.equals=function(e){return 0==this.compareTo(e)},S.prototype.min=function(e){return this.compareTo(e)<0?this:e},S.prototype.max=function(e){return this.compareTo(e)>0?this:e},S.prototype.and=function(e){var t=E();return this.bitwiseTo(e,k,t),t},S.prototype.or=function(e){var t=E();return this.bitwiseTo(e,O,t),t},S.prototype.xor=function(e){var t=E();return this.bitwiseTo(e,j,t),t},S.prototype.andNot=function(e){var t=E();return this.bitwiseTo(e,N,t),t},S.prototype.not=function(){for(var e=E(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},S.prototype.shiftLeft=function(e){var t=E();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},S.prototype.shiftRight=function(e){var t=E();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},S.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+H(this[e]);return this.s<0?this.t*this.DB:-1},S.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=B(this[n]^t);return e},S.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)},S.prototype.setBit=function(e){return this.changeBit(e,O)},S.prototype.clearBit=function(e){return this.changeBit(e,N)},S.prototype.flipBit=function(e){return this.changeBit(e,j)},S.prototype.add=function(e){var t=E();return this.addTo(e,t),t},S.prototype.subtract=function(e){var t=E();return this.subTo(e,t),t},S.prototype.multiply=function(e){var t=E();return this.multiplyTo(e,t),t},S.prototype.divide=function(e){var t=E();return this.divRemTo(e,t,null),t},S.prototype.remainder=function(e){var t=E();return this.divRemTo(e,null,t),t},S.prototype.divideAndRemainder=function(e){var t=E(),n=E();return this.divRemTo(e,t,n),new Array(t,n)},S.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),a=I(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new P(t):t.isEven()?new U(t):new _(t);var s=new Array,o=3,u=n-1,c=(1<<n)-1;if(s[1]=r.convert(this),n>1){var l=E();for(r.sqrTo(s[1],l);o<=c;)s[o]=E(),r.mulTo(l,s[o-2],s[o]),o+=2}var h,f,p=e.t-1,d=!0,g=E();for(i=T(e[p])-1;p>=0;){for(i>=u?h=e[p]>>i-u&c:(h=(e[p]&(1<<i+1)-1)<<u-i,p>0&&(h|=e[p-1]>>this.DB+i-u)),o=n;0==(1&h);)h>>=1,--o;if((i-=o)<0&&(i+=this.DB,--p),d)s[h].copyTo(a),d=!1;else{for(;o>1;)r.sqrTo(a,g),r.sqrTo(g,a),o-=2;o>0?r.sqrTo(a,g):(f=a,a=g,g=f),r.mulTo(g,s[h],a)}for(;p>=0&&0==(e[p]&1<<i);)r.sqrTo(a,g),f=a,a=g,g=f,--i<0&&(i=this.DB-1,--p)}return r.revert(a)},S.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return S.ZERO;for(var n=e.clone(),r=this.clone(),i=I(1),a=I(0),s=I(0),o=I(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(i.isEven()&&a.isEven()||(i.addTo(this,i),a.subTo(e,a)),i.rShiftTo(1,i)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(s,i),a.subTo(o,a)):(r.subTo(n,r),t&&s.subTo(i,s),o.subTo(a,o))}return 0!=r.compareTo(S.ONE)?S.ZERO:o.compareTo(e)>=0?o.subtract(e):o.signum()<0?(o.addTo(e,o),o.signum()<0?o.add(e):o):o},S.prototype.pow=function(e){return this.exp(e,new L)},S.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(),a=n.getLowestSetBit();if(a<0)return t;for(i<a&&(a=i),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,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 a>0&&n.lShiftTo(a,n),n},S.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=V[V.length-1]){for(t=0;t<V.length;++t)if(n[0]==V[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<V.length;){for(var r=V[t],i=t+1;i<V.length&&r<q;)r*=V[i++];for(r=n.modInt(r);t<i;)if(r%V[t++]==0)return!1}return n.millerRabin(e)},S.prototype.square=function(){var e=E();return this.squareTo(e),e},K.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},K.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 z,G,W,Y=256;
11
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
12
- */function X(){!function(e){G[W++]^=255&e,G[W++]^=e>>8&255,G[W++]^=e>>16&255,G[W++]^=e>>24&255,W>=Y&&(W-=Y)}((new Date).getTime())}if(null==G){var J;if(G=new Array,W=0,void 0!==d&&(void 0!==d.crypto||void 0!==d.msCrypto)){var Q=d.crypto||d.msCrypto;if(Q.getRandomValues){var Z=new Uint8Array(32);for(Q.getRandomValues(Z),J=0;J<32;++J)G[W++]=Z[J]}else if("Netscape"==p.appName&&p.appVersion<"5"){var ee=d.crypto.random(32);for(J=0;J<ee.length;++J)G[W++]=255&ee.charCodeAt(J)}}for(;W<Y;)J=Math.floor(65536*Math.random()),G[W++]=J>>>8,G[W++]=255&J;W=0,X()}function te(){if(null==z){for(X(),(z=new K).init(G),W=0;W<G.length;++W)G[W]=0;W=0}return z.next()}function ne(){}
13
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
14
- */
15
- function re(e,t){return new S(e,t)}function ie(e,t,n){for(var r="",i=0;r.length<t;)r+=n(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function ae(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function se(e,t,n){for(var r="",i=0;r.length<t;)r+=n(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])),i+=1;return r}
16
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
17
- */
18
- function oe(e,t){this.x=t,this.q=e}function ue(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?S.ONE:r,this.zinv=null}function ce(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new ue(this,null,null)}ne.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=te()},ae.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},ae.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=re(e,16),this.e=parseInt(t,16)}},ae.prototype.encrypt=function(e){var t=function(e,t){if(t<e.length+11)throw"Message too long for RSA";for(var n=new Array,r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var a=new ne,s=new Array;t>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new S(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r},ae.prototype.encryptOAEP=function(e,t,n){var r=function(e,t,n,r){var i=he.crypto.MessageDigest,a=he.crypto.Util,s=null;if(n||(n="sha1"),"string"==typeof n&&(s=i.getCanonicalAlgName(n),r=i.getHashLength(s),n=function(e){return Fe(a.hashHex(Ce(e),s))}),e.length+2*r+2>t)throw"Message too long for RSA";var o,u="";for(o=0;o<t-e.length-2*r-2;o+=1)u+="\0";var c=n("")+u+""+e,l=new Array(r);(new ne).nextBytes(l);var h=ie(l,c.length,n),f=[];for(o=0;o<c.length;o+=1)f[o]=c.charCodeAt(o)^h.charCodeAt(o);var p=ie(f,l.length,n),d=[0];for(o=0;o<l.length;o+=1)d[o+1]=l[o]^p.charCodeAt(o);return new S(d.concat(f))}(e,this.n.bitLength()+7>>3,t,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},ae.prototype.type="RSA",ae.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)},ae.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=re(e,16),this.e=parseInt(t,16),this.d=re(n,16)}},ae.prototype.setPrivateEx=function(e,t,n,r,i,a,s,o){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=re(e,16),this.e=parseInt(t,16),this.d=re(n,16),this.p=re(r,16),this.q=re(i,16),this.dmp1=re(a,16),this.dmq1=re(s,16),this.coeff=re(o,16)},ae.prototype.generate=function(e,t){var n=new ne,r=e>>1;this.e=parseInt(t,16);for(var i=new S(t,16);;){for(;this.p=new S(e-r,1,n),0!=this.p.subtract(S.ONE).gcd(i).compareTo(S.ONE)||!this.p.isProbablePrime(10););for(;this.q=new S(r,1,n),0!=this.q.subtract(S.ONE).gcd(i).compareTo(S.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(S.ONE),o=this.q.subtract(S.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(S.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}this.isPrivate=!0},ae.prototype.decrypt=function(e){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var t=re(e,16),n=this.doPrivate(t);return null==n?null:
19
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
20
- */
21
- function(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},ae.prototype.decryptOAEP=function(e,t,n){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var r=re(e,16),i=this.doPrivate(r);return null==i?null:function(e,t,n,r){var i=he.crypto.MessageDigest,a=he.crypto.Util,s=null;for(n||(n="sha1"),"string"==typeof n&&(s=i.getCanonicalAlgName(n),r=i.getHashLength(s),n=function(e){return Fe(a.hashHex(Ce(e),s))}),e=e.toByteArray(),o=0;o<e.length;o+=1)e[o]&=255;for(;e.length<t;)e.unshift(0);if((e=String.fromCharCode.apply(String,e)).length<2*r+2)throw"Cipher too short";var o,u=e.substr(1,r),c=e.substr(r+1),l=se(c,r,n),h=[];for(o=0;o<u.length;o+=1)h[o]=u.charCodeAt(o)^l.charCodeAt(o);var f=se(String.fromCharCode.apply(String,h),e.length-r,n),p=[];for(o=0;o<c.length;o+=1)p[o]=c.charCodeAt(o)^f.charCodeAt(o);if((p=String.fromCharCode.apply(String,p)).substr(0,r)!==n(""))throw"Hash mismatch";var d=(p=p.substr(r)).indexOf("");if((-1!=d?p.substr(0,d).lastIndexOf("\0"):-1)+1!=d)throw"Malformed data";return p.substr(d+1)}(i,this.n.bitLength()+7>>3,t,n)},oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ue.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))},ue.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))},ue.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(S.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(S.ZERO))},ue.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(S.ZERO)&&!this.y.toBigInteger().equals(S.ZERO)},ue.prototype.negate=function(){return new ue(this.curve,this.x,this.y.negate(),this.z)},ue.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(S.ZERO.equals(n))return S.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new S("3"),i=this.x.toBigInteger(),a=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),o=s.multiply(n),u=i.multiply(s),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(o).multiply(n).mod(this.curve.q),h=u.multiply(r).multiply(t).subtract(a.multiply(o)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(o)).mod(this.curve.q),f=o.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ue(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),f)},ue.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new S("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),a=this.curve.a.toBigInteger(),s=t.square().multiply(e);S.ZERO.equals(a)||(s=s.add(this.z.square().multiply(a)));var o=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),u=s.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new ue(this.curve,this.curve.fromBigInteger(o),this.curve.fromBigInteger(u),c)},ue.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 S("3")),i=this.negate(),a=this,s=this.curve.q.subtract(e),o=s.multiply(new S("3")),u=new ue(this.curve,this.x,this.y),c=u.negate();for(t=r.bitLength()-2;t>0;--t){a=a.twice();var l=r.testBit(t);l!=n.testBit(t)&&(a=a.add(l?this:i))}for(t=o.bitLength()-2;t>0;--t){u=u.twice();var h=o.testBit(t);h!=s.testBit(t)&&(u=u.add(h?u:c))}return a},ue.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(),a=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(a):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},ce.prototype.getQ=function(){return this.q},ce.prototype.getA=function(){return this.a},ce.prototype.getB=function(){return this.b},ce.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},ce.prototype.getInfinity=function(){return this.infinity},ce.prototype.fromBigInteger=function(e){return new oe(this.q,e)},ce.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),r=e.substr(t+2,t);return new ue(this,this.fromBigInteger(new S(n,16)),this.fromBigInteger(new S(r,16)));default:return null}},
22
- /*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
23
- */
24
- oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ue.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},ue.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 a=new S(r),s=new S(i);return new ue(e,e.fromBigInteger(a),e.fromBigInteger(s))},ue.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),a=new S(r,16),s=new S(i,16);return new ue(e,e.fromBigInteger(a),e.fromBigInteger(s))},ue.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 ue(this.curve,r,i)},ue.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(S.valueOf(2)),t=this.curve.fromBigInteger(S.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 ue(this.curve,r,i)},ue.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 S("3")),i=this.negate(),a=this;for(t=r.bitLength()-2;t>0;--t){a=a.twice();var s=r.testBit(t);s!=n.testBit(t)&&(a=a.add2D(s?this:i))}return a},ue.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(),a=t.multiply(t).mod(i),s=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return a.equals(s)},ue.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ue.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(S.ONE)<0||t.compareTo(e.subtract(S.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(S.ONE)<0||n.compareTo(e.subtract(S.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};
25
- /*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
26
- */
27
- var le=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(""),a=Object.hasOwnProperty;return function(n,s){var o,u,c=n.match(e),l=c[0],h=!1;"{"===l?o={}:"["===l?o=[]:(o=[],h=!0);for(var f=[o],p=1-h,d=c.length;p<d;++p){var g;switch((l=c[p]).charCodeAt(0)){default:(g=f[0])[u||g.length]=+l,u=void 0;break;case 34:if(-1!==(l=l.substring(1,l.length-1)).indexOf("\\")&&(l=l.replace(t,r)),g=f[0],!u){if(!(g instanceof Array)){u=l||i;break}u=g.length}g[u]=l,u=void 0;break;case 91:g=f[0],f.unshift(g[u||g.length]=[]),u=void 0;break;case 93:f.shift();break;case 102:(g=f[0])[u||g.length]=!1,u=void 0;break;case 110:(g=f[0])[u||g.length]=null,u=void 0;break;case 116:(g=f[0])[u||g.length]=!0,u=void 0;break;case 123:g=f[0],f.unshift(g[u||g.length]={}),u=void 0;break;case 125:f.shift()}}if(h){if(1!==f.length)throw new Error;o=o[0]}else if(f.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(a.call(n,i)&&n!==e){var o=m(n,i);void 0!==o?n[i]=o:(r||(r=[]),r.push(i))}if(r)for(var u=r.length;--u>=0;)delete n[r[u]]}return s.call(e,t,n)};o=m({"":o},"")}return o}}();void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),he.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){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{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";t=new S(r,16).xor(e).add(S.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return Ie(e,t)},this.newObject=function(e){var t=he.asn1,n=t.ASN1Object,r=t.DERBoolean,i=t.DERInteger,a=t.DERBitString,s=t.DEROctetString,o=t.DERNull,u=t.DERObjectIdentifier,c=t.DEREnumerated,l=t.DERUTF8String,h=t.DERNumericString,f=t.DERPrintableString,p=t.DERTeletexString,d=t.DERIA5String,g=t.DERUTCTime,m=t.DERGeneralizedTime,v=t.DERVisibleString,y=t.DERBMPString,b=t.DERSequence,w=t.DERSet,x=t.DERTaggedObject,S=t.ASN1Util.newObject;if(e instanceof t.ASN1Object)return e;var E=Object.keys(e);if(1!=E.length)throw new Error("key of param shall be only one.");var A=E[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+A+":"))throw new Error("undefined key: "+A);if("bool"==A)return new r(e[A]);if("int"==A)return new i(e[A]);if("bitstr"==A)return new a(e[A]);if("octstr"==A)return new s(e[A]);if("null"==A)return new o(e[A]);if("oid"==A)return new u(e[A]);if("enum"==A)return new c(e[A]);if("utf8str"==A)return new l(e[A]);if("numstr"==A)return new h(e[A]);if("prnstr"==A)return new f(e[A]);if("telstr"==A)return new p(e[A]);if("ia5str"==A)return new d(e[A]);if("utctime"==A)return new g(e[A]);if("gentime"==A)return new m(e[A]);if("visstr"==A)return new v(e[A]);if("bmpstr"==A)return new y(e[A]);if("asn1"==A)return new n(e[A]);if("seq"==A){for(var F=e[A],C=[],D=0;D<F.length;D++){var R=S(F[D]);C.push(R)}return new b({array:C})}if("set"==A){for(F=e[A],C=[],D=0;D<F.length;D++){R=S(F[D]);C.push(R)}return new w({array:C})}if("tag"==A){var $=e[A];if("[object Array]"===Object.prototype.toString.call($)&&3==$.length){var I=S($[2]);return new x({tag:$[0],explicit:$[1],obj:I})}return new x($)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},he.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 a=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))t=t+"."+new S(r,2).toString(10),r=""}return t},he.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 S(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=t(parseInt(o,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=t(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},he.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"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=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.getValueHex=function(){return this.getEncodedHex(),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)},he.asn1.DERAbstractString=function(e){he.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=Ee(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))},We(he.asn1.DERAbstractString,he.asn1.ASN1Object),he.asn1.DERAbstractTime=function(e){he.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),a=String(i.getFullYear());"utc"==t&&(a=a.substr(2,2));var s=a+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 o=i.getMilliseconds();if(0!=o){var u=r(String(o),3);s=s+"."+(u=u.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.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ye(e)},this.setByDateValue=function(e,t,n,r,i,a){var s=new Date(Date.UTC(e,t-1,n,r,i,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},We(he.asn1.DERAbstractTime,he.asn1.ASN1Object),he.asn1.DERAbstractStructured=function(e){he.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)},We(he.asn1.DERAbstractStructured,he.asn1.ASN1Object),he.asn1.DERBoolean=function(e){he.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},We(he.asn1.DERBoolean,he.asn1.ASN1Object),he.asn1.DERInteger=function(e){he.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=he.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new S(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.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},We(he.asn1.DERInteger,he.asn1.ASN1Object),he.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=he.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}he.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);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},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))},We(he.asn1.DERBitString,he.asn1.ASN1Object),he.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=he.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}he.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},We(he.asn1.DEROctetString,he.asn1.DERAbstractString),he.asn1.DERNull=function(){he.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},We(he.asn1.DERNull,he.asn1.ASN1Object),he.asn1.DERObjectIdentifier=function(e){he.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=he.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)},We(he.asn1.DERObjectIdentifier,he.asn1.ASN1Object),he.asn1.DEREnumerated=function(e){he.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=he.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new S(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))},We(he.asn1.DEREnumerated,he.asn1.ASN1Object),he.asn1.DERUTF8String=function(e){he.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},We(he.asn1.DERUTF8String,he.asn1.DERAbstractString),he.asn1.DERNumericString=function(e){he.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},We(he.asn1.DERNumericString,he.asn1.DERAbstractString),he.asn1.DERPrintableString=function(e){he.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},We(he.asn1.DERPrintableString,he.asn1.DERAbstractString),he.asn1.DERTeletexString=function(e){he.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},We(he.asn1.DERTeletexString,he.asn1.DERAbstractString),he.asn1.DERIA5String=function(e){he.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},We(he.asn1.DERIA5String,he.asn1.DERAbstractString),he.asn1.DERVisibleString=function(e){he.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},We(he.asn1.DERVisibleString,he.asn1.DERAbstractString),he.asn1.DERBMPString=function(e){he.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},We(he.asn1.DERBMPString,he.asn1.DERAbstractString),he.asn1.DERUTCTime=function(e){he.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=ye(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=ye(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},We(he.asn1.DERUTCTime,he.asn1.DERAbstractTime),he.asn1.DERGeneralizedTime=function(e){he.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=ye(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=ye(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},We(he.asn1.DERGeneralizedTime,he.asn1.DERAbstractTime),he.asn1.DERSequence=function(e){he.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].getEncodedHex()}return this.hV=e,this.hV}},We(he.asn1.DERSequence,he.asn1.DERAbstractStructured),he.asn1.DERSet=function(e){he.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.getEncodedHex())}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)},We(he.asn1.DERSet,he.asn1.DERAbstractStructured),he.asn1.DERTaggedObject=function(e){he.asn1.DERTaggedObject.superclass.constructor.call(this);var t=he.asn1;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){null!=e.tag&&(this.hT=e.tag),null!=e.explicit&&(this.isExplicit=e.explicit),null!=e.tage&&(this.hT=e.tage,this.isExplicit=!0),null!=e.tagi&&(this.hT=e.tagi,this.isExplicit=!1),null!=e.obj&&(e.obj instanceof t.ASN1Object?(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):"object"==typeof e.obj&&(this.asn1Object=t.ASN1Util.newObject(e.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},null!=e&&this.setByParam(e)},We(he.asn1.DERTaggedObject,he.asn1.ASN1Object);var he,fe,pe,de=new function(){};function ge(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function me(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function ve(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 ye(e){return ve(ge(e))}function be(e){return e=(e=(e=e.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function we(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=(e=e.replace(/-/g,"+")).replace(/_/g,"/")}function xe(e){return e.length%2==1&&(e="0"+e),be(b(e))}function Se(e){return w(we(e))}function Ee(e){return ke(Le(e))}function Ae(e){return decodeURIComponent(Oe(e))}function Fe(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function Ce(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function De(e){return b(e)}function Re(e){var t=De(e).replace(/(.{64})/g,"$1\r\n");return t=t.replace(/\r\n$/,"")}function $e(e){return w(e.replace(/[^0-9A-Za-z\/+=]*/g,""))}function Ie(e,t){return"-----BEGIN "+t+"-----\r\n"+Re(e)+"\r\n-----END "+t+"-----\r\n"}function Te(e,t){if(-1==e.indexOf("-----BEGIN "))throw"can't find PEM header: "+t;return $e(e=void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),"")).replace(new RegExp("-----END "+t+"-----[^]*$"),""):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Pe(e){var t,n,r,i,a,s,o,u,c,l,h;if(h=e.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return u=h[1],t=parseInt(u),2===u.length&&(50<=t&&t<100?t=1900+t:0<=t&&t<50&&(t=2e3+t)),n=parseInt(h[2])-1,r=parseInt(h[3]),i=parseInt(h[4]),a=parseInt(h[5]),s=parseInt(h[6]),o=0,""!==(c=h[7])&&(l=(c.substr(1)+"00").substr(0,3),o=parseInt(l)),Date.UTC(t,n,r,i,a,s,o);throw"unsupported zulu format: "+e}function _e(e){return~~(Pe(e)/1e3)}function ke(e){return e.replace(/%/g,"")}function Oe(e){return e.replace(/(..)/g,"%$1")}function je(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 a=0;a<8;a++)i[a]=("0000"+i[a]).slice(-4);return i.join("")}function Ne(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var t=(e=e.toLowerCase()).match(/.{1,4}/g),n=0;n<8;n++)t[n]=t[n].replace(/^0+/,""),""==t[n]&&(t[n]="0");var r=(e=":"+t.join(":")+":").match(/:(0:){2,}/g);if(null===r)return e.slice(1,-1);var i="";for(n=0;n<r.length;n++)r[n].length>i.length&&(i=r[n]);return(e=e.replace(i,"::")).slice(1,-1)}function He(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Ne(e):e;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}}function Be(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 Ae((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 Ae((224|(240&t)>>4).toString(16)+r.toString(16)+i.toString(16))})).join("")}function Le(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+ye(t[r]);return n}function Me(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function Ue(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}function Ve(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}}de.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},de.getL=function(e,t){var n=de.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},de.getVblen=function(e,t){var n;return""==(n=de.getL(e,t))?-1:("8"===n.substr(0,1)?new S(n.substr(2),16):new S(n,16)).intValue()},de.getVidx=function(e,t){var n=de.getLblen(e,t);return n<0?n:t+2*(n+1)},de.getV=function(e,t){var n=de.getVidx(e,t),r=de.getVblen(e,t);return e.substr(n,2*r)},de.getTLV=function(e,t){return e.substr(t,2)+de.getL(e,t)+de.getV(e,t)},de.getTLVblen=function(e,t){return 2+2*de.getLblen(e,t)+2*de.getVblen(e,t)},de.getNextSiblingIdx=function(e,t){return de.getVidx(e,t)+2*de.getVblen(e,t)},de.getChildIdx=function(e,t){var n,r,i,a=de,s=[];n=a.getVidx(e,t),r=2*a.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;for(var o=n;i<=r;){var u=a.getTLVblen(e,o);if((i+=u)<=r&&s.push(o),o+=u,i>=r)break}return s},de.getNthChildIdx=function(e,t,n){return de.getChildIdx(e,t)[n]},de.getIdxbyList=function(e,t,n,r){var i,a,s=de;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(a=s.getChildIdx(e,t)).length?-1:s.getIdxbyList(e,a[i],n,r)},de.getIdxbyListEx=function(e,t,n,r){var i,a,s=de;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),a=s.getChildIdx(e,t);for(var o=0,u=0;u<a.length;u++){var c=e.substr(a[u],2);if("number"==typeof i&&!s.isContextTag(c)&&o==i||"string"==typeof i&&s.isContextTag(c,i))return s.getIdxbyListEx(e,a[u],n,r);s.isContextTag(c)||o++}return-1},de.getTLVbyList=function(e,t,n,r){var i=de,a=i.getIdxbyList(e,t,n,r);return-1==a?null:a>=e.length?null:i.getTLV(e,a)},de.getTLVbyListEx=function(e,t,n,r){var i=de,a=i.getIdxbyListEx(e,t,n,r);return-1==a?null:i.getTLV(e,a)},de.getVbyList=function(e,t,n,r,i){var a,s,o=de;return-1==(a=o.getIdxbyList(e,t,n,r))?null:a>=e.length?null:(s=o.getV(e,a),!0===i&&(s=s.substr(2)),s)},de.getVbyListEx=function(e,t,n,r,i){var a,s,o=de;return-1==(a=o.getIdxbyListEx(e,t,n,r))?null:(s=o.getV(e,a),"03"==e.substr(a,2)&&!1!==i&&(s=s.substr(2)),s)},de.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=de.getV(e,t);return"02"==r?parseInt(i,16):Ge(i)}catch(e){return n}},de.getOID=function(e,t,n){null==n&&(n=null);try{return"06"!=e.substr(t,2)?n:Ke(de.getV(e,t))}catch(e){return n}},de.getOIDName=function(e,t,n){null==n&&(n=null);try{var r=de.getOID(e,t,n);if(r==n)return n;var i=he.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(e){return n}},de.getString=function(e,t,n){null==n&&(n=null);try{return Fe(de.getV(e,t))}catch(e){return n}},de.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 a=e.substr(2),s=[],o=0;o<a.length/2;o++)s.push(parseInt(a.substr(2*o,2),16));var u=[],c="";for(o=0;o<s.length;o++)128&s[o]?c+=t((127&s[o]).toString(2),7):(c+=t((127&s[o]).toString(2),7),u.push(new String(parseInt(c,2))),c="");var l=n.join(".");return u.length>0&&(l=l+"."+u.join(".")),l},de.dump=function(e,t,n,r){var i=de,a=i.getV,s=i.dump,o=i.getChildIdx,u=e;e instanceof he.asn1.ASN1Object&&(u=e.getEncodedHex());var c=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 l,h=t.ommit_long_octet;if("01"==(l=u.substr(n,2)))return"00"==(f=a(u,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==l)return r+"INTEGER "+c(f=a(u,n),h)+"\n";if("03"==l){var f=a(u,n);if(i.isASN1HEX(f.substr(2))){var p=r+"BITSTRING, encapsulates\n";return p+=s(f.substr(2),t,0,r+" ")}return r+"BITSTRING "+c(f,h)+"\n"}if("04"==l){f=a(u,n);if(i.isASN1HEX(f)){p=r+"OCTETSTRING, encapsulates\n";return p+=s(f,t,0,r+" ")}return r+"OCTETSTRING "+c(f,h)+"\n"}if("05"==l)return r+"NULL\n";if("06"==l){var d=a(u,n),g=he.asn1.ASN1Util.oidHexToInt(d),m=he.asn1.x509.OID.oid2name(g),v=g.replace(/\./g," ");return""!=m?r+"ObjectIdentifier "+m+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==l)return r+"ENUMERATED "+parseInt(a(u,n))+"\n";if("0c"==l)return r+"UTF8String '"+Ae(a(u,n))+"'\n";if("13"==l)return r+"PrintableString '"+Ae(a(u,n))+"'\n";if("14"==l)return r+"TeletexString '"+Ae(a(u,n))+"'\n";if("16"==l)return r+"IA5String '"+Ae(a(u,n))+"'\n";if("17"==l)return r+"UTCTime "+Ae(a(u,n))+"\n";if("18"==l)return r+"GeneralizedTime "+Ae(a(u,n))+"\n";if("1a"==l)return r+"VisualString '"+Ae(a(u,n))+"'\n";if("1e"==l)return r+"BMPString '"+Be(a(u,n))+"'\n";if("30"==l){if("3000"==u.substr(n,4))return r+"SEQUENCE {}\n";p=r+"SEQUENCE\n";var y=t;if((2==(x=o(u,n)).length||3==x.length)&&"06"==u.substr(x[0],2)&&"04"==u.substr(x[x.length-1],2)){m=i.oidname(a(u,x[0]));var b=JSON.parse(JSON.stringify(t));b.x509ExtName=m,y=b}for(var w=0;w<x.length;w++)p+=s(u,y,x[w],r+" ");return p}if("31"==l){p=r+"SET\n";var x=o(u,n);for(w=0;w<x.length;w++)p+=s(u,t,x[w],r+" ");return p}if(0!=(128&(l=parseInt(l,16)))){var S=31&l;if(0!=(32&l)){for(p=r+"["+S+"]\n",x=o(u,n),w=0;w<x.length;w++)p+=s(u,t,x[w],r+" ");return p}f=a(u,n);if(de.isASN1HEX(f)){var p=r+"["+S+"]\n";return p+=s(f,t,0,r+" ")}return"68747470"==f.substr(0,8)?f=Ae(f):"subjectAltName"===t.x509ExtName&&2==S&&(f=Ae(f)),p=r+"["+S+"] "+f+"\n"}return r+"UNKNOWN("+l+") "+a(u,n)+"\n"},de.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}},de.isASN1HEX=function(e){var t=de;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},de.checkStrictDER=function(e,t,n,r,i){var a=de;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!he.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(a.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var s=a.getVblen(e,t);if(s>r)throw new Error("value of L too long than hex: idx="+t);var o=a.getTLV(e,t),u=o.length-2-a.getL(e,t).length;if(u!==2*s)throw new Error("V string length and L's value not the same:"+u+"/"+2*s);if(0===t&&e.length!=o.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+o.length);var c=e.substr(t,2);if("02"===c){var l=a.getVidx(e,t);if("00"==e.substr(l,2)&&e.charCodeAt(l+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(c,16)){for(var h=a.getVblen(e,t),f=0,p=a.getChildIdx(e,t),d=0;d<p.length;d++){f+=a.getTLV(e,p[d]).length,a.checkStrictDER(e,p[d],n,r,i)}if(2*h!=f)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+f)}},de.oidname=function(e){var t=he.asn1;he.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),void 0!==he.asn1.x509&&he.asn1.x509||(he.asn1.x509={}),he.asn1.x509.Certificate=function(e){he.asn1.x509.Certificate.superclass.constructor.call(this);var t=he.asn1,n=t.DERBitString,r=t.DERSequence,i=t.x509,a=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.getEncodedHex(),r=new he.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return Ie(this.getEncodedHex(),"CERTIFICATE")},this.getEncodedHex=function(){var e=this.params;if(null!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new a(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}).getEncodedHex()},null!=e&&(this.params=e)},We(he.asn1.x509.Certificate,he.asn1.ASN1Object),he.asn1.x509.TBSCertificate=function(e){he.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=he.asn1,n=t.x509,r=t.DERTaggedObject,i=t.DERInteger,a=t.DERSequence,s=n.AlgorithmIdentifier,o=n.Time,u=n.X500Name,c=n.Extensions,l=n.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.getEncodedHex=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 u(t.issuer)),e.push(new a({array:[new o(t.notbefore),new o(t.notafter)]})),e.push(new u(t.subject)),e.push(new l(Ye.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new r({tag:"a3",obj:new c(t.ext)})),new he.asn1.DERSequence({array:e}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.TBSCertificate,he.asn1.ASN1Object),he.asn1.x509.Extensions=function(e){he.asn1.x509.Extensions.superclass.constructor.call(this);var t=he.asn1,n=t.DERSequence,r=t.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.getEncodedHex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var i=this.aParam[t],a=i.extname,s=null;if(null!=i.extn)s=new r.PrivateExtension(i);else if("subjectKeyIdentifier"==a)s=new r.SubjectKeyIdentifier(i);else if("keyUsage"==a)s=new r.KeyUsage(i);else if("subjectAltName"==a)s=new r.SubjectAltName(i);else if("issuerAltName"==a)s=new r.IssuerAltName(i);else if("basicConstraints"==a)s=new r.BasicConstraints(i);else if("cRLDistributionPoints"==a)s=new r.CRLDistributionPoints(i);else if("certificatePolicies"==a)s=new r.CertificatePolicies(i);else if("authorityKeyIdentifier"==a)s=new r.AuthorityKeyIdentifier(i);else if("extKeyUsage"==a)s=new r.ExtKeyUsage(i);else if("authorityInfoAccess"==a)s=new r.AuthorityInfoAccess(i);else if("cRLNumber"==a)s=new r.CRLNumber(i);else if("cRLReason"==a)s=new r.CRLReason(i);else if("ocspNonce"==a)s=new r.OCSPNonce(i);else if("ocspNoCheck"==a)s=new r.OCSPNoCheck(i);else if("adobeTimeStamp"==a)s=new r.AdobeTimeStamp(i);else{if("subjectDirectoryAttributes"!=a)throw new Error("extension not supported:"+JSON.stringify(i));s=new r.SubjectDirectoryAttributes(i)}null!=s&&e.push(s)}return new n({array:e}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.x509.Extensions,he.asn1.ASN1Object),he.asn1.x509.Extension=function(e){he.asn1.x509.Extension.superclass.constructor.call(this);var t=he.asn1,n=t.DERObjectIdentifier,r=t.DEROctetString,i=(t.DERBitString,t.DERBoolean),a=t.DERSequence;this.getEncodedHex=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 a({array:s}).getEncodedHex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},We(he.asn1.x509.Extension,he.asn1.ASN1Object),he.asn1.x509.KeyUsage=function(e){he.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Ze.KEYUSAGE_NAME;if(this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.15",void 0!==e&&(void 0!==e.bin&&(this.asn1ExtnValue=new he.asn1.DERBitString(e)),void 0!==e.names&&void 0!==e.names.length)){for(var n=e.names,r="000000000",i=0;i<n.length;i++)for(var a=0;a<t.length;a++)n[i]===t[a]&&(r=r.substring(0,a)+"1"+r.substring(a+1,r.length));this.asn1ExtnValue=new he.asn1.DERBitString({bin:r})}},We(he.asn1.x509.KeyUsage,he.asn1.x509.Extension),he.asn1.x509.BasicConstraints=function(e){he.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=he.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.getEncodedHex()},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))},We(he.asn1.x509.BasicConstraints,he.asn1.x509.Extension),he.asn1.x509.CRLDistributionPoints=function(e){he.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=he.asn1,n=t.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.setByDPArray=function(e){for(var r=[],i=0;i<e.length;i++)if(e[i]instanceof he.asn1.ASN1Object)r.push(e[i]);else{var a=new n.DistributionPoint(e[i]);r.push(a)}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))},We(he.asn1.x509.CRLDistributionPoints,he.asn1.x509.Extension),he.asn1.x509.DistributionPoint=function(e){he.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=he.asn1,n=t.x509.DistributionPointName;this.getEncodedHex=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.getEncodedHex(),this.hTLV},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}]})))},We(he.asn1.x509.DistributionPoint,he.asn1.ASN1Object),he.asn1.x509.DistributionPointName=function(e){he.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=he.asn1,n=t.DERTaggedObject;if(this.getEncodedHex=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.getEncodedHex(),this.hTLV},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)}},We(he.asn1.x509.DistributionPointName,he.asn1.ASN1Object),he.asn1.x509.CertificatePolicies=function(e){he.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=he.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.getEncodedHex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},We(he.asn1.x509.CertificatePolicies,he.asn1.x509.Extension),he.asn1.x509.PolicyInformation=function(e){he.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=he.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.getEncodedHex=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=[],a=0;a<this.params.array.length;a++)t.push(new i(this.params.array[a]));t.length>0&&e.push(new n({array:t}))}return new n({array:e}).getEncodedHex()},void 0!==e&&(this.params=e)},We(he.asn1.x509.PolicyInformation,he.asn1.ASN1Object),he.asn1.x509.PolicyQualifierInfo=function(e){he.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=he.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,a=t.x509.UserNotice;this.params=null,this.getEncodedHex=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})]}).getEncodedHex():null!=this.params.unotice?new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new a(this.params.unotice)]}).getEncodedHex():void 0},void 0!==e&&(this.params=e)},We(he.asn1.x509.PolicyQualifierInfo,he.asn1.ASN1Object),he.asn1.x509.UserNotice=function(e){he.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=he.asn1.DERSequence,n=(he.asn1.DERInteger,he.asn1.x509.DisplayText),r=he.asn1.x509.NoticeReference;this.params=null,this.getEncodedHex=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}).getEncodedHex()},void 0!==e&&(this.params=e)},We(he.asn1.x509.UserNotice,he.asn1.ASN1Object),he.asn1.x509.NoticeReference=function(e){he.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=he.asn1.DERSequence,n=he.asn1.DERInteger,r=he.asn1.x509.DisplayText;this.params=null,this.getEncodedHex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],a=this.params.noticenum,s=0;s<a.length;s++)i.push(new n(a[s]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");return new t({array:e}).getEncodedHex()},void 0!==e&&(this.params=e)},We(he.asn1.x509.NoticeReference,he.asn1.ASN1Object),he.asn1.x509.DisplayText=function(e){he.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"))},We(he.asn1.x509.DisplayText,he.asn1.DERAbstractString),he.asn1.x509.ExtKeyUsage=function(e){he.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=he.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.getEncodedHex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},We(he.asn1.x509.ExtKeyUsage,he.asn1.x509.Extension),he.asn1.x509.AuthorityKeyIdentifier=function(e){he.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=he,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.getEncodedHex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new he.asn1.DEROctetString(e);else if("object"==typeof e&&he.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"==typeof e&&(t=Ye.getKey(e));var n=Ye.getKeyID(t);this.asn1KID=new he.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 he.asn1.x509.X500Name(e):"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new he.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 he.asn1.DERInteger(e);else if("string"==typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new Ze;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new he.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)))},We(he.asn1.x509.AuthorityKeyIdentifier,he.asn1.x509.Extension),he.asn1.x509.SubjectKeyIdentifier=function(e){he.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=he.asn1.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.getEncodedHex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new t(e);else if("object"==typeof e&&he.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN")){var n=e;"string"==typeof e&&(n=Ye.getKey(e));var r=Ye.getKeyID(n);this.asn1KID=new he.asn1.DEROctetString({hex:r})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},We(he.asn1.x509.SubjectKeyIdentifier,he.asn1.x509.Extension),he.asn1.x509.AuthorityInfoAccess=function(e){he.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=he.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,a=n.x509.GeneralName,s=0;s<e.length;s++){var o,u=e[s];if(void 0!==u.ocsp)o=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.1"}),new a({uri:u.ocsp})]});else{if(void 0===u.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(u));o=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.2"}),new a({uri:u.caissuer})]})}t.push(o)}this.asn1ExtnValue=new r({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},We(he.asn1.x509.AuthorityInfoAccess,he.asn1.x509.Extension),he.asn1.x509.SubjectAltName=function(e){he.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new he.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},We(he.asn1.x509.SubjectAltName,he.asn1.x509.Extension),he.asn1.x509.IssuerAltName=function(e){he.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new he.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},We(he.asn1.x509.IssuerAltName,he.asn1.x509.Extension),he.asn1.x509.SubjectDirectoryAttributes=function(e){he.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=he.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 a=this.params.array[t],s={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==a.attr)s.seq[0].oid=i(a.attr),s.seq[1].set[0]={gentime:a.str};else if("placeOfBirth"==a.attr)s.seq[0].oid=i(a.attr),s.seq[1].set[0]={utf8str:a.str};else if("gender"==a.attr)s.seq[0].oid=i(a.attr),s.seq[1].set[0]={prnstr:a.str};else if("countryOfCitizenship"==a.attr)s.seq[0].oid=i(a.attr),s.seq[1].set[0]={prnstr:a.str};else{if("countryOfResidence"!=a.attr)throw new Error("unsupported attribute: "+a.attr);s.seq[0].oid=i(a.attr),s.seq[1].set[0]={prnstr:a.str}}e.push(new r(s))}var o=new n({array:e});return this.asn1ExtnValue=o,this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},We(he.asn1.x509.SubjectDirectoryAttributes,he.asn1.x509.Extension),he.asn1.x509.PrivateExtension=function(e){he.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=he,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,a=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 a(e).getEncodedHex()}catch(e){}throw new Error("unsupported extn value")},null!=e&&this.setByParam(e)},We(he.asn1.x509.PrivateExtension,he.asn1.x509.Extension),he.asn1.x509.CRL=function(e){he.asn1.x509.CRL.superclass.constructor.call(this);var t=he.asn1,n=t.DERSequence,r=t.DERBitString,i=t.x509,a=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).getEncodedHex(),t=new he.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 Ie(this.getEncodedHex(),"X509 CRL")},this.getEncodedHex=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 a({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex})),new n({array:t}).getEncodedHex()},null!=e&&(this.params=e)},We(he.asn1.x509.CRL,he.asn1.ASN1Object),he.asn1.x509.TBSCertList=function(e){he.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=he.asn1,n=t.DERInteger,r=t.DERSequence,i=t.DERTaggedObject,a=(t.DERObjectIdentifier,t.x509),s=a.AlgorithmIdentifier,o=a.Time,u=a.Extensions,c=a.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 a=[new n(t[i].sn),new o(t[i].date)];null!=t[i].ext&&a.push(new u(t[i].ext)),e.push(new r({array:a}))}return new r({array:e})},this.getEncodedHex=function(){var e=[],t=this.params;if(null!=t.version){var a=t.version-1,l=new n({int:a});e.push(l)}if(e.push(new s({name:t.sigalg})),e.push(new c(t.issuer)),e.push(new o(t.thisupdate)),null!=t.nextupdate&&e.push(new o(t.nextupdate)),null!=t.revcert&&e.push(this.getRevCertSequence()),null!=t.ext){var h=new u(t.ext);e.push(new i({tag:"a0",explicit:!0,obj:h}))}return new r({array:e}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.TBSCertList,he.asn1.ASN1Object),he.asn1.x509.CRLEntry=function(e){he.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=he.asn1;this.setCertSerial=function(e){this.sn=new t.DERInteger(e)},this.setRevocationDate=function(e){this.time=new t.x509.Time(e)},this.getEncodedHex=function(){var e=new t.DERSequence({array:[this.sn,this.time]});return this.TLV=e.getEncodedHex(),this.TLV},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},We(he.asn1.x509.CRLEntry,he.asn1.ASN1Object),he.asn1.x509.CRLNumber=function(e){he.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new he.asn1.DERInteger(this.params.num),this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.20",null!=e&&(this.params=e)},We(he.asn1.x509.CRLNumber,he.asn1.x509.Extension),he.asn1.x509.CRLReason=function(e){he.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new he.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.21",null!=e&&(this.params=e)},We(he.asn1.x509.CRLReason,he.asn1.x509.Extension),he.asn1.x509.OCSPNonce=function(e){he.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new he.asn1.DEROctetString(this.params),this.asn1ExtnValue.getEncodedHex()},this.oid="1.3.6.1.5.5.7.48.1.2",null!=e&&(this.params=e)},We(he.asn1.x509.OCSPNonce,he.asn1.x509.Extension),he.asn1.x509.OCSPNoCheck=function(e){he.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new he.asn1.DERNull,this.asn1ExtnValue.getEncodedHex()},this.oid="1.3.6.1.5.5.7.48.1.5",null!=e&&(this.params=e)},We(he.asn1.x509.OCSPNoCheck,he.asn1.x509.Extension),he.asn1.x509.AdobeTimeStamp=function(e){he.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=he.asn1,n=t.DERInteger,r=t.DERBoolean,i=t.DERSequence,a=t.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new n(1)];return t.push(new a({uri:e.uri})),null!=e.reqauth&&t.push(new r(e.reqauth)),this.asn1ExtnValue=new i({array:t}),this.asn1ExtnValue.getEncodedHex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},We(he.asn1.x509.AdobeTimeStamp,he.asn1.x509.Extension),he.asn1.x509.X500Name=function(e){he.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=he.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=[],a=0;a<n.length;a++)if(n[a].match(/^[^=]+=.+$/))i.push(n[a]);else{var s=i.length-1;i[s]=i[s]+"/"+n[a]}for(a=0;a<i.length;a++)this.asn1Array.push(new r({str:i[a],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 Ze).readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()):void 0!==e.certsubject?((t=new Ze).readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()):"object"==typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.getEncodedHex=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 a=new t.DERSequence({array:this.asn1Array});return this.hTLV=a.getEncodedHex(),this.hTLV},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.X500Name,he.asn1.ASN1Object),he.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(",")},he.asn1.x509.X500Name.onelineToLDAP=function(e){return he.asn1.x509.X500Name.compatToLDAP(e)},he.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var s=(r.pop()+","+a).replace(/\\,/g,",");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}return(r=r.map((function(e){return e.replace("/","\\/")}))).reverse(),"/"+r.join("/")},he.asn1.x509.X500Name.ldapToOneline=function(e){return he.asn1.x509.X500Name.ldapToCompat(e)},he.asn1.x509.RDN=function(e){he.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=he.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 he.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=he.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.getEncodedHex=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 he.asn1.DERSet({array:this.asn1Array});return this.TLV=i.getEncodedHex(),this.TLV},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.RDN,he.asn1.ASN1Object),he.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var s=(r.pop()+"+"+a).replace(/\\\+/g,"+");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}var o=!1,u=[];for(i=0;r.length>0;i++){a=r.shift();if(!0===o){var c=u.pop();if(a.match(/"$/)){s=(c+"+"+a).replace(/^([^=]+)="(.*)"$/,"$1=$2");u.push(s),o=!1}else u.push(c+"+"+a)}else u.push(a);a.match(/^[^=]+="/)&&(o=!0)}return u},he.asn1.x509.AttributeTypeAndValue=function(e){he.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=he,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,a=n.DERPrintableString,s=n.DERTeletexString,o=n.DERIA5String,u=n.DERVisibleString,c=n.DERBMPString,l=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&&l(t)?"ia5":h(t)?"prn":"utf8":"utf8"===n?"CN"==e&&l(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 a({str:t});if("tel"==e)return new s({str:t});if("ia5"==e)return new o({str:t});if("vis"==e)return new u({str:t});if("bmp"==e)return new c({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.getEncodedHex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=he.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.getEncodedHex(),this.TLV},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.AttributeTypeAndValue,he.asn1.ASN1Object),he.asn1.x509.SubjectPublicKeyInfo=function(e){he.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=he,n=t.asn1,r=n.DERInteger,i=n.DERBitString,a=n.DERObjectIdentifier,s=n.DERSequence,o=n.ASN1Util.newObject,u=n.x509.AlgorithmIdentifier,c=t.crypto;c.ECDSA,c.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.getEncodedHex=function(){var e=this.getASN1Object();return this.hTLV=e.getEncodedHex(),this.hTLV},this.setPubKey=function(e){try{if(e instanceof ae){var t=o({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}).getEncodedHex();this.asn1AlgId=new u({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+t})}}catch(e){}try{if(e instanceof he.crypto.ECDSA){var n=new a({name:e.curveName});this.asn1AlgId=new u({name:"ecPublicKey",asn1params:n}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(e){}try{if(e instanceof he.crypto.DSA){n=new o({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new u({name:"dsa",asn1params:n});var s=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+s.getEncodedHex()})}}catch(e){}},void 0!==e&&this.setPubKey(e)},We(he.asn1.x509.SubjectPublicKeyInfo,he.asn1.ASN1Object),he.asn1.x509.Time=function(e){he.asn1.x509.Time.superclass.constructor.call(this);var t=he.asn1,n=t.DERUTCTime,r=t.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.getEncodedHex=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.getEncodedHex(),this.TLV},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)},We(he.asn1.x509.Time,he.asn1.ASN1Object),he.asn1.x509.AlgorithmIdentifier=function(e){he.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=he.asn1,n=t.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.getEncodedHex=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 a=new t.DERSequence({array:i});return this.hTLV=a.getEncodedHex(),this.hTLV},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)}},We(he.asn1.x509.AlgorithmIdentifier,he.asn1.ASN1Object),he.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},he.asn1.x509.GeneralName=function(e){he.asn1.x509.GeneralName.superclass.constructor.call(this);var t={rfc822:"81",dns:"82",dn:"a4",uri:"86",ip:"87"},n=he.asn1,r=(n.DERSequence,n.DEROctetString),i=n.DERIA5String,a=n.DERTaggedObject,s=n.ASN1Object,o=n.x509.X500Name,u=Te;this.explicit=!1,this.setByParam=function(e){var n=null;if(void 0!==e){if(void 0!==e.rfc822&&(this.type="rfc822",n=new i({str:e[this.type]})),void 0!==e.dns&&(this.type="dns",n=new i({str:e[this.type]})),void 0!==e.uri&&(this.type="uri",n=new i({str:e[this.type]})),void 0!==e.dn&&(this.type="dn",this.explicit=!0,n="string"==typeof e.dn?new o({str:e.dn}):e.dn instanceof he.asn1.x509.X500Name?e.dn:new o(e.dn)),void 0!==e.ldapdn&&(this.type="dn",this.explicit=!0,n=new o({ldapstr:e.ldapdn})),void 0!==e.certissuer){this.type="dn",this.explicit=!0;var c=null;if((h=e.certissuer).match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(c=u(h)),null==c)throw"certissuer param not cert";(f=new Ze).hex=c;var l=f.getIssuerHex();(n=new s).hTLV=l}if(void 0!==e.certsubj){this.type="dn",this.explicit=!0;var h,f;c=null;if((h=e.certsubj).match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(c=u(h)),null==c)throw"certsubj param not cert";(f=new Ze).hex=c;l=f.getSubjectHex();(n=new s).hTLV=l}if(void 0!==e.ip){this.type="ip",this.explicit=!1;var p,d=e.ip,g="malformed IP address";if(d.match(/^[0-9.]+[.][0-9.]+$/)){if(8!==(p=Ve("["+d.split(".").join(",")+"]")).length)throw g}else if(d.match(/^[0-9A-Fa-f:]+:[0-9A-Fa-f:]+$/))p=je(d);else{if(!d.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw g;p=d}n=new r({hex:p})}if(null==this.type)throw"unsupported type in params="+e;this.asn1Obj=new a({explicit:this.explicit,tag:t[this.type],obj:n})}},this.getEncodedHex=function(){return this.asn1Obj.getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.x509.GeneralName,he.asn1.ASN1Object),he.asn1.x509.GeneralNames=function(e){he.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=he.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.getEncodedHex=function(){return new t.DERSequence({array:this.asn1Array}).getEncodedHex()},this.asn1Array=new Array,void 0!==e&&this.setByParamArray(e)},We(he.asn1.x509.GeneralNames,he.asn1.ASN1Object),he.asn1.x509.OID=new function(e){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",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.name2oidList={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",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",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",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",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",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"},this.objCache={},this.name2obj=function(e){if(void 0!==this.objCache[e])return this.objCache[e];if(void 0===this.name2oidList[e])throw"Name of ObjectIdentifier not defined: "+e;var t=this.name2oidList[e],n=new he.asn1.DERObjectIdentifier({oid:t});return this.objCache[e]=n,n},this.atype2obj=function(e){if(void 0!==this.objCache[e])return this.objCache[e];var t;if(e.match(/^\d+\.\d+\.[0-9.]+$/))t=e;else if(void 0!==this.atype2oidList[e])t=this.atype2oidList[e];else{if(void 0===this.name2oidList[e])throw"AttributeType name undefined: "+e;t=this.name2oidList[e]}var n=new he.asn1.DERObjectIdentifier({oid:t});return this.objCache[e]=n,n}},he.asn1.x509.OID.oid2name=function(e){var t=he.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},he.asn1.x509.OID.oid2atype=function(e){var t=he.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},he.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=he.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},he.asn1.x509.X509Util={},he.asn1.x509.X509Util.newCertPEM=function(e){var t=he.asn1.x509;t.TBSCertificate;return new(0,t.Certificate)(e).getPEM()},void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),void 0!==he.asn1.cms&&he.asn1.cms||(he.asn1.cms={}),he.asn1.cms.Attribute=function(e){var t=Error,n=he.asn1,r=n.DERSequence,i=n.DERSet,a=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.getEncodedHex=function(){var e=new a({oid:this.typeOid}),t=new i({array:this.getValueArray()});return new r({array:[e,t]}).getEncodedHex()}},We(he.asn1.cms.Attribute,he.asn1.ASN1Object),he.asn1.cms.ContentType=function(e){var t=he.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)},We(he.asn1.cms.ContentType,he.asn1.cms.Attribute),he.asn1.cms.MessageDigest=function(e){var t=he.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)},We(he.asn1.cms.MessageDigest,he.asn1.cms.Attribute),he.asn1.cms.SigningTime=function(e){var t=he.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)},We(he.asn1.cms.SigningTime,he.asn1.cms.Attribute),he.asn1.cms.SigningCertificate=function(e){var t=Error,n=he,r=n.asn1,i=r.DERSequence,a=r.cms,s=a.ESSCertID;n.crypto;a.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=[],a=0;a<n.length;a++){var o=n[a];0!=e.hasis||"string"!=typeof o||-1==o.indexOf("-----BEGIN")&&!de.isASN1HEX(o)||(o={cert:o}),0!=o.hasis&&0==e.hasis&&(o.hasis=!1),r.push(new s(o))}var u=new i({array:r});return[new i({array:[u]})]},null!=e&&this.setByParam(e)},We(he.asn1.cms.SigningCertificate,he.asn1.cms.Attribute),he.asn1.cms.ESSCertID=function(e){he.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=he,r=n.asn1,i=r.DEROctetString,a=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")&&!de.isASN1HEX(e))return e;var i,a,s;if("string"==typeof e)i=e;else{if(null==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(a=-1!=i.indexOf("-----BEGIN")?Te(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?a=Te(e):de.isASN1HEX(e)&&(a=e)),null!=e.alg)s=e.alg;else{if(null==r)throw new t("hash alg unspecified");s=r}return n.crypto.Util.hashHex(a,s)},this.getEncodedHex=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 a({array:n}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.ESSCertID,he.asn1.ASN1Object),he.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=he,r=n.asn1,i=r.DERSequence,a=(r.x509,r.cms),s=a.ESSCertIDv2;n.crypto;a.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=[],a=0;a<n.length;a++){var o=n[a];null==e.alg&&0!=e.hasis||"string"!=typeof o||-1==o.indexOf("-----BEGIN")&&!de.isASN1HEX(o)||(o={cert:o}),null==o.alg&&null!=e.alg&&(o.alg=e.alg),0!=o.hasis&&0==e.hasis&&(o.hasis=!1),r.push(new s(o))}var u=new i({array:r});return[new i({array:[u]})]},null!=e&&this.setByParam(e)},We(he.asn1.cms.SigningCertificateV2,he.asn1.cms.Attribute),he.asn1.cms.ESSCertIDv2=function(e){he.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=he.asn1,n=t.DEROctetString,r=t.DERSequence,i=t.cms.IssuerSerial,a=t.x509.AlgorithmIdentifier;this.params=null,this.getEncodedHex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),s=[];return null!=e.alg&&"sha256"!=e.alg&&s.push(new a({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}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.ESSCertIDv2,he.asn1.cms.ESSCertID),he.asn1.cms.IssuerSerial=function(e){var t=Error,n=he.asn1,r=n.DERInteger,i=n.DERSequence,a=n.cms,s=n.x509.GeneralNames,o=Ze;a.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.getEncodedHex=function(){var e,n,a=this.params;if("string"==typeof a&&-1!=a.indexOf("-----BEGIN")||null!=a.cert){var u;u=null!=a.cert?a.cert:a;var c=new o;c.readCertPEM(u),e=c.getIssuer(),n={hex:c.getSerialNumberHex()}}else{if(null==a.issuer||!a.serial)throw new t("cert or issuer and serial parameter not specified");e=a.issuer,n=a.serial}var l=new s([{dn:e}]),h=new r(n);return new i({array:[l,h]}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.IssuerSerial,he.asn1.ASN1Object),he.asn1.cms.SignerIdentifier=function(e){var t=he.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.getEncodedHex=function(){var e=this.params;if("isssn"==e.type)return new r(e).getEncodedHex();if("skid"==e.type)return new i(e).getEncodedHex();throw new Error("wrong property for isssn or skid")},null!=e&&this.setByParam(e)},We(he.asn1.cms.SignerIdentifier,he.asn1.ASN1Object),he.asn1.cms.IssuerAndSerialNumber=function(e){var t=he.asn1,n=t.DERInteger,r=t.DERSequence,i=t.cms,a=t.x509.X500Name,s=Ze,o=Error;i.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e,t,i=this.params;if("string"==typeof i&&-1!=i.indexOf("-----BEGIN")||null!=i.cert){var u;u=null!=i.cert?i.cert:i;var c=new s;c.readCertPEM(u),e=c.getIssuer(),t={hex:c.getSerialNumberHex()}}else{if(null==i.issuer||!i.serial)throw new o("cert or issuer and serial parameter not specified");e=i.issuer,t=i.serial}var l=new a(e),h=new n(t);return new r({array:[l,h]}).getEncodedHex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},We(he.asn1.cms.IssuerAndSerialNumber,he.asn1.ASN1Object),he.asn1.cms.SubjectKeyIdentifier=function(e){var t=he.asn1,n=(t.DERInteger,t.DERSequence,t.ASN1Util.newObject),r=t.cms,i=(r.IssuerAndSerialName,r.SubjectKeyIdentifier,t.x509.X500Name,Ze),a=Error;r.SubjectKeyIdentifier.superclass.constructor.call(this),this.getEncodedHex=function(){var e,t=this.params;if(null==t.cert&&null==t.skid)throw new a("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}}}}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.SubjectKeyIdentifier,he.asn1.ASN1Object),he.asn1.cms.AttributeList=function(e){var t=Error,n=he.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.getEncodedHex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;null!=e.sortflag&&(n=e.sortflag);for(var a=e.array,s=[],o=0;o<a.length;o++){var u=a[o],c=u.attr;if("contentType"==c)s.push(new i.ContentType(u));else if("messageDigest"==c)s.push(new i.MessageDigest(u));else if("signingTime"==c)s.push(new i.SigningTime(u));else if("signingCertificate"==c)s.push(new i.SigningCertificate(u));else if("signingCertificateV2"==c)s.push(new i.SigningCertificateV2(u));else if("signaturePolicyIdentifier"==c)s.push(new he.asn1.cades.SignaturePolicyIdentifier(u));else{if("signatureTimeStamp"!=c&&"timeStampToken"!=c)throw new t("unknown attr: "+c);s.push(new he.asn1.cades.SignatureTimeStamp(u))}}var l=new r({array:s,sortflag:n});return this.hTLV=l.getEncodedHex(),this.hTLV},null!=e&&this.setByParam(e)},We(he.asn1.cms.AttributeList,he.asn1.ASN1Object),he.asn1.cms.SignerInfo=function(e){var t=Error,n=he,r=n.asn1,i=r.DERInteger,a=r.DEROctetString,s=r.DERSequence,o=r.DERTaggedObject,u=r.cms,c=u.SignerIdentifier,l=u.AttributeList,h=(u.ContentType,u.EncapsulatedContentInfo,u.MessageDigest,u.SignedData,r.x509.AlgorithmIdentifier),f=n.crypto,p=Ye;u.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new l(e.sattrs).getEncodedHex(),r=p.getKey(e.signkey),i=new f.Signature({alg:t});i.init(r),i.updateHex(n);var a=i.sign();e.sighex=a},this.getEncodedHex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new c(e.id)),n.push(new h({name:e.hashalg})),null!=e.sattrs){var r=new l(e.sattrs);try{n.push(new o({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 a({hex:e.sighex})),null!=e.uattrs){r=new l(e.uattrs);try{n.push(new o({tag:"a1",explicit:!1,obj:r}))}catch(e){throw new t("si uattr error: "+e)}}return new s({array:n}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.SignerInfo,he.asn1.ASN1Object),he.asn1.cms.EncapsulatedContentInfo=function(e){var t=he.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier,a=t.DEROctetString;t.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 a(e.content),o=new n({tag:"a0",explicit:!0,obj:s});t.push(o)}return new r({array:t}).getEncodedHex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},We(he.asn1.cms.EncapsulatedContentInfo,he.asn1.ASN1Object),he.asn1.cms.ContentInfo=function(e){var t=he.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier;t.x509.OID.name2obj;he.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,t=[];t.push(new i(e.type));var a=new n({tag:"a0",explicit:!0,obj:e.obj});return t.push(a),new r({array:t}).getEncodedHex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},We(he.asn1.cms.ContentInfo,he.asn1.ASN1Object),he.asn1.cms.SignedData=function(e){Error;var t=he.asn1,n=(t.ASN1Object,t.DERInteger),r=t.DERSet,i=t.DERSequence,a=(t.DERTaggedObject,t.cms),s=a.EncapsulatedContentInfo,o=a.SignerInfo,u=a.ContentInfo,c=a.CertificateSet,l=a.RevocationInfoChoices,h=t.x509.AlgorithmIdentifier;he.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=Ce(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var a=r[i],s=a.hashalg,o=this._getAttrParamByName(a,"messageDigest"),u=he.crypto.Util.hashHex(n,s);o.hex=u}},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.getEncodedHex=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 a=[],u=0;u<e.hashalgs.length;u++){var f=e.hashalgs[u];a.push(new h({name:f}))}t.push(new r({array:a})),t.push(new s(e.econtent)),null!=e.certs&&t.push(new c(e.certs)),null!=e.revinfos&&t.push(new l(e.revinfos));var p=[];for(u=0;u<e.sinfos.length;u++){var d=e.sinfos[u];p.push(new o(d))}return t.push(new r({array:p})),new i({array:t}).getEncodedHex()},this.getContentInfo=function(){return new u({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.SignedData,he.asn1.ASN1Object),he.asn1.cms.CertificateSet=function(e){he.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=he.asn1,r=n.DERTaggedObject,i=n.DERSet,a=n.ASN1Object;this.params=null,this.getEncodedHex=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 o=0;o<e.length;o++){var u=Te(e[o]),c=new a;c.hTLV=u,s.push(c)}var l={array:s};0==n.sortflag&&(l.sortflag=!1);var h=new i(l);return new r({tag:"a0",explicit:!1,obj:h}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.CertificateSet,he.asn1.ASN1Object),he.asn1.cms.RevocationInfoChoices=function(e){he.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 he.asn1.cms.RevocationInfoChoice(e[n]));return he.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.RevocationInfoChoices,he.asn1.ASN1Object),he.asn1.cms.RevocationInfoChoice=function(e){he.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 he.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new he.asn1.cms.OtherRevocationFormat(e)}}).getEncodedHex();throw new Error("property crl or ocsp undefined")},null!=e&&this.setByParam(e)},We(he.asn1.cms.RevocationInfoChoice,he.asn1.ASN1Object),he.asn1.cms.OtherRevocationFormat=function(e){he.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=he,r=n.asn1.ASN1Util.newObject,i=n.lang.String.isHex;this.params=null,this.getEncodedHex=function(){var e=this.params;if(null==e.ocsp)throw new t("property ocsp not specified");if(!i(e.ocsp)||!de.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}}]}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cms.OtherRevocationFormat,he.asn1.ASN1Object),he.asn1.cms.CMSUtil=new function(){},he.asn1.cms.CMSUtil.newSignedData=function(e){return new he.asn1.cms.SignedData(e)},he.asn1.cms.CMSUtil.verifySignedData=function(e){var t=he,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades.SignaturePolicyIdentifier,t.lang.String.isHex),a=de,s=a.getVbyList,o=a.getTLVbyList,u=a.getIdxbyList,c=a.getChildIdx,l=a.getTLV,h=a.oidname,f=t.crypto.Util.hashHex;void 0===e.cms&&i(e.cms);var p=e.cms,d=function(e,t){var n=t.idx;t.signerid_issuer1=o(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=u(e,n,[3],"a0");t.idxSignedAttrs=r,g(e,t,r);var i=c(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=c(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var a,o=r[i],u=s(e,o,[0],"06");"2a864886f70d010905"===u?(a=Ae(s(e,o,[1,0])),t.saSigningTime=a):"2a864886f70d010904"===u&&(a=s(e,o,[1,0],"04"),t.saMessageDigest=a)}},m=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,a=t.parse.econtent,s=n.hashalg,o=n.saMessageDigest;i.validMessageDigest=!1,f(a,s)===o&&(i.validMessageDigest=!0),function(e,t,n,r){var i,a=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var s=c(e,a),o=0;o<s.length;o++){var u=l(e,s[o]),h=new Ze;h.readCertHex(u),i[o]=h,t.certkeys[o]=h.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=s.length;for(o=0;o<i.length;o++){var f=h.getIssuerHex(),p=h.getSerialNumberHex();n.signerid_issuer1===f&&n.signerid_serial1===p&&(n.certkey_idx=o)}}(e,t,n),i.validSignatureValue=!1;var u=n.sigalg,h="31"+l(e,n.idxSignedAttrs).substr(2);n.signedattrshex=h;var p=t.certs[n.certkey_idx].getPublicKey(),d=new he.crypto.Signature({alg:u});d.init(p),d.updateHex(h);var g=d.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=u(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=c(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var a={idx:r[i]};d(e,a),t.signerInfos.push(a)}}}(e,t)}(p,v.parse),function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,a=0;a<r;a++){var s=n[a];m(e,t,s,a),s.isValid||(i=!1)}t.isValid=i}(p,v),v},he.asn1.cms.CMSParser=function(){var e=Error,t=Ze,n=new t,r=de,i=r.getV,a=r.getTLV,s=(r.getIdxbyList,r.getTLVbyList),o=r.getTLVbyListEx,u=r.getVbyList,c=r.getVbyListEx,l=r.getChildIdx;this.getCMSSignedData=function(e){var t=s(e,0,[1,0]);return this.getSignedData(t)},this.getSignedData=function(e){var t=l(e,0),n={},r=i(e,t[0]),s=parseInt(r,16);n.version=s;var u=a(e,t[1]);n.hashalgs=this.getHashAlgArray(u);var c=a(e,t[2]);n.econtent=this.getEContent(c);var h=o(e,0,["[0]"]);null!=h&&(n.certs=this.getCertificateSet(h));o(e,0,["[1]"]);var f=o(e,0,[3]);return n.sinfos=this.getSignerInfos(f),n},this.getHashAlgArray=function(e){for(var n=l(e,0),r=new t,i=[],s=0;s<n.length;s++){var o=a(e,n[s]),u=r.getAlgorithmIdentifierName(o);i.push(u)}return i},this.getEContent=function(e){var t={},n=u(e,0,[0]),r=u(e,0,[1,0]);return t.type=he.asn1.x509.OID.oid2name(de.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=l(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),s=this.getSignerInfo(i);t.push(s)}return t},this.getSignerInfo=function(e){var t={},i=l(e,0),s=r.getInt(e,i[0],-1);-1!=s&&(t.version=s);var u=a(e,i[1]),h=this.getIssuerAndSerialNumber(u);t.id=h;var f=a(e,i[2]),p=n.getAlgorithmIdentifierName(f);t.hashalg=p;var d=o(e,0,["[0]"]);if(null!=d){var g=this.getAttributeList(d);t.sattrs=g}var m=o(e,0,[3]),v=n.getAlgorithmIdentifierName(m);t.sigalg=v;var y=c(e,0,[4]);t.sighex=y;var b=o(e,0,["[1]"]);if(null!=b){var w=this.getAttributeList(b);t.uattrs=w}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=l(e,0),s=a(e,r[0]);t.issuer=n.getX500Name(s);var o=i(e,r[1]);return t.serial={hex:o},t},this.getAttributeList=function(e){for(var t=[],n=l(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),s=this.getAttribute(i);t.push(s)}return{array:t}},this.getAttribute=function(e){var t={},n=l(e,0),i=r.getOID(e,n[0]),s=he.asn1.x509.OID.oid2name(i);t.attr=s;var o=a(e,n[1]),u=l(o,0);if(1==u.length)t.valhex=a(o,u[0]);else{for(var c=[],h=0;h<u.length;h++)c.push(a(o,u[h]));t.valhex=c}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=Ae(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=l(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=l(n,0),i=[],s=0;s<r.length;s++){var o=a(n,r[s]),u=this.getESSCertID(o);i.push(u)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=l(e.valhex,0);if(n.length>0){var s=r.getOID(e.valhex,n[0]);e.oid=s}if(n.length>1){var o=new t,u=l(e.valhex,n[1]),c=a(e.valhex,u[0]),h=o.getAlgorithmIdentifierName(c);e.alg=h;var f=i(e.valhex,u[1]);e.hash=f}delete e.valhex},this.setSigningCertificateV2=function(e){var t=l(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=l(n,0),i=[],s=0;s<r.length;s++){var o=a(n,r[s]),u=this.getESSCertIDv2(o);i.push(u)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.getESSCertID=function(e){var t={},n=l(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var s=a(e,n[1]),o=this.getIssuerSerial(s);null!=o.serial&&(t.serial=o.serial),null!=o.issuer&&(t.issuer=o.issuer)}return t},this.getESSCertIDv2=function(t){var r={},s=l(t,0);if(s.length<1||3<s.length)throw new e("wrong number of elements");var o=0;if("30"==t.substr(s[0],2)){var u=a(t,s[0]);r.alg=n.getAlgorithmIdentifierName(u),o++}else r.alg="sha256";var c=i(t,s[o]);if(r.hash=c,s.length>o+1){var h=a(t,s[o+1]),f=this.getIssuerSerial(h);r.issuer=f.issuer,r.serial=f.serial}return r},this.getIssuerSerial=function(e){var t={},r=l(e,0),s=a(e,r[0]),o=n.getGeneralNames(s)[0].dn;t.issuer=o;var u=i(e,r[1]);return t.serial={hex:u},t},this.getCertificateSet=function(e){for(var t=l(e,0),n=[],r=0;r<t.length;r++){var i=a(e,t[r]);if("30"==i.substr(0,2)){var s=Ie(i,"CERTIFICATE");n.push(s)}}return{array:n,sortflag:!1}}},void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),void 0!==he.asn1.tsp&&he.asn1.tsp||(he.asn1.tsp={}),he.asn1.tsp.TimeStampToken=function(e){var t=he.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.getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.TimeStampToken,he.asn1.cms.SignedData),he.asn1.tsp.TSTInfo=function(e){Error;var t=he.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,a=t.DERGeneralizedTime,s=t.DERObjectIdentifier,o=t.DERTaggedObject,u=t.tsp,c=u.MessageImprint,l=u.Accuracy,h=(t.x509.X500Name,t.x509.GeneralName);if(u.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.getEncodedHex=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.getEncodedHex(),this.hTLV},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 c(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new r(e.serial)),void 0!==e.genTime&&(this.dGenTime=new a(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new l(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 o({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},We(he.asn1.tsp.TSTInfo,he.asn1.ASN1Object),he.asn1.tsp.Accuracy=function(e){var t=he.asn1,n=t.ASN1Util.newObject;t.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.Accuracy,he.asn1.ASN1Object),he.asn1.tsp.MessageImprint=function(e){var t=he.asn1,n=t.DERSequence,r=t.DEROctetString,i=t.x509.AlgorithmIdentifier;t.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,t=new i({name:e.alg}),a=new r({hex:e.hash});return new n({array:[t,a]}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.tsp.MessageImprint,he.asn1.ASN1Object),he.asn1.tsp.TimeStampReq=function(e){var t=he.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,a=(t.ASN1Object,t.DERObjectIdentifier),s=t.tsp,o=s.MessageImprint;s.TimeStampReq.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,t=[];return t.push(new r({int:1})),e.messageImprint instanceof he.asn1.ASN1Object?t.push(e.messageImprint):t.push(new o(e.messageImprint)),null!=e.policy&&t.push(new a(e.policy)),null!=e.nonce&&t.push(new r(e.nonce)),1==e.certreq&&t.push(new i),new n({array:t}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.TimeStampReq,he.asn1.ASN1Object),he.asn1.tsp.TimeStampResp=function(e){var t=he.asn1,n=t.DERSequence,r=(t.ASN1Object,t.tsp),i=r.PKIStatusInfo;r.TimeStampResp.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,a=[new i(e.statusinfo)];return null!=e.econtent&&a.push(new r.TimeStampToken(e).getContentInfo()),null!=e.tst&&e.tst instanceof t.ASN1Object&&a.push(e.tst),new n({array:a}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.TimeStampResp,he.asn1.ASN1Object),he.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=he.asn1,r=n.DERSequence,i=n.tsp,a=i.PKIStatus,s=i.PKIFreeText,o=i.PKIFailureInfo;i.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new a(e));else{if(null==e.status)throw new t("property 'status' unspecified");n.push(new a(e.status)),null!=e.statusstr&&n.push(new s(e.statusstr)),null!=e.failinfo&&n.push(new o(e.failinfo))}return new r({array:n}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.PKIStatusInfo,he.asn1.ASN1Object),he.asn1.tsp.PKIStatus=function(e){var t=Error,n=he.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.getEncodedHex=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}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.PKIStatus,he.asn1.ASN1Object),he.asn1.tsp.PKIFreeText=function(e){var t=Error,n=he.asn1,r=n.DERSequence,i=n.DERUTF8String;n.tsp.PKIFreeText.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params;if(!e instanceof Array)throw new t("wrong params: not array");for(var n=[],a=0;a<e.length;a++)n.push(new i({str:e[a]}));return new r({array:n}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.PKIFreeText,he.asn1.ASN1Object),he.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=he.asn1,r=n.DERBitString,i=n.tsp.PKIFailureInfo,a={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.getEncodedHex=function(){var e,n=this.params;if("string"==typeof n)try{e=a[n]}catch(e){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("wrong params");e=n}return new r({bin:e.toString(2)}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.tsp.PKIFailureInfo,he.asn1.ASN1Object),he.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},he.asn1.tsp.SimpleTSAAdapter=function(e){var t=he,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 a=Math.floor(1e9*Math.random());return this.params.econtent.content.nonce={int:a},new n.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},We(he.asn1.tsp.SimpleTSAAdapter,he.asn1.tsp.AbstractTSAAdapter),he.asn1.tsp.FixedTSAAdapter=function(e){var t=he,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)},We(he.asn1.tsp.FixedTSAAdapter,he.asn1.tsp.AbstractTSAAdapter),he.asn1.tsp.TSPUtil=new function(){},he.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new he.asn1.tsp.TimeStampToken(e)},he.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=de,n=t.getChildIdx,r=t.getV,i=t.getTLV,a={certreq:!1},s=n(e,0);if(s.length<2)throw"TimeStampReq must have at least 2 items";var o=i(e,s[1]);a.messageImprint=he.asn1.tsp.TSPUtil.parseMessageImprint(o);for(var u=2;u<s.length;u++){var c=s[u],l=e.substr(c,2);if("06"==l){var h=r(e,c);a.policy=t.hextooidstr(h)}"02"==l&&(a.nonce=r(e,c)),"01"==l&&(a.certreq=!0)}return a},he.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=de,n=t.getChildIdx,r=t.getV,i=t.getIdxbyList,a={};if("30"!=e.substr(0,2))throw"head of messageImprint hex shall be '30'";n(e,0);var s=r(e,i(e,0,[0,0])),o=t.hextooidstr(s),u=he.asn1.x509.OID.oid2name(o);if(""==u)throw"hashAlg name undefined: "+o;var c=u,l=i(e,0,[1]);return a.alg=c,a.hash=r(e,l),a},he.asn1.tsp.TSPParser=function(){Error;var e=new Ze,t=de,n=t.getV,r=t.getTLV,i=t.getIdxbyList,a=(t.getTLVbyListEx,t.getChildIdx),s=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],o={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=a(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 he.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=a(t,0),o=n(t,s[1]);i.policy=Ke(o);var u=r(t,s[2]);i.messageImprint=this.getMessageImprint(u);var c=n(t,s[3]);i.serial={hex:c};var l=n(t,s[4]);i.genTime={str:Ae(l)};var h=0;if(s.length>5&&"30"==t.substr(s[5],2)){var f=r(t,s[5]);i.accuracy=this.getAccuracy(f),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 p=n(t,s[5+h]);i.nonce={hex:p},h++}if(s.length>5+h&&"a0"==t.substr(s[5+h],2)){var d=r(t,s[5+h]);d="30"+d.substr(2),pGeneralNames=e.getGeneralNames(d);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=a(e,0),i=0;i<r.length;i++){var s=e.substr(r[i],2),o=n(e,r[i]),u=parseInt(o,16);"02"==s?t.seconds=u:"80"==s?t.millis=u:"81"==s&&(t.micros=u)}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=(a(e,0),i(e,0,[0,0])),o=n(e,s),u=t.hextooidstr(o),c=he.asn1.x509.OID.oid2name(u);if(""==c)throw new Error("hashAlg name undefined: "+u);var l=c,h=i(e,0,[1]);return r.alg=l,r.hash=n(e,h),r},this.getPKIStatusInfo=function(e){var t={},i=a(e,0),o=0;try{var u=n(e,i[0]),c=parseInt(u,16);t.status=s[c]}catch(e){}if(i.length>1&&"30"==e.substr(i[1],2)){var l=r(e,i[1]);t.statusstr=this.getPKIFreeText(l),o++}if(i.length>o&&"03"==e.substr(i[1+o],2)){var h=r(e,i[1+o]);t.failinfo=this.getPKIFailureInfo(h)}return t},this.getPKIFreeText=function(e){for(var n=[],r=a(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!=o[n]?o[n]:n}},void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),void 0!==he.asn1.cades&&he.asn1.cades||(he.asn1.cades={}),he.asn1.cades.SignaturePolicyIdentifier=function(e){var t=he.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)},We(he.asn1.cades.SignaturePolicyIdentifier,he.asn1.cms.Attribute),he.asn1.cades.SignaturePolicyId=function(e){var t=he.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=(t.x509.AlgorithmIdentifier,t.cades),a=i.SignaturePolicyId,s=i.OtherHashAlgAndValue;a.superclass.constructor.call(this),this.params=null,this.getEncodedHex=function(){var e=this.params,t=[];return t.push(new r(e.oid)),t.push(new s(e)),new n({array:t}).getEncodedHex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},We(he.asn1.cades.SignaturePolicyId,he.asn1.ASN1Object),he.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=he.asn1,r=n.DERSequence,i=n.DEROctetString,a=n.x509.AlgorithmIdentifier;n.cades.OtherHashAlgAndValue.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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=he.crypto.Util.hashHex(s,e.alg)}var o=[];return o.push(new a({name:e.alg})),o.push(new i({hex:n})),new r({array:o}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cades.OtherHashAlgAndValue,he.asn1.ASN1Object),he.asn1.cades.OtherHashValue=function(e){he.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=he,r=(n.lang.String.isHex,n.asn1.DEROctetString);n.crypto.Util.hashHex;this.params=null,this.getEncodedHex=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=he.crypto.Util.hashHex(i,"sha1")}return new r({hex:n}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cades.OtherHashValue,he.asn1.ASN1Object),he.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=he,r=n.lang.String.isHex,i=n.asn1,a=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 a).hTLV=e.tst,[i];if(e.tst instanceof a)return[e.tst];throw new t("params.tst has wrong value")}if(null!=e.res){var n=e.res;if(n instanceof a&&(n=n.getEncodedHex()),"string"!=typeof n||!r(n))throw new t("params.res has wrong value");var i;de.getTLVbyList(n,0,[1]);return(i=new a).hTLV=e.tst,[i]}},null!=e&&this.setByParam(e)},We(he.asn1.cades.SignatureTimeStamp,he.asn1.cms.Attribute),he.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=he,r=n.asn1,i=r.DERSequence,a=r.cades,s=a.OtherCertID,o=n.lang.String.isHex;a.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 a=e.array[r];if("string"==typeof a)if(-1!=a.indexOf("-----BEGIN"))a={cert:a};else{if(!o(a))throw new t("unsupported value: "+a);a={hash:a}}null!=e.alg&&null==a.alg&&(a.alg=e.alg),null!=e.hasis&&null==a.hasis&&(a.hasis=e.hasis);var u=new s(a);n.push(u)}return[new i({array:n})]},null!=e&&this.setByParam(e)},We(he.asn1.cades.CompleteCertificateRefs,he.asn1.cms.Attribute),he.asn1.cades.OtherCertID=function(e){var t=he.asn1,n=t.DERSequence,r=t.cms.IssuerSerial,i=t.cades,a=i.OtherHashValue,s=i.OtherHashAlgAndValue;i.OtherCertID.superclass.constructor.call(this),this.params=e,this.getEncodedHex=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 a(e),t.push(i),null!=e.cert&&1==e.hasis||null!=e.issuer&&null!=e.serial){var o=new r(e);t.push(o)}return new n({array:t}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cades.OtherCertID,he.asn1.ASN1Object),he.asn1.cades.OtherHash=function(e){Error;var t=he,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,a=r.OtherHashValue,s=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 a(e)).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.cades.OtherHash,he.asn1.ASN1Object),he.asn1.cades.CAdESUtil=new function(){},he.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){return(new he.asn1.cms.CMSParser).getCMSSignedData(e)},he.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=de,i=r.getChildIdx,a=r.getTLV,s=r.getV,o=he.asn1,u=o.ASN1Object,c=o.cms,l=c.AttributeList,h=c.SignerInfo,f={},p=i(e,t);if(6!=p.length)throw"not supported items for SignerInfo (!=6)";var d=p.shift();f.version=a(e,d);var g=p.shift();f.si=a(e,g);var m=p.shift();f.digalg=a(e,m);var v=p.shift();f.sattrs=a(e,v);var y=p.shift();f.sigalg=a(e,y);var b=p.shift();f.sig=a(e,b),f.sigval=s(e,b);var w=null;return f.obj=new h,(w=new u).hTLV=f.version,f.obj.dCMSVersion=w,(w=new u).hTLV=f.si,f.obj.dSignerIdentifier=w,(w=new u).hTLV=f.digalg,f.obj.dDigestAlgorithm=w,(w=new u).hTLV=f.sattrs,f.obj.dSignedAttrs=w,(w=new u).hTLV=f.sigalg,f.obj.dSigAlg=w,(w=new u).hTLV=f.sig,f.obj.dSig=w,f.obj.dUnsignedAttrs=new l,f},void 0!==he.asn1.csr&&he.asn1.csr||(he.asn1.csr={}),he.asn1.csr.CertificationRequest=function(e){var t=he.asn1,n=t.DERBitString,r=t.DERSequence,i=t.csr,a=(t.x509,i.CertificationRequestInfo);i.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new a(this.params).getEncodedHex(),t=new he.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 Ie(this.getEncodedHex(),"CERTIFICATE REQUEST")},this.getEncodedHex=function(){var e=this.params,t=new he.asn1.csr.CertificationRequestInfo(this.params),i=new he.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 a=new n({hex:"00"+e.sighex});return new r({array:[t,i,a]}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.csr.CertificationRequest,he.asn1.ASN1Object),he.asn1.csr.CertificationRequestInfo=function(e){var t=he.asn1,n=(t.DERBitString,t.DERSequence),r=t.DERInteger,i=t.DERUTF8String,a=t.DERTaggedObject,s=t.ASN1Util.newObject,o=t.csr,u=t.x509,c=u.X500Name,l=u.Extensions,h=u.SubjectPublicKeyInfo;o.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){null!=e&&(this.params=e)},this.getEncodedHex=function(){var e=this.params,t=[];if(t.push(new r({int:0})),t.push(new c(e.subject)),t.push(new h(Ye.getKey(e.sbjpubkey))),null!=e.extreq){var o=new l(e.extreq),u=s({tag:{tag:"a0",explict:!0,obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[o]}]}}});t.push(u)}else t.push(new a({tag:"a0",explicit:!1,obj:new i({str:""})}));return new n({array:t}).getEncodedHex()},null!=e&&this.setByParam(e)},We(he.asn1.csr.CertificationRequestInfo,he.asn1.ASN1Object),he.asn1.csr.CSRUtil=new function(){},he.asn1.csr.CSRUtil.newCSRPEM=function(e){return new he.asn1.csr.CertificationRequest(e).getPEM()},he.asn1.csr.CSRUtil.getParam=function(e){var t=de,n=t.getV;_getIdxbyList=t.getIdxbyList,_getTLVbyList=t.getTLVbyList,_getTLVbyListEx=t.getTLVbyListEx,_getVbyListEx=t.getVbyListEx;var r={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var i=Te(e,"CERTIFICATE REQUEST");try{var a=_getTLVbyListEx(i,0,[0,1]);if("3000"==a)r.subject={};else{var s=new Ze;r.subject=s.getX500Name(a)}}catch(e){}var o=_getTLVbyListEx(i,0,[0,2]),u=Ye.getKey(o,null,"pkcs8pub");r.sbjpubkey=Ye.getPEM(u,"PKCS8PUB");var c,l,h=(c=i,l=_getIdxbyList(c,0,[0,3,0,0],"06"),"2a864886f70d01090e"!=n(c,l)?null:_getTLVbyList(c,0,[0,3,0,1,0],"30"));s=new Ze;null!=h&&(r.extreq=s.getExtParamArray(h));try{var f=_getTLVbyListEx(i,0,[1],"30");s=new Ze;r.sigalg=s.getAlgorithmIdentifierName(f)}catch(e){}try{var p=_getVbyListEx(i,0,[2]);r.sighex=p}catch(e){}return r},void 0!==he&&he||(he={}),void 0!==he.asn1&&he.asn1||(he.asn1={}),void 0!==he.asn1.ocsp&&he.asn1.ocsp||(he.asn1.ocsp={}),he.asn1.ocsp.DEFAULT_HASH="sha1",he.asn1.ocsp.OCSPResponse=function(e){he.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);he.asn1.DEREnumerated;var t=he.asn1.ASN1Util.newObject,n=he.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.getEncodedHex=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}}]}).getEncodedHex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.OCSPResponse,he.asn1.ASN1Object),he.asn1.ocsp.ResponseBytes=function(e){he.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=he.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,a=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.getEncodedHex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new a(e),s=[];return s.push(new r({name:"ocspBasic"})),s.push(new i({hex:t.getEncodedHex()})),new n({array:s}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.ResponseBytes,he.asn1.ASN1Object),he.asn1.ocsp.BasicOCSPResponse=function(e){he.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=he.asn1,r=n.ASN1Object,i=n.DERSequence,a=(n.DERGeneralizedTime,n.DERTaggedObject),s=n.DERBitString,o=(n.x509.Extensions,n.x509.AlgorithmIdentifier),u=n.ocsp;u.ResponderID;_SingleResponseList=u.SingleResponseList,_ResponseData=u.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.getEncodedHex(),n=new he.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.getEncodedHex=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 o({name:e.sigalg})),n.push(new s({hex:"00"+e.sighex})),null!=e.certs&&null!=e.certs.length){for(var u=[],c=0;c<e.certs.length;c++){var l=e.certs[c],h=null;if(de.isASN1HEX(l))h=l;else{if(!l.match(/-----BEGIN/))throw new t("certs["+c+"] not hex or PEM");h=Te(l)}u.push(new r({tlv:h}))}var f=new i({array:u});n.push(new a({tag:"a0",explicit:!0,obj:f}))}return new i({array:n}).getEncodedHex()},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.BasicOCSPResponse,he.asn1.ASN1Object),he.asn1.ocsp.ResponseData=function(e){he.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=he.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,a=n.DERTaggedObject,s=n.x509.Extensions,o=n.ocsp,u=o.ResponderID;_SingleResponseList=o.SingleResponseList,this.params=null,this.getEncodedHex=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 u(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),null!=e.ext){var o=new s(e.ext);n.push(new a({tag:"a1",explicit:!0,obj:o}))}return new r({array:n}).getEncodedHex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.ResponseData,he.asn1.ASN1Object),he.asn1.ocsp.ResponderID=function(e){he.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=he.asn1,n=t.ASN1Util.newObject,r=t.x509.X500Name;this.params=null,this.getEncodedHex=function(){var e=this.params;if(null!=e.key)return n({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:e.key}}}}).getEncodedHex();if(null!=e.name)return n({tag:{tag:"a1",explicit:!0,obj:new r(e.name)}}).getEncodedHex();throw new Error("key or name not specified")},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.ResponderID,he.asn1.ASN1Object),he.asn1.ocsp.SingleResponseList=function(e){he.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=he.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.getEncodedHex=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}).getEncodedHex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.SingleResponseList,he.asn1.ASN1Object),he.asn1.ocsp.SingleResponse=function(e){var t=Error,n=he.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,a=n.DERTaggedObject,s=n.ocsp,o=s.CertID,u=s.CertStatus,c=n.x509.Extensions;s.SingleResponse.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 o(e.certid)),n.push(new u(e.status)),n.push(new i(e.thisupdate)),null!=e.nextupdate){var s=new i(e.nextupdate);n.push(new a({tag:"a0",explicit:!0,obj:s}))}if(null!=e.ext){var l=new c(e.ext);n.push(new a({tag:"a1",explicit:!0,obj:l}))}return new r({array:n}).getEncodedHex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.SingleResponse,he.asn1.ASN1Object),he.asn1.ocsp.CertID=function(e){var t=he,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,a=n.DERSequence,s=n.x509.AlgorithmIdentifier,o=n.ocsp,u=o.DEFAULT_HASH,c=t.crypto.Util.hashHex,l=Ze,h=de;if(o.CertID.superclass.constructor.call(this),this.dHashAlg=null,this.dIssuerNameHash=null,this.dIssuerKeyHash=null,this.dSerialNumber=null,this.setByValue=function(e,t,n,a){void 0===a&&(a=u),this.dHashAlg=new s({name:a}),this.dIssuerNameHash=new r({hex:e}),this.dIssuerKeyHash=new r({hex:t}),this.dSerialNumber=new i({hex:n})},this.setByCert=function(e,t,n){void 0===n&&(n=u);var r=new l;r.readCertPEM(t);var i=new l;i.readCertPEM(e);var a=i.getPublicKeyHex(),s=h.getTLVbyList(a,0,[1,0],"30"),o=r.getSerialNumberHex(),f=c(i.getSubjectHex(),n),p=c(s,n);this.setByValue(f,p,o,n),this.hoge=r.getSerialNumberHex()},this.getEncodedHex=function(){if(null===this.dHashAlg&&null===this.dIssuerNameHash&&null===this.dIssuerKeyHash&&null===this.dSerialNumber)throw"not yet set values";var e=[this.dHashAlg,this.dIssuerNameHash,this.dIssuerKeyHash,this.dSerialNumber],t=new a({array:e});return this.hTLV=t.getEncodedHex(),this.hTLV},void 0!==e){var f=e;if(void 0!==f.issuerCert&&void 0!==f.subjectCert){var p=u;void 0===f.alg&&(p=void 0),this.setByCert(f.issuerCert,f.subjectCert,p)}else{if(void 0===f.issname||void 0===f.isskey||void 0===f.sbjsn)throw new Error("invalid constructor arguments");p=u;void 0===f.alg&&(p=void 0),this.setByValue(f.issname,f.isskey,f.sbjsn,p)}}},We(he.asn1.ocsp.CertID,he.asn1.ASN1Object),he.asn1.ocsp.CertStatus=function(e){he.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.getEncodedHex=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 he.asn1.ASN1Util.newObject({tag:n}).getEncodedHex()}throw new Error("bad status")},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},We(he.asn1.ocsp.CertStatus,he.asn1.ASN1Object),he.asn1.ocsp.Request=function(e){var t=he.asn1,n=t.DERSequence,r=t.ocsp;if(r.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.getEncodedHex=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.getEncodedHex(),this.hTLV},void 0!==e){var i=new r.CertID(e);this.dReqCert=i}},We(he.asn1.ocsp.Request,he.asn1.ASN1Object),he.asn1.ocsp.TBSRequest=function(e){var t=he.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.getEncodedHex=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.getEncodedHex(),this.hTLV},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},We(he.asn1.ocsp.TBSRequest,he.asn1.ASN1Object),he.asn1.ocsp.OCSPRequest=function(e){var t=he.asn1,n=t.DERSequence,r=t.ocsp;if(r.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.getEncodedHex=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.getEncodedHex(),this.hTLV},void 0!==e&&void 0!==e.reqList){var i=new r.TBSRequest(e);this.dTbsRequest=i}},We(he.asn1.ocsp.OCSPRequest,he.asn1.ASN1Object),he.asn1.ocsp.OCSPUtil={},he.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=he.asn1.ocsp;void 0===n&&(n=r.DEFAULT_HASH);var i={alg:n,issuerCert:e,subjectCert:t};return new r.OCSPRequest({reqList:[i]}).getEncodedHex()},he.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=de,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,a=(t.getIdxbyListEx,t.getV),s={};try{var o=r(e,0,[0],"0a");s.responseStatus=parseInt(o,16)}catch(e){}if(0!==s.responseStatus)return s;try{var u=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(u,2)?s.certStatus="good":"a1"===e.substr(u,2)?(s.certStatus="revoked",s.revocationTime=Ae(n(e,u,[0]))):"82"===e.substr(u,2)&&(s.certStatus="unknown")}catch(e){}try{var c=i(e,0,[1,0,1,0,0,2,0,2]);s.thisUpdate=Ae(a(e,c))}catch(e){}try{var l=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(l,2)&&(s.nextUpdate=Ae(n(e,l,[0])))}catch(e){}return s},he.asn1.ocsp.OCSPParser=function(){var e=Error,t=Ze,n=new t,r=de,i=r.getV,a=r.getTLV,s=r.getIdxbyList,o=r.getTLVbyListEx,u=r.getChildIdx;this.getOCSPRequest=function(t){var n=u(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);return this.getTBSRequest(a(t,n[0]))},this.getTBSRequest=function(e){var t={},r=o(e,0,[0],"30");t.array=this.getRequestList(r);var i=o(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){e=a(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=u(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(a(t,r[0]));if(2==r.length){var o=s(t,0,[1,0]);i.ext=n.getExtParamArray(a(t,o))}return i},this.getCertID=function(n){var r=u(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var s=new t,o={};return o.alg=s.getAlgorithmIdentifierName(a(n,r[0])),o.issname=i(n,r[1]),o.isskey=i(n,r[2]),o.sbjsn=i(n,r[3]),o}},void 0!==he&&he||(he={}),void 0!==he.lang&&he.lang||(he.lang={}),he.lang.String=function(){},"function"==typeof e?(fe=function(t){return be(e.from(t,"utf8").toString("base64"))},pe=function(t){return e.from(we(t),"base64").toString("utf8")}):(fe=function(e){return xe(ke(Le(e)))},pe=function(e){return decodeURIComponent(Oe(Se(e)))}),he.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},he.lang.String.isHex=function(e){return Me(e)},he.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},he.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=we(e),he.lang.String.isBase64(e))},he.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},he.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},he.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},he.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 a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=t(parseInt(o,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),a=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r}catch(e){return null}}function Ke(e){if(!Me(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),a=[],s=0;s<i.length/2;s++)a.push(parseInt(i.substr(2*s,2),16));var o=[],u="";for(s=0;s<a.length;s++)128&a[s]?u+=ze((127&a[s]).toString(2),7):(u+=ze((127&a[s]).toString(2),7),o.push(new String(parseInt(u,2))),u="");var c=t.join(".");return o.length>0&&(c=c+"."+o.join(".")),c}catch(e){return null}}var ze=function(e,t,n){return null==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Ge(e){try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16),r=e.substr(2),i=parseInt(r,16).toString(2);return"0"==i&&(i="00000000"),i=i.slice(0,0-n),parseInt(i,2)}catch(e){return-1}}function We(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!==he&&he||(he={}),void 0!==he.crypto&&he.crypto||(he.crypto={}),he.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 a="0001",s="00"+r,o="",u=i-a.length-s.length,c=0;c<u;c+=2)o+="ff";return a+o+s},this.hashString=function(e,t){return new he.crypto.MessageDigest({alg:t}).digestString(e)},this.hashHex=function(e,t){return new he.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 ae||e instanceof he.crypto.DSA||e instanceof he.crypto.ECDSA}},he.crypto.Util.md5=function(e){return new he.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(e)},he.crypto.Util.ripemd160=function(e){return new he.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(e)},he.crypto.Util.SECURERANDOMGEN=new ne,he.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return he.crypto.Util.SECURERANDOMGEN.nextBytes(t),ve(t)},he.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new S(he.crypto.Util.getRandomHexOfNbytes(e),16)},he.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=new Array((e-t)/8+1);return he.crypto.Util.SECURERANDOMGEN.nextBytes(n),n[0]=(255<<t&255^255)&n[0],ve(n)},he.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new S(he.crypto.Util.getRandomHexOfNbits(e),16)},he.crypto.Util.getRandomBigIntegerZeroToMax=function(e){for(var t=e.bitLength();;){var n=he.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},he.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 he.crypto.Util.getRandomBigIntegerZeroToMax(r).add(e)},he.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(null!==(e=he.crypto.MessageDigest.getCanonicalAlgName(e))&&void 0===t&&(t=he.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=he.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=he.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},he.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"==typeof e&&(e=(e=e.toLowerCase()).replace(/-/,"")),e},he.crypto.MessageDigest.getHashLength=function(e){var t=he.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},he.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},he.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=he.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=he.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=Ce(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=Ee(e.utf8)),void 0!==e.rstr&&(t=Ce(e.rstr)),void 0!==e.b64&&(t=w(e.b64)),void 0!==e.b64u&&(t=Se(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=he.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},he.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 he.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?Ye.getKey(e):Ye.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!==he.crypto.ECDSA&&(this.prvKey=new he.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof ae&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof ae&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof he.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof he.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!==he.crypto.ECDSA&&(this.pubKey=new he.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof ae&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof ae&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==he.crypto.ECDSA&&this.pubKey instanceof he.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==he.crypto.DSA&&this.pubKey instanceof he.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=he.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=Ye.getKey(e.prvkeypem);this.init(t)}catch(e){throw"fatal error to load pem private key: "+e}}},he.crypto.Cipher=function(e){},he.crypto.Cipher.encrypt=function(e,t,n){if(t instanceof ae&&t.isPublic){var r=he.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.encrypt(e);if("RSAOAEP"===r)return t.encryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.encryptOAEP(e,"sha"+i[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.encrypt: unsupported key or algorithm"},he.crypto.Cipher.decrypt=function(e,t,n){if(t instanceof ae&&t.isPrivate){var r=he.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.decrypt(e);if("RSAOAEP"===r)return t.decryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.decryptOAEP(e,"sha"+i[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.decrypt: unsupported key or algorithm"},he.crypto.Cipher.getAlgByKeyAndName=function(e,t){if(e instanceof ae){if(-1!=":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(t))return t;if(null==t)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+t}throw"getAlgByKeyAndName: not supported algorithm name: "+t},he.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},void 0!==he&&he||(he={}),void 0!==he.crypto&&he.crypto||(he.crypto={}),he.crypto.ECDSA=function(e){var t=Error,n=S,r=ue,i=he.crypto.ECDSA,a=he.crypto.ECParameterDB,s=i.getName,o=de,u=o.getVbyListEx,c=o.isASN1HEX,l=new ne;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new n(e.bitLength(),l).mod(e.subtract(n.ONE)).add(n.ONE)},this.setNamedCurve=function(e){this.ecparams=a.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.keylen/4;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":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.G.multiply(t),r=n.getX().toBigInteger(),i=n.getY().toBigInteger(),a=this.ecparams.keylen/4,s=("0000000000"+t.toString(16)).slice(-a),o="04"+("0000000000"+r.toString(16)).slice(-a)+("0000000000"+i.toString(16)).slice(-a);return this.setPrivateKeyHex(s),this.setPublicKeyHex(o),{ecprvhex:s,ecpubhex:o}},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var r=new n(t,16),a=this.ecparams.n,s=new n(e.substring(0,this.ecparams.keylen/4),16);do{var o=this.getBigRandom(a),u=this.ecparams.G.multiply(o).getX().toBigInteger().mod(a)}while(u.compareTo(n.ZERO)<=0);var c=o.modInverse(a).multiply(s.add(r.multiply(u))).mod(a);return i.biRSSigToASN1Sig(u,c)},this.sign=function(e,t){var r=t,i=this.ecparams.n,a=n.fromByteArrayUnsigned(e);do{var s=this.getBigRandom(i),o=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i)}while(o.compareTo(S.ZERO)<=0);var u=s.modInverse(i).multiply(a.add(r.multiply(o))).mod(i);return this.serializeSig(o,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,a){try{var s,o,u=i.parseSigHex(t);s=u.r,o=u.s;var c=r.decodeFromHex(this.ecparams.curve,a),l=new n(e.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(l,s,o,c)}catch(e){return!1}},this.verify=function(e,t,i){var a,s,o;if(Bitcoin.Util.isArray(t)){var u=this.parseSig(t);a=u.r,s=u.s}else{if("object"!=typeof t||!t.r||!t.s)throw"Invalid value for signature";a=t.r,s=t.s}if(i instanceof ue)o=i;else{if(!Bitcoin.Util.isArray(i))throw"Invalid format for pubkey value, must be byte array or ECPointFp";o=r.decodeFrom(this.ecparams.curve,i)}var c=n.fromByteArrayUnsigned(e);return this.verifyRaw(c,a,s,o)},this.verifyRaw=function(e,t,r,i){var a=this.ecparams.n,s=this.ecparams.G;if(t.compareTo(n.ONE)<0||t.compareTo(a)>=0)return!1;if(r.compareTo(n.ONE)<0||r.compareTo(a)>=0)return!1;var o=r.modInverse(a),u=e.multiply(o).mod(a),c=t.multiply(o).mod(a);return s.multiply(u).add(i.multiply(c)).getX().toBigInteger().mod(a).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===c(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=u(e,0,["[0]",0],"06"),n=u(e,0,[1],"04");try{r=u(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===c(e))throw new t("not ASN.1 hex string");var n,r,i;try{u(e,0,[1,0],"06"),n=u(e,0,[1,1],"06"),r=u(e,0,[2,0,1],"04");try{i=u(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===c(e))throw new t("not ASN.1 hex string");var n,r;try{u(e,0,[0,0],"06"),n=u(e,0,[0,1],"06"),r=u(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===c(e))throw new t("not ASN.1 hex string");var r,i;try{r=u(e,0,[0,5,0,1],"06"),i=u(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))},he.crypto.ECDSA.parseSigHex=function(e){var t=he.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new S(t.r,16),s:new S(t.s,16)}},he.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=de,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 a=i[0],s=i[1];if("02"!=e.substr(a,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,a),s:r(e,s)}},he.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=he.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;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"unknown ECDSA sig r length error";if(r.length%32!=0)throw"unknown ECDSA sig s length error";return n+r},he.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return he.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},he.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new S(e,16),r=new S(t,16);return he.crypto.ECDSA.biRSSigToASN1Sig(n,r)},he.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=he.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).getEncodedHex()},he.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":-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":null},void 0!==he&&he||(he={}),void 0!==he.crypto&&he.crypto||(he.crypto={}),he.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new S(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,a,s,o,u,c,l,h,f,p,d){e[r]={};var g=n(a),m=n(s),v=n(o),y=n(u),b=n(c),w=new ce(g,m,v),x=w.decodePointHex("04"+l+h);e[r].name=r,e[r].keylen=i,e[r].curve=w,e[r].G=x,e[r].n=y,e[r].h=b,e[r].oid=p,e[r].info=d;for(var S=0;S<f.length;S++)t[f[S]]=r}},he.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),he.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),he.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),he.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),he.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),he.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),he.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),he.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),he.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),he.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),void 0!==he&&he||(he={}),void 0!==he.crypto&&he.crypto||(he.crypto={}),he.crypto.DSA=function(){var e=de,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=S;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 a,s,o,u,c;a=new S(e,16),s=new S(t,16),o=new S(n,16),u="string"==typeof r&&r.length>1?new S(r,16):null,c=new S(i,16),this.setPrivate(a,s,o,u,c)},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,a,s,o;i=new S(e,16),a=new S(t,16),s=new S(n,16),o=new S(r,16),this.setPublic(i,a,s,o)},this.signWithMessageHash=function(e){var t=this.p,n=this.q,r=this.g,i=(this.y,this.x),a=he.crypto.Util.getRandomBigIntegerMinToMax(S.ONE.add(S.ONE),n.subtract(S.ONE)),s=new S(e.substr(0,n.bitLength()/4),16),o=r.modPow(a,t).mod(n),u=a.modInverse(n).multiply(s.add(i.multiply(o))).mod(n);return he.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:o}},{int:{bigint:u}}]})},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,a=this.y,s=this.parseASN1Signature(t),o=s[0],u=s[1],c=new S(e.substr(0,r.bitLength()/4),16);if(S.ZERO.compareTo(o)>0||o.compareTo(r)>0)throw"invalid DSA signature";if(S.ZERO.compareTo(u)>=0||u.compareTo(r)>0)throw"invalid DSA signature";var l=u.modInverse(r),h=c.multiply(l).mod(r),f=o.multiply(l).mod(r);return 0==i.modPow(h,n).multiply(a.modPow(f,n)).mod(n).mod(r).compareTo(o)},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,a,s,o;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"),a=t(e,0,[3],"02"),s=t(e,0,[4],"02"),o=t(e,0,[5],"02")}catch(e){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,a,s,o)},this.readPKCS8PrvKeyHex=function(e){var r,i,a,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"),a=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,a,null,s)},this.readPKCS8PubKeyHex=function(e){var r,i,a,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"),a=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,a,s)},this.readCertPubKeyHex=function(e,r){var i,a,s,o;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),a=t(e,0,[0,5,0,1,1],"02"),s=t(e,0,[0,5,0,1,2],"02"),o=t(e,0,[0,5,1,0],"02")}catch(e){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,a,s,o)}};var Ye=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),a=g.enc.Hex.parse(n),s=g.enc.Hex.parse(r),o={};o.key=a,o.iv=s,o.ciphertext=i;var u=e.decrypt(o,a,{iv:s});return g.enc.Hex.stringify(u)},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),a=g.enc.Hex.parse(n),s=g.enc.Hex.parse(r),o=e.encrypt(i,a,{iv:s}),u=g.enc.Hex.parse(o.toString());return g.enc.Base64.stringify(u)},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}},a=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,a=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),a=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),a=1);var s=e.indexOf("-----END");if(-1!=i&&-1!=s){var o=e.substring(i+2*a,s-a);o=o.replace(/\s+/g,""),t.data=o}return t},s=function(e,t,n){for(var r=n.substring(0,16),a=g.enc.Hex.parse(r),s=g.enc.Utf8.parse(t),o=i[e].keylen+i[e].ivlen,u="",c=null;;){var l=g.algo.MD5.create();if(null!=c&&l.update(c),l.update(s),l.update(a),c=l.finalize(),(u+=g.enc.Hex.stringify(c)).length>=2*o)break}var h={};return h.keyhex=u.substr(0,2*i[e].keylen),h.ivhex=u.substr(2*i[e].keylen,2*i[e].ivlen),h},o=function(e,t,n,r){var a=g.enc.Base64.parse(e),s=g.enc.Hex.stringify(a);return(0,i[t].proc)(s,n,r)};return{version:"1.0.0",parsePKCS5PEM:function(e){return a(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return s(e,t,n)},decryptKeyB64:function(e,t,n,r){return o(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=a(e),r=(n.type,n.cipher),i=n.ivsalt,u=n.data,c=s(r,t,i).keyhex;return o(u,r,c,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,a){var o="";if(void 0!==r&&null!=r||(r="AES-256-CBC"),void 0===i[r])throw new Error("KEYUTIL unsupported algorithm: "+r);void 0!==a&&null!=a||(a=function(e){var t=g.lib.WordArray.random(e);return g.enc.Hex.stringify(t)}(i[r].ivlen).toUpperCase());var u=function(e,t,n,r){return(0,i[t].eproc)(e,n,r)}(t,r,s(r,n,a).keyhex,a);o="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return o+="Proc-Type: 4,ENCRYPTED\r\n",o+="DEK-Info: "+r+","+a+"\r\n",o+="\r\n",o+=u.replace(/(.{64})/g,"$1\r\n"),o+="\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={},a=n(e,0);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+a.length);i.ciphertext=r(e,a[1]);var s=n(e,a[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 o=n(e,s[1]);if(2!=s.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+o.length);var u=n(e,o[1]);if(2!=u.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length);if("2a864886f70d0307"!=r(e,u[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,u[1]);var c=n(e,o[0]);if(2!=c.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length);if("2a864886f70d01050c"!=r(e,c[0]))throw new Error("this only supports pkcs5PBKDF2");var l=n(e,c[1]);if(l.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length);i.pbkdf2Salt=r(e,l[0]);var h=r(e,l[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=Ye.getPBKDF2KeyHexFromParam(r,t),a={};a.ciphertext=g.enc.Hex.parse(r.ciphertext);var s=g.enc.Hex.parse(i),o=g.enc.Hex.parse(r.encryptionSchemeIV),u=g.TripleDES.decrypt(a,s,{iv:o});return g.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=de,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 a=n(e,0);if(a.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(a[1],2))throw new Error("malformed PKCS8 private key(code:003)");var s=n(e,a[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(a[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,a[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 ae;else if("2a8648ce380401"==n.algoid)t=new he.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new he.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=de.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new ae;else if("2a8648ce380401"===n)t=new he.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new he.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var a=n(e,0);if(2!=a.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(a[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,a[0]),"02"!=e.substr(a[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,a[1]),i},parsePublicPKCS8Hex:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={algparam:null},a=n(e,0);if(2!=a.length)throw new Error("outer DERSequence shall have 2 elements: "+a.length);var s=a[0];if("30"!=e.substr(s,2))throw new Error("malformed PKCS8 public key(code:001)");var o=n(e,s);if(2!=o.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(o[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,o[0]),"06"==e.substr(o[1],2)?i.algparam=r(e,o[1]):"30"==e.substr(o[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,o[1],[0],"02"),i.algparam.q=t.getVbyList(e,o[1],[1],"02"),i.algparam.g=t.getVbyList(e,o[1],[2],"02")),"03"!=e.substr(a[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,a[1]).substr(2),i}}}();Ye.getKey=function(e,t,n){var r=(m=de).getChildIdx,i=(m.getV,m.getVbyList),a=he.crypto,s=a.ECDSA,o=a.DSA,u=ae,c=Te,l=Ye;if(void 0!==u&&e instanceof u)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==o&&e instanceof o)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(R=new u).setPublic(e.n,e.e),R;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(R=new u).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),R;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(R=new u).setPrivate(e.n,e.e,e.d),R;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(R=new o).setPublic(e.p,e.q,e.g,e.y),R;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(R=new o).setPrivate(e.p,e.q,e.g,e.y,e.x),R;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(R=new u).setPublic(Se(e.n),Se(e.e)),R;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(R=new u).setPrivateEx(Se(e.n),Se(e.e),Se(e.d),Se(e.p),Se(e.q),Se(e.dp),Se(e.dq),Se(e.qi)),R;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(R=new u).setPrivate(Se(e.n),Se(e.e),Se(e.d)),R;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var h=(D=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+Se(e.x)).slice(-h)+("0000000000"+Se(e.y)).slice(-h);return D.setPublicKeyHex(f),D}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){h=(D=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+Se(e.x)).slice(-h)+("0000000000"+Se(e.y)).slice(-h);var p=("0000000000"+Se(e.d)).slice(-h);return D.setPublicKeyHex(f),D.setPrivateKeyHex(p),D}if("pkcs5prv"===n){var d,g=e,m=de;if(9===(d=r(g,0)).length)(R=new u).readPKCS5PrvKeyHex(g);else if(6===d.length)(R=new o).readPKCS5PrvKeyHex(g);else{if(!(d.length>2&&"04"===g.substr(d[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");(R=new s).readPKCS5PrvKeyHex(g)}return R}if("pkcs8prv"===n)return R=l.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return l._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return Ze.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return Ze.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var v=Te(e,"PUBLIC KEY");return l._getKeyFromPublicPKCS8Hex(v)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var y=c(e,"RSA PRIVATE KEY");return l.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=i(T=c(e,"DSA PRIVATE KEY"),0,[1],"02"),w=i(T,0,[2],"02"),x=i(T,0,[3],"02"),E=i(T,0,[4],"02"),A=i(T,0,[5],"02");return(R=new o).setPrivate(new S(b,16),new S(w,16),new S(x,16),new S(E,16),new S(A,16)),R}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){y=c(e,"EC PRIVATE KEY");return l.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return l.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var F=l.getDecryptedKeyHex(e,t),C=new ae;return C.readPKCS5PrvKeyHex(F),C}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var D,R=i(T=l.getDecryptedKeyHex(e,t),0,[1],"04"),$=i(T,0,[2,0],"06"),I=i(T,0,[3,0],"03").substr(2);if(void 0===he.crypto.OID.oidhex2name[$])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+$);return(D=new s({curve:he.crypto.OID.oidhex2name[$]})).setPublicKeyHex(I),D.setPrivateKeyHex(R),D.isPublic=!1,D}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var T;b=i(T=l.getDecryptedKeyHex(e,t),0,[1],"02"),w=i(T,0,[2],"02"),x=i(T,0,[3],"02"),E=i(T,0,[4],"02"),A=i(T,0,[5],"02");return(R=new o).setPrivate(new S(b,16),new S(w,16),new S(x,16),new S(E,16),new S(A,16)),R}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return l.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Ye.generateKeypair=function(e,t){if("RSA"==e){var n=t;(s=new ae).generate(n,"10001"),s.isPrivate=!0,s.isPublic=!0;var r=new ae,i=s.n.toString(16),a=s.e.toString(16);return r.setPublic(i,a),r.isPrivate=!1,r.isPublic=!0,(o={}).prvKeyObj=s,o.pubKeyObj=r,o}if("EC"==e){var s,o,u=t,c=new he.crypto.ECDSA({curve:u}).generateKeyPairHex();return(s=new he.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),s.setPrivateKeyHex(c.ecprvhex),s.isPrivate=!0,s.isPublic=!1,(r=new he.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(o={}).prvKeyObj=s,o.pubKeyObj=r,o}throw new Error("unknown algorithm: "+e)},Ye.getPEM=function(e,t,n,r,i,a){var s=he,o=s.asn1,u=o.DERObjectIdentifier,c=o.DERInteger,l=o.ASN1Util.newObject,h=o.x509.SubjectPublicKeyInfo,f=s.crypto,p=f.DSA,d=f.ECDSA,m=ae;function v(e){return l({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 y(e){return l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function b(e){return l({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!==m&&e instanceof m||void 0!==p&&e instanceof p||void 0!==d&&e instanceof d)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ie(E=new h(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===n||null==n)&&1==e.isPrivate)return Ie(E=v(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate){var w=new u({name:e.curveName}).getEncodedHex(),x=y(e).getEncodedHex(),S="";return S+=Ie(w,"EC PARAMETERS"),S+=Ie(x,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==p&&e instanceof p&&(void 0===n||null==n)&&1==e.isPrivate)return Ie(E=b(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==n&&null!=n&&1==e.isPrivate){var E=v(e).getEncodedHex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",E,n,r,a)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate){E=y(e).getEncodedHex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",E,n,r,a)}if("PKCS5PRV"==t&&void 0!==p&&e instanceof p&&void 0!==n&&null!=n&&1==e.isPrivate){E=b(e).getEncodedHex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",E,n,r,a)}var A=function(e,t){var n=F(e,t);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},F=function(e,t){var n=g.lib.WordArray.random(8),r=g.lib.WordArray.random(8),i=g.PBKDF2(t,n,{keySize:6,iterations:100}),a=g.enc.Hex.parse(e),s=g.TripleDES.encrypt(a,i,{iv:r})+"",o={};return o.ciphertext=s,o.pbkdf2Salt=g.enc.Hex.stringify(n),o.pbkdf2Iter=100,o.encryptionSchemeAlg="DES-EDE3-CBC",o.encryptionSchemeIV=g.enc.Hex.stringify(r),o};if("PKCS8PRV"==t&&null!=m&&e instanceof m&&1==e.isPrivate){var C=v(e).getEncodedHex();E=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex();return void 0===n||null==n?Ie(E,"PRIVATE KEY"):Ie(x=A(E,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate){C=new l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),E=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex();return void 0===n||null==n?Ie(E,"PRIVATE KEY"):Ie(x=A(E,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==p&&e instanceof p&&1==e.isPrivate){C=new c({bigint:e.x}).getEncodedHex(),E=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex();return void 0===n||null==n?Ie(E,"PRIVATE KEY"):Ie(x=A(E,n),"ENCRYPTED PRIVATE KEY")}throw new Error("unsupported object nor format")},Ye.getKeyFromCSRPEM=function(e){var t=Te(e,"CERTIFICATE REQUEST");return Ye.getKeyFromCSRHex(t)},Ye.getKeyFromCSRHex=function(e){var t=Ye.parseCSRHex(e);return Ye.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Ye.parseCSRHex=function(e){var t=de,n=t.getChildIdx,r=t.getTLV,i={},a=e;if("30"!=a.substr(0,2))throw new Error("malformed CSR(code:001)");var s=n(a,0);if(s.length<1)throw new Error("malformed CSR(code:002)");if("30"!=a.substr(s[0],2))throw new Error("malformed CSR(code:003)");var o=n(a,s[0]);if(o.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(a,o[2]),i},Ye.getKeyID=function(e){var t=Ye,n=de;"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Te(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),a=n.getV(r,i).substring(2);return he.crypto.Util.hashHex(a,"sha1")},Ye.getJWKFromKey=function(e){var t={};if(e instanceof ae&&e.isPrivate)return t.kty="RSA",t.n=xe(e.n.toString(16)),t.e=xe(e.e.toString(16)),t.d=xe(e.d.toString(16)),t.p=xe(e.p.toString(16)),t.q=xe(e.q.toString(16)),t.dp=xe(e.dmp1.toString(16)),t.dq=xe(e.dmq1.toString(16)),t.qi=xe(e.coeff.toString(16)),t;if(e instanceof ae&&e.isPublic)return t.kty="RSA",t.n=xe(e.n.toString(16)),t.e=xe(e.e.toString(16)),t;if(e instanceof he.crypto.ECDSA&&e.isPrivate){if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw new Error("unsupported curve name for JWT: "+r);var n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=r,t.x=xe(n.x),t.y=xe(n.y),t.d=xe(e.prvKeyHex),t}if(e instanceof he.crypto.ECDSA&&e.isPublic){var r;if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw new Error("unsupported curve name for JWT: "+r);n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=r,t.x=xe(n.x),t.y=xe(n.y),t}throw new Error("not supported key object")},ae.getPosArrayOfChildrenFromHex=function(e){return de.getChildIdx(e,0)},ae.getHexValueArrayOfChildrenFromHex=function(e){var t,n=de.getV,r=n(e,(t=ae.getPosArrayOfChildrenFromHex(e))[0]),i=n(e,t[1]),a=n(e,t[2]),s=n(e,t[3]),o=n(e,t[4]),u=n(e,t[5]),c=n(e,t[6]),l=n(e,t[7]),h=n(e,t[8]);return(t=new Array).push(r,i,a,s,o,u,c,l,h),t},ae.prototype.readPrivateKeyFromPEMString=function(e){var t=Te(e),n=ae.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},ae.prototype.readPKCS5PrvKeyHex=function(e){var t=ae.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},ae.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,a,s,o,u,c=de,l=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=l(e,0,[2,0,1],"02"),n=l(e,0,[2,0,2],"02"),r=l(e,0,[2,0,3],"02"),i=l(e,0,[2,0,4],"02"),a=l(e,0,[2,0,5],"02"),s=l(e,0,[2,0,6],"02"),o=l(e,0,[2,0,7],"02"),u=l(e,0,[2,0,8],"02")}catch(e){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,a,s,o,u)},ae.prototype.readPKCS5PubKeyHex=function(e){var t=de,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]),a=n(e,r[1]);this.setPublic(i,a)},ae.prototype.readPKCS8PubKeyHex=function(e){var t=de;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)},ae.prototype.readCertPubKeyHex=function(e,t){var n,r;(n=new Ze).readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};new RegExp("[^0-9a-f]","gi");function Xe(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function Je(e,t,n){for(var r="",i=0;r.length<t;)r+=Fe(n(Ce(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function Qe(e){for(var t in he.crypto.Util.DIGESTINFOHEAD){var n=he.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}function Ze(e){var t,n=de,r=n.getChildIdx,i=n.getV,a=n.getTLV,s=n.getVbyList,o=n.getVbyListEx,u=n.getTLVbyList,c=n.getTLVbyListEx,l=n.getIdxbyList,h=n.getIdxbyListEx,f=n.getVidx,p=n.getInt,d=n.oidname,g=n.hextooidstr,m=Te;try{t=he.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=p(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 o(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 d(o(e,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return u(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return this.getIssuer().str},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},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=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getPublicKeyHex=function(){return n.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return l(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return l(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Ye.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=u(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(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 he.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,a,o;if(void 0===e){if(o=this.hex,3!==this.version)return-1;t=l(o,0,[0,7,0],"30"),a=r(o,t)}else{o=Te(e);var u=l(o,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(o,u))return void(this.aExtInfo=new Array);t=l(o,0,[0,3,0,1,0],"30"),a=r(o,t),this.hex=o}this.aExtInfo=new Array;for(var c=0;c<a.length;c++){var h={critical:!1},p=0;3===r(o,a[c]).length&&(h.critical=!0,p=1),h.oid=n.hextooidstr(s(o,a[c],[0],"06"));var d=l(o,a[c],[1+p]);h.vidx=f(o,d),this.aExtInfo.push(h)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=he.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=a(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 s=i(e,10),o=parseInt(s,16);return r.cA=!0,r.pathLen=o,r}throw new Error("hExtV parse error: "+e)},this.getExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("keyUsage");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}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=a(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(Ze.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=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var s=i(e,0);return r.kid={hex:s},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var s={extname:"authorityKeyIdentifier"};t&&(s.critical=!0);for(var o=r(e,0),u=0;u<o.length;u++){var c=e.substr(o[u],2);if("80"===c&&(s.kid={hex:i(e,o[u])}),"a1"===c){var l=a(e,o[u]),h=this.getGeneralNames(l);s.issuer=h[0].dn}"82"===c&&(s.sn={hex:i(e,o[u])})}return s},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var s={extname:"extKeyUsage",array:[]};t&&(s.critical=!0);for(var o=r(e,0),u=0;u<o.length;u++)s.array.push(d(i(e,o[u])));return s},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=a(this.hex,e.vidx);if(""===n)return t;for(var s=r(n,0),o=0;o<s.length;o++)t.push(d(i(n,s[o])));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=a(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=a(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 s=this.getGeneralName(a(e,t[i]));void 0!==s&&n.push(s)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=Fe(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:He(n)}:"a4"==t?{dn:this.getX500Name(n)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,s=this.getExtInfo("subjectAltName");if(void 0===s)return s;for(var o=new Array,u=a(this.hex,s.vidx),c=r(u,0),l=0;l<c.length;l++)n=u.substr(c[l],2),e=i(u,c[l]),"81"===n&&(t=Ae(e),o.push(["MAIL",t])),"82"===n&&(t=Ae(e),o.push(["DNS",t])),"84"===n&&(t=Ze.hex2dn(e,0),o.push(["DN",t])),"86"===n&&(t=Ae(e),o.push(["URI",t])),"87"===n&&(t=He(e),o.push(["IP",t]));return o},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var s=r(e,0),o=0;o<s.length;o++){var u=a(e,s[o]);i.array.push(this.getDistributionPoint(u))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var s=e.substr(n[i],2),o=a(e,n[i]);"a0"==s&&(t.dpname=this.getDistributionPointName(o))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var s=e.substr(n[i],2),o=a(e,n[i]);"a0"==s&&(t.full=this.getGeneralNames(o))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtInfo("cRLDistributionPoints");if(void 0===e)return e;for(var t=new Array,n=r(this.hex,e.vidx),i=0;i<n.length;i++)try{var a=Ae(s(this.hex,n[i],[0,0,0],"86"));t.push(a)}catch(e){}return t},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 a=s(this.hex,n[i],[0],"06"),o=s(this.hex,n[i],[1],"86");"2b06010505073001"===a&&t.ocsp.push(Ae(o)),"2b06010505073002"===a&&t.caissuer.push(Ae(o))}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=a(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var u=r(e,0),c=0;c<u.length;c++){var l=o(e,u[c],[0],"06"),h=Ae(s(e,u[c],[1],"86"));if("2b06010505073001"==l)i.array.push({ocsp:h});else{if("2b06010505073002"!=l)throw new Error("unknown method: "+l);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=a(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var s=r(e,0),o=0;o<s.length;o++){var u=a(e,s[o]),c=this.getPolicyInformation(u);i.array.push(c)}return i},this.getPolicyInformation=function(e){var t={},n=s(e,0,[0],"06");t.policyoid=d(n);var i=h(e,0,[1],"30");if(-1!=i){t.array=[];for(var o=r(e,i),u=0;u<o.length;u++){var c=a(e,o[u]),l=this.getPolicyQualifierInfo(c);t.array.push(l)}}return t},this.getPolicyQualifierInfo=function(e){var t={},n=s(e,0,[0],"06");if("2b06010505070201"===n){var r=o(e,0,[1],"16");t.cps=Fe(r)}else if("2b06010505070202"===n){var i=u(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var s=a(e,n[i]);"30"!=s.substr(0,2)&&(t.exptext=this.getDisplayText(s))}return t},this.getDisplayText=function(e){var t={};return t.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[e.substr(0,2)],t.str=Fe(i(e,0)),t},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 Error("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=a(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var s=r(e,0);if(s.length>1){var o=a(e,s[1]),u=this.getGeneralName(o);null!=u.uri&&(i.uri=u.uri)}if(s.length>2){var c=a(e,s[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i},this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(i[a]);for(r=0;r<n.length;r++){var s=n[r],o=s.ds,u=s.value,c=s.type;if(":"+o,"prn"!=o&&"utf8"!=o&&"ia5"!=o)return"mixed";if("ia5"==o){if("CN"!=c)return"mixed";if(he.lang.String.isMail(u))continue;return"mixed"}if("C"==c){if("prn"==o)continue;return"mixed"}if(":"+o,null==t)t=o;else if(t!==o)return"mixed"}return null==t?"prn":t},this.getX500Name=function(e){var t=this.getX500NameArray(e);return{array:t,str:this.dnarraytostr(t)}},this.getX500NameArray=function(e){for(var t=[],n=r(e,0),i=0;i<n.length;i++)t.push(this.getRDN(a(e,n[i])));return t},this.getRDN=function(e){for(var t=[],n=r(e,0),i=0;i<n.length;i++)t.push(this.getAttrTypeAndValue(a(e,n[i])));return t},this.getAttrTypeAndValue=function(e){var t={type:null,value:null,ds:null},n=r(e,0),i=s(e,n[0],[],"06"),a=s(e,n[1],[]),o=he.asn1.ASN1Util.oidHexToInt(i);return t.type=he.asn1.x509.OID.oid2atype(o),t.ds=this.HEX2STAG[e.substr(n[1],2)],"bmp"!=t.ds?t.value=Ae(a):t.value=Be(a),t},this.readCertPEM=function(e){this.readCertHex(m(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{l(this.hex,0,[0,7],"a3"),this.parseExt()}catch(e){}},this.getParam=function(){var e={};return e.version=this.getVersion(),e.serial={hex:this.getSerialNumberHex()},e.sigalg=this.getSignatureAlgorithmField(),e.issuer=this.getIssuer(),e.notbefore=this.getNotBefore(),e.notafter=this.getNotAfter(),e.subject=this.getSubject(),e.sbjpubkey=Ie(this.getPublicKeyHex(),"PUBLIC KEY"),this.aExtInfo.length>0&&(e.ext=this.getExtParamArray()),e.sighex=this.getSignatureValueHex(),e},this.getExtParamArray=function(e){null==e&&(-1!=h(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 s=a(e,n[i]),o=this.getExtParam(s);null!=o&&t.push(o)}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=g(s(e,0,[0],"06")),i=!1;3==t&&"0101ff"==u(e,0,[1])&&(i=!0);var a=u(e,0,[t-1,0]),o=void 0;if("2.5.29.14"==n?o=this.getExtSubjectKeyIdentifier(a,i):"2.5.29.15"==n?o=this.getExtKeyUsage(a,i):"2.5.29.17"==n?o=this.getExtSubjectAltName(a,i):"2.5.29.18"==n?o=this.getExtIssuerAltName(a,i):"2.5.29.19"==n?o=this.getExtBasicConstraints(a,i):"2.5.29.31"==n?o=this.getExtCRLDistributionPoints(a,i):"2.5.29.32"==n?o=this.getExtCertificatePolicies(a,i):"2.5.29.35"==n?o=this.getExtAuthorityKeyIdentifier(a,i):"2.5.29.37"==n?o=this.getExtExtKeyUsage(a,i):"1.3.6.1.5.5.7.1.1"==n?o=this.getExtAuthorityInfoAccess(a,i):"2.5.29.20"==n?o=this.getExtCRLNumber(a,i):"2.5.29.21"==n?o=this.getExtCRLReason(a,i):"1.3.6.1.5.5.7.48.1.2"==n?o=this.getExtOcspNonce(a,i):"1.3.6.1.5.5.7.48.1.5"==n?o=this.getExtOcspNoCheck(a,i):"1.2.840.113583.1.1.9.1"==n&&(o=this.getExtAdobeTimeStamp(a,i)),null!=o)return o;var c={extname:n,extn:a};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 a=r[i].dpname.full,s=0;s<a.length;s++){var o=a[i];null!=o.uri&&(o.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.getInfo=function(){var e,t,n,r,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 a=0;a<i.array.length;a++){var s=i.array[a];void 0!==s.cps&&(t+=" cps: "+s.cps+"\n")}}return t},a=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+=" "+Ze.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="+Ue(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+Ue(t.e.toString(16))+"\n"),null!=(n=this.aExtInfo)){e+="X509v3 Extensions:\n";for(var o=0;o<n.length;o++){var u=n[o],c=he.asn1.x509.OID.oid2name(u.oid);""===c&&(c=u.oid);var l="";if(!0===u.critical&&(l="CRITICAL"),e+=" "+c+" "+l+":\n","basicConstraints"===c){var h=this.getExtBasicConstraints();void 0===h.cA?e+=" {}\n":(e+=" cA=true",void 0!==h.pathLen&&(e+=", pathLen="+h.pathLen),e+="\n")}else if("keyUsage"===c)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"===c)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"===c){var f=this.getExtAuthorityKeyIdentifier();void 0!==f.kid&&(e+=" kid="+f.kid.hex+"\n")}else{if("extKeyUsage"===c)e+=" "+this.getExtExtKeyUsage().array.join(", ")+"\n";else if("subjectAltName"===c)e+=" "+(r=this.getExtSubjectAltName(),JSON.stringify(r.array).replace(/[\[\]\{\}\"]/g,""))+"\n";else if("cRLDistributionPoints"===c)e+=a(this.getExtCRLDistributionPoints());else if("authorityInfoAccess"===c)e+=s(this.getExtAuthorityInfoAccess());else"certificatePolicies"===c&&(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):he.lang.String.isHex(e)&&this.readCertHex(e))}ae.prototype.sign=function(e,t){var n=function(e){return he.crypto.Util.hashString(e,t)}(e);return this.signWithMessageHash(n,t)},ae.prototype.signWithMessageHash=function(e,t){var n=re(he.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),16);return Xe(this.doPrivate(n).toString(16),this.n.bitLength())},ae.prototype.signPSS=function(e,t,n){var r,i=(r=Ce(e),he.crypto.Util.hashHex(r,t));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},ae.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=Fe(e),a=i.length,s=this.n.bitLength()-1,o=Math.ceil(s/8),u=function(e){return he.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=a;else if(-2===n)n=o-a-2;else if(n<-2)throw new Error("invalid salt length");if(o<a+n+2)throw new Error("data too long");var c="";n>0&&(c=new Array(n),(new ne).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=Fe(u(Ce("\0\0\0\0\0\0\0\0"+i+c))),h=[];for(r=0;r<o-n-a-2;r+=1)h[r]=0;var f=String.fromCharCode.apply(String,h)+""+c,p=Je(l,f.length,u),d=[];for(r=0;r<f.length;r+=1)d[r]=f.charCodeAt(r)^p.charCodeAt(r);var g=65280>>8*o-s&255;for(d[0]&=~g,r=0;r<a;r++)d.push(l.charCodeAt(r));return d.push(188),Xe(this.doPrivate(new S(d)).toString(16),this.n.bitLength())},ae.prototype.verify=function(e,t){if(null==(t=t.toLowerCase()).match(/^[0-9a-f]+$/))return!1;var n=re(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 a=Qe(i.replace(/^1f+00/,""));if(0==a.length)return!1;var s=a[0];return a[1]==function(e){return he.crypto.Util.hashString(e,s)}(e)},ae.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=re(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=Qe(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==r.length)return!1;r[0];return r[1]==e},ae.prototype.verifyPSS=function(e,t,n,r){var i,a=(i=Ce(e),he.crypto.Util.hashHex(i,n));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(a,t,n,r)},ae.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,a=new S(t,16),s=function(e){return he.crypto.Util.hashHex(e,n)},o=Fe(e),u=o.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===r||void 0===r)r=u;else if(-2===r)r=l-u-2;else if(r<-2)throw new Error("invalid salt length");if(l<u+r+2)throw new Error("data too long");var h=this.doPublic(a).toByteArray();for(i=0;i<h.length;i+=1)h[i]&=255;for(;h.length<l;)h.unshift(0);if(188!==h[l-1])throw new Error("encoded message does not end in 0xbc");var f=(h=String.fromCharCode.apply(String,h)).substr(0,l-u-1),p=h.substr(f.length,u),d=65280>>8*l-c&255;if(0!=(f.charCodeAt(0)&d))throw new Error("bits beyond keysize not zero");var g=Je(p,f.length,s),m=[];for(i=0;i<f.length;i+=1)m[i]=f.charCodeAt(i)^g.charCodeAt(i);m[0]&=~d;var v=l-u-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 p===Fe(s(Ce("\0\0\0\0\0\0\0\0"+o+String.fromCharCode.apply(String,m.slice(-r)))))},ae.SALT_LEN_HLEN=-1,ae.SALT_LEN_MAX=-2,ae.SALT_LEN_RECOVER=-2,Ze.hex2dn=function(e,t){void 0===t&&(t=0);var n=new Ze;de.getTLV(e,t);return n.getX500Name(e).str},Ze.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=de.getChildIdx(e,t),i=0;i<r.length;i++)n.push(Ze.hex2attrTypeValue(e,r[i]));return(n=n.map((function(e){return e.replace("+","\\+")}))).join("+")},Ze.hex2attrTypeValue=function(e,t){var n=de,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 a=r(e,i[0]),s=he.asn1.ASN1Util.oidHexToInt(a);return he.asn1.x509.OID.oid2atype(s)+"="+Fe(r(e,i[1]))},Ze.getPublicKeyFromCertHex=function(e){var t=new Ze;return t.readCertHex(e),t.getPublicKey()},Ze.getPublicKeyFromCertPEM=function(e){var t=new Ze;return t.readCertPEM(e),t.getPublicKey()},Ze.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=de.getVbyList,i={};return i.algparam=null,(t=new Ze).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},Ze.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];void 0!==he&&he||(he={}),void 0!==he.jws&&he.jws||(he.jws={}),he.jws.JWS=function(){var e=he.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],a=r[2],s=r[3],o=i+"."+a;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=a,this.parsedJWS.sigvalB64U=s,this.parsedJWS.si=o,!n){var u=Se(s),c=re(u,16);this.parsedJWS.sigvalH=u,this.parsedJWS.sigvalBI=c}var l=pe(i),h=pe(a);if(this.parsedJWS.headS=l,this.parsedJWS.payloadS=h,!e(l,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+l}}},he.jws.JWS.sign=function(e,t,n,r,i){var a,s,o,u=he,c=u.jws.JWS,l=c.readSafeJSONString,h=c.isSafeJSONString,f=u.crypto,p=(f.ECDSA,f.Mac),d=f.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,a=g.stringify(s)),"string"==typeof t){if(!h(a=t))throw"JWS Head is not safe JSON string: "+a;s=l(a)}if(o=n,"object"==typeof n&&(o=g.stringify(n)),""!=e&&null!=e||void 0===s.alg||(e=s.alg),""!=e&&null!=e&&void 0===s.alg&&(s.alg=e,a=g.stringify(s)),e!==s.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+s.alg;var m=null;if(void 0===c.jwsalg2sigalg[e])throw"unsupported alg name: "+e;m=c.jwsalg2sigalg[e];var v=fe(a)+"."+fe(o),y="";if("Hmac"==m.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var b=new p({alg:m,prov:"cryptojs",pass:r});b.updateString(v),y=b.doFinal()}else if(-1!=m.indexOf("withECDSA")){(x=new d({alg:m})).init(r,i),x.updateString(v);var w=x.sign();y=he.crypto.ECDSA.asn1SigToConcatSig(w)}else{var x;if("none"!=m)(x=new d({alg:m})).init(r,i),x.updateString(v),y=x.sign()}return v+"."+xe(y)},he.jws.JWS.verify=function(e,t,n){var r,i=he,a=i.jws.JWS,s=a.readSafeJSONString,o=i.crypto,u=o.ECDSA,c=o.Mac,l=o.Signature;r=ae;var h=e.split(".");if(3!==h.length)return!1;var f=h[0]+"."+h[1],p=Se(h[2]),d=s(pe(h[0])),g=null,m=null;if(void 0===d.alg)throw"algorithm not specified in header";if((m=(g=d.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=Ye.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 u))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===a.jwsalg2sigalg[d.alg])throw"unsupported alg name: "+g;if("none"==(v=a.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 c({alg:v,pass:t});return y.updateString(f),p==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var b,w=null;try{w=u.concatSigToASN1Sig(p)}catch(e){return!1}return(b=new l({alg:v})).init(t),b.updateString(f),b.verify(w)}return(b=new l({alg:v})).init(t),b.updateString(f),b.verify(p)},he.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),a={};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]),a.headerObj=he.jws.JWS.readSafeJSONString(pe(t)),a.payloadObj=he.jws.JWS.readSafeJSONString(pe(n)),a.headerPP=JSON.stringify(a.headerObj,null," "),null==a.payloadObj?a.payloadPP=pe(n):a.payloadPP=JSON.stringify(a.payloadObj,null," "),void 0!==r&&(a.sigHex=Se(r)),a},he.jws.JWS.verifyJWT=function(e,t,n){var r=he.jws,i=r.JWS,a=i.readSafeJSONString,s=i.inArray,o=i.includedArray,u=e.split("."),c=u[0],l=u[1],h=(Se(u[2]),a(pe(c))),f=a(pe(l));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!==f.iss&&"object"==typeof n.iss&&!s(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"==typeof n.sub&&!s(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"==typeof n.aud)if("string"==typeof f.aud){if(!s(f.aud,n.aud))return!1}else if("object"==typeof f.aud&&!o(f.aud,n.aud))return!1;var p=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriod<p)&&(!(void 0!==f.nbf&&"number"==typeof f.nbf&&p<f.nbf-n.gracePeriod)&&(!(void 0!==f.iat&&"number"==typeof f.iat&&p<f.iat-n.gracePeriod)&&((void 0===f.jti||void 0===n.jti||f.jti===n.jti)&&!!i.verify(e,t,n.alg))))},he.jws.JWS.includedArray=function(e,t){var n=he.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},he.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},he.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},he.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return"object"!=typeof(r=le(e))?0:r.constructor===Array?0:(t&&(t[n]=r),1)}catch(e){return 0}},he.jws.JWS.readSafeJSONString=function(e){var t=null;try{return"object"!=typeof(t=le(e))?null:t.constructor===Array?null:t}catch(e){return null}},he.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]},he.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=Ce(t);return xe(he.crypto.Util.hashHex(n,"sha256"))},he.jws.IntDate={},he.jws.IntDate.get=function(e){var t=he.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},he.jws.IntDate.getZulu=function(e){return _e(e)},he.jws.IntDate.getNow=function(){return~~(new Date/1e3)},he.jws.IntDate.intDate2UTCString=function(e){return new Date(1e3*e).toUTCString()},he.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!==he&&he||(he={}),void 0!==he.jws&&he.jws||(he.jws={}),he.jws.JWSJS=function(){var e=he.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 a=he.jws.JWS.sign(e,t,this.sPayload,n,r).split(".");a[0],a[2];this.aHeader.push(a[0]),this.aSignature.push(a[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],a=this.aSignature[t],s=i+"."+this.sPayload+"."+a,o=!1;try{o=e.verify(s,n,r)}catch(e){return!1}return o},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=ne,t.rng_seed_time=X,t.BigInteger=S,t.RSAKey=ae,t.ECDSA=he.crypto.ECDSA,t.DSA=he.crypto.DSA,t.Signature=he.crypto.Signature,t.MessageDigest=he.crypto.MessageDigest,t.Mac=he.crypto.Mac,t.Cipher=he.crypto.Cipher,t.KEYUTIL=Ye,t.ASN1HEX=de,t.X509=Ze,t.X509CRL=function(e){var t=he.lang.String.isHex,n=de,r=n.getV,i=n.getTLV,a=n.getVbyList,s=n.getTLVbyList,o=n.getTLVbyListEx,u=n.getIdxbyList,c=n.getIdxbyListEx,l=n.getChildIdx,h=new Ze;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this._setPos=function(){var e=u(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=u(this.hex,0,[0,this.posSigAlg+3]),i=this.hex.substr(r,2);if("17"==i||"18"==i)n=u(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(a(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(){var e=s(this.hex,0,[0,this.posSigAlg+1],"30");return h.getX500Name(e)},this.getThisUpdate=function(){var e=a(this.hex,0,[0,this.posSigAlg+2]);return result=Fe(e)},this.getNextUpdate=function(){var e=u(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:Fe(r(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=u(this.hex,0,[0,this.posRevCert]),n=l(this.hex,t),r=0;r<n.length;r++){var a=i(this.hex,n[r]);e.push(this.getRevCert(a))}return e},this.getRevCert=function(e){var t={},n=l(e,0);return t.sn={hex:a(e,0,[0],"02")},t.date=Fe(a(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(s(e,0,[2]))),t},this.getSignatureValueHex=function(){return a(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 he.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(){var e={},t=this.getVersion();null!=t&&(e.version=t),e.sigalg=this.getSignatureAlgorithmField(),e.issuer=this.getIssuer(),e.thisupdate=this.getThisUpdate();var n=this.getNextUpdate();null!=n&&(e.nextupdate=n);var r=this.getRevCertArray();if(null!=r&&(e.revcert=r),-1!=c(this.hex,0,[0,"[0]"])){var i=o(this.hex,0,[0,"[0]",0]);e.ext=h.getExtParamArray(i)}return e.sighex=this.getSignatureValueHex(),e},"string"==typeof e&&(t(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=Te(e)),this._setPos())},t.CryptoJS=g,t.b64tohex=w,t.b64toBA=x,t.ECFieldElementFp=oe,t.ECPointFp=ue,t.ECCurveFp=ce,t.stoBA=ge,t.BAtos=me,t.BAtohex=ve,t.stohex=ye,t.stob64=function(e){return b(ye(e))},t.stob64u=function(e){return be(b(ye(e)))},t.b64utos=function(e){return me(x(we(e)))},t.b64tob64u=be,t.b64utob64=we,t.hex2b64=b,t.hextob64u=xe,t.b64utohex=Se,t.utf8tob64u=fe,t.b64utoutf8=pe,t.utf8tob64=function(e){return b(ke(Le(e)))},t.b64toutf8=function(e){return decodeURIComponent(Oe(w(e)))},t.utf8tohex=Ee,t.hextoutf8=Ae,t.hextorstr=Fe,t.rstrtohex=Ce,t.hextob64=De,t.hextob64nl=Re,t.b64nltohex=$e,t.hextopem=Ie,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=Pe,t.zulutosec=_e,t.zulutodate=function(e){return new Date(Pe(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 a=e.getUTCMilliseconds();0!==a&&(r+="."+(a=(a=("00"+a).slice(-3)).replace(/0+$/g,"")))}return r+="Z"},t.uricmptohex=ke,t.hextouricmp=Oe,t.ipv6tohex=je,t.hextoipv6=Ne,t.hextoip=He,t.iptohex=function(e){var t="malformed IP address";if(!(e=e.toLowerCase(e)).match(/^[0-9.]+$/)){if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return je(e);throw t}var n=e.split(".");if(4!==n.length)throw t;var r="";try{for(var i=0;i<4;i++){r+=("0"+parseInt(n[i]).toString(16)).slice(-2)}return r}catch(e){throw t}},t.ucs2hextoutf8=Be,t.encodeURIComponentAll=Le,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=Ue,t.intarystrtohex=Ve,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=Ke,t.strpad=ze,t.bitstrtoint=Ge,t.inttobitstr=function(e){var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=ze("",n,"0");var r=parseInt(t,2).toString(16);return r.length%2==1&&(r="0"+r),"0"+n+r},t.KJUR=he,t.crypto=he.crypto,t.asn1=he.asn1,t.jws=he.jws,t.lang=he.lang}).call(this,n(162).Buffer)},function(e,t,n){"use strict";n.r(t);n(150),n(151),n(152),n(153),n(154),n(155),n(157),n(159),n(160),n(21),n(161),n(9),n(14),n(32);function r(e,t,n){return{openSimpleModal:function(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,resolve:{title:function(){return t.title},message:function(){return n.trustAsHtml(t.message)}}})},openCopyToClipboardModal:function(n){const r=e.open({templateUrl:"js/angular/core/templates/modal/copy-to-clipboard-modal.html",controller:"CopyToClipboardModalCtrl",resolve:{uri:function(){return n}}});return r.opened.then((function(){t((function(){$("#clipboardURI")[0].select()}),100)})),r}}}function i(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 a=e(i.children,n);if(!angular.isUndefined(a))return a}},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,children:t}};let i;const a=[];this.addItem=function(n){if(angular.isUndefined(n.parent))t(a,n.label)||a.push(r(n,[]));else{const i=e(a,n.parent);angular.isUndefined(i)||t(i.children,n.label)||i.children.push(r(n,n.children?n.children:[]))}},this.$get=function(){a.sort(n);for(let e=0;e<a.length;e++){a[e].children.sort(n)}return a},this.setProductInfo=function(e){i=e},this.getProductInfo=function(){return i}})).factory("ModalService",r).factory("ClassInstanceDetailsService",i),r.$inject=["$modal","$timeout","$sce"],i.$inject=["$http"]},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"}),n.$inject=["localStorageService","LSKeys"]},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},function(e,t){angular.module("graphdb.framework.rest.license.service",["ngFileUpload"]).factory("LicenseRestService",i),i.$inject=["$http","Upload"];const n="rest/graphdb-settings/license",r="rest/info/license/";function i(e,t){return{getLicenseInfo:function(){return e.get(n)},getHardcodedLicense:function(){return e.get(`${n}/hardcoded`)},sendLicenseToValidate:function(t){return e.post(`${r}validate`,t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},extractFromLicenseFile:function(e){return t.upload({url:`${r}toBase64`,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(){return e.get("rest/info/version")},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}`})}}}},function(e,t){angular.module("graphdb.framework.rest.repositories.service",[]).factory("RepositoriesRestService",r),r.$inject=["$http"];const n="rest/repositories";function r(e){return{getRepositories:function(){return e.get(n)},getRepository:function(t){return e.get(`${n}/${t}`)},deleteRepository:function(t){return e.delete(`${n}/${t}`)},createRepository:function(t){return e.post(n,t)},editRepository:function(t,r){return e.put(`${n}/${t}`,r)},getRepositoryConfiguration:function(t){return e.get(`${n}/defaultConfig/${t}`)},getSize:function(t){return e.get(`${n}/${t}/size`)},getPrefix:function(t,r){return e.post(`${n}/${t}/prefix`,null,{params:r})},getCluster:function(){return e.get(`${n}/cluster`)},getRepositoryFileContent:function(t){return e.get(`${n}/getFileContent`,{params:{fileLocation:t}})},updateRepositoryFileContent:function(t,r){return e.post(`${n}/updateFile`,JSON.stringify(r),{params:{fileLocation:t}})},validateOntopPropertiesConnection:function(t){return e.post(`${n}/ontop/test-connection`,t)},restartRepository:function(t){return e.post(`${n}/${t}/restart`)},getSupportedDriversData:function(){return e.get(`${n}/ontop/drivers`)},updatePropertiesFile:function(t,r){return e.post(`${n}/ontop/jdbc-properties`,JSON.stringify(r),{params:{fileLocation:t}})},loadPropertiesFile:function(t){return e.get(`${n}/ontop/jdbc-properties`,{params:{fileLocation:t}})},getRepositoriesFromKnownLocation:function(t){return e.get(`${n}?location=${t}`)}}}},function(e,t,n){"use strict";n.r(t);n(3),n(7),n(23),n(6),n(29),n(30);angular.module("graphdb.framework.core.services.repositories",["ngCookies","graphdb.framework.rest.repositories.service","graphdb.framework.rest.locations.service","graphdb.framework.rest.license.service","toastr"]).service("$repositories",["$http","toastr","$rootScope","$timeout","$location","productInfo","$jwtAuth","RepositoriesRestService","LocationsRestService","LicenseRestService","$translate",function(e,t,n,r,i,a,s,o,u,c,l){this.repositoryStorageName="com.ontotext.graphdb.repository",this.location="",this.locationError="",this.loading=!0,this.repository=localStorage.getItem(this.repositoryStorageName),this.locations=[],this.repositories=[],this.locationsShouldReload=!1,this.degradedReason="";const h=this,f=function(e,n){h.loading=!1,e&&(h.location="",h.locationError=n,h.repositories=[],h.setRepository(""),e.statusText?t.error(e.statusText,l.instant("repositories.service.error.loading.location")):t.error(l.instant("repositories.service.error.loading.location")))};this.resetActiveRepository=function(){let e=!1;for(let t=0;t<this.repositories.length;t++){if(this.repositories[t].id===this.repository){e=!0;break}}e?s.canReadRepo(this.location,this.repository)?n.$broadcast("repositoryIsSet",{newRepo:!1}):this.setRepository(""):this.setRepository(this.location.defaultRepository?this.location.defaultRepository:"")},this.checkActiveLocationDegraded=function(){if(this.degradedReason="",this.location.local)return;const e=this;c.getVersion().success((function(t){"object"==typeof t?t.productVersion!==a.productVersion&&(e.degradedReason=l.instant("repositories.service.different.gdb.version")):e.degradedReason=l.instant("repositories.service.different.gdb.version")})).error((function(){e.degradedReason=l.instant("repositories.service.different.gdb.version")}))},this.getDegradedReason=function(){return this.degradedReason},this.initQuick=function(){this.hasActiveLocation()&&this.init(null,null,!0)},this.init=function(e,t,r){r||(this.locationsShouldReload=!0),this.loading=!0,u.getActiveLocation().then((function(i){if(i.data){const r=i.data;r.active&&o.getRepositories().then((function(t){h.location=r,h.repositories=t.data,h.resetActiveRepository(),f(),h.checkActiveLocationDegraded(),n.globalLocation=h.location,n.globalRepositories=h.repositories,e&&e()}),(function(e){f(e,r.errorMsg),t&&t()}))}else f(),r&&(h.locationsShouldReload=!0),h.location="",h.locationError="",h.repositories=[],h.setRepository("");n.globalLocation=h.location,n.globalRepositories=h.repositories}),(function(e){f(e),t&&t()}))},this.getLocations=function(){if(this.locationsShouldReload){this.locationsShouldReload=!1,this.locations=[this.location];const e=this;u.getLocations().success((function(t){e.locations=t})).error((function(){r((function(){e.locationsShouldReload=!0}),2e3)}))}return this.locations},this.getActiveLocation=function(){return this.location},this.hasActiveLocation=function(){return!_.isEmpty(this.location)},this.getLocationError=function(){return this.locationError?this.locationError:l.instant("repositories.service.no.active.location")},this.isLoadingLocation=function(){return this.loading},this.getRepositories=function(){return this.repositories},this.getReadableRepositories=function(){const e=this;return _.filter(this.getRepositories(),(function(t){return s.canReadRepo(e.location,t.id)}))},this.getWritableRepositories=function(){const e=this;return _.filter(this.getRepositories(),(function(t){return s.canWriteRepo(e.location,t.id)&&!e.isActiveRepoOntopType(t.id)}))},this.getActiveRepository=function(){return this.repository},this.isSystemRepository=function(){return"SYSTEM"===this.repository},this.isActiveRepoOntopType=function(e){const t=this;let n=t.repositories.find(n=>n.id===(e||t.getActiveRepository()));return n?"graphdb:OntopRepository"===n.sesameType:void 0===n},this.isActiveRepoFedXType=function(){const e=this;let t=e.repositories.find(t=>t.id===e.getActiveRepository());return t?"graphdb:FedXRepository"===t.sesameType:void 0===t},this.setRepositoryHeaders=function(){const t=this.repository?this.repository:void 0;e.defaults.headers.common["X-GraphDB-Repository"]=t,$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers["X-GraphDB-Repository"]=t},this.setRepositoryHeaders(),this.setRepository=function(e){this.repository=e,e?localStorage.setItem(this.repositoryStorageName,this.repository):localStorage.removeItem(this.repositoryStorageName),this.setRepositoryHeaders(e),n.$broadcast("repositoryIsSet",{newRepo:!0}),e&&!s.canReadRepo(this.location,e)&&this.setRepository(""),n.deniedPermissions={}},this.getDefaultRepository=function(){return this.hasActiveLocation()?this.location.defaultRepository:""},this.setDefaultRepository=function(e){if(!this.hasActiveLocation())return void t.error(l.instant("repositories.service.no.active.location"),l.instant("common.error"));const n=this;u.setDefaultRepository(e).success((function(){n.location.defaultRepository=e})).error((function(e){const n=getError(e);t.error(n,l.instant("common.error"))}))},this.deleteLocation=function(e){u.deleteLocation(encodeURIComponent(e)).success((function(){h.getActiveLocation().uri===e&&(h.location="",h.locationError="",h.setRepository("")),h.init()})).error((function(e){const n=getError(e);t.error(n,l.instant("common.error"))}))},this.deleteRepository=function(e){o.deleteRepository(e).success((function(){h.init()})).error((function(e){const n=getError(e);t.error(n,l.instant("common.error"))})),h.getActiveRepository()===e&&h.setRepository("")},this.restartRepository=function(e){o.restartRepository(e).success((function(){t.success(l.instant("repositories.service.restarting.repo",{repositoryId:e})),h.initQuick()})).error((function(e){const n=getError(e);t.error(n,l.instant("common.error"))}))},this.getRepositoryTurtleConfig=function(t){return e.get("rest/repositories/"+t.id,{headers:{Accept:"text/turtle"}})},n.$on("securityInit",(function(e,t,n,r){(!t||n||r)&&h.init()}))}])},function(e,t,n){"use strict";n.r(t);n(4);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=10.0.0-M2-1">Loading...</object>'}}}function a(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=10.0.0-M2-1"></object><div>Loading...<div>'}}}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=10.0.0-M2-1"/><div style="font-size: {{size/4}}px">{{currentMessage}}<div></div>'}}function o(e){return{restrict:"EA",transclude:!0,templateUrl:"js/angular/core/templates/core-errors.html",link:function(t,n,r){let i;t.setAttrs(r),t.setRestricted(),t.getAccessibleRepositories=function(){return t.isRestricted?t.getWritableRepositories():t.getReadableRepositories()},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 u(){return function(e,t){$(t).click((function(e){e.preventDefault(),e.stopPropagation()}))}}function c(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.multiRequired||(e.multiRequired=[]);const i=n.multiRequireElement,a=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 a(e),s(),e})),r.$formatters.unshift((function(e){return a(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",a).directive("ontoLoaderNew",s).directive("coreErrors",o).directive("eatClick",u).directive("multiRequired",c).directive("searchResourceInput",h).directive("keyboardShortcuts",f).directive("inactivePluginDirective",p),i.$inject=[],a.$inject=[],s.$inject=["$timeout"],o.$inject=["$timeout"],u.$inject=[],c.$inject=[];const l={table:"table",visual:"visual"};function h(e,t,n,i,a,s,o,u,c,h,f){return{restrict:"EA",scope:{namespacespromise:"=",autocompletepromisestatus:"=",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(a,p,d){p.autoCompleteStatus=void 0,p.autoCompleteWarning=!1,a.empty=!1,a.clear=!1,a.searchDisplayType=l;const g="true"===a.preserveSearch,m=p.find(".view-res-input");let v,y;a.textButtonLabel=a.textButton||"Table",a.visualButtonLabel=a.visualButton||"Visual",a.showClearInputIcon=!1,a.searchType=u.get(c.RDF_SEARCH_TYPE)||l.table,a.searchInput="",a.changeSearchType=function(e){a.searchType=e,u.set(c.RDF_SEARCH_TYPE,a.searchType)},a.$on("addStartFixedNodeAutomatically",(function(e,t){a.searchInput||!t.startIRI?a.checkIfValidAndSearchText():a.visualCallback({uri:t.startIRI,label:""})})),a.clearInput=function(){a.searchInput="",a.selectedElementIndex=-1,a.autoCompleteUriResults=[],a.showClearInputIcon=!1,u.remove(c.RDF_SEARCH_INPUT),u.remove(c.RDF_SEARCH_EXPANDED_URI),u.remove(c.RDF_RESOURCE_DESCRIPTION)},a.$watch("namespacespromise",(function(){angular.isDefined(a.namespacespromise)&&a.namespacespromise.success((function(e){p.namespaces=e.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}}))})).error((function(e){const n=getError(e);t.error(n,f.instant("error.getting.namespaces.for.repo"))}))})),a.$watch("autocompletepromisestatus",(function(){!h.isActiveRepoFedXType()&&angular.isDefined(a.autocompletepromisestatus)&&a.autocompletepromisestatus.success((function(e){p.autoCompleteStatus=!!e,""!==a.searchInput&&a.onChange()})).error((function(){t.error(f.instant("explore.error.autocomplete"))}))})),a.$watch("empty",(function(){g||(a.searchInput="",a.empty=!1)})),a.$watch("clear",(function(){a.clear&&(a.clearInput(),a.clear=!1)}));const b=function(t){const n=t.type||"uri";"true"===a.openInNewTab?x(!1,t):e.path("resource").search(n,t.uri)},w=function(t){const n=t.type||"uri";"true"===a.openInNewTab?x(!0,t):e.path("graphs-visualizations").search(n,t.uri)},x=function(e,t){const n=e?"graphs-visualizations":"resource";window.open(`${n}?uri=${encodeURIComponent(t.uri)}`)};angular.isUndefined(d.$attr.textCallback)&&(a.textCallback=b),angular.isUndefined(d.$attr.visualCallback)&&(a.visualCallback=w),d.$attr.textButton&&!a.textButton?a.textCallback=a.visualCallback:d.$attr.visualButton&&!a.visualButton&&(a.visualCallback=a.textCallback),d.$attr.placeholder?a.placeholder=d.$attr.placeholder:a.placeholder=`${f.instant("search.resources.msg")}...`,angular.isDefined(d.$attr.uriValidation)?a.uriValidation=d.$attr.uriValidation:a.uriValidation="true",angular.isDefined(d.$attr.preserveInput)&&(a.preserveInput=d.$attr.preserveInput),a.getResultItemHtml=function(e){return o.trustAsHtml(e.description)},a.searchRdfResource=function(e,t){if("prefix"===e.type)a.searchInput=F(e.value+":"),m.focus(),a.onChange();else{let n;n=angular.isUndefined(e)?a.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}),g?(a.selectedElementIndex=a.activeSearchElm,u.set(c.RDF_SEARCH_EXPANDED_URI,v),u.set(c.RDF_SEARCH_INPUT,a.searchInput),u.set(c.RDF_RESOURCE_DESCRIPTION,e.description)):"true"===a.preserveInput?(a.searchInput=n,a.autoCompleteUriResults=[]):(a.searchInput="",a.autoCompleteUriResults=[])}},a.searchRdfResourceByEvent=function(e,t){a.searchType===l.visual||t.ctrlKey||t.metaKey?a.searchRdfResource(e,a.visualCallback):a.searchRdfResource(e,a.textCallback)};const S=function(e){const n=a.searchInput;""!==n?"false"!==a.uriValidation?p.autoCompleteStatus&&a.autoCompleteUriResults&&a.autoCompleteUriResults.length>0?"prefix"===a.autoCompleteUriResults[a.activeSearchElm].type?(a.searchInput=F(a.autoCompleteUriResults[a.activeSearchElm].value+":"),a.autoCompleteUriResults=[]):a.searchRdfResource(a.autoCompleteUriResults[a.activeSearchElm],e):A(n)?a.searchRdfResource(n,e):t.error(f.instant("invalid.uri.msg")):a.searchRdfResource(n,e):t.error(f.instant("fill.input.field.msg"))};function E(){let e=-1;const n=u.get(c.RDF_RESOURCE_DESCRIPTION);n&&a.autoCompleteUriResults&&(e=a.autoCompleteUriResults.findIndex(e=>e.description===n),a.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_"+a.selectedElementIndex);e.animate({scrollTop:t.offset().top-e.offset().top+e.scrollTop()})}()})).catch((function(e){t.error(getError(e),f.instant("no.prev.search.element"))}))),a.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 F(e){if(!/^<?(http|urn).*>?/.test(e)){const t=e.split(":"),r=t[0],i=t[1];if(!angular.isUndefined(i)){const e=n.getNamespaceUriForPrefix(p.namespaces,r);if(v=e!==v?e:v,v)return m.val(v),v+i}}return e}a.checkIfValidAndSearchText=function(){S(a.textCallback)},a.checkIfValidAndSearchVisual=function(){S(a.visualCallback)},a.checkIfValidAndSearchEvent=function(e){a.searchType===l.visual||e.ctrlKey||e.metaKey?S(a.visualCallback):S(a.textCallback)},a.onChange=function(){return a.showClearInputIcon=a.clearInputIcon,g&&u.set(c.RDF_SEARCH_INPUT,a.searchInput),"false"!==a.uriValidation&&(a.searchInput=F(a.searchInput),p.autoCompleteStatus)?function(e){let t=e.replace(v,v+";");if(p.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),y&&y.resolve(),y=s.defer(),i.getAutocompleteSuggestions(t,y.promise).then((function(e){y=null,a.autoCompleteUriResults=e.data.suggestions,a.activeSearchElm=0}));return Promise.resolve()}(a.searchInput):Promise.resolve()},a.onKeyDown=function(e){if(13===e.keyCode)e.preventDefault(),"false"!==a.uriValidation?p.autoCompleteStatus?a.checkIfValidAndSearchEvent(e):A(e.target.value)?a.searchRdfResourceByEvent(e.target.value,e):t.error(f.instant("invalid.uri.msg")):a.searchRdfResourceByEvent(e.target.value,e);else if(a.searchInput.length>0&&!p.autoCompleteWarning&&!p.autoCompleteStatus){p.autoCompleteWarning=!0;const e=Object(r.decodeHTML)(f.instant("explore.autocomplete.warning.msg"));t.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}if(p.autoCompleteStatus&&!angular.isUndefined(a.autoCompleteUriResults)){if(40===e.keyCode&&a.activeSearchElm<a.autoCompleteUriResults.length-1&&(a.activeSearchElm++,a.searchInput=a.autoCompleteUriResults[a.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&&a.activeSearchElm>0&&(e.preventDefault(),a.activeSearchElm--,a.searchInput=a.autoCompleteUriResults[a.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(g)return;a.searchInput="",a.autoCompleteUriResults=[]}a.searchInput||a.clearInput()}},a.$on("rdfResourceSearchExpanded",(function(){(g?(a.preserveInput="true",a.searchInput=u.get(c.RDF_SEARCH_INPUT)||"",v=u.get(c.RDF_SEARCH_EXPANDED_URI),a.onChange()):Promise.resolve()).then((function(){E()}))})),a.setActiveClassOnMouseMove=function(e){p.autoCompleteStatus&&(a.activeSearchElm=e)}}}}function f(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 p(e,t,n,i,a,s){return{restrict:"E",transclude:!0,scope:{loadSaved:"&",setPluginActive:"&",pluginName:"@",humanReadablePluginName:"@"},templateUrl:"js/angular/core/templates/inactive-plugin-warning-page.html",link:function(o){function u(){if(a.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType())return t.checkPluginIsActive(o.pluginName).done((function(e){o.pluginIsActive=e.indexOf("true")>0,o.setPluginActive({isPluginActive:o.pluginIsActive})})).fail((function(t){e.error(getError(t),s.instant("check.active.plugin.failure"))}))}o.pluginIsActive=!0,o.activatePlugin=function(){const i=Object(r.decodeHTML)(s.instant("activate.plugin.warning.msg",{humanReadablePluginName:o.humanReadablePluginName}));n.openSimpleModal({title:s.instant("activate.plugin.confirmation"),message:`<p>${i}</p>`,warning:!0}).result.then((function(){t.activatePlugin(o.pluginName).done((function(){o.pluginIsActive=!0,o.setPluginActive({isPluginActive:o.pluginIsActive}),o.loadSaved()})).fail((function(t){e.error(getError(t),s.instant("activate.plugin.failure"))}))}))};const c=o.$on("repositoryIsSet",(function(){u()}));window.addEventListener("beforeunload",(function e(){c(),window.removeEventListener("beforeunload",e)})),o.$on("checkIsActive",u),u()}}}h.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$rootScope","$q","$sce","LocalStorageAdapter","LSKeys","$repositories","$translate"],f.$inject=["$document"],p.$inject=["toastr","RDF4JRepositoriesRestService","ModalService","$repositories","$licenseService","$translate"]},function(e,t,n){"use strict";n.r(t);n(3),n(19),n(20);var r=n(1);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",function(e,t,n,i,a,s,o){const u=this;i.deniedPermissions={},i.setPermissionDenied=function(e){return!("/"===e||"/login"===e||!u.isAuthenticated())&&(i.deniedPermissions[e]=!0,!0)},i.hasPermission=function(){const e=n.path();return!i.deniedPermissions[e]},i.redirectToLogin=function(e,t){return u.authTokenIsType("Bearer")&&(e=!0),u.clearAuthenticationInternal(),0!==n.url().indexOf("/login")&&(i.returnToUrl=n.url()),n.path("/login"),t?n.search("noaccess"):e&&n.search("expired"),new Promise(e=>{setTimeout(()=>{e(!0)},100)})},i.hasExternalAuthUser=function(){return u.hasExternalAuthUser()},this.authStorageName="com.ontotext.graphdb.auth",this.securityEnabled=!0,this.freeAccess=!1,this.hasOverrideAuth=!1,this.externalAuthUser=!1,this.securityInitialized=!1;const c=this;this.clearStorage=function(){localStorage.removeItem(c.authStorageName)},this.getAuthenticatedUserFromBackend=function(e,t){a.getAuthenticatedUser().success((function(e,t,n){c.auth&&c.auth.startsWith("GDB")?(c.externalAuthUser=!1,c.principal=e,i.$broadcast("securityInit",c.securityEnabled,!0,c.freeAccess)):c.openIDEnabled&&c.auth&&c.auth.startsWith("Bearer")?c.authenticate(e,c.auth):(c.externalAuthUser=!0,c.authenticate(e,""))})).error((function(){e||!c.freeAccess?i.redirectToLogin(!1,t):(c.securityInitialized=!0,c.hasExplicitAuthentication()||c.clearAuthentication())}))},this.initSecurity=function(){this.securityInitialized=!1,this.auth=localStorage.getItem(this.authStorageName),a.getSecurityConfig().then((function(e){if(c.securityEnabled=e.data.enabled,c.externalAuth=e.data.hasExternalAuth,c.authImplementation=e.data.authImplementation,c.openIDEnabled=e.data.openIdEnabled,c.passwordLoginEnabled=e.data.passwordLoginEnabled,c.securityEnabled){const t=e.data.freeAccess;c.freeAccess=t.enabled,c.freeAccess&&(c.freeAccessPrincipal={authorities:t.authorities,appSettings:t.appSettings}),c.openIDEnabled?(c.openIDConfig=e.data.methodSettings.openid,c.gdbUrl=n.absUrl().replace(n.url().substr(1),""),s.initOpenId(c.openIDConfig,c.gdbUrl,(function(e){c.auth=s.authHeaderGraphDB(),u.setAuthHeaders(),console.log("oidc: set id/access token as GraphDB auth"),c.getAuthenticatedUserFromBackend(!0,e)}),(function(){console.log("oidc: not logged or login error"),c.authTokenIsType("Bearer")?setTimeout(()=>{i.redirectToLogin(!0)},0):c.getAuthenticatedUserFromBackend()}))):c.getAuthenticatedUserFromBackend()}else{c.clearStorage();const t=e.data.overrideAuth;c.hasOverrideAuth=t.enabled,c.hasOverrideAuth?(c.principal={username:"overrideauth",authorities:t.authorities,appSettings:t.appSettings},i.$broadcast("securityInit",c.securityEnabled,!0,c.hasOverrideAuth)):a.getAdminUser().then((function(e){c.principal={username:"admin",appSettings:e.data.appSettings,authorities:e.data.grantedAuthorities},i.$broadcast("securityInit",c.securityEnabled,!0,c.hasOverrideAuth)}))}}))},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.getAuthToken=function(){return this.auth},this.authTokenIsType=function(e){return this.auth&&this.auth.startsWith(e)},this.loginOpenID=function(){s.login(this.openIDConfig,this.gdbUrl)},this.toggleSecurity=function(e){e!==this.securityEnabled&&(this.securityEnabled=e,a.toggleSecurity(e).then((function(){t.success(o.instant("jwt.auth.security.status",{status:e?"enabled.status":"disabled.status"})),c.clearStorage(),c.initSecurity()}),(function(e){t.error(e.data.error.message,o.instant("common.error"))})))},this.toggleFreeAccess=function(e,n,r,s){(e!==this.freeAccess||s)&&(this.freeAccess=e,this.freeAccessPrincipal=e?{authorities:n,appSettings:r}:void 0,a.setFreeAccess({enabled:e?"true":"false",authorities:n,appSettings:r}).then((function(){s?t.success(o.instant("jwt.auth.free.access.updated.msg")):t.success(o.instant("jwt.auth.free.access.status",{status:e?"enabled.status":"disabled.status"}))}),(function(e){t.error(e.data.error.message,o.instant("common.error"))})),i.$broadcast("securityInit",this.securityEnabled,this.hasExplicitAuthentication(),this.freeAccess))},this.setAuthHeaders=function(){return new Promise(t=>{const n=this.auth?this.auth:void 0;e.defaults.headers.common.Authorization=n,e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers.Authorization=n,$.ajaxSetup().headers["X-Requested-With"]="XMLHttpRequest",setTimeout(()=>{t(!0)})})},this.setAuthHeaders(),this.authenticate=function(e,t){return new Promise(n=>{c.clearStorage(),t&&(this.auth=t,localStorage.setItem(c.authStorageName,this.auth),this.externalAuthUser=!1),this.principal=e,i.deniedPermissions={},this.securityInitialized=!0,c.setAuthHeaders().then(()=>{i.$broadcast("securityInit",this.securityEnabled,c.hasExplicitAuthentication(),this.freeAccess)}),setTimeout(()=>{n(!0)})})},this.authenticateOpenID=function(e){this.clearStorage(),e&&(this.auth=e,localStorage.setItem(this.authStorageName,this.auth),this.externalAuthUser=!1)},this.hasExternalAuthUser=function(){return this.externalAuthUser},this.hasExplicitAuthentication=function(){return null!=this.auth||this.externalAuthUser},this.getPrincipal=function(){return this.principal},this.clearAuthenticationInternal=function(){s.softLogout(),this.auth=null,this.principal=this.freeAccessPrincipal,this.clearStorage(),this.setAuthHeaders()},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.checkForWrite=function(e,t,n){return"WRITE_REPO"===e?this.canWriteRepo(t,n):this.hasRole(e)},this.hasAdminRole=function(){return this.isAdmin()||this.hasRole(r.UserRole.ROLE_REPO_MANAGER)},this.canWriteRepo=function(e,t){return!_.isEmpty(e)&&!_.isEmpty(t)&&(!this.securityEnabled&&!this.hasOverrideAuth||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,t,"WRITE")))},this.canReadRepo=function(e,t){return!_.isEmpty(e)&&!_.isEmpty(t)&&(!this.securityEnabled||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,t,"READ")))},this.checkRights=function(e,t,n){for(let e=0;e<this.principal.authorities.length;e++){const r=this.principal.authorities[e],i=r.split("_",2),a=r.slice(i[0].length+i[1].length+2);if(i[0]===n&&(a===t||"SYSTEM"!==t&&"*"===a))return!0}return!1}}])},function(e,t){angular.module("graphdb.framework.rest.monitoring.service",[]).factory("MonitoringRestService",i),i.$inject=["$http"];const n="rest/monitor",r=`${n}/query`;function i(e){return{monitorResources:function(){return e.get(`${n}/resource`)},monitorGC:function(){return e.post(`${n}/resource/gc`)},monitorQuery:function(){return e.get(r)},abortQueryByAlias:function(t){return e.delete(`${r}?queryAlias=${encodeURIComponent(t)}`)},deleteQuery:function(t){return e.delete(`${r}?queryId=${encodeURIComponent(t)}`)},getQueryCount:function(){return e({url:`${r}/count`,method:"GET",timeout:1e4})},checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")}}}},function(e,t){angular.module("graphdb.framework.rest.sparql.service",[]).factory("SparqlRestService",i),i.$inject=["$http"];const n="rest/sparql",r=`${n}/saved-queries`;function i(e){return{getSavedQueries:function(){return e.get(r)},getSavedQuery:function(t,n){let i="";null!=n&&(i=`&owner=${encodeURIComponent(n)}`);return e.get(`${r}?name=${encodeURIComponent(t)}${i}`)},addKnownPrefixes:function(t){return e.post(`${n}/addKnownPrefixes`,t)},editSavedQuery:function(t){return e.put(r,t)},deleteSavedQuery:function(t){return e.delete(`${r}?name=${encodeURIComponent(t)}`)},addNewSavedQuery:function(t){return e.post(r,t)}}}},function(e,t){angular.module("graphdb.framework.rest.rdf4j.repositories.service",[]).factory("RDF4JRepositoriesRestService",a),a.$inject=["$http","$repositories","$translate"];const n="INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin> '{{pluginName}}' .}",r="select ?o where {\n?s <http://www.ontotext.com/owlim/system#listplugins> ?o .\nfilter(str(?s) = '{{pluginName}}')\n} ",i="repositories";function a(e,t,a){return{getNamespaces:function(t){return e.get(`${i}/${t}/namespaces`)},getRepositoryNamespaces:function(){return e.get(`${i}/${t.getActiveRepository()}/namespaces`)},updateNamespacePrefix:function(t,n,r){return e({url:`${i}/${t}/namespaces/${r}`,method:"PUT",data:n})},deleteNamespacePrefix:function(t,n){return e({url:`${i}/${t}/namespaces/${n}`,method:"DELETE"})},addStatements:function(t,n){return e({url:`${i}/${t}/statements`,method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},activatePlugin:function(e){return $.ajax({method:"POST",url:`${i}/${t.getActiveRepository()}/statements`,data:{update:n.replace("{{pluginName}}",e)}})},checkPluginIsActive:function(e){return $.ajax({method:"GET",url:`${i}/${t.getActiveRepository()}`,data:{query:r.replace("{{pluginName}}",e)}})},getRepositorySize:function(){return e.get(`${i}/${t.getActiveRepository()}/size`)},getGraphs:s,resolveGraphs:function(){const e=t.getActiveRepository();let n=[];if(e)return s(e).success((function(e){e.results.bindings.unshift({contextID:{type:"default",value:a.instant("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),n=e.results.bindings}));return n}};function s(t){return e.get(`${i}/${t}/contexts`)}}},function(e,t){function n(e,t,n,r){e.title=n,e.message=r,e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}function r(e,t,n,r,i){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","$modalInstance","title","message"],r.$inject=["$scope","$modalInstance","uri","toastr","$translate"],i.$inject=["$scope","$modalInstance","query","toastr","$translate"]},function(e,t){angular.module("graphdb.framework.rest.autocomplete.service",[]).factory("AutocompleteRestService",s);const n="rest/autocomplete/",r=`${n}labels`,i=`${n}enabled`,a=`${n}iris`;function s(e){return{checkAutocompleteStatus:function(){return e.get(i)},refreshIndexStatus:function(){return e.get(`${n}status`)},refreshLabelConfig:function(){return e.get(r)},addLabelConfig:function(t){return e.put(r,t)},removeLabelConfig:function(t){return e.delete(r,{data:t,headers:{"Content-Type":"application/json;charset=utf-8"}})},toggleAutocomplete:function(t){return e.post(`${i}?enabled=${t}`)},refreshIndexIRIs:function(){return e.get(a)},toggleIndexIRIs:function(t){return e.post(`${a}?enabled=${t}`)},buildIndex:function(){return e.post(`${n}reIndex`)},interruptIndexing:function(){return e.post(`${n}interrupt`)},checkForPlugin:function(){return e.get(`${n}pluginFound`)},getAutocompleteSuggestions:function(t,r){return e.get(`${n}query`,{params:{q:t},timeout:r})}}}s.$inject=["$http"]},function(e,t){angular.module("graphdb.framework.rest.plugins.service",[]).factory("PluginsRestService",s);const n="repositories/",r="INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#stopplugin>",i="INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin>",a="select ?s ?o where { ?s <http://www.ontotext.com/owlim/system#listplugins> ?o .}";function s(e){return{togglePlugin:function(t,a,s){return a?e.post(`${n}${t}/statements`,void 0,{params:{update:`${r} "${s}".}`}}):e.post(`${n}${t}/statements`,void 0,{params:{update:`${i} "${s}".}`}})},getPlugins:function(t){return e.get(`${n}${t}`,{params:{query:a}})}}}s.$inject=["$http"]},function(e,t,n){"use strict";n.r(t);n(3);angular.module("graphdb.framework.core.interceptors.unauthorized",["ngCookies"]).factory("$unauthorizedInterceptor",["$q","$location","$rootScope","$translate",function(e,t,n,r){return{responseError:function(i){let a=!1;return 401===i.status?i.config.url.indexOf("rest/security/authenticatedUser")<0&&!n.hasExternalAuthUser()&&(a=!0):403===i.status&&(n.setPermissionDenied(t.path())?console.log(r.instant("unauthorized.console.warning")):a=!0),a?Promise.resolve(n.redirectToLogin()).then(()=>e.reject(i)):e.reject(i)}}}])},,function(e,t,n){"use strict";n.r(t);var r=n(2);const i={headers:{"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",function(e,t,n,a,s){const o="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 a=u.pkceChallengeFromVerifier(i);n.location.href=u.getLoginUrl(r,a,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),a.error(s.instant("openid.auth.unknown.flow",{authFlow:i})))},this.getLoginUrl=function(e,t,n,r){const i=[];let a="";switch(r.authFlow){case"code":a="code",i.push("state="+encodeURIComponent(e)),i.push("code_challenge="+encodeURIComponent(t)),i.push("code_challenge_method=S256");break;case"code_no_pkce":a="code";break;case"implicit":a="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(a)}`,`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){u.openIdKeys={},e.keys.forEach((function(e){u.openIdKeys[e.kid]=e})),n()}))},this.initOpenId=function(e,t,r,o){u.clientId=e.clientId,u.tokenType=e.tokenType,u.idTokenAudience=e.clientId,u.idTokenIssuer=e.issuer,u.accessTokenAudience=e.tokenAudience,u.accessTokenIssuer=e.tokenIssuer,u.openIdTokenUrl=e.oidcTokenEndpoint;let c=e.oidcJwksUri;e.proxyOidc&&(c="rest/openid/jwks",u.openIdTokenUrl="rest/openid/token"),u.openIdEndSessionUrl=e.oidcEndSessionEndpoint,u.supportsOfflineAccess=e.oidcScopesSupported.includes("offline_access"),e.oracleDomain&&(i.headers["X-OAuth-Identity-Domain-Name"]=e.oracleDomain),u.withOpenIdKeys(c,(function(){if(u.isLoggedIn=u.hasValidIdToken(),u.isLoggedIn)u.setupTokensRefresh(!1,r,o);else if(u.hasValidRefreshToken())u.refreshTokens(r,o);else{const i=r;r=function(){u.isLoggedIn=!0,i(!0)},u.softLogout();const c=u.parseQueryString(n.location.search.substring(1));if(c.code)"code"===e.authFlow?u.getStorageItem("pkce_state")!==c.state?(a.error(s.instant("openid.auth.invalid.pkce.state")),console.log("oidc: PKCE state mismatch "+u.getStorageItem("pkce_state")+" != "+c.state),o()):u.retrieveTokensByCode(c.code,t,r,o):"code_no_pkce"===e.authFlow&&u.retrieveTokensByCode(c.code,t,r,o);else{const e=u.parseQueryString(n.location.pathname.substring(1));e.id_token?u.saveTokens(e,!0,!1,r):o()}}}))},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(),u.openIdEndSessionUrl&&(n.location.href=`${u.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=u.openIdKeys[n.kid];if(!i)return console.log("oidc: no key to verify JWT token (token considered invalid)"),!1;const a=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,a,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,o){const l={grant_type:"authorization_code",client_id:u.clientId,redirect_uri:n,code:t},h=u.getStorageItem("pkce_code_verifier");h&&(l.code_verifier=h);const f={...i.headers,"Content-type":"application/x-www-form-urlencoded; charset=utf-8"};e({method:"POST",url:u.openIdTokenUrl,headers:f,transformRequest:c,data:l}).success((function(e){u.saveTokens(e,!0,!1,r)})).error((function(e){a.error(s.instant("openid.auth.cannot.retrieve.token.msg",{error:getError(e)})),o()}))},this.refreshTokens=function(t,n){if(u.hasValidRefreshToken()){const r={grant_type:"refresh_token",client_id:u.clientId,refresh_token:u.getToken("refresh")},o={...i.headers,"Content-type":"application/x-www-form-urlencoded; charset=utf-8"};e({method:"POST",url:u.openIdTokenUrl,headers:o,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"),a.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};return""===e?t:(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"+(u.supportsOfflineAccess?" offline_access":"");return e&&(t+=" "+e),console.log(`oidc: requesting scopes '${t}'`),t},this.setStorageItem=function(e,t){localStorage.setItem(o+e,t)},this.getStorageItem=function(e){return localStorage.getItem(o+e)},this.removeStorageItem=function(e){localStorage.removeItem(o+e)}}])},function(e,t){angular.module("graphdb.framework.rest.security.service",[]).factory("SecurityRestService",o),o.$inject=["$http"];const n="rest/security",r=`${n}/user`,i=`${n}/authenticatedUser`,a=`${n}/freeaccess`,s="rest/roles";function o(e){return{getUser:function(t){return e.get(`${r}/${encodeURIComponent(t)}`)},getAdminUser:function(){return e.get(`${r}/admin`)},getUsers:function(){return e.get(r)},createUser:function(t){return e({method:"POST",url:`${r}/${encodeURIComponent(t.username)}`,headers:{"X-GraphDB-Password":t.pass},data:{appSettings:t.appSettings,grantedAuthorities:t.grantedAuthorities}})},updateUser:function(t){return e({method:"PUT",url:`${r}/${encodeURIComponent(t.username)}`,headers:{"X-GraphDB-Password":t.pass},data:{appSettings:t.appSettings,grantedAuthorities:t.grantedAuthorities}})},updateUserData:function(t){return e({method:"PATCH",url:`${r}/${encodeURIComponent(t.username)}`,headers:{"X-GraphDB-Password":t.pass},data:{appSettings:t.appSettings}})},deleteUser:function(t){return e.delete(`${r}/${encodeURIComponent(t)}`)},getFreeAccess:function(){return e.get(a)},setFreeAccess:function(t){return e.post(a,t)},getSecurityConfig:function(){return e.get(`${n}/all`)},toggleSecurity:function(t){return e.post(n,t?"true":"false")},getRoles:function(){return e.get(s)},getRolesMapping:function(t){return e.get(`${s}/mapping`,{params:t})},getAuthenticatedUser:function(){return e.get(`${i}`)}}}},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)},function(e,t,n){"use strict";n.r(t);n(3),n(12),n(15),n(16),n(11),n(6),n(7),n(13),n(29),n(30),n(10),n(8),n(24);var r=n(1),i=(n(4),n(25),n(0));function a(e,t,n,r,i,a,s,o,u,c){function l(){e.getActiveRepository()&&(e.getNamespacesPromise=c.getNamespaces(e.getActiveRepository()).success((function(){h()})),e.getActiveRepositorySize())}function h(){a.isLicenseValid()&&(e.getAutocompletePromise=s.checkAutocompleteStatus())}e.doClear=!1,e.getActiveRepositorySize=function(){const t=r.getActiveRepository();t&&(e.activeRepositorySizeError=void 0,u.getSize(t).then((function(t){e.activeRepositorySize=t.data})).catch((function(t){e.activeRepositorySizeError=t.data.message})))},e.$on("autocompleteStatus",(function(){h()})),e.$on("repositoryIsSet",l),e.$on("$routeChangeSuccess",(function(e,n,r){r&&(i.isAuthenticated()||i.isFreeAccessEnabled()?l():t.redirectToLogin())})),e.onKeyDown=function(t){27===t.keyCode&&(e.doClear=!0)}}function s(e,t,n,a,s,o,u,c,l,h,f,p,d,g,m,v,y,b,w,x,S,E){e.descr=E.instant("main.gdb.description"),e.documentation="",e.menu=t,e.tutorialState=1!==x.get(S.TUTORIAL_STATE),e.userLoggedIn=!1,e.embedded=o.search().embedded,e.productInfo=h;function A(){$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),$(".main-menu").addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".toggle-menu").hide()):$(window).width()>720&&"collapsedMenu"===x.get(S.MENU_STATE)?($(".container-fluid.main-container").addClass("expanded"),$(".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"),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"))}!function(){const t=new Date;e.currentYear=t.getFullYear(),e.previousYear=2002}(),e.$on("$routeChangeSuccess",(function(t,n,r){e.clicked=!1,$(".menu-element-root").removeClass("active"),f((function(){$(".menu-element.open a.menu-element-root").addClass("active"),$(".main-menu.collapsed .menu-element.open .menu-element-root").addClass("active")}),400),r&&c.checkLicenseStatus()})),l.$on("$translateChangeSuccess",(function(){e.menu.forEach((function(e){e.label=E.instant(e.labelKey),e.children&&e.children.forEach((function(e){e.label=E.instant(e.labelKey)}))})),l.helpInfo=w.trustAsHtml(Object(i.decodeHTML)(E.instant(l.helpInfo))),l.title=Object(i.decodeHTML)(E.instant(l.title)),e.initTutorial()})),e.checkMenu=function(){return $(".main-menu").hasClass("collapsed")},e.copyToClipboard=function(e){p.openCopyToClipboardModal(e)},e.goToAddRepo=function(){o.path("/repository/create").search({previous:"home"})},e.goToEditRepo=function(e){o.path("repository/edit/"+e).search({previous:"home"})},e.$on("$locationChangeSuccess",(function(){e.showFooter="/"===o.url()})),e.$on("repositoryIsSet",(function(){e.setRestricted(),x.clearClassHieararchyState()})),e.graphdbVersion=e.engineVersion=h.productVersion,e.workbenchVersion=h.Workbench,e.connectorsVersion=h.connectors,e.sesameVersion=h.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):(f((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.isCurrentPath=function(e){return o.path()==="/"+e},e.isCurrentSubmenuChildPath=function(t){return 0!==t.children.length&&t.children.some((function(t){return e.isCurrentPath(t.href)}))},"/"===o.path()?e.selected=-1:(f((function(){const t=o.path().replace("/",""),n=$('a[href^="'+t+'"]');e.selected=n.closest(".menu-element").index()-1}),200),e.isCurrentPath(o.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.getLocations=function(){return u.getLocations()},e.hasActiveLocation=function(){return u.hasActiveLocation()},e.getActiveLocation=function(){return u.getActiveLocation()},e.isLoadingLocation=function(){return u.isLoadingLocation()},e.getRepositories=function(){return u.getRepositories()},e.getReadableRepositories=function(){return u.getReadableRepositories()},e.getWritableRepositories=function(){return u.getWritableRepositories()},e.getActiveRepository=function(){return u.getActiveRepository()},e.canWriteRepoInActiveLocation=function(e){return n.canWriteRepo(u.getActiveLocation(),e)},e.canWriteActiveRepo=function(e){const t=u.getActiveRepository();return n.canWriteRepo(u.getActiveLocation(),t)&&("SYSTEM"!==t||!e)},e.getActiveRepositoryObject=function(){return _.find(e.getRepositories(),(function(t){return t.id===e.getActiveRepository()}))},e.isActiveRepoOntopType=function(){return u.isActiveRepoOntopType()},e.isActiveRepoFedXType=function(){return u.isActiveRepoFedXType()},e.isLicenseValid=function(){return c.isLicenseValid()},e.setAttrs=function(t){e.attrs=t},e.setRestricted=function(){e.attrs&&(e.isRestricted=e.attrs.hasOwnProperty("license")&&!c.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){u.setRepository(e)},e.principal=function(){return n.getPrincipal()},e.isIgnoreSharedQueries=function(){return n.getPrincipal()&&n.getPrincipal().appSettings.IGNORE_SHARED_QUERIES},e.logout=function(){n.clearAuthentication(),s.success("Signed out"),n.freeAccess?u.resetActiveRepository():n.isSecurityEnabled()&&l.redirectToLogin()},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 l.hasPermission()},e.canReadRepo=function(e,t){return n.canReadRepo(e,t)},e.checkForWrite=function(e,t,r){return n.checkForWrite(e,t,r)},e.setPopoverRepo=function(t){e.popoverRepo=t},e.getRepositorySize=function(){e.repositorySize={},e.popoverRepo&&(e.repositorySize.loading=!0,v.getSize(e.popoverRepo.id).then((function(t){e.repositorySize=t.data})))},e.getDegradedReason=function(){return u.getDegradedReason()},e.canManageRepositories=function(){return n.hasRole(r.UserRole.ROLE_REPO_MANAGER)&&!u.getDegradedReason()},e.getSavedQueries=function(){b.getSavedQueries().success((function(t){e.sampleQueries=t})).error((function(e){const t=getError(e);s.error(t,E.instant("query.editor.get.saved.queries.error"))}))},e.goToSparqlEditor=function(e){o.path("/sparql").search({savedQueryName:e.name,owner:e.owner,execute:!0})},e.declineTutorial=function(){$(".tutorial-container").slideUp("slow",(function(){x.set(S.TUTORIAL_STATE,1),e.tutorialState=!1}))},e.initTutorial=function(){if(!e.tutorialState&&"/"!==o.path())return;e.tutorialInfo=[{title:E.instant("main.info.title.welcome.page"),info:Object(i.decodeHTML)(E.instant("main.info.welcome.page"))},{title:E.instant("main.info.title.create.repo.page"),info:Object(i.decodeHTML)(E.instant("main.info.create.repo.page",{link:'<a href="https://graphdb.ontotext.com/documentation/'+e.getProductType()+'/configuring-a-repository.html" target="_blank">'}))},{title:E.instant("main.info.title.load.sample.dataset"),info:E.instant("main.info.load.sample.dataset")},{title:E.instant("main.info.title.run.sparql.query"),info:Object(i.decodeHTML)(E.instant("main.info.run.sparql.query"))},{title:E.instant("menu.rest.api.label"),info:Object(i.decodeHTML)(E.instant("main.info.rest.api"))}],e.activePage=0,$(".pages-wrapper .page-slide").css("opacity",100);const t=$(".main-container")[0].offsetWidth+200;f((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 w.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")},A(),$(window).resize((function(){angular.isDefined(e.menuState)?$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),$(".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"),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left")):A(),e.tutorialState&&"/"===o.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"),t.removeClass("collapsed"),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"),l.$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"),t.addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".main-menu.collapsed .menu-element.clicked").removeClass("clicked"),l.$broadcast("onToggleNavWidth",!0)}},e.$on("onToggleNavWidth",(function(t,n){if(e.menuState=n,n?x.set(S.MENU_STATE,"collapsedMenu"):x.set(S.MENU_STATE,"expandedMenu"),e.tutorialState&&"/"===o.path()){const t=$(".pages-wrapper")[0].offsetWidth+200;f((function(){const n=$(".pages-wrapper .page-slide");n.css("left",t+"px"),$(n[e.activePage]).css("left","0px")}),50)}})),e.numberOfActiveImports=0,e.getNumberOfActiveImportsRunning=!1,e.getNumberOfActiveImports=function(){e.getNumberOfActiveImportsRunning||e.canWriteActiveRepo()&&"SYSTEM"!==e.getActiveRepository()&&(e.getNumberOfActiveImportsRunning=!0,a({method:"GET",url:"rest/data/import/active/"+e.getActiveRepository(),timeout:1e4}).success((function(t){e.numberOfActiveImports=t})).finally((function(){e.getNumberOfActiveImportsRunning=!1})))},e.getQueriesRunning=!1,e.skipGetQueriesTimes=0;const F=function(){let e=0,t=1;return{next:function(){const n=t;return t=e+t,e=n,n},reset:function(){e=0,t=1}}}();e.getQueries=function(){e.getQueriesRunning||(e.skipGetQueriesTimes>0?e.skipGetQueriesTimes--:u.getActiveRepository()&&"SYSTEM"!==u.getActiveRepository()&&!u.isActiveRepoOntopType()&&e.hasRole(r.UserRole.ROLE_USER)?(e.getQueriesRunning=!0,y.getQueryCount().success((function(t){e.queryCount=t,F.reset()})).error((function(){e.queryCount=0,e.skipGetQueriesTimes=F.next()})).finally((function(){e.getQueriesRunning=!1}))):e.queryCount=0)};const C=d((function(){e.getDegradedReason()||(e.getQueries(),e.getNumberOfActiveImports())}),2e3);e.$on("$destroy",(function(){d.cancel(C)})),n.securityInitialized&&e.getSavedQueries(),e.$on("securityInit",(function(t,n,r,i){e.securityEnabled=n,e.userLoggedIn=r,!n||r||i?(c.checkLicenseStatus(),e.getSavedQueries()):"/login"!==o.path()&&l.redirectToLogin()})),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 c.showLicense},e.getLicense=function(){return c.license},e.isLicenseHardcoded=function(){return c.isLicenseHardcoded},e.getProductType=function(){return c.productType},e.getProductTypeHuman=function(){return c.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 a;a=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+=a+"s",s.replace(/( 0[a-z])+$/,"")},e.getHumanReadableTimestamp=function(e){const t=Date.now(),n=(t-e)/1e3;if(n<60)return E.instant("timestamp.moments.ago");if(n<600)return E.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 g("date")(e,"'"+E.instant("timestamp.today.at")+"' HH:mm");if(n<86400)return g("date")(e,"'"+E.instant("timestamp.yesterday.at")+"' HH:mm")}return g("date")(e,"'"+E.instant("timestamp.on")+"' yyyy-MM-dd '"+E.instant("timestamp.at")+"' HH:mm")}}function o(e,t,n){e.getRepositorySize=function(t){n.getSize(t).then((function(t){e.size=t.data}))}}angular.module("graphdb.workbench.se.controllers",["graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.repositories","graphdb.framework.core.services.licenseService","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.autocomplete.service","graphdb.framework.rest.plugins.service","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.utils.localstorageadapter","graphdb.framework.core.services.autocompleteStatus"]).controller("mainCtrl",s).controller("homeCtrl",a).controller("repositorySizeCtrl",o),a.$inject=["$scope","$rootScope","$http","$repositories","$jwtAuth","$licenseService","AutocompleteRestService","LicenseRestService","RepositoriesRestService","RDF4JRepositoriesRestService"],s.$inject=["$scope","$menuItems","$jwtAuth","$http","toastr","$location","$repositories","$licenseService","$rootScope","productInfo","$timeout","ModalService","$interval","$filter","LicenseRestService","RepositoriesRestService","MonitoringRestService","SparqlRestService","$sce","LocalStorageAdapter","LSKeys","$translate"],o.$inject=["$scope","$http","RepositoriesRestService"]},function(e,t){angular.module("graphdb.framework.rest.locations.service",[]).factory("LocationsRestService",i),i.$inject=["$http"];const n="rest/locations",r=`${n}/active`;function i(e){return{getLocations:function(){return e.get(n)},addLocation:function(t){return e.post(n,t)},editLocation:function(t){return e.put(n,t)},deleteLocation:function(t){return e.delete(`${n}?uri=${t}`)},enableLocation:function(t){return e.post(`${n}/activate`,t)},getActiveLocation:function(){return e({method:"GET",url:`${r}`,noCancelOnRouteChange:!0})},setDefaultRepository:function(t){return e({url:`${r}/default-repository`,method:"POST",data:{defaultRepository:t}})}}}},function(e,t){angular.module("graphdb.framework.core.services.licenseService",[]).service("$licenseService",["$rootScope","LicenseRestService","$translate",function(e,t,n){const r=this;this.checkLicenseStatus=function(){r.loadingLicense=!0,t.getHardcodedLicense().success((function(e){r.isLicenseHardcoded="true"===e})).error((function(){r.isLicenseHardcoded=!0})).then((function(){t.getLicenseInfo().then((function(e){r.license=e.data,r.showLicense=!0,r.loadingLicense=!1,i(r.license)}),(function(){r.license={message:n.instant("no.license.set.msg"),valid:!1},r.showLicense=!0,r.loadingLicense=!1,i(r.license)}))}))};const i=function(e){r.productType=e.productType,"standard"===r.productType?r.productTypeHuman="Standard":"enterprise"===r.productType?r.productTypeHuman="Enterprise":"free"===r.productType?r.productTypeHuman="Free":"graphdb"===r.productType&&(r.productTypeHuman="GraphDB")};this.checkLicenseStatus(),this.isLicenseValid=function(){return r.license&&r.license.valid}}])},function(e,t){angular.module("graphdb.framework.core.services.autocompleteStatus",[]).service("$autocompleteStatus",["$rootScope","AutocompleteRestService","LocalStorageAdapter","LSKeys",function(e,t,n,r){const i=this;this.setAutocompleteStatus=function(t){n.set(r.AUTOCOMPLETE_ENABLED,t),e.$broadcast("autocompleteStatus",t)},e.$watch((function(){return n.get(r.AUTOCOMPLETE_ENABLED)}),(function(e){i.setAutocompleteStatus(e)}),!0),e.$on("repositoryIsSet",(function(){t.checkAutocompleteStatus().success((function(e){i.setAutocompleteStatus(e)}))}))}])},function(e,t){
28
- /**
29
- * angular-cancel-on-navigate - AngularJS module that cancels HTTP requests on location change (navigation)
30
- * @version v0.1.0
31
- * @link https://github.com/AlbertBrand/angular-cancel-on-navigate
32
- * @license MIT
33
- *
34
- * ONTO: This helps with keeping the angular ajax pool under control when a big repo is being initialized
35
- * and an impatient user is clicking around the Workbench.
36
- */
37
- 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),a=new URL(r);i.origin===a.origin&&i.pathname===a.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)}}}])},function(e,t,n){"use strict";n.r(t);var r=n(0);function i(e,t,n,i,a,s,o,u,c,l){return{templateUrl:"js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html",restrict:"AE",link:function(a,h){const f="hidden-xs-up";function p(){u.isLicenseValid()&&(a.getAutocompletePromise=n.checkAutocompleteStatus())}function d(e){"search-box"===e.target.id||$(e.target).closest("#search-box").length||a.hideInput()}a.$on("autocompleteStatus",(function(){p()})),a.$on("repositoryIsSet",(function(){a.getActiveRepository()&&(a.getNamespacesPromise=i.getNamespaces(a.getActiveRepository()).success((function(){p()})))})),a.getActiveRepository=function(){return s.getActiveRepository()},a.showInput=function(){new Promise(e=>{h.find(".search-rdf-btn").addClass(f),h.find(".search-rdf-input").addClass("show-rdf-search-box"),t((function(){h.find(".close-rdf-search-btn").removeClass(f),h.find("search-resource-input .view-res-input").focus(),window.addEventListener("mousedown",d)}),200),a.isHomePage()?($("#search-resource-input-home input").focus(),c.info(Object(r.decodeHTML)(l.instant("search.resource.current.page.msg")),l.instant("search.resources.msg"),{allowHtml:!0})):(h.find(".search-rdf-btn").addClass("hidden-xs-up"),h.find(".search-rdf-input").addClass("show-rdf-search-box"),t((function(){h.find(".close-rdf-search-btn").removeClass("hidden-xs-up"),h.find("search-resource-input .view-res-input").focus(),window.addEventListener("mousedown",d)}),200)),setTimeout(()=>{e(!0)})}).then((function(){e.$broadcast("rdfResourceSearchExpanded")}))},a.hideInput=function(){h.find(".search-rdf-input").removeClass("show-rdf-search-box"),h.find(".close-rdf-search-btn").addClass(f),t((function(){h.find(".search-rdf-btn").removeClass(f),h.blur(),window.removeEventListener("mousedown",d)}),200)},a.onKeyDown=function(e){27===e.keyCode&&a.hideInput()},a.isHomePage=function(){return"/"===o.url()},a.isNotLoading=function(){return!a.isLoadingLocation()||a.isLoadingLocation()&&"/repository"===o.url()}}}}angular.module("graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch",[]).directive("rdfResourceSearch",i),i.$inject=["$rootScope","$timeout","AutocompleteRestService","RDF4JRepositoriesRestService","RepositoriesRestService","$repositories","$location","$licenseService","toastr","$translate"]},function(e,t,n){"use strict";n.r(t);n(4);function r(e,t,n,r){return{templateUrl:"js/angular/core/directives/languageselector/templates/languageSelector.html",restrict:"E",link:function(i){const a=t.get(n.PREFERRED_LANG),s=navigator.languages;if(i.selectedLang={},i.languages=[{key:"en",translation:"menu.btn.translate.en"},{key:"fr",translation:"menu.btn.translate.fr"}],e.fallbackLanguage("en"),i.changeLanguage=function(a){i.selectedLang=a,e.use(a.key),t.set(n.PREFERRED_LANG,a.key),r.setLanguage(i.selectedLang.key),i.$broadcast("language-changed",{locale:a.key})},a)i.selectedLang=i.languages.find(e=>e.key===a);else if(s){for(let e of s)if(i.selectedLang=i.languages.find(t=>t.key===e),i.selectedLang)break}else i.selectedLang=i.languages.find(e=>"en"===e.key);e.use(i.selectedLang.key),r.setLanguage(i.selectedLang.key)}}}angular.module("graphdb.framework.core.directives.languageselector.languageselector",["graphdb.framework.utils.localstorageadapter"]).directive("languageSelector",r).service("$languageService",[function(){this.language="en",this.setLanguage=function(e){this.language=e},this.getLanguage=function(){return this.language}}]),r.$inject=["$translate","LocalStorageAdapter","LSKeys","$languageService"]},function(e,t){var n;
38
- /*! 12.2.13 */
39
- !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){c.notify&&c.notify(e),l.progressFunc&&n((function(){l.progressFunc(e)}))}function a(e){return null!=r._start&&o?{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 u(){e(r).then((function(e){if(o&&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,c.resolve(e)}),(function(e){c.reject(e)}),(function(e){c.notify(e)}))}r.method=r.method||"POST",r.headers=r.headers||{};var c=r._deferred=r._deferred||t.defer(),l=c.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(a(e))}),!1),e.upload.addEventListener("load",(function(e){e.lengthComputable&&(e.config=r,i(a(e)))}),!1))}}),o?r._chunkSize&&r._end&&!r._finished?(r._start=r._end,r._end+=r._chunkSize,u()):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),u()}),(function(e){throw e})):r.resumeSize?r.resumeSize().then((function(e){r._start=e,r._chunkSize&&(r._end=r._start+r._chunkSize),u()}),(function(e){throw e})):(r._chunkSize&&(r._start=0,r._end=r._start+r._chunkSize),u()):u(),l.success=function(e){return l.then((function(t){e(t.data,t.status,t.headers,r)})),l},l.error=function(e){return l.then(null,(function(t){e(t.data,t.status,t.headers,r)})),l},l.progress=function(e){return l.progressFunc=e,l.then(null,null,(function(t){e(t)})),l},l.abort=l.pause=function(){return r.__XHR&&n((function(){r.__XHR.abort()})),l},l.xhr=function(e){return r.xhrFn=function(t){return function(){t&&t.apply(l,arguments),e.apply(l,arguments)}}(r.xhrFn),l},s.promisesCount++,l.finally&&l.finally instanceof Function&&l.finally((function(){s.promisesCount--})),l}function a(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 o=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&&o){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,a){if(void 0!==i)if(angular.isDate(i)&&(i=i.toISOString()),angular.isString(i))t.append(a,i);else if(s.isFile(i)){var o=n(i,t),u=a.split(",");u[1]&&(o.ngfName=u[1].replace(/^\s+|\s+$/g,""),a=u[0]),e._fileKey=e._fileKey||a,t.append(a,o,o.ngfName||o.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: "+a;i.$$ngfCircularDetection=!0;try{for(var c in i)if(i.hasOwnProperty(c)&&"$$ngfCircularDetection"!==c){var l=null==e.objectKey?"[i]":e.objectKey;i.length&&parseInt(c)>-1&&(l=null==e.arrayKey?l:e.arrayKey),r(t,i[c],a+l.replace(/[ik]/g,c))}}finally{delete i.$$ngfCircularDetection}}else t.append(a,i)}return t||(e=a(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 a=t[n];e.formDataAppender?e.formDataAppender(i,n,a):r(i,a,n)}return i}))),i(e)},this.http=function(t){return(t=a(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",a=new window.Blob([t],{type:i}),s=n.match(/.*\/(.+?)(\?.*)?$/);s.length>1&&(a.name=s[1]),r.resolve(a)}),(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 a(e,t,n){var i=[u.emptyPromise()];return angular.forEach(e,(function(r,a){0===r.type.indexOf("image/jpeg")&&u.attrGetter("ngfFixOrientation",t,n,{$file:r})&&i.push(u.happyPromise(u.applyExifRotation(r),r).then((function(t){e.splice(a,1,t)})))})),r.all(i)}function s(e,t,n,i){var a=u.attrGetter("ngfResize",t,n);if(!a||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(a instanceof Function){var s=r.defer();return a(e).then((function(r){o(r,e,t,n,i).then((function(e){s.resolve(e)}),(function(e){s.reject(e)}))}),(function(e){s.reject(e)}))}return o(a,e,t,n,i)}function o(e,t,n,i,a){function s(r,s){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;e.resizeIf=function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})};var c=u.resize(r,e);o.push(c),c.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),a.$ngfValidations.push({name:"resize",valid:!1}),u.applyModelValidation(a,t)}))}}for(var o=[u.emptyPromise()],c=0;c<t.length;c++)s(t[c],c);return r.all(o)}var u=i;return u.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=u.defaults[t];return null==n?n:angular.isString(n)?n:JSON.stringify(n)},u.attrGetter=function(t,n,r,i){var a=this.getAttrWithDefaults(n,t);if(!r)return a;try{return i?e(a)(r,i):e(a)(r)}catch(e){if(t.search(/min|max|pattern/i))return a;throw e}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngfModelOptions",t,n);return!r||!r.updateOn||r.updateOn.split(" ").indexOf(e)>-1},u.emptyPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.resolve.apply(e,n)})),e.promise},u.rejectPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.reject.apply(e,n)})),e.promise},u.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},u.updateModel=function(n,r,i,o,c,l,h){function f(a,s,c,h,f){r.$$ngfPrevValidFiles=a,r.$$ngfPrevInvalidFiles=s;var p=a&&a.length?a[0]:null,d=s&&s.length?s[0]:null;n&&(u.applyModelValidation(n,a),n.$setViewValue(f?p:a)),o&&e(o)(i,{$files:a,$file:p,$newFiles:c,$duplicateFiles:h,$invalidFiles:s,$invalidFile:d,$event:l});var g=u.attrGetter("ngfModelInvalid",r);g&&t((function(){e(g).assign(i,f?d:s)})),t((function(){}))}function p(){function e(){t((function(){f(w?g.concat(b):b,w?m.concat(y):y,c,v,x)}),E&&E.debounce?E.debounce.change||E.debounce:0)}var a=S?d:b;s(a,r,i,n).then((function(){S?u.validate(d,w?g.length:0,n,r,i).then((function(t){b=t.validsFiles,y=t.invalidsFiles,e()})):e()}),(function(){for(var t=0;t<a.length;t++){var n=a[t];if("resize"===n.$error){var r=b.indexOf(n);r>-1&&(b.splice(r,1),y.push(n)),e()}}}))}var d,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 w=u.attrGetter("ngfKeep",r,i);d=(c||[]).slice(0),("distinct"===w||!0===u.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(c){d=[],v=[];for(var n=0;n<c.length;n++)t(c[n])?v.push(c[n]):d.push(c[n])}}();var x=!w&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!w||d.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:c,$file:c&&c.length?c[0]:null,$newFiles:d,$duplicateFiles:v,$event:l});var S=u.attrGetter("ngfValidateAfterResize",r,i),E=u.attrGetter("ngfModelOptions",r,i);u.validate(d,w?g.length:0,n,r,i).then((function(e){h?f(d,[],c,v,x):(E&&E.allowInvalid||S?b=d:(b=e.validFiles,y=e.invalidFiles),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?a(b,r,i).then((function(){p()})):p())}))}},u}]),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 a(e,t,n,r,a,o,u,c){function l(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function h(){return g("ngfChange")||g("ngfSelect")}function f(t){if(c.shouldUpdateOn("change",n,e)){var i=t.__files_||t.target&&t.target.files,a=[];if(!i)return;for(var s=0;s<i.length;s++)a.push(i[s]);c.updateModel(r,n,e,h(),a.length?a:null,t)}}function p(e,r){function i(t){e.attr("id","ngf-"+t),r.attr("id","ngf-label-"+t)}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a];"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 d(t){c.shouldUpdateOn("click",n,e)&&b.val()&&(b.val(null),c.updateModel(r,n,e,h(),null,t,!0))}var g=function(e,t){return c.attrGetter(e,n,t)};c.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;l()||(b=function(){if(l())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"),p(e,n),s.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),b.bind("change",f),l()?t.bind("click",d):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;d(n);try{l()||document.body.contains(b[0])||(s.push({el:t,ref:b.parent()}),document.body.appendChild(b.parent()[0]),b.bind("change",f))}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",f),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(){l()||b.parent().remove(),angular.forEach(m,(function(e){e()}))})),o((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,f)}var s=[];return{restrict:"AEC",require:"?ngModel",link:function(e,n,i,s){a(e,n,i,s,0,t,0,r)}}}]),function(){function e(e,t,n,r,i,a,s,o){function u(a){var s=e.attrGetter("ngfNoObjectUrl",i,n);e.dataUrl(a,s).finally((function(){t((function(){var e=(s?a.$ngfDataUrl:a.$ngfBlobUrl)||a.$ngfDataUrl;o?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[a],(function(t){var c=s;if("ngfThumbnail"===a&&(c||(c={width:r[0].naturalWidth||r[0].clientWidth,height:r[0].naturalHeight||r[0].clientHeight}),0===c.width&&window.getComputedStyle)){var l=getComputedStyle(r[0]);l.width&&l.width.indexOf("px")>-1&&l.height&&l.height.indexOf("px")>-1&&(c={width:parseInt(l.width.slice(0,-2)),height:parseInt(l.height.slice(0,-2))})}return angular.isString(t)?(r.removeClass("ng-hide"),o?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]))||o&&0!==t.type.indexOf("image")?r.addClass("ng-hide"):c&&e.isResizeSupported()?(c.resizeIf=function(r,a){return e.attrGetter("ngfResizeIf",i,n,{$width:r,$height:a,$file:t})},e.resize(t,c).then((function(e){u(e)}),(function(e){throw e}))):u(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 a=i?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(a)return a;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 a;try{a=n.createObjectURL(e)}catch(n){return void t((function(){e.$ngfBlobUrl="",s.reject()}))}t((function(){if(e.$ngfBlobUrl=a,a){s.resolve(a,e),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:a,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 o=r.blobUrls.splice(0,1)[0];n.revokeObjectURL(o.url),r.blobUrlsTotalSize-=o.size}}}))}else{var o=new FileReader;o.onload=function(n){t((function(){e.$ngfDataUrl=n.target.result,s.resolve(n.target.result,e),t((function(){delete e.$ngfDataUrl}),1e3)}))},o.onerror=function(){t((function(){e.$ngfDataUrl="",s.reject()}))},o.readAsDataURL(e)}}else t((function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",s.reject()}))})),(a=i?e.$$ngfDataUrlPromise=s.promise:e.$$ngfBlobUrlPromise=s.promise).finally((function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]})),a},r}]),r.directive("ngfSrc",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,a){e(t,n,r,i,a,"ngfSrc",t.attrGetter("ngfResize",a,r),!1)}}}]),r.directive("ngfBackground",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,a){e(t,n,r,i,a,"ngfBackground",t.attrGetter("ngfResize",a,r),!0)}}}]),r.directive("ngfThumbnail",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,a){var s=t.attrGetter("ngfSize",a,r);e(t,n,r,i,a,"ngfThumbnail",s,t.attrGetter("ngfAsBackground",a,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 a=n&&((r?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!a?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,r)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&a?i?t.trustAsResourceUrl(a):a: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 a=0;a<i.length;a++){var s=e(i[a]);s.regexp?(n+="("+s.regexp+")",a<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 a=n.excludes.length;a--;){var s=new RegExp(n.excludes[a],"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 a=i;i&&!angular.isArray(i)&&(a=[i]),r.validate(a,0,e,t,n).then((function(){r.applyModelValidation(e,a)}))}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,a){var s="ngf"+n[0].toUpperCase()+n.substr(1),o=r.attrGetter(s,e,t,{$file:a});if(null==o&&(o=r.attrGetter("ngfValidate",e,t,{$file:a}))){var u=(i||n).split(".");o=o[u[0]],u.length>1&&(o=o&&o[u[1]])}return o},r.validate=function(e,n,i,a,s){function o(t,n,o){if(e){for(var u=e.length,c=null;u--;){var p=e[u];if(p){var d=r.getValidationAttr(a,s,t,n,p);null!=d&&(o(p,d,u)||(-1===l.indexOf(t)?(p.$error=t,(p.$errorMessages=p.$errorMessages||{})[t]=!0,p.$errorParam=d,-1===f.indexOf(p)&&f.push(p),h||e.splice(u,1),c=!1):e.splice(u,1)))}}null!==c&&i.$ngfValidations.push({name:t,valid:c})}}function u(n,o,u,p,d){function g(t,r,i){function a(a){if(a())if(-1===l.indexOf(n)){if(r.$error=n,(r.$errorMessages=r.$errorMessages||{})[n]=!0,r.$errorParam=i,-1===f.indexOf(r)&&f.push(r),!h){var s=e.indexOf(r);s>-1&&e.splice(s,1)}t.resolve(!1)}else{var o=e.indexOf(r);o>-1&&e.splice(o,1),t.resolve(!0)}else t.resolve(!0)}null!=i?p(r,i).then((function(e){a((function(){return!d(e,i)}))}),(function(){a((function(){return c("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),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=r.attrGetter("ngfDimensions",a)?r.imageDimensions(e).then((function(t){g(i,e,c("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))}),(function(){i.resolve(!1)})):"duration"===n&&null!=r.attrGetter("ngfDuration",a)?r.mediaDuration(e).then((function(t){g(i,e,c("ngfDuration",{$file:e,$duration:t}))}),(function(){i.resolve(!1)})):g(i,e,r.getValidationAttr(a,s,n,o,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 c=function(e,t){return r.attrGetter(e,a,s,t)},l=(r.attrGetter("ngfIgnoreInvalid",a,s)||"").split(" "),h=r.attrGetter("ngfRunAllValidations",a,s);if(null==e||0===e.length)return r.emptyPromise({validFiles:e,invalidFiles:[]});e=void 0===e.length?[e]:e.slice(0);var f=[];o("pattern",null,r.validatePattern),o("minSize","size.min",(function(e,t){return e.size+.1>=r.translateScalars(t)})),o("maxSize","size.max",(function(e,t){return e.size-.1<=r.translateScalars(t)}));var p=0;if(o("maxTotalSize",null,(function(t,n){return!((p+=t.size)>r.translateScalars(n))||(e.splice(0,e.length),!1)})),o("validateFn",null,(function(e,t){return!0===t||null===t||""===t})),!e.length)return r.emptyPromise({validFiles:[],invalidFiles:f});var d=t.defer(),g=[];return g.push(u("maxHeight","height.max",/image/,this.imageDimensions,(function(e,t){return e.height<=t}))),g.push(u("minHeight","height.min",/image/,this.imageDimensions,(function(e,t){return e.height>=t}))),g.push(u("maxWidth","width.max",/image/,this.imageDimensions,(function(e,t){return e.width<=t}))),g.push(u("minWidth","width.min",/image/,this.imageDimensions,(function(e,t){return e.width>=t}))),g.push(u("dimensions",null,/image/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(u("ratio",null,/image/,this.imageDimensions,(function(e,t){for(var n=t.toString().split(","),i=!1,a=0;a<n.length;a++)Math.abs(e.width/e.height-r.ratioToFloat(n[a]))<.01&&(i=!0);return i}))),g.push(u("maxRatio","ratio.max",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)<1e-4}))),g.push(u("minRatio","ratio.min",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)>-1e-4}))),g.push(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,(function(e,t){return e<=r.translateScalars(t)}))),g.push(u("minDuration","duration.min",/audio|video/,this.mediaDuration,(function(e,t){return e>=r.translateScalars(t)}))),g.push(u("duration",null,/audio|video/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(u("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,o("maxFiles",null,(function(e,t,r){return t>n+r})),d.resolve({validFiles:e,invalidFiles:f})})),d.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 a=t.defer();return n((function(){return 0!==e.type.indexOf("image")?void a.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,a.resolve({width:t,height:n})}function i(){s.remove(),a.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 o=0;(function e(){n((function(){s[0].parentNode&&(s[0].clientWidth?r():o++>10?i():e())}),1e3)})(),angular.element(document.getElementsByTagName("body")[0]).append(s)}),(function(){a.reject("load error")}))})),e.$ngfDimensionPromise=a.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 a=t.defer();return n((function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void a.reject("not media"):void r.dataUrl(e).then((function(t){function r(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),a.resolve(t)}function i(){s.remove(),a.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 o=0;(function e(){n((function(){s[0].parentNode&&(s[0].duration?r():o>10?i():e())}),1e3)})(),angular.element(document.body).append(s)}),(function(){a.reject("load error")}))})),e.$ngfDurationPromise=a.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,a,s,o,u,c){var l=t.defer(),h=document.createElement("canvas"),f=document.createElement("img");return f.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(f),f.onload=function(){var e=f.width,t=f.height;if(f.parentNode.removeChild(f),null==c||!1!==c(e,t))try{if(o){var p=n.ratioToFloat(o);p>e/t?i=(r=e)/p:r=(i=t)*p}r||(r=e),i||(i=t);var d=function(e,t,n,r,i){var a=i?Math.max(n/e,r/t):Math.min(n/e,r/t);return{width:e*a,height:t*a,marginX:e*a-n,marginY:t*a-r}}(e,t,r,i,u);h.width=Math.min(d.width,r),h.height=Math.min(d.height,i),h.getContext("2d").drawImage(f,Math.min(0,-d.marginX/2),Math.min(0,-d.marginY/2),d.width,d.height),l.resolve(h.toDataURL(s||"image/WebP",a||.934))}catch(e){l.reject(e)}else l.reject("resizeIf")},f.onerror=function(){f.parentNode.removeChild(f),l.reject()},f.src=e,l.promise};return n.dataUrltoBlob=function(e,t,n){for(var r=e.split(","),i=r[0].match(/:(.*?);/)[1],a=atob(r[1]),s=a.length,o=new Uint8Array(s);s--;)o[s]=a.charCodeAt(s);var u=new window.Blob([o],{type:i});return u.name=t,u.$ngfOrigSize=n,u},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 a=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);a.resolve(s)}catch(e){a.reject(e)}}),(function(t){"resizeIf"===t&&a.resolve(e),a.reject(t)}))}),(function(e){a.reject(e)})),a.promise},n}]),function(){function e(e,n,r,i,a,s,o,u,c,l){function h(){return n.attr("disabled")||v("ngfDropDisabled",e)}function f(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?p(e,n):d(r,i).then((function(e){p(e,n)}))}))}}function p(t,n){u.updateModel(i,r,e,v("ngfChange")||v("ngfDrop"),t,n)}function d(t,n){if(!u.shouldUpdateOn(t,r,e)||"string"!=typeof n)return u.rejectPromise([]);var i=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,(function(e,t,n){i.push(n)}));var a=[],s=[];if(i.length){angular.forEach(i,(function(e){a.push(u.urlToBlob(e).then((function(e){s.push(e)})))}));var o=l.defer();return l.all(a).then((function(){o.resolve(s)}),(function(e){o.reject(e)})),o.promise}return u.emptyPromise()}function g(t,n,i,a){function s(e,t){var n=l.defer();if(null!=e)if(e.isDirectory){var r=[u.emptyPromise()];if(f){var i={type:"directory"};i.name=i.path=(t||"")+e.name,p.push(i)}var a=e.createReader(),o=[],g=function(){a.readEntries((function(i){try{i.length?(o=o.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(o.slice(0),(function(n){p.length<=c&&h>=d&&r.push(s(n,(t||"")+e.name+"/"))})),l.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,f&&(e=u.rename(e,e.path)),p.push(e),d+=e.size,n.resolve()}catch(e){n.reject(e)}}),(function(e){n.reject(e)}));return n.promise}var c=u.getValidationAttr(r,e,"maxFiles");null==c&&(c=Number.MAX_VALUE);var h=u.getValidationAttr(r,e,"maxTotalSize");null==h&&(h=Number.MAX_VALUE);var f=v("ngfIncludeDir",e),p=[],d=0,g=[u.emptyPromise()];if(t&&t.length>0&&"file:"!==o.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&&(p.push(b),d+=b.size)}if(p.length>c||d>h||!a&&p.length>0)break}else if(null!=n)for(var w=0;w<n.length;w++){var x=n.item(w);if((x.type||x.size>0)&&(p.push(x),d+=x.size),p.length>c||d>h||!a&&p.length>0)break}var S=l.defer();return l.all(g).then((function(){if(a||f||!p.length)S.resolve(p);else{for(var e=0;p[e]&&"directory"===p[e].type;)e++;S.resolve([p[e]])}}),(function(e){S.reject(e)})),S.promise}var m=t(),v=function(e,t,n){return u.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")&&u.registerModelChangeValidator(i,r,e);var y,b=null,w=a(v("ngfStopPropagation")),x=1;n[0].addEventListener("dragover",(function(t){if(!h()&&u.shouldUpdateOn("drop",r,e)){if(t.preventDefault(),w(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}),a="dragover";if(angular.isString(i))a=i;else if(i&&(i.delay&&(x=i.delay),i.accept||i.reject)){var s=n.dataTransfer.items;if(null!=s&&s.length)for(var o=i.pattern||v("ngfPattern",e,{$event:n}),c=s.length;c--;){if(!u.validatePattern(s[c],o)){a=i.reject;break}a=i.accept}else a=i.accept}r(a)}(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()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),w(e)&&t.stopPropagation())}),!1),n[0].addEventListener("dragleave",(function(t){!h()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),w(e)&&t.stopPropagation(),b=s((function(){y&&n.removeClass(y),y=null,v("ngfDrag",e,{$isDragging:!1,$event:t})}),x||100))}),!1),n[0].addEventListener("drop",(function(t){!h()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),w(e)&&t.stopPropagation(),y&&n.removeClass(y),y=null,f(t.dataTransfer,t,"dropUrl"))}),!1),n[0].addEventListener("paste",(function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!h()&&u.shouldUpdateOn("paste",r,e)&&f(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,a,s){return{restrict:"AEC",require:"?ngModel",link:function(a,o,u,c){e(a,o,u,c,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,a,s){if(t()){var o=e(r.attrGetter("ngfDropAvailable",s));n((function(){o(i),o.assign&&o.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,a=2;i>a;){var s=r.getUint16(a,!1);if(a+=2,65505===s){if(1165519206!==r.getUint32(a+=2,!1))return n.resolve(t);var o=18761===r.getUint16(a+=6,!1);a+=r.getUint32(a+4,o);var u=r.getUint16(a,o);a+=2;for(var c=0;u>c;c++)if(274===r.getUint16(a+12*c,o)){var l=r.getUint16(a+12*c+8,o);return l>=2&&8>=l&&(r.setUint16(a+12*c+8,1,o),t.fixedArrayBuffer=e.target.result),t.orientation=l,n.resolve(t)}}else{if(65280!=(65280&s))break;a+=r.getUint16(a,!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 a=document.createElement("canvas"),s=document.createElement("img");s.onload=function(){try{a.width=t.orientation>4?s.height:s.width,a.height=t.orientation>4?s.width:s.height;var i=a.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 o=a.toDataURL(e.type||"image/WebP",.934);o=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),o);var u=n.dataUrltoBlob(o,e.name);r.resolve(u)}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,a,s="",o="",u="",c=0;do{r=(t=e[c++])>>2,i=(3&t)<<4|(n=e[c++])>>4,a=(15&n)<<2|(o=e[c++])>>6,u=63&o,isNaN(n)?a=u=64:isNaN(o)&&(u=64),s=s+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(u),t=n=o="",r=i=a=u=""}while(c<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),a=r.slice(0,i),s=r.slice(i),o=a;return(o=o.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,a="",s="",o=0,u=[];/[^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(o++))<<2|(r=this.KEY_STR.indexOf(e.charAt(o++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(o++)))>>2,a=(3&i)<<6|(s=this.KEY_STR.indexOf(e.charAt(o++))),u.push(t),64!==i&&u.push(n),64!==s&&u.push(a),t=n=a="",r=i=s=""}while(o<e.length);return u}};return n.restore(e,t)},n}])},function(e,t){
40
- /*! 12.2.13 */
41
- !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:{}},a=0;a<r.data.length;a++){var s=r.data[a];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,a,s,o=document.createElement("script"),u=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<u.length;i++)if((a=(s=u[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=s.substring(0,a+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),o.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(o)}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){a.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 a=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)}})},,function(e,t,n){var r;
42
- /*!
43
- * angular-translate - v2.19.0 - 2021-09-02
44
- *
45
- * Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
46
- */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,a,s,o,u,c,l,h,f,p,d,g,m,v,y,b,w={},x=[],S=e,E=[],A="translate-cloak",F=!1,C=!1,D=!0,R=".",$=!1,I=!1,T=0,P=!0,_="default",k={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()}},O=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,a=["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<a.length;e++)if((n=i[a[e]])&&n.length)return n;return null};O.displayName="angular-translate/service: getFirstBrowserLanguage";var j=function(){var e=O()||"";return k[_]&&(e=k[_](e)),e};j.displayName="angular-translate/service: getLocale";var N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H=function(){return this.toString().replace(/^\s+|\s+$/g,"")},B=function(e){return angular.isString(e)?e.toLowerCase():e},L=function(e){if(e){for(var t,n=[],r=B(e),i=0,s=x.length;i<s;i++)n.push(B(x[i]));if((i=N(n,r))>-1)return x[i];if(a)for(var o in a)if(a.hasOwnProperty(o)){var u=!1,c=Object.prototype.hasOwnProperty.call(a,o)&&B(o)===B(e);if("*"===o.slice(-1)&&(u=B(o.slice(0,-1))===B(e.slice(0,o.length-1))),(c||u)&&(t=a[o],N(n,B(t))>-1))return t}var l=e.split("_");return l.length>1&&N(n,B(l[0]))>-1?l[0]:void 0}},M=function(e,t){if(!e&&!t)return w;if(e&&!t){if(angular.isString(e))return w[e]}else angular.isObject(w[e])||(w[e]={}),angular.extend(w[e],U(t));return this};this.translations=M,this.cloakClassName=function(e){return e?(A=e,this):A},this.allowNamespaces=function(e){return void 0===e?D:(D=e,this)},this.nestedObjectDelimeter=function(e){return e?(R=e,this):R};var U=function(e,t,n,r){var i,a,s;if(t||(t=[]),n||(n={}),!D)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):(a=t.length?""+t.join(R)+R+i:i,t.length&&i===r&&(n[""+t.join(R)]="@:"+a),n[a]=s));return n};U.displayName="flatObject",this.addInterpolation=function(e){return E.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return p=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)?(o=!0,s=[e]):angular.isArray(e)&&(o=!1,s=e),angular.isString(i)&&N(s,i)<0&&s.push(i),this):o?s[0]:s};this.use=function(e){if(e){if(!w[e]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return u=e,this}return u},this.resolveClientLocale=function(){return j()};var K=function(e){return e?(S=e,this):h?h+S:S};this.storageKey=K,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 d=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return l=e,this},this.storagePrefix=function(e){return e?(h=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return f=e,this},this.usePostCompiling=function(e){return F=!!e,this},this.forceAsyncReload=function(e){return C=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},_=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():j();return i=x.length&&L(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(x=e,t&&(a=t),this):x},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?T:(T=e,this)},this.statefulFilter=function(e){return void 0===e?P:(P=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return I=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var a,h,_,k=t.get(p||"$translateDefaultInterpolation"),O=!1,B={},z={},G=function(e,t,n,o,c,f){!u&&i&&(u=i);var p=c&&c!==u?L(c)||c:u;if(c&&se(c),angular.isArray(e))return function(e){for(var i={},a=[],s=function(e){var a=r.defer(),s=function(t){i[e]=t,a.resolve([e,t])};return G(e,t,n,o,c,f).then(s,s),a.promise},u=0,l=e.length;u<l;u++)a.push(s(e[u]));return r.all(a).then((function(){return i}))}(e);var d=r.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=H.apply(e);var g=function(){var e=z[p]||z[i];if(h=0,l&&!e){var t=a.get(S);if(e=z[t],s&&s.length){var n=N(s,t);h=0===n?1:0,N(s,i)<0&&s.push(i)}}return e}();if(g){var m=function(){c||(p=u),re(e,t,n,o,p,f).then(d.resolve,d.reject)};m.displayName="promiseResolved",g.finally(m).catch(angular.noop)}else re(e,t,n,o,p,f).then(d.resolve,d.reject);return d.promise},W=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},Y=function(e){u=e,l&&a.put(G.storageKey(),u),n.$emit("$translateChangeSuccess",{language:e}),k.setLocale(u);var t=function(e,t){B[t].setLocale(u)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(B,t),n.$emit("$translateChangeEnd",{language:e})},X=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),O=!0;var a=y;"string"==typeof a&&(a=t.get(a));var s=angular.extend({},g,{key:e,$http:angular.extend({},{cache:a},g.$http)}),o=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)),O=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};o.displayName="onLoaderSuccess";var u=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return u.displayName="onLoaderError",t.get(d)(s).then(o,u),i.promise};if(l&&(!(a=t.get(l)).get||!a.put))throw new Error("Couldn't use storage '"+l+"', missing get() or put() method!");if(E.length){var J=function(e){var n=t.get(e);n.setLocale(i||u),B[n.getInterpolationIdentifier()]=n};J.displayName="interpolationFactoryAdder",angular.forEach(E,J)}var Q=function(e,t,n,i,a){var s=r.defer(),o=function(r){if(Object.prototype.hasOwnProperty.call(r,t)&&null!==r[t]){i.setLocale(e);var o=r[t];if("@:"===o.substr(0,2))Q(e,o.substr(2),n,i,a).then(s.resolve,s.reject);else{var c=i.interpolate(r[t],n,"service",a,t);c=ae(t,r[t],c,n,e),s.resolve(c)}i.setLocale(u)}else s.reject()};return o.displayName="fallbackTranslationResolver",function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call(w,e))t.resolve(w[e]);else if(z[e]){var n=function(e){M(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",z[e].then(n,t.reject)}else t.reject();return t.promise}(e).then(o,s.reject),s.promise},Z=function(e,t,n,r,i){var a,s=w[e];if(s&&Object.prototype.hasOwnProperty.call(s,t)&&null!==s[t]){if(r.setLocale(e),a=r.interpolate(s[t],n,"filter",i,t),a=ae(t,s[t],a,n,e,i),!angular.isString(a)&&angular.isFunction(a.$$unwrapTrustedValue)){var o=a.$$unwrapTrustedValue();if("@:"===o.substr(0,2))return Z(e,o.substr(2),n,r,i)}else if("@:"===a.substr(0,2))return Z(e,a.substr(2),n,r,i);r.setLocale(u)}return a},ee=function(e,n,r,i){return f?t.get(f)(e,u,n,r,i):e},te=function(e,t,n,i,a,o){var u=r.defer();if(e<s.length){var c=s[e];Q(c,t,n,i,o).then((function(e){u.resolve(e)}),(function(){return te(e+1,t,n,i,a,o).then(u.resolve,u.reject)}))}else if(a)u.resolve(a);else{var l=ee(t,n,a);f&&l?u.resolve(l):u.reject(W(t))}return u.promise},ne=function(e,t,n,r,i){var a;if(e<s.length){var o=s[e];(a=Z(o,t,n,r,i))||""===a||(a=ne(e+1,t,n,r))}return a},re=function(e,t,n,i,a,o){var u=r.defer(),c=a?w[a]:w,l=n?B[n]:k;if(c&&Object.prototype.hasOwnProperty.call(c,e)&&null!==c[e]){var p=c[e];if("@:"===p.substr(0,2))G(p.substr(2),t,n,i,a,o).then(u.resolve,u.reject);else{var d=l.interpolate(p,t,"service",o,e);d=ae(e,p,d,t,a),u.resolve(d)}}else{var g;f&&!O&&(g=ee(e,t,i)),a&&s&&s.length?function(e,t,n,r,i){return te(_>0?_:h,e,t,n,r,i)}(e,t,l,i,o).then((function(e){u.resolve(e)}),(function(e){u.reject(W(e))})):f&&!O&&g?i?u.resolve(i):u.resolve(g):i?u.resolve(i):u.reject(W(e))}return u.promise},ie=function(e,t,n,r,i){var a,o=r?w[r]:w,u=k;if(B&&Object.prototype.hasOwnProperty.call(B,n)&&(u=B[n]),o&&Object.prototype.hasOwnProperty.call(o,e)&&null!==o[e]){var c=o[e];"@:"===c.substr(0,2)?a=ie(c.substr(2),t,n,r,i):(a=u.interpolate(c,t,"filter",i,e),a=ae(e,c,a,t,r,i))}else{var l;f&&!O&&(l=ee(e,t,i)),r&&s&&s.length?(h=0,a=function(e,t,n,r){return ne(_>0?_:h,e,t,n,r)}(e,t,u,i)):a=f&&!O&&l?l:W(e)}return a},ae=function(e,n,r,i,a,s){var o=b;return o&&("string"==typeof o&&(o=t.get(o)),o)?o(e,n,r,i,a,s):r},se=function(e){w[e]||!d||z[e]||(z[e]=X(e).then((function(e){return M(e.key,e.table),e})))};G.preferredLanguage=function(e){return e&&V(e),i},G.cloakClassName=function(){return A},G.allowNamespaces=function(){return D},G.nestedObjectDelimeter=function(){return R},G.fallbackLanguage=function(e){if(null!=e){if(q(e),d&&s&&s.length)for(var t=0,n=s.length;t<n;t++)z[s[t]]||(z[s[t]]=X(s[t]));G.use(G.use())}return o?s[0]:s},G.useFallbackLanguage=function(e){if(null!=e)if(e){var t=N(s,e);t>-1&&(_=t)}else _=0},G.proposedLanguage=function(){return c},G.storage=function(){return a},G.negotiateLocale=L,G.use=function(e){if(!e)return u;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=L(e);return x.length>0&&!i?r.reject(e):(i&&(e=i),c=e,!C&&w[e]||!d||z[e]?z[e]?z[e].then((function(e){return c===e.key&&Y(e.key),t.resolve(e.key),e}),(function(e){return!u&&s&&s.length>0&&s[0]!==e?G.use(s[0]).then(t.resolve,t.reject):t.reject(e)})):(t.resolve(e),Y(e)):(z[e]=X(e).then((function(n){return M(n.key,n.table),t.resolve(n.key),c===e&&Y(n.key),n}),(function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)})),z[e].finally((function(){!function(e){c===e&&(c=void 0),z[e]=void 0}(e)})).catch(angular.noop)),t.promise)},G.resolveClientLocale=function(){return j()},G.storageKey=function(){return K()},G.isPostCompilingEnabled=function(){return F},G.isForceAsyncReloadEnabled=function(){return C},G.isKeepContent=function(){return I},G.refresh=function(e){if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=r.defer(),i={};function a(e){var t=X(e);return z[e]=t,t.then((function(t){w[e]={},M(e,t.table),i[e]=!0}),angular.noop),t}if(t.promise.then((function(){for(var e in w)w.hasOwnProperty(e)&&(e in i||delete w[e]);u&&Y(u)}),angular.noop).finally((function(){n.$emit("$translateRefreshEnd",{language:e})})),e)w[e]?a(e).then(t.resolve,t.reject):t.reject();else{var o=s&&s.slice()||[];u&&-1===o.indexOf(u)&&o.push(u),r.all(o.map(a)).then(t.resolve,t.reject)}return t.promise},G.instant=function(e,t,n,r,a){var o=r&&r!==u?L(r)||r:u;if(null===e||angular.isUndefined(e))return e;if(r&&se(r),angular.isArray(e)){for(var c={},l=0,h=e.length;l<h;l++)c[e[l]]=G.instant(e[l],t,n,r,a);return c}if(angular.isString(e)&&e.length<1)return e;e&&(e=H.apply(e));var p,d,g=[];i&&g.push(i),o&&g.push(o),s&&s.length&&(g=g.concat(s));for(var y=0,b=g.length;y<b;y++){var x=g[y];if(w[x]&&void 0!==w[x][e]&&(p=ie(e,t,n,o,a)),void 0!==p)break}return p||""===p||(m||v?p=W(e):(p=k.interpolate(e,t,"filter",a),f&&!O&&(d=ee(e,t,a)),f&&!O&&d&&(p=d))),p},G.versionInfo=function(){return"2.19.0"},G.loaderCache=function(){return y},G.directivePriority=function(){return T},G.statefulFilter=function(){return P},G.isReady=function(){return $};var oe=r.defer();oe.promise.then((function(){$=!0})),G.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),$?t.resolve():oe.promise.then(t.resolve),t.promise},G.getAvailableLanguageKeys=function(){return x.length>0?x:null},G.getTranslationTable=function(e){return(e=e||G.use())&&w[e]?angular.copy(w[e]):null};var ue=n.$on("$translateReady",(function(){oe.resolve(),ue(),ue=null})),ce=n.$on("$translateChangeEnd",(function(){oe.resolve(),ce(),ce=null}));if(d){if(angular.equals(w,{})&&G.use()&&G.use(G.use()),s&&s.length)for(var le=function(e){return M(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},he=0,fe=s.length;he<fe;he++){var pe=s[he];!C&&w[pe]||(z[pe]=X(pe).then(le))}}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,a,s){var o;return r=r||{},r=t.sanitize(r,"params",a,i),angular.isNumber(n)?o=""+n:angular.isString(n)?(o=e(n)(r),o=t.sanitize(o,"text",a,i)):o="",o}};return n}function r(e,t,n,r,i){"use strict";var a=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(o,u){var c=u.translateValues?u.translateValues:void 0,l=u.translateInterpolation?u.translateInterpolation:void 0,h=u.translateSanitizeStrategy?u.translateSanitizeStrategy:void 0,f=o[0].outerHTML.match(/translate-value-+/i),p="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",d="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(o,g,m){o.interpolateParams={},o.preText="",o.postText="",o.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(o);var v={},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=a.apply(g.text()).replace(/\n/g," "),r=n.match(p);if(angular.isArray(r)){o.preText=r[1],o.postText=r[3],v.translate=t(r[2])(o.$parent);var i=n.match(d);angular.isArray(i)&&i[2]&&i[2].length&&(y._unwatchOld=o.$watch(i[2],(function(e){v.translate=e,A()})))}else v.translate=n||void 0}else v.translate=e;A()},b=function(e){m.$observe(e,(function(t){v[e]=t,A()}))};!function(e,t,n){if(t.translateValues&&angular.extend(e,r(t.translateValues)(o.$parent)),f)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])}(o.interpolateParams,m,u);var w=!0;for(var x in m.$observe("translate",(function(e){void 0===e?y(""):""===e&&w||(v.translate=e,A()),w=!1})),m)m.hasOwnProperty(x)&&"translateAttr"===x.substr(0,13)&&x.length>13&&b(x);if(m.$observe("translateDefault",(function(e){o.defaultText=e,A()})),h&&m.$observe("translateSanitizeStrategy",(function(e){o.sanitizeStrategy=r(e)(o.$parent),A()})),c&&m.$observe("translateValues",(function(e){e&&o.$parent.$watch((function(){angular.extend(o.interpolateParams,r(e)(o.$parent))}))})),f){var S=function(e){m.$observe(e,(function(t){var n=s(e.substr(14,1))+e.substr(15);o.interpolateParams[n]=t}))};for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&"translateValue"===E.substr(0,14)&&"translateValues"!==E&&S(E)}var A=function(){for(var e in v)v.hasOwnProperty(e)&&void 0!==v[e]&&F(e,v[e],o,o.interpolateParams,o.defaultText,o.translateNamespace)},F=function(t,n,r,i,a,s){n?(s&&"."===n.charAt(0)&&(n=s+n),e(n,i,l,a,r.translateLanguage,r.sanitizeStrategy).then((function(e){C(e,r,!0,t)}),(function(e){C(e,r,!1,t)}))):C(n,r,!1,t)},C=function(t,r,i,a){if(i||void 0!==r.defaultText&&(t=r.defaultText),"translate"===a){(i||!i&&!e.isKeepContent()&&void 0===m.translateKeepContent)&&g.empty().append(r.preText+t+r.postText);var s=e.isPostCompilingEnabled(),o=void 0!==u.translateCompile,c=o&&"false"!==u.translateCompile;(s&&!o||c)&&n(g.contents())(r)}else{var l=m.$attr[a];"data-"===l.substr(0,5)&&(l=l.substr(5)),l=l.substr(15),g.attr(l,t)}};(c||f||m.translateDefault)&&o.$watch("interpolateParams",A,!0),o.$on("translateLanguageChanged",A);var D=i.$on("$translateChangeSuccess",A);g.text().length?m.translate?y(m.translate):y(""):m.translate&&y(m.translate),A(),o.$on("$destroy",D)}}}}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,i){var s,o,u,c={},l=function(){angular.forEach(s,(function(t,a){t&&(c[a]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,o,i.translateInterpolation,void 0,n.translateLanguage,u).then((function(e){r.attr(a,e)}),(function(e){r.attr(a,e)})))})),angular.forEach(c,(function(e,t){s[t]||(r.removeAttr(t),delete c[t])}))};a(n,i.translateAttr,(function(e){s=e}),l),a(n,i.translateValues,(function(e){o=e}),l),a(n,i.translateSanitizeStrategy,(function(e){u=e}),l),i.translateValues&&n.$watch(i.translateValues,l,!0),n.$on("translateLanguageChanged",l);var h=t.$on("$translateChangeSuccess",l);l(),n.$on("$destroy",h)}}}function a(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,a,s){var o=i.bind(this,a),u=r.bind(this,a);s.translateCloak&&s.translateCloak.length?(s.$observe("translateCloak",(function(t){e(t).then(o,u)})),t.$on("$translateChangeSuccess",(function(){e(s.translateCloak).then(o,u)}))):e.onReady(o)}}}}function o(){"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 u(){"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 c(e,t){"use strict";var n=function(n,r,i,a){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,a)};return t.statefulFilter()&&(n.$stateful=!0),n}function l(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"],c.$inject=["$parse","$translate"],l.$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,a=!1;(n={sanitize:function(e,t){return"text"===t&&(e=o(e)),e},escape:function(e,t){return"text"===t&&(e=s(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=c(e,o)),e},escapeParameters:function(e,t){return"params"===t&&(e=c(e,s)),e},sce:function(e,t,n){return"text"===t?e=u(e):"params"===t&&"filter"!==n&&(e=c(e,s)),e},sceParameters:function(e,t){return"params"===t&&(e=c(e,u)),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,o){var u={};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,c,l){return r||i||a||(o.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."),a=!0),c||null===c||(c=r),c?(l||(l="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(!u[n[i]])try{u[n[i]]=s.get(n[i])}catch(e){throw u[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=u[n[i]](e,t,r)}})),e}(e,t,l,angular.isArray(c)?c:[c])):e}}}];var s=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},o=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)},u=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},c=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]=c(e,t,n))})),n.splice(-1,1),r}return angular.isNumber(e)?e:!0===e||!1===e?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",o),o.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",c),c.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",l),l.displayName="$translationCache","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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 a(e){for(var t=0;t<e.length;t++){var n=e[t];if(1==n.nodeType)return n}}function s(e,t){return a(e)==a(t)}var o,u=t.noop,c=t.forEach,l=i.$$selectors,h=t.isArray,f=t.isString,p=t.isObject,d={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,x){function S(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 E(e){var t,r=n.defer();return r.promise.$$cancelFn=function(){t&&t()},y.$$postDigest((function(){t=e((function(){r.resolve()}))})),r.promise}function A(e){if(p(e))return e.tempClasses&&f(e.tempClasses)&&(e.tempClasses=e.tempClasses.split(/\s+/)),e}function F(e,n,i,a){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),A.push({event:t,fn:n}),x.push({event:t,fn:r}),!0}function o(t,n,r){var s=[];c(t,(function(e){e.fn&&s.push(e)}));var o=0;c(s,(function(t,c){var l=function(){e:{if(n){if((n[c]||u)(),++o<s.length)break e;n=null}r()}};switch(t.event){case"setClass":n.push(t.fn(e,p,d,l,a));break;case"animate":n.push(t.fn(e,i,a.from,a.to,l));break;case"addClass":n.push(t.fn(e,p||i,l,a));break;case"removeClass":n.push(t.fn(e,d||i,l,a));break;default:n.push(t.fn(e,l,a))}})),n&&0===n.length&&r()}var f=e[0];if(f){var p,d;a&&(a.to=a.to||{},a.from=a.from||{}),h(i)&&(p=i[0],d=i[1],p?d?i=p+" "+d:(i=p,n="addClass"):(i=d,n="removeClass"));var m="setClass"==n,v=m||"addClass"==n||"removeClass"==n||"animate"==n,y=e.attr("class")+" "+i;if(P(y)){var b=u,w=[],x=[],S=u,E=[],A=[];y=(" "+y).replace(/\s+/g,".");return c(function(e){if(e){var t=[],n={};e=e.substr(1).split("."),(g.transitions||g.animations)&&t.push(r.get(l[""]));for(var i=0;i<e.length;i++){var a=e[i],s=l[a];s&&!n[a]&&(t.push(r.get(s)),n[a]=!0)}return t}}(y),(function(e){!s(e,n)&&m&&(s(e,"addClass"),s(e,"removeClass"))})),{node:f,event:n,className:i,isClassBased:v,isSetClassOperation:m,applyStyles:function(){a&&e.css(t.extend(a.from||{},a.to||{}))},before:function(e){b=e,o(x,w,(function(){b=u,e()}))},after:function(e){S=e,o(A,E,(function(){S=u,e()}))},cancel:function(){w&&(c(w,(function(e){(e||u)(!0)})),b(!0)),E&&(c(E,(function(e){(e||u)(!0)})),S(!0))}}}}}function C(e,n,r,i,a,l,h,f){function p(t){var i="$animate:"+t;S&&S[i]&&0<S[i].length&&v((function(){r.triggerHandler(i,{event:e,className:n})}))}function g(){p("before")}function y(){p("after")}function b(){b.hasBeenRun||(b.hasBeenRun=!0,l())}function w(){if(!w.hasBeenRun){x&&x.applyStyles(),w.hasBeenRun=!0,h&&h.tempClasses&&c(h.tempClasses,(function(e){o.removeClass(r,e)}));var e=r.data("$$ngAnimateState");e&&(x&&x.isClassBased?R(r,n):(v((function(){var e=r.data("$$ngAnimateState")||{};$==e.index&&R(r,n)})),r.data("$$ngAnimateState",e))),p("close"),f()}}var x=F(r,e,n,h);if(!x)return b(),g(),y(),w(),u;e=x.event,n=x.className;var S=(S=t.element._data(x.node))&&S.events;if(i||(i=a?a.parent():r.parent()),function(e,n){if(d.disabled)return!0;if(s(e,m))return d.running;var r,i,a;do{if(0===n.length)break;var o=s(n,m),u=o?d:n.data("$$ngAnimateState")||{};if(u.disabled)return!0;o&&(a=!0),!1!==r&&(o=n.data("$$ngAnimateChildren"),t.isDefined(o)&&(r=o)),i=i||u.running||u.last&&!u.last.isClassBased}while(n=n.parent());return!a||!r&&i}(r,i))return b(),g(),y(),w(),u;var E=(i=r.data("$$ngAnimateState")||{}).active||{},A=i.totalActive||0,C=i.last;if(a=!1,0<A){if(A=[],x.isClassBased)"setClass"==C.event?(A.push(C),R(r,n)):E[n]&&((D=E[n]).event==e?a=!0:(A.push(D),R(r,n)));else if("leave"==e&&E["ng-leave"])a=!0;else{for(var D in E)A.push(E[D]);i={},R(r,!0)}0<A.length&&c(A,(function(e){e.cancel()}))}if(!x.isClassBased||x.isSetClassOperation||"animate"==e||a||(a="addClass"==e==r.hasClass(n)),a)return b(),g(),y(),p("close"),f(),u;E=i.active||{},A=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(),R(e,"ng-leave"))})),o.addClass(r,"ng-animate"),h&&h.tempClasses&&c(h.tempClasses,(function(e){o.addClass(r,e)}));var $=I++;return A++,E[n]=x,r.data("$$ngAnimateState",{last:x,active:E,index:$,totalActive:A}),g(),x.before((function(t){var i=r.data("$$ngAnimateState");t=t||!i||!i.active[n]||x.isClassBased&&i.active[n].event!=e,b(),!0===t?w():(y(),x.after(w))})),x.cancel}function D(e){(e=a(e))&&(e=t.isFunction(e.getElementsByClassName)?e.getElementsByClassName("ng-animate"):e.querySelectorAll(".ng-animate"),c(e,(function(e){(e=(e=t.element(e)).data("$$ngAnimateState"))&&e.active&&c(e.active,(function(e){e.cancel()}))})))}function R(e,t){if(s(e,m))d.disabled||(d.running=!1,d.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||(o.removeClass(e,"ng-animate"),e.removeData("$$ngAnimateState"))}}o=x,m.data("$$ngAnimateState",d);var $=y.$watch((function(){return w.totalPendingRequests}),(function(e,t){0===e&&($(),y.$$postDigest((function(){y.$$postDigest((function(){d.running=!1}))})))})),I=0,T=i.classNameFilter(),P=T?function(e){return T.test(e)}:function(){return!0};return{animate:function(e,n,r,i,s){return i=i||"ng-inline-animate",(s=A(s)||{}).from=r?n:null,s.to=r||n,E((function(n){return C("animate",i,t.element(a(e)),null,null,u,s,n)}))},enter:function(n,r,i,s){return s=A(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),S(n,!0),e.enter(n,r,i),E((function(e){return C("enter","ng-enter",t.element(a(n)),r,i,u,s,e)}))},leave:function(n,r){return r=A(r),D(n=t.element(n)),S(n,!0),E((function(i){return C("leave","ng-leave",t.element(a(n)),null,null,(function(){e.leave(n)}),r,i)}))},move:function(n,r,i,s){return s=A(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),D(n),S(n,!0),e.move(n,r,i),E((function(e){return C("move","ng-move",t.element(a(n)),r,i,u,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=A(s),n=t.element(n),S(n=t.element(a(n))))return e.$$setClassImmediately(n,r,i,s);var o,u=n.data("$$animateClasses"),l=!!u;return u||(u={classes:{}}),o=u.classes,r=h(r)?r:r.split(" "),c(r,(function(e){e&&e.length&&(o[e]=!0)})),i=h(i)?i:i.split(" "),c(i,(function(e){e&&e.length&&(o[e]=!1)})),l?(s&&u.options&&(u.options=t.extend(u.options||{},s)),u.promise):(n.data("$$animateClasses",u={classes:o,options:s}),u.promise=E((function(t){var r=n.parent(),i=a(n);if((s=i.parentNode)&&!s.$$NG_REMOVED&&!i.$$NG_REMOVED){i=n.data("$$animateClasses"),n.removeData("$$animateClasses");var s=n.data("$$ngAnimateState")||{},o=function(e,t,n){var r={};c(n=n||{},(function(e,t){c(t.split(" "),(function(t){r[t]=e}))}));var i=Object.create(null);c((e.attr("class")||"").split(/\s+/),(function(e){i[e]=!0}));var a=[],s=[];return c(t&&t.classes||[],(function(e,t){var n=i[t],o=r[t]||{};!1===e?(n||"addClass"==o.event)&&s.push(t):!0===e&&(n&&"removeClass"!=o.event||a.push(t))})),0<a.length+s.length&&[a.join(" "),s.join(" ")]}(n,i,s.active);return o?C("setClass",o,n,r,null,(function(){o[0]&&e.$$addClassImmediately(n,o[0]),o[1]&&e.$$removeClassImmediately(n,o[1])}),i.options,t):t()}t()})))},cancel:function(e){e.$$cancelFn()},enabled:function(e,t){switch(arguments.length){case 2:if(e)R(t);else{var n=t.data("$$ngAnimateState")||{};n.disabled=!0,t.data("$$ngAnimateState",n)}break;case 1:d.disabled=!e;break;default:e=!d.disabled}return!!e}}}]),i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,s,l){function p(){I||(I=l((function(){_=[],I=null,T={}})))}function d(e,t){I&&I(),_.push(t),I=l((function(){c(_,(function(e){e()})),_=[],I=null,T={}}))}function g(e,n){var r=a(e);e=t.element(r),j.push(e),(r=Date.now()+n)<=O||(s.cancel(k),O=r,k=s((function(){!function(e){c(e,(function(e){(e=e.data("$$ngAnimateCSS3Data"))&&c(e.closeAnimationFns,(function(e){e()}))}))}(j),j=[]}),n,!1))}function m(e,t){var n=t?T[t]:null;if(!n){var i=0,a=0,s=0,o=0;c(e,(function(e){if(1==e.nodeType){e=r.getComputedStyle(e)||{},i=Math.max(v(e[F+"Duration"]),i),a=Math.max(v(e[F+"Delay"]),a),o=Math.max(v(e[D+"Delay"]),o);var t=v(e[D+"Duration"]);0<t&&(t*=parseInt(e[D+"IterationCount"],10)||1),s=Math.max(t,s)}})),n={total:0,transitionDelay:a,transitionDuration:i,animationDelay:o,animationDuration:s},t&&(T[t]=n)}return n}function v(e){var t=0;return e=f(e)?e.split(/\s*,\s*/):[],c(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),(u=(s=t.parent()).data("$$ngAnimateKey"))||(s.data("$$ngAnimateKey",++P),u=P),i=u+"-"+a(t).getAttribute("class");var s,u,c={};0<(u=T[s=i+" "+n]?++T[s].total:0)&&((i=!T[c=i+" "+(l=n+"-stagger")])&&o.addClass(t,l),c=m(t,c),i&&o.removeClass(t,l));o.addClass(t,n);var l=t.data("$$ngAnimateCSS3Data")||{},h=m(t,s);return i=h.transitionDuration,h=h.animationDuration,e&&0===i&&0===h?(o.removeClass(t,n),!1):(n=r||e&&0<i,e=0<h&&0<c.animationDelay&&0===c.animationDuration,t.data("$$ngAnimateCSS3Data",{stagger:c,cacheKey:s,running:l.running||0,itemIndex:u,blockTransition:n,closeAnimationFns:l.closeAnimationFns||[]}),s=a(t),n&&(b(s,!0),r&&t.css(r)),e&&(s.style[D+"PlayState"]="paused"),!0)}function b(e,t){e.style[F+"Property"]=t?"none":""}function w(e,t,n,r){if(y(e,t,n,r))return function(e){e&&E(t,n)}}function x(e,t,n,r,i){if(t.data("$$ngAnimateCSS3Data"))return function(e,t,n,r,i){function u(){t.off(P,l),o.removeClass(t,f),o.removeClass(t,p),I&&s.cancel(I),E(t,n);var e,r=a(t);for(e in d)r.style.removeProperty(d[e])}function l(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-T,0)>=F&&t>=A&&r()}var h=a(t);if(e=t.data("$$ngAnimateCSS3Data"),-1!=h.getAttribute("class").indexOf(n)&&e){var f="",p="";c(n.split(" "),(function(e,t){var n=(0<t?" ":"")+e;f+=n+"-active",p+=n+"-pending"}));var d=[],v=e.itemIndex,y=e.stagger,w=0;if(0<v){w=0,0<y.transitionDelay&&0===y.transitionDuration&&(w=y.transitionDelay*v);var x=0;0<y.animationDelay&&0===y.animationDuration&&(x=y.animationDelay*v,d.push($+"animation-play-state")),w=Math.round(100*Math.max(w,x))/100}w||(o.addClass(t,f),e.blockTransition&&b(h,!1));var S=m(t,e.cacheKey+" "+f),A=Math.max(S.transitionDuration,S.animationDuration);if(0!==A){!w&&i&&(S.transitionDuration||(t.css("transition",S.animationDuration+"s linear all"),d.push("transition")),t.css(i));var F=1e3*(v=Math.max(S.transitionDelay,S.animationDelay));0<d.length&&(";"!==(y=h.getAttribute("style")||"").charAt(y.length-1)&&(y+=";"),h.setAttribute("style",y+" "));var I,T=Date.now(),P=R+" "+C;v=1e3*(w+1.5*(v+A));return 0<w&&(o.addClass(t,p),I=s((function(){I=null,0<S.transitionDuration&&b(h,!1),0<S.animationDuration&&(h.style[D+"PlayState"]=""),o.addClass(t,f),o.removeClass(t,p),i&&(0===S.transitionDuration&&t.css("transition",S.animationDuration+"s linear all"),t.css(i),d.push("transition"))}),1e3*w,!1)),t.on(P,l),e.closeAnimationFns.push((function(){u(),r()})),e.running++,g(t,v),u}o.removeClass(t,f),E(t,n),r()}else r()}(e,t,n,r,i);E(t,n),r()}function S(e,t,n,r,i){var a=w(e,t,n,i.from);if(a){var s=a;return d(0,(function(){s=x(e,t,n,r,i.to)})),function(e){(s||u)(e)}}p(),r()}function E(e,t){o.removeClass(e,t);var n=e.data("$$ngAnimateCSS3Data");n&&(n.running&&n.running--,n.running&&0!==n.running||e.removeData("$$ngAnimateCSS3Data"))}function A(e,t){var n="";return e=h(e)?e:e.split(/\s+/),c(e,(function(e,r){e&&0<e.length&&(n+=(0<r?" ":"")+e+t)})),n}var F,C,D,R,$="";e.ontransitionend===n&&e.onwebkittransitionend!==n?($="-webkit-",F="WebkitTransition",C="webkitTransitionEnd transitionend"):(F="transition",C="transitionend"),e.onanimationend===n&&e.onwebkitanimationend!==n?($="-webkit-",D="WebkitAnimation",R="webkitAnimationEnd animationend"):(D="animation",R="animationend");var I,T={},P=0,_=[],k=null,O=0,j=[];return{animate:function(e,t,n,r,i,a){return(a=a||{}).from=n,a.to=r,S("animate",e,t,i,a)},enter:function(e,t,n){return S("enter",e,"ng-enter",t,n=n||{})},leave:function(e,t,n){return S("leave",e,"ng-leave",t,n=n||{})},move:function(e,t,n){return S("move",e,"ng-move",t,n=n||{})},beforeSetClass:function(e,t,n,r,i){if(i=i||{},i=w("setClass",e,t=A(n,"-remove")+" "+A(t,"-add"),i.from))return d(0,r),i;p(),r()},beforeAddClass:function(e,t,n,r){if(r=r||{},t=w("addClass",e,A(t,"-add"),r.from))return d(0,n),t;p(),n()},beforeRemoveClass:function(e,t,n,r){if(r=r||{},t=w("removeClass",e,A(t,"-remove"),r.from))return d(0,n),t;p(),n()},setClass:function(e,t,n,r,i){return i=i||{},x("setClass",e,(n=A(n,"-remove"))+" "+(t=A(t,"-add")),r,i.to)},addClass:function(e,t,n,r){return r=r||{},x("addClass",e,A(t,"-add"),n,r.to)},removeClass:function(e,t,n,r){return r=r||{},x("removeClass",e,A(t,"-remove"),n,r.to)}}}])}])}(window,window.angular)},function(e,t){!function(e,t,n){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,n){var r,i={},a={},s=!1,o=t.copy,u=t.isUndefined;return n.addPollFn((function(){var t=n.cookies();r!=t&&(r=t,o(t,a),o(t,i),s&&e.$apply())}))(),s=!0,e.$watch((function(){var e,r,s;for(e in a)u(i[e])&&n.cookies(e,void 0);for(e in i)r=i[e],t.isString(r)||(r=""+r,i[e]=r),r!==a[e]&&(n.cookies(e,r),s=!0);if(s)for(e in r=n.cookies(),i)i[e]!==r[e]&&(u(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)},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,a,s,o,u){function c(){p&&(r.cancel(p),p=null),h&&(h.$destroy(),h=null),f&&((p=r.leave(f)).then((function(){p=null})),f=null)}function l(){var s=e.current&&e.current.locals;if(t.isDefined(s&&s.$template)){s=i.$new();var o=e.current;f=u(s,(function(e){r.enter(e,null,f||a).then((function(){!t.isDefined(d)||d&&!i.$eval(d)||n()})),c()})),(h=o.scope=s).$emit("$viewContentLoaded"),h.$eval(g)}else c()}var h,f,p,d=s.autoscroll,g=s.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function i(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var a=n.current,s=a.locals;i.html(s.$template);var o=e(i.contents());a.controller&&(s.$scope=r,s=t(a.controller,s),a.controllerAs&&(r[a.controllerAs]=s),i.data("$ngControllerController",s),i.children().data("$ngControllerController",s)),o(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 a=t.copy(i);if(t.isUndefined(a.reloadOnSearch)&&(a.reloadOnSearch=!0),t.isUndefined(a.caseInsensitiveMatch)&&(a.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(a,e&&n(e,a)),e){var s="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[s]=t.extend({redirectTo:e},n(s,a))}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,o,u,c,l){function h(a){var s=v.current;(g=(d=function(){var n,a;return t.forEach(r,(function(r,s){var o;if(o=!a){var u=i.path();o=r.keys;var c={};if(r.regexp)if(u=r.regexp.exec(u)){for(var l=1,h=u.length;l<h;++l){var f=o[l-1],p=u[l];f&&p&&(c[f.name]=p)}o=c}else o=null;else o=null;o=n=o}o&&((a=e(r,{params:t.extend({},i.search(),n),pathParams:n})).$$route=r)})),a||r.null&&e(r.null,{params:{},pathParams:{}})}())&&s&&d.$$route===s.$$route&&t.equals(d.pathParams,s.pathParams)&&!d.reloadOnSearch&&!m)||!s&&!d||n.$broadcast("$routeChangeStart",d,s).defaultPrevented&&a&&a.preventDefault()}function f(){var e=v.current,r=d;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(p(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),o.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)?u.get(e):u.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=l.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=c(n))),t.isDefined(e)&&(i.$template=e),o.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 p(e,n){var r=[];return t.forEach((e||"").split(":"),(function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),a=i[1];r.push(n[a]),r.push(i[2]||""),delete n[a]}})),r.join("")}var d,g,m=!1,v={routes:r,reload:function(){m=!0,n.$evalAsync((function(){h(),f()}))},updateParams:function(e){if(!this.current||!this.current.$$route)throw a("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(p(this.current.$$route.originalPath,e)),i.search(t.extend({},i.search(),n))}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",f),v}]}));var a=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)},function(e,t){
47
- /**
48
- * An Angular module that gives you access to the browsers local storage
49
- * @version v0.1.5 - 2014-11-04
50
- * @link https://github.com/grevory/angular-local-storage
51
- * @author grevory <greg@gregpike.ca>
52
- * @license MIT License, http://www.opensource.org/licenses/MIT
53
- */
54
- !function(e,t){"use strict";var n=t.isDefined,r=t.isUndefined,i=t.isNumber,a=t.isObject,s=t.isArray,o=t.extend,u=t.toJson,c=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,l,h){var f,p=this,d=p.prefix,g=p.cookie,m=p.notify,v=p.storageType;l?l[0]&&(l=l[0]):l=document,"."!==d.substr(-1)&&(d=d?d+".":"");var y=function(e){return d+e},b=function(){try{var n=v in t&&null!==t[v],r=y("__"+Math.round(1e7*Math.random()));return n&&((f=t[v]).setItem(r,""),f.removeItem(r)),n}catch(t){return v="cookie",e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),w=function(t,n){if(r(n)?n=null:(a(n)||s(n)||i(+n||n))&&(n=u(n)),!b||"cookie"===p.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"}),A(t,n);try{(a(n)||s(n))&&(n=u(n)),f&&f.setItem(y(t),n),m.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:p.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),A(t,n)}return!0},x=function(t){if(!b||"cookie"===p.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),F(t);var n=f?f.getItem(y(t)):null;return n&&"null"!==n?"{"===n.charAt(0)||"["===n.charAt(0)||function(e){return/^-?\d+\.?\d*$/.test(e.replace(/["']/g,""))}(n)?c(n):n:null},S=function(t){if(!b||"cookie"===p.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),C(t);try{f.removeItem(y(t)),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:p.storageType})}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),C(t)}return!0},E=function(){try{return t.navigator.cookieEnabled||"cookie"in l&&(l.cookie.length>0||(l.cookie="test").indexOf.call(l.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),A=function(t,n){if(r(n))return!1;if((s(n)||a(n))&&(n=u(n)),!E)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var i="",o=new Date,c="";if(null===n?(o.setTime(o.getTime()+-864e5),i="; expires="+o.toGMTString(),n=""):0!==g.expiry&&(o.setTime(o.getTime()+24*g.expiry*60*60*1e3),i="; expires="+o.toGMTString()),t){var h="; path="+g.path;g.domain&&(c="; domain="+g.domain),l.cookie=y(t)+"="+encodeURIComponent(n)+i+h+c}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},F=function(t){if(!E)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=l.cookie&&l.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 a=decodeURIComponent(i.substring(d.length+t.length+1,i.length));try{var s=JSON.parse(a);return c(s)}catch(e){return a}}}return null},C=function(e){A(e,null)},D=function(){for(var e=null,t=d.length,n=l.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("="));C(i)}};return{isSupported:b,getStorageType:function(){return v},set:w,add:w,get:x,keys:function(){if(!b)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;var t=d.length,n=[];for(var r in f)if(r.substr(0,t)===d)try{n.push(r.substr(t))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return n},remove:S,clearAll:function(t){t=t||"";var n=d.slice(0,-1),r=new RegExp(n+"."+t);if(!b||"cookie"===p.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),D();var i=d.length;for(var a in f)if(r.test(a))try{S(a.substr(i))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),D()}return!0},bind:function(e,t,r,i){var s=x(i=i||t);return null===s&&n(r)?s=r:a(s)&&a(r)&&(s=o(r,s)),h(t).assign(e,s),e.$watch(t,(function(e){w(i,e)}),a(e[t]))},deriveKey:y,length:function(){for(var e=0,n=t[v],r=0;r<n.length;r++)0===n.key(r).indexOf(d)&&e++;return e},cookie:{isSupported:E,set:A,add:A,get:F,remove:C,clearAll:D}}}]}))}(window,window.angular)},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=D.exec(e);e=t[1];var n=t[3];return(t=t[2])&&(C.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in C?C.textContent:C.innerText),e+t+n}function a(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,o){e=t.lowercase(e),!r&&S[e]&&(r=e),r||!0!==E[e]||(i("<"),i(e),t.forEach(s,(function(r,s){var o=t.lowercase(s),u="img"===e&&"src"===o||"background"===o;!0!==F[o]||!0===A[o]&&!n(r,u)||(i(" "),i(s),i('="'),i(a(r)),i('"'))})),i(o?"/>":">"))},end:function(e){e=t.lowercase(e),r||!0!==E[e]||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(a(e))}}}var o=t.$$minErr("$sanitize"),u=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,c=/^<\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,h=/^</,f=/^<\//,p=/\x3c!--(.*?)--\x3e/g,d=/<!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),w=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")),x=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 S=r("script,style"),E=t.extend({},y,w,x,b,e),A=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 F=t.extend({},A,n,e),C=document.createElement("pre"),D=/^(\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,o){if(r=t.lowercase(r),w[r])for(;E.last()&&x[E.last()];)a("",E.last());b[r]&&E.last()==r&&a("",r),(o=y[r]||!!o)||E.push(r);var u={};s.replace(l,(function(e,t,n,r,a){u[t]=i(n||r||a||"")})),n.start&&n.start(r,u,o)}function a(e,r){var i,a=0;if(r=t.lowercase(r))for(a=E.length-1;0<=a&&E[a]!=r;a--);if(0<=a){for(i=E.length-1;i>=a;i--)n.end&&n.end(E[i]);E.length=a}}"string"!=typeof e&&(e=null==e?"":""+e);var s,m,v,E=[],A=e;for(E.last=function(){return E[E.length-1]};e;){if(v="",m=!0,E.last()&&S[E.last()]?(e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+E.last()+"[^>]*>","i"),(function(e,t){return t=t.replace(p,"$1").replace(g,"$1"),n.chars&&n.chars(i(t)),""})),a(0,E.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):d.test(e)?(s=e.match(d))&&(e=e.replace(s[0],""),m=!1):f.test(e)?(s=e.match(c))&&(e=e.substring(s[0].length),s[0].replace(c,a),m=!1):h.test(e)&&((s=e.match(u))?(s[4]&&(e=e.substring(s[0].length),s[0].replace(u,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==A)throw o("badparse",e);A=e}a()}(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,a){function o(e){e&&p.push(function(e){var n=[];return s(n,t.noop).chars(e),n.join("")}(e))}function u(e,n){p.push("<a "),t.isDefined(a)&&p.push('target="',a,'" '),p.push('href="',e.replace(/"/g,"&quot;"),'">'),o(n),p.push("</a>")}if(!i)return i;for(var c,l,h,f=i,p=[];c=f.match(n);)l=c[0],c[2]||c[4]||(l=(c[3]?"http://":"mailto:")+l),h=c.index,o(f.substr(0,h)),u(l,c[0].replace(r,"")),f=f.substring(h+c[0].length);return o(f),e(p.join(""))}}])}(window,window.angular)},function(e,t,n){n(156),e.exports="toastr"},function(e,t){!function(){"use strict";function e(e,t,n,r,i,a,s){var o,u=0,c=[],l="",h={},f=s.defer();return{active:function(){return c.length},clear:function(e){if(1===arguments.length&&!e)return;if(e)p(e.toastId);else for(var t=0;t<c.length;t++)p(c[t].toastId)},error:function(e,t,n){return d(g().iconClasses.error,e,t,n)},info:function(e,t,n){return d(g().iconClasses.info,e,t,n)},remove:p,success:function(e,t,n){return d(g().iconClasses.success,e,t,n)},warning:function(e,t,n){return d(g().iconClasses.warning,e,t,n)},refreshTimer:function(e,t){e&&e.isOpened&&c.indexOf(e)>=0&&e.scope.refreshTimer(t)}};function p(t,n){var r=function(e){for(var t=0;t<c.length;t++)if(c[t].toastId===e)return c[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=c.indexOf(r);delete h[r.scope.message],c.splice(e,1);var t=a.maxOpened;t&&c.length>=t&&c[t-1].open.resolve(),c.length||(o.remove(),o=null,f=s.defer())})))}function d(n,a,d,m){return angular.isObject(d)&&(m=d,d=null),function(n){var a=g();if(function(){var e=a.preventDuplicates&&n.message===l,t=a.preventOpenDuplicates&&h[n.message];if(e||t)return!0;return l=n.message,h[n.message]=!0,!1}())return;var d=function(){var e={toastId:u++,isOpened:!1,scope:r.$new(),open:s.defer()};e.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(a,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,a),e.el=function(e){var n=angular.element("<div toast></div>");return t.get("$compile")(n)(e)}(e.scope),e}();if(c.push(d),function(){return a.autoDismiss&&a.maxOpened&&c.length>a.maxOpened}())for(var m=c.slice(0,c.length-a.maxOpened),v=0,y=m.length;v<y;v++)p(m[v].toastId);(a.maxOpened&&c.length<=a.maxOpened||!a.maxOpened)&&d.open.resolve();return d.open.promise.then((function(){(function(t){if(o)return f.promise;(o=angular.element("<div></div>")).attr("id",t.containerId),o.addClass(t.positionClass),o.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(o,n).then((function(){f.resolve()})),f.promise})(a).then((function(){if(d.isOpened=!0,a.newestOnTop)e.enter(d.el,o).then((function(){d.scope.init()}));else{var t=o[0].lastChild?angular.element(o[0].lastChild):null;e.enter(d.el,o,t).then((function(){d.scope.init()}))}}))})),d}({iconClass:n,message:a,optionsOverride:m,title:d})}function g(){return angular.extend({},a)}}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,a,s;function o(){var e=(s-(new Date).getTime())/a*100;t.css("width",e+"%")}r.progressBar=e,e.start=function(e){i&&clearInterval(i),a=parseFloat(e),s=(new Date).getTime()+a,i=setInterval(o,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,a,s){var o;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 u=angular.element(n.options.closeHtml),c=e.get("$compile");u.addClass("toast-close-button"),u.attr("ng-click","close(true, $event)"),c(u)(n),i.children().prepend(u)}function l(e){return s.startProgressBar(e),t((function(){s.stopProgressBar(),r.remove(n.toastId)}),e,1)}n.init=function(){n.options.timeOut&&(o=l(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",(function(){n.progressBar=!1,s.stopProgressBar(),o&&t.cancel(o)})),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){o&&(t.cancel(o),o=l(e||n.options.timeOut))},i.on("mouseleave",(function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply((function(){n.progressBar=n.options.progressBar})),o=l(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')}])},function(e,t,n){(function(e,r){var i;
55
- /**
56
- * @license
57
- * Lodash <https://lodash.com/>
58
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
59
- * Released under MIT license <https://lodash.com/license>
60
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
61
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
62
- */(function(){var a,s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,d=2,g=4,m=1,v=2,y=1,b=2,w=4,x=8,S=16,E=32,A=64,F=128,C=256,D=512,R=30,$="...",I=800,T=16,P=1,_=2,k=1/0,O=9007199254740991,j=17976931348623157e292,N=NaN,H=4294967295,B=H-1,L=H>>>1,M=[["ary",F],["bind",y],["bindKey",b],["curry",x],["curryRight",S],["flip",D],["partial",E],["partialRight",A],["rearg",C]],U="[object Arguments]",V="[object Array]",q="[object AsyncFunction]",K="[object Boolean]",z="[object Date]",G="[object DOMException]",W="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",Z="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",ae="[object Symbol]",se="[object Undefined]",oe="[object WeakMap]",ue="[object WeakSet]",ce="[object ArrayBuffer]",le="[object DataView]",he="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Fe=RegExp(Ee.source),Ce=RegExp(Ae.source),De=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_e=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(_e.source),Oe=/^\s+/,je=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Me=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,ze=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\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",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Ze+"]",it="\\d+",at="[\\u2700-\\u27bf]",st="[a-z\\xdf-\\xf6\\xf8-\\xff]",ot="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ut="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ht="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+st+"|"+ot+")",dt="(?:"+ft+"|"+ot+")",gt="(?:"+rt+"|"+ut+")"+"?",mt="[\\ufe0e\\ufe0f]?"+gt+("(?:\\u200d(?:"+[ct,lt,ht].join("|")+")[\\ufe0e\\ufe0f]?"+gt+")*"),vt="(?:"+[at,lt,ht].join("|")+")"+mt,yt="(?:"+[ct+rt+"?",rt,lt,ht,tt].join("|")+")",bt=RegExp("['’]","g"),wt=RegExp(rt,"g"),xt=RegExp(ut+"(?="+ut+")|"+yt+mt,"g"),St=RegExp([ft+"?"+st+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,ft,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?: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_])",it,vt].join("|"),"g"),Et=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),At=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["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"],Ct=-1,Dt={};Dt[he]=Dt[fe]=Dt[pe]=Dt[de]=Dt[ge]=Dt[me]=Dt[ve]=Dt[ye]=Dt[be]=!0,Dt[U]=Dt[V]=Dt[ce]=Dt[K]=Dt[le]=Dt[z]=Dt[W]=Dt[Y]=Dt[J]=Dt[Q]=Dt[ee]=Dt[ne]=Dt[re]=Dt[ie]=Dt[oe]=!1;var Rt={};Rt[U]=Rt[V]=Rt[ce]=Rt[le]=Rt[K]=Rt[z]=Rt[he]=Rt[fe]=Rt[pe]=Rt[de]=Rt[ge]=Rt[J]=Rt[Q]=Rt[ee]=Rt[ne]=Rt[re]=Rt[ie]=Rt[ae]=Rt[me]=Rt[ve]=Rt[ye]=Rt[be]=!0,Rt[W]=Rt[Y]=Rt[oe]=!1;var $t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},It=parseFloat,Tt=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,_t="object"==typeof self&&self&&self.Object===Object&&self,kt=Pt||_t||Function("return this")(),Ot=t&&!t.nodeType&&t,jt=Ot&&"object"==typeof r&&r&&!r.nodeType&&r,Nt=jt&&jt.exports===Ot,Ht=Nt&&Pt.process,Bt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Ht&&Ht.binding&&Ht.binding("util")}catch(e){}}(),Lt=Bt&&Bt.isArrayBuffer,Mt=Bt&&Bt.isDate,Ut=Bt&&Bt.isMap,Vt=Bt&&Bt.isRegExp,qt=Bt&&Bt.isSet,Kt=Bt&&Bt.isTypedArray;function zt(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 Gt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(r,s,n(s),e)}return r}function Wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Yt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Xt(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 Jt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}function Qt(e,t){return!!(null==e?0:e.length)&&cn(e,t,0)>-1}function Zt(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 en(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 tn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function nn(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function rn(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 an(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 sn=pn("length");function on(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function un(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function cn(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):un(e,hn,n)}function ln(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function hn(e){return e!=e}function fn(e,t){var n=null==e?0:e.length;return n?mn(e,t)/n:N}function pn(e){return function(t){return null==t?a:t[e]}}function dn(e){return function(t){return null==e?a:e[t]}}function gn(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function mn(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==a&&(n=n===a?s:n+s)}return n}function vn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function yn(e){return e?e.slice(0,On(e)+1).replace(Oe,""):e}function bn(e){return function(t){return e(t)}}function wn(e,t){return en(t,(function(t){return e[t]}))}function xn(e,t){return e.has(t)}function Sn(e,t){for(var n=-1,r=e.length;++n<r&&cn(t,e[n],0)>-1;);return n}function En(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var An=dn({"À":"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"}),Fn=dn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Cn(e){return"\\"+$t[e]}function Dn(e){return Et.test(e)}function Rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function $n(e,t){return function(n){return e(t(n))}}function In(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==f||(e[n]=f,a[i++]=n)}return a}function Tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function _n(e){return Dn(e)?function(e){var t=xt.lastIndex=0;for(;xt.test(e);)++t;return t}(e):sn(e)}function kn(e){return Dn(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.split("")}(e)}function On(e){for(var t=e.length;t--&&je.test(e.charAt(t)););return t}var jn=dn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Nn=function e(t){var n,r=(t=null==t?kt:Nn.defaults(kt.Object(),t,Nn.pick(kt,Ft))).Array,i=t.Date,je=t.Error,Ze=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,at=r.prototype,st=Ze.prototype,ot=tt.prototype,ut=t["__core-js_shared__"],ct=st.toString,lt=ot.hasOwnProperty,ht=0,ft=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=ot.toString,dt=ct.call(tt),gt=kt._,mt=nt("^"+ct.call(lt).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Nt?t.Buffer:a,yt=t.Symbol,xt=t.Uint8Array,Et=vt?vt.allocUnsafe:a,$t=$n(tt.getPrototypeOf,tt),Pt=tt.create,_t=ot.propertyIsEnumerable,Ot=at.splice,jt=yt?yt.isConcatSpreadable:a,Ht=yt?yt.iterator:a,Bt=yt?yt.toStringTag:a,sn=function(){try{var e=La(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),dn=t.clearTimeout!==kt.clearTimeout&&t.clearTimeout,Hn=i&&i.now!==kt.Date.now&&i.now,Bn=t.setTimeout!==kt.setTimeout&&t.setTimeout,Ln=et.ceil,Mn=et.floor,Un=tt.getOwnPropertySymbols,Vn=vt?vt.isBuffer:a,qn=t.isFinite,Kn=at.join,zn=$n(tt.keys,tt),Gn=et.max,Wn=et.min,Yn=i.now,Xn=t.parseInt,Jn=et.random,Qn=at.reverse,Zn=La(t,"DataView"),er=La(t,"Map"),tr=La(t,"Promise"),nr=La(t,"Set"),rr=La(t,"WeakMap"),ir=La(tt,"create"),ar=rr&&new rr,sr={},or=fs(Zn),ur=fs(er),cr=fs(tr),lr=fs(nr),hr=fs(rr),fr=yt?yt.prototype:a,pr=fr?fr.valueOf:a,dr=fr?fr.toString:a;function gr(e){if(Io(e)&&!bo(e)&&!(e instanceof br)){if(e instanceof yr)return e;if(lt.call(e,"__wrapped__"))return ps(e)}return new yr(e)}var mr=function(){function e(){}return function(t){if(!$o(t))return{};if(Pt)return Pt(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function wr(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 xr(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 Sr(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 Er(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Sr;++t<n;)this.add(e[t])}function Ar(e){var t=this.__data__=new xr(e);this.size=t.size}function Fr(e,t){var n=bo(e),r=!n&&yo(e),i=!n&&!r&&Eo(e),a=!n&&!r&&!i&&Ho(e),s=n||r||i||a,o=s?vn(e.length,rt):[],u=o.length;for(var c in e)!t&&!lt.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ga(c,u))||o.push(c);return o}function Cr(e){var t=e.length;return t?e[Ei(0,t-1)]:a}function Dr(e,t){return cs(ia(e),jr(t,0,e.length))}function Rr(e){return cs(ia(e))}function $r(e,t,n){(n===a||go(e[t],n))&&(n!==a||t in e)||kr(e,t,n)}function Ir(e,t,n){var r=e[t];lt.call(e,t)&&go(r,n)&&(n!==a||t in e)||kr(e,t,n)}function Tr(e,t){for(var n=e.length;n--;)if(go(e[n][0],t))return n;return-1}function Pr(e,t,n,r){return Mr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function _r(e,t){return e&&aa(t,su(t),e)}function kr(e,t,n){"__proto__"==t&&sn?sn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Or(e,t){for(var n=-1,i=t.length,s=r(i),o=null==e;++n<i;)s[n]=o?a:tu(e,t[n]);return s}function jr(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function Nr(e,t,n,r,i,s){var o,u=t&p,c=t&d,l=t&g;if(n&&(o=i?n(e,r,i,s):n(e)),o!==a)return o;if(!$o(e))return e;var h=bo(e);if(h){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&lt.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ia(e,o)}else{var f=Va(e),m=f==Y||f==X;if(Eo(e))return Qi(e,u);if(f==ee||f==U||m&&!i){if(o=c||m?{}:Ka(e),!u)return c?function(e,t){return aa(e,Ua(e),t)}(e,function(e,t){return e&&aa(t,ou(t),e)}(o,e)):function(e,t){return aa(e,Ma(e),t)}(e,_r(o,e))}else{if(!Rt[f])return i?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case ce:return Zi(e);case K:case z:return new r(+e);case le:return function(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case he:case fe:case pe:case de:case ge:case me:case ve:case ye:case be:return ea(e,n);case J:return new r;case Q:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case ae:return i=e,pr?tt(pr.call(i)):{}}var i}(e,f,u)}}s||(s=new Ar);var v=s.get(e);if(v)return v;s.set(e,o),Oo(e)?e.forEach((function(r){o.add(Nr(r,t,n,r,e,s))})):To(e)&&e.forEach((function(r,i){o.set(i,Nr(r,t,n,i,e,s))}));var y=h?a:(l?c?_a:Pa:c?ou:su)(e);return Wt(y||e,(function(r,i){y&&(r=e[i=r]),Ir(o,i,Nr(r,t,n,i,e,s))})),o}function Hr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],s=t[i],o=e[i];if(o===a&&!(i in e)||!s(o))return!1}return!0}function Br(e,t,n){if("function"!=typeof e)throw new it(u);return as((function(){e.apply(a,n)}),t)}function Lr(e,t,n,r){var i=-1,a=Qt,o=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=en(t,bn(n))),r?(a=Zt,o=!1):t.length>=s&&(a=xn,o=!1,t=new Er(t));e:for(;++i<u;){var h=e[i],f=null==n?h:n(h);if(h=r||0!==h?h:0,o&&f==f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(h)}else a(t,f,r)||c.push(h)}return c}gr.templateSettings={escape:De,evaluate:Re,interpolate:$e,variable:"",imports:{_:gr}},gr.prototype=vr.prototype,gr.prototype.constructor=gr,yr.prototype=mr(vr.prototype),yr.prototype.constructor=yr,br.prototype=mr(vr.prototype),br.prototype.constructor=br,wr.prototype.clear=function(){this.__data__=ir?ir(null):{},this.size=0},wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},wr.prototype.get=function(e){var t=this.__data__;if(ir){var n=t[e];return n===l?a:n}return lt.call(t,e)?t[e]:a},wr.prototype.has=function(e){var t=this.__data__;return ir?t[e]!==a:lt.call(t,e)},wr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ir&&t===a?l:t,this},xr.prototype.clear=function(){this.__data__=[],this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=Tr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},xr.prototype.get=function(e){var t=this.__data__,n=Tr(t,e);return n<0?a:t[n][1]},xr.prototype.has=function(e){return Tr(this.__data__,e)>-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Sr.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(er||xr),string:new wr}},Sr.prototype.delete=function(e){var t=Ha(this,e).delete(e);return this.size-=t?1:0,t},Sr.prototype.get=function(e){return Ha(this,e).get(e)},Sr.prototype.has=function(e){return Ha(this,e).has(e)},Sr.prototype.set=function(e,t){var n=Ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Er.prototype.add=Er.prototype.push=function(e){return this.__data__.set(e,l),this},Er.prototype.has=function(e){return this.__data__.has(e)},Ar.prototype.clear=function(){this.__data__=new xr,this.size=0},Ar.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ar.prototype.get=function(e){return this.__data__.get(e)},Ar.prototype.has=function(e){return this.__data__.has(e)},Ar.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!er||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sr(r)}return n.set(e,t),this.size=n.size,this};var Mr=ua(Yr),Ur=ua(Xr,!0);function Vr(e,t){var n=!0;return Mr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function qr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],o=t(s);if(null!=o&&(u===a?o==o&&!No(o):n(o,u)))var u=o,c=s}return c}function Kr(e,t){var n=[];return Mr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function zr(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=za),i||(i=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?zr(o,t-1,n,r,i):tn(i,o):r||(i[i.length]=o)}return i}var Gr=ca(),Wr=ca(!0);function Yr(e,t){return e&&Gr(e,t,su)}function Xr(e,t){return e&&Wr(e,t,su)}function Jr(e,t){return Jt(t,(function(t){return Co(e[t])}))}function Qr(e,t){for(var n=0,r=(t=Wi(t,e)).length;null!=e&&n<r;)e=e[hs(t[n++])];return n&&n==r?e:a}function Zr(e,t,n){var r=t(e);return bo(e)?r:tn(r,n(e))}function ei(e){return null==e?e===a?se:Z:Bt&&Bt in tt(e)?function(e){var t=lt.call(e,Bt),n=e[Bt];try{e[Bt]=a;var r=!0}catch(e){}var i=pt.call(e);r&&(t?e[Bt]=n:delete e[Bt]);return i}(e):function(e){return pt.call(e)}(e)}function ti(e,t){return e>t}function ni(e,t){return null!=e&&lt.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ii(e,t,n){for(var i=n?Zt:Qt,s=e[0].length,o=e.length,u=o,c=r(o),l=1/0,h=[];u--;){var f=e[u];u&&t&&(f=en(f,bn(t))),l=Wn(f.length,l),c[u]=!n&&(t||s>=120&&f.length>=120)?new Er(u&&f):a}f=e[0];var p=-1,d=c[0];e:for(;++p<s&&h.length<l;){var g=f[p],m=t?t(g):g;if(g=n||0!==g?g:0,!(d?xn(d,m):i(h,m,n))){for(u=o;--u;){var v=c[u];if(!(v?xn(v,m):i(e[u],m,n)))continue e}d&&d.push(m),h.push(g)}}return h}function ai(e,t,n){var r=null==(e=ns(e,t=Wi(t,e)))?e:e[hs(As(t))];return null==r?a:zt(r,e,n)}function si(e){return Io(e)&&ei(e)==U}function oi(e,t,n,r,i){return e===t||(null==e||null==t||!Io(e)&&!Io(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var o=bo(e),u=bo(t),c=o?V:Va(e),l=u?V:Va(t),h=(c=c==U?ee:c)==ee,f=(l=l==U?ee:l)==ee,p=c==l;if(p&&Eo(e)){if(!Eo(t))return!1;o=!0,h=!1}if(p&&!h)return s||(s=new Ar),o||Ho(e)?Ia(e,t,n,r,i,s):function(e,t,n,r,i,a,s){switch(n){case le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!a(new xt(e),new xt(t)));case K:case z:case Q:return go(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case J:var o=Rn;case re:var u=r&m;if(o||(o=Tn),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=v,s.set(e,t);var l=Ia(o(e),o(t),r,i,a,s);return s.delete(e),l;case ae:if(pr)return pr.call(e)==pr.call(t)}return!1}(e,t,c,n,r,i,s);if(!(n&m)){var d=h&&lt.call(e,"__wrapped__"),g=f&&lt.call(t,"__wrapped__");if(d||g){var y=d?e.value():e,b=g?t.value():t;return s||(s=new Ar),i(y,b,n,r,s)}}if(!p)return!1;return s||(s=new Ar),function(e,t,n,r,i,s){var o=n&m,u=Pa(e),c=u.length,l=Pa(t).length;if(c!=l&&!o)return!1;var h=c;for(;h--;){var f=u[h];if(!(o?f in t:lt.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);var v=o;for(;++h<c;){f=u[h];var y=e[f],b=t[f];if(r)var w=o?r(b,y,f,t,e,s):r(y,b,f,e,t,s);if(!(w===a?y===b||i(y,b,n,r,s):w)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,S=t.constructor;x!=S&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S)&&(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,i,s)}(e,t,n,r,oi,i))}function ui(e,t,n,r){var i=n.length,s=i,o=!r;if(null==e)return!s;for(e=tt(e);i--;){var u=n[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],l=e[c],h=u[1];if(o&&u[2]){if(l===a&&!(c in e))return!1}else{var f=new Ar;if(r)var p=r(l,h,c,e,t,f);if(!(p===a?oi(h,l,m|v,r,f):p))return!1}}return!0}function ci(e){return!(!$o(e)||(t=e,ft&&ft in t))&&(Co(e)?mt:Ge).test(fs(e));var t}function li(e){return"function"==typeof e?e:null==e?Pu:"object"==typeof e?bo(e)?mi(e[0],e[1]):gi(e):Mu(e)}function hi(e){if(!Qa(e))return zn(e);var t=[];for(var n in tt(e))lt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function fi(e){if(!$o(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Qa(e),n=[];for(var r in e)("constructor"!=r||!t&&lt.call(e,r))&&n.push(r);return n}function pi(e,t){return e<t}function di(e,t){var n=-1,i=xo(e)?r(e.length):[];return Mr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function gi(e){var t=Ba(e);return 1==t.length&&t[0][2]?es(t[0][0],t[0][1]):function(n){return n===e||ui(n,e,t)}}function mi(e,t){return Ya(e)&&Za(t)?es(hs(e),t):function(n){var r=tu(n,e);return r===a&&r===t?nu(n,e):oi(t,r,m|v)}}function vi(e,t,n,r,i){e!==t&&Gr(t,(function(s,o){if(i||(i=new Ar),$o(s))!function(e,t,n,r,i,s,o){var u=rs(e,n),c=rs(t,n),l=o.get(c);if(l)return void $r(e,n,l);var h=s?s(u,c,n+"",e,t,o):a,f=h===a;if(f){var p=bo(c),d=!p&&Eo(c),g=!p&&!d&&Ho(c);h=c,p||d||g?bo(u)?h=u:So(u)?h=ia(u):d?(f=!1,h=Qi(c,!0)):g?(f=!1,h=ea(c,!0)):h=[]:_o(c)||yo(c)?(h=u,yo(u)?h=zo(u):$o(u)&&!Co(u)||(h=Ka(c))):f=!1}f&&(o.set(c,h),i(h,c,r,s,o),o.delete(c));$r(e,n,h)}(e,t,o,n,vi,r,i);else{var u=r?r(rs(e,o),s,o+"",e,t,i):a;u===a&&(u=s),$r(e,o,u)}}),ou)}function yi(e,t){var n=e.length;if(n)return Ga(t+=t<0?n:0,n)?e[t]:a}function bi(e,t,n){t=t.length?en(t,(function(e){return bo(e)?function(t){return Qr(t,1===e.length?e[0]:e)}:e})):[Pu];var r=-1;return t=en(t,bn(Na())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(di(e,(function(e,n,i){return{criteria:en(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,s=i.length,o=n.length;for(;++r<s;){var u=ta(i[r],a[r]);if(u){if(r>=o)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function wi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=Qr(e,s);n(o,s)&&Ri(a,Wi(s,e),o)}return a}function xi(e,t,n,r){var i=r?ln:cn,a=-1,s=t.length,o=e;for(e===t&&(t=ia(t)),n&&(o=en(e,bn(n)));++a<s;)for(var u=0,c=t[a],l=n?n(c):c;(u=i(o,l,u,r))>-1;)o!==e&&Ot.call(o,u,1),Ot.call(e,u,1);return e}function Si(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Ga(i)?Ot.call(e,i,1):Li(e,i)}}return e}function Ei(e,t){return e+Mn(Jn()*(t-e+1))}function Ai(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=Mn(t/2))&&(e+=e)}while(t);return n}function Fi(e,t){return ss(ts(e,t,Pu),e+"")}function Ci(e){return Cr(gu(e))}function Di(e,t){var n=gu(e);return cs(n,jr(t,0,n.length))}function Ri(e,t,n,r){if(!$o(e))return e;for(var i=-1,s=(t=Wi(t,e)).length,o=s-1,u=e;null!=u&&++i<s;){var c=hs(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=o){var h=u[c];(l=r?r(h,c,u):a)===a&&(l=$o(h)?h:Ga(t[i+1])?[]:{})}Ir(u,c,l),u=u[c]}return e}var $i=ar?function(e,t){return ar.set(e,t),e}:Pu,Ii=sn?function(e,t){return sn(e,"toString",{configurable:!0,enumerable:!1,value:$u(t),writable:!0})}:Pu;function Ti(e){return cs(gu(e))}function Pi(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=r(a);++i<a;)s[i]=e[i+t];return s}function _i(e,t){var n;return Mr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ki(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=L){for(;r<i;){var a=r+i>>>1,s=e[a];null!==s&&!No(s)&&(n?s<=t:s<t)?r=a+1:i=a}return i}return Oi(e,t,Pu,n)}function Oi(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,u=null===t,c=No(t),l=t===a;i<s;){var h=Mn((i+s)/2),f=n(e[h]),p=f!==a,d=null===f,g=f==f,m=No(f);if(o)var v=r||g;else v=l?g&&(r||p):u?g&&p&&(r||!d):c?g&&p&&!d&&(r||!m):!d&&!m&&(r?f<=t:f<t);v?i=h+1:s=h}return Wn(s,B)}function ji(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n],o=t?t(s):s;if(!n||!go(o,u)){var u=o;a[i++]=0===s?0:s}}return a}function Ni(e){return"number"==typeof e?e:No(e)?N:+e}function Hi(e){if("string"==typeof e)return e;if(bo(e))return en(e,Hi)+"";if(No(e))return dr?dr.call(e):"";var t=e+"";return"0"==t&&1/e==-k?"-0":t}function Bi(e,t,n){var r=-1,i=Qt,a=e.length,o=!0,u=[],c=u;if(n)o=!1,i=Zt;else if(a>=s){var l=t?null:Aa(e);if(l)return Tn(l);o=!1,i=xn,c=new Er}else c=t?[]:u;e:for(;++r<a;){var h=e[r],f=t?t(h):h;if(h=n||0!==h?h:0,o&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(h)}else i(c,f,n)||(c!==u&&c.push(f),u.push(h))}return u}function Li(e,t){return null==(e=ns(e,t=Wi(t,e)))||delete e[hs(As(t))]}function Mi(e,t,n,r){return Ri(e,t,n(Qr(e,t)),r)}function Ui(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Pi(e,r?0:a,r?a+1:i):Pi(e,r?a+1:0,r?i:a)}function Vi(e,t){var n=e;return n instanceof br&&(n=n.value()),nn(t,(function(e,t){return t.func.apply(t.thisArg,tn([e],t.args))}),n)}function qi(e,t,n){var i=e.length;if(i<2)return i?Bi(e[0]):[];for(var a=-1,s=r(i);++a<i;)for(var o=e[a],u=-1;++u<i;)u!=a&&(s[a]=Lr(s[a]||o,e[u],t,n));return Bi(zr(s,1),t,n)}function Ki(e,t,n){for(var r=-1,i=e.length,s=t.length,o={};++r<i;){var u=r<s?t[r]:a;n(o,e[r],u)}return o}function zi(e){return So(e)?e:[]}function Gi(e){return"function"==typeof e?e:Pu}function Wi(e,t){return bo(e)?e:Ya(e,t)?[e]:ls(Go(e))}var Yi=Fi;function Xi(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Pi(e,t,n)}var Ji=dn||function(e){return kt.clearTimeout(e)};function Qi(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function Zi(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function ea(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,s=No(e),o=t!==a,u=null===t,c=t==t,l=No(t);if(!u&&!l&&!s&&e>t||s&&o&&c&&!u&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||u&&n&&i||!o&&i||!c)return-1}return 0}function na(e,t,n,i){for(var a=-1,s=e.length,o=n.length,u=-1,c=t.length,l=Gn(s-o,0),h=r(c+l),f=!i;++u<c;)h[u]=t[u];for(;++a<o;)(f||a<s)&&(h[n[a]]=e[a]);for(;l--;)h[u++]=e[a++];return h}function ra(e,t,n,i){for(var a=-1,s=e.length,o=-1,u=n.length,c=-1,l=t.length,h=Gn(s-u,0),f=r(h+l),p=!i;++a<h;)f[a]=e[a];for(var d=a;++c<l;)f[d+c]=t[c];for(;++o<u;)(p||a<s)&&(f[d+n[o]]=e[a++]);return f}function ia(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function aa(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var u=t[s],c=r?r(n[u],e[u],u,n,e):a;c===a&&(c=e[u]),i?kr(n,u,c):Ir(n,u,c)}return n}function sa(e,t){return function(n,r){var i=bo(n)?Gt:Pr,a=t?t():{};return i(n,e,Na(r,2),a)}}function oa(e){return Fi((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:a,o=i>2?n[2]:a;for(s=e.length>3&&"function"==typeof s?(i--,s):a,o&&Wa(n[0],n[1],o)&&(s=i<3?a:s,i=1),t=tt(t);++r<i;){var u=n[r];u&&e(t,u,r,s)}return t}))}function ua(e,t){return function(n,r){if(null==n)return n;if(!xo(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=tt(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}function ca(e){return function(t,n,r){for(var i=-1,a=tt(t),s=r(t),o=s.length;o--;){var u=s[e?o:++i];if(!1===n(a[u],u,a))break}return t}}function la(e){return function(t){var n=Dn(t=Go(t))?kn(t):a,r=n?n[0]:t.charAt(0),i=n?Xi(n,1).join(""):t.slice(1);return r[e]()+i}}function ha(e){return function(t){return nn(Cu(yu(t).replace(bt,"")),e,"")}}function fa(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=mr(e.prototype),r=e.apply(n,t);return $o(r)?r:n}}function pa(e){return function(t,n,r){var i=tt(t);if(!xo(t)){var s=Na(n,3);t=su(t),n=function(e){return s(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[s?t[o]:o]:a}}function da(e){return Ta((function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new it(u);if(i&&!o&&"wrapper"==Oa(s))var o=new yr([],!0)}for(r=o?r:n;++r<n;){var c=Oa(s=t[r]),l="wrapper"==c?ka(s):a;o=l&&Xa(l[0])&&l[1]==(F|x|E|C)&&!l[4].length&&1==l[9]?o[Oa(l[0])].apply(o,l[3]):1==s.length&&Xa(s)?o[c]():o.thru(s)}return function(){var e=arguments,r=e[0];if(o&&1==e.length&&bo(r))return o.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function ga(e,t,n,i,s,o,u,c,l,h){var f=t&F,p=t&y,d=t&b,g=t&(x|S),m=t&D,v=d?a:fa(e);return function y(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(g)var S=ja(y),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=na(w,i,s,g)),o&&(w=ra(w,o,u,g)),b-=E,g&&b<h){var A=In(w,S);return Sa(e,t,ga,y.placeholder,n,w,A,c,l,h-b)}var F=p?n:this,C=d?F[e]:e;return b=w.length,c?w=function(e,t){var n=e.length,r=Wn(t.length,n),i=ia(e);for(;r--;){var s=t[r];e[r]=Ga(s,n)?i[s]:a}return e}(w,c):m&&b>1&&w.reverse(),f&&l<b&&(w.length=l),this&&this!==kt&&this instanceof y&&(C=v||fa(C)),C.apply(F,w)}}function ma(e,t){return function(n,r){return function(e,t,n,r){return Yr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function va(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=Hi(n),r=Hi(r)):(n=Ni(n),r=Ni(r)),i=e(n,r)}return i}}function ya(e){return Ta((function(t){return t=en(t,bn(Na())),Fi((function(n){var r=this;return e(t,(function(e){return zt(e,r,n)}))}))}))}function ba(e,t){var n=(t=t===a?" ":Hi(t)).length;if(n<2)return n?Ai(t,e):t;var r=Ai(t,Ln(e/_n(t)));return Dn(t)?Xi(kn(r),0,e).join(""):r.slice(0,e)}function wa(e){return function(t,n,i){return i&&"number"!=typeof i&&Wa(t,n,i)&&(n=i=a),t=Uo(t),n===a?(n=t,t=0):n=Uo(n),function(e,t,n,i){for(var a=-1,s=Gn(Ln((t-e)/(n||1)),0),o=r(s);s--;)o[i?s:++a]=e,e+=n;return o}(t,n,i=i===a?t<n?1:-1:Uo(i),e)}}function xa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ko(t),n=Ko(n)),e(t,n)}}function Sa(e,t,n,r,i,s,o,u,c,l){var h=t&x;t|=h?E:A,(t&=~(h?A:E))&w||(t&=~(y|b));var f=[e,t,i,h?s:a,h?o:a,h?a:s,h?a:o,u,c,l],p=n.apply(a,f);return Xa(e)&&is(p,f),p.placeholder=r,os(p,e,t)}function Ea(e){var t=et[e];return function(e,n){if(e=Ko(e),(n=null==n?0:Wn(Vo(n),292))&&qn(e)){var r=(Go(e)+"e").split("e");return+((r=(Go(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Aa=nr&&1/Tn(new nr([,-0]))[1]==k?function(e){return new nr(e)}:Nu;function Fa(e){return function(t){var n=Va(t);return n==J?Rn(t):n==re?Pn(t):function(e,t){return en(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ca(e,t,n,i,s,o,c,l){var h=t&b;if(!h&&"function"!=typeof e)throw new it(u);var p=i?i.length:0;if(p||(t&=~(E|A),i=s=a),c=c===a?c:Gn(Vo(c),0),l=l===a?l:Vo(l),p-=s?s.length:0,t&A){var d=i,g=s;i=s=a}var m=h?a:ka(e),v=[e,t,n,i,s,d,g,o,c,l];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<(y|b|F),s=r==F&&n==x||r==F&&n==C&&e[7].length<=t[8]||r==(F|C)&&t[7].length<=t[8]&&n==x;if(!a&&!s)return e;r&y&&(e[2]=t[2],i|=n&y?0:w);var o=t[3];if(o){var u=e[3];e[3]=u?na(u,o,t[4]):o,e[4]=u?In(e[3],f):t[4]}(o=t[5])&&(u=e[5],e[5]=u?ra(u,o,t[6]):o,e[6]=u?In(e[5],f):t[6]);(o=t[7])&&(e[7]=o);r&F&&(e[8]=null==e[8]?t[8]:Wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(l=v[9]=v[9]===a?h?0:e.length:Gn(v[9]-p,0))&&t&(x|S)&&(t&=~(x|S)),t&&t!=y)D=t==x||t==S?function(e,t,n){var i=fa(e);return function s(){for(var o=arguments.length,u=r(o),c=o,l=ja(s);c--;)u[c]=arguments[c];var h=o<3&&u[0]!==l&&u[o-1]!==l?[]:In(u,l);return(o-=h.length)<n?Sa(e,t,ga,s.placeholder,a,u,h,a,a,n-o):zt(this&&this!==kt&&this instanceof s?i:e,this,u)}}(e,t,l):t!=E&&t!=(y|E)||s.length?ga.apply(a,v):function(e,t,n,i){var a=t&y,s=fa(e);return function t(){for(var o=-1,u=arguments.length,c=-1,l=i.length,h=r(l+u),f=this&&this!==kt&&this instanceof t?s:e;++c<l;)h[c]=i[c];for(;u--;)h[c++]=arguments[++o];return zt(f,a?n:this,h)}}(e,t,n,i);else var D=function(e,t,n){var r=t&y,i=fa(e);return function t(){return(this&&this!==kt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return os((m?$i:is)(D,v),e,t)}function Da(e,t,n,r){return e===a||go(e,ot[n])&&!lt.call(r,n)?t:e}function Ra(e,t,n,r,i,s){return $o(e)&&$o(t)&&(s.set(t,e),vi(e,t,a,Ra,s),s.delete(t)),e}function $a(e){return _o(e)?a:e}function Ia(e,t,n,r,i,s){var o=n&m,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var l=s.get(e),h=s.get(t);if(l&&h)return l==t&&h==e;var f=-1,p=!0,d=n&v?new Er:a;for(s.set(e,t),s.set(t,e);++f<u;){var g=e[f],y=t[f];if(r)var b=o?r(y,g,f,t,e,s):r(g,y,f,e,t,s);if(b!==a){if(b)continue;p=!1;break}if(d){if(!an(t,(function(e,t){if(!xn(d,t)&&(g===e||i(g,e,n,r,s)))return d.push(t)}))){p=!1;break}}else if(g!==y&&!i(g,y,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Ta(e){return ss(ts(e,a,bs),e+"")}function Pa(e){return Zr(e,su,Ma)}function _a(e){return Zr(e,ou,Ua)}var ka=ar?function(e){return ar.get(e)}:Nu;function Oa(e){for(var t=e.name+"",n=sr[t],r=lt.call(sr,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ja(e){return(lt.call(gr,"placeholder")?gr:e).placeholder}function Na(){var e=gr.iteratee||_u;return e=e===_u?li:e,arguments.length?e(arguments[0],arguments[1]):e}function Ha(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 Ba(e){for(var t=su(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Za(i)]}return t}function La(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return ci(n)?n:a}var Ma=Un?function(e){return null==e?[]:(e=tt(e),Jt(Un(e),(function(t){return _t.call(e,t)})))}:qu,Ua=Un?function(e){for(var t=[];e;)tn(t,Ma(e)),e=$t(e);return t}:qu,Va=ei;function qa(e,t,n){for(var r=-1,i=(t=Wi(t,e)).length,a=!1;++r<i;){var s=hs(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Ro(i)&&Ga(s,i)&&(bo(e)||yo(e))}function Ka(e){return"function"!=typeof e.constructor||Qa(e)?{}:mr($t(e))}function za(e){return bo(e)||yo(e)||!!(jt&&e&&e[jt])}function Ga(e,t){var n=typeof e;return!!(t=null==t?O:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Wa(e,t,n){if(!$o(n))return!1;var r=typeof t;return!!("number"==r?xo(n)&&Ga(t,n.length):"string"==r&&t in n)&&go(n[t],e)}function Ya(e,t){if(bo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!No(e))||(Te.test(e)||!Ie.test(e)||null!=t&&e in tt(t))}function Xa(e){var t=Oa(e),n=gr[t];if("function"!=typeof n||!(t in br.prototype))return!1;if(e===n)return!0;var r=ka(n);return!!r&&e===r[0]}(Zn&&Va(new Zn(new ArrayBuffer(1)))!=le||er&&Va(new er)!=J||tr&&"[object Promise]"!=Va(tr.resolve())||nr&&Va(new nr)!=re||rr&&Va(new rr)!=oe)&&(Va=function(e){var t=ei(e),n=t==ee?e.constructor:a,r=n?fs(n):"";if(r)switch(r){case or:return le;case ur:return J;case cr:return"[object Promise]";case lr:return re;case hr:return oe}return t});var Ja=ut?Co:Ku;function Qa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ot)}function Za(e){return e==e&&!$o(e)}function es(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in tt(n)))}}function ts(e,t,n){return t=Gn(t===a?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=Gn(i.length-t,0),o=r(s);++a<s;)o[a]=i[t+a];a=-1;for(var u=r(t+1);++a<t;)u[a]=i[a];return u[t]=n(o),zt(e,this,u)}}function ns(e,t){return t.length<2?e:Qr(e,Pi(t,0,-1))}function rs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var is=us($i),as=Bn||function(e,t){return kt.setTimeout(e,t)},ss=us(Ii);function os(e,t,n){var r=t+"";return ss(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(Ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Wt(M,(function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(He);return t?t[1].split(Be):[]}(r),n)))}function us(e){var t=0,n=0;return function(){var r=Yn(),i=T-(r-n);if(n=r,i>0){if(++t>=I)return arguments[0]}else t=0;return e.apply(a,arguments)}}function cs(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var s=Ei(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var ls=function(e){var t=uo(e,(function(e){return n.size===h&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Pe,(function(e,n,r,i){t.push(r?i.replace(Ue,"$1"):n||e)})),t}));function hs(e){if("string"==typeof e||No(e))return e;var t=e+"";return"0"==t&&1/e==-k?"-0":t}function fs(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ps(e){if(e instanceof br)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ds=Fi((function(e,t){return So(e)?Lr(e,zr(t,1,So,!0)):[]})),gs=Fi((function(e,t){var n=As(t);return So(n)&&(n=a),So(e)?Lr(e,zr(t,1,So,!0),Na(n,2)):[]})),ms=Fi((function(e,t){var n=As(t);return So(n)&&(n=a),So(e)?Lr(e,zr(t,1,So,!0),a,n):[]}));function vs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Vo(n);return i<0&&(i=Gn(r+i,0)),un(e,Na(t,3),i)}function ys(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=Vo(n),i=n<0?Gn(r+i,0):Wn(i,r-1)),un(e,Na(t,3),i,!0)}function bs(e){return(null==e?0:e.length)?zr(e,1):[]}function ws(e){return e&&e.length?e[0]:a}var xs=Fi((function(e){var t=en(e,zi);return t.length&&t[0]===e[0]?ii(t):[]})),Ss=Fi((function(e){var t=As(e),n=en(e,zi);return t===As(n)?t=a:n.pop(),n.length&&n[0]===e[0]?ii(n,Na(t,2)):[]})),Es=Fi((function(e){var t=As(e),n=en(e,zi);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?ii(n,a,t):[]}));function As(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Fs=Fi(Cs);function Cs(e,t){return e&&e.length&&t&&t.length?xi(e,t):e}var Ds=Ta((function(e,t){var n=null==e?0:e.length,r=Or(e,t);return Si(e,en(t,(function(e){return Ga(e,n)?+e:e})).sort(ta)),r}));function Rs(e){return null==e?e:Qn.call(e)}var $s=Fi((function(e){return Bi(zr(e,1,So,!0))})),Is=Fi((function(e){var t=As(e);return So(t)&&(t=a),Bi(zr(e,1,So,!0),Na(t,2))})),Ts=Fi((function(e){var t=As(e);return t="function"==typeof t?t:a,Bi(zr(e,1,So,!0),a,t)}));function Ps(e){if(!e||!e.length)return[];var t=0;return e=Jt(e,(function(e){if(So(e))return t=Gn(e.length,t),!0})),vn(t,(function(t){return en(e,pn(t))}))}function _s(e,t){if(!e||!e.length)return[];var n=Ps(e);return null==t?n:en(n,(function(e){return zt(t,a,e)}))}var ks=Fi((function(e,t){return So(e)?Lr(e,t):[]})),Os=Fi((function(e){return qi(Jt(e,So))})),js=Fi((function(e){var t=As(e);return So(t)&&(t=a),qi(Jt(e,So),Na(t,2))})),Ns=Fi((function(e){var t=As(e);return t="function"==typeof t?t:a,qi(Jt(e,So),a,t)})),Hs=Fi(Ps);var Bs=Fi((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,_s(e,n)}));function Ls(e){var t=gr(e);return t.__chain__=!0,t}function Ms(e,t){return t(e)}var Us=Ta((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Ga(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ms,args:[i],thisArg:a}),new yr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var Vs=sa((function(e,t,n){lt.call(e,n)?++e[n]:kr(e,n,1)}));var qs=pa(vs),Ks=pa(ys);function zs(e,t){return(bo(e)?Wt:Mr)(e,Na(t,3))}function Gs(e,t){return(bo(e)?Yt:Ur)(e,Na(t,3))}var Ws=sa((function(e,t,n){lt.call(e,n)?e[n].push(t):kr(e,n,[t])}));var Ys=Fi((function(e,t,n){var i=-1,a="function"==typeof t,s=xo(e)?r(e.length):[];return Mr(e,(function(e){s[++i]=a?zt(t,e,n):ai(e,t,n)})),s})),Xs=sa((function(e,t,n){kr(e,n,t)}));function Js(e,t){return(bo(e)?en:di)(e,Na(t,3))}var Qs=sa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Zs=Fi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Wa(e,t[0],t[1])?t=[]:n>2&&Wa(t[0],t[1],t[2])&&(t=[t[0]]),bi(e,zr(t,1),[])})),eo=Hn||function(){return kt.Date.now()};function to(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ca(e,F,a,a,a,a,t)}function no(e,t){var n;if("function"!=typeof t)throw new it(u);return e=Vo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var ro=Fi((function(e,t,n){var r=y;if(n.length){var i=In(n,ja(ro));r|=E}return Ca(e,r,t,n,i)})),io=Fi((function(e,t,n){var r=y|b;if(n.length){var i=In(n,ja(io));r|=E}return Ca(t,r,e,n,i)}));function ao(e,t,n){var r,i,s,o,c,l,h=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new it(u);function g(t){var n=r,s=i;return r=i=a,h=t,o=e.apply(s,n)}function m(e){var n=e-l;return l===a||n>=t||n<0||p&&e-h>=s}function v(){var e=eo();if(m(e))return y(e);c=as(v,function(e){var n=t-(e-l);return p?Wn(n,s-(e-h)):n}(e))}function y(e){return c=a,d&&r?g(e):(r=i=a,o)}function b(){var e=eo(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===a)return function(e){return h=e,c=as(v,t),f?g(e):o}(l);if(p)return Ji(c),c=as(v,t),g(l)}return c===a&&(c=as(v,t)),o}return t=Ko(t)||0,$o(n)&&(f=!!n.leading,s=(p="maxWait"in n)?Gn(Ko(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==a&&Ji(c),h=0,r=l=i=c=a},b.flush=function(){return c===a?o:y(eo())},b}var so=Fi((function(e,t){return Br(e,1,t)})),oo=Fi((function(e,t,n){return Br(e,Ko(t)||0,n)}));function uo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(uo.Cache||Sr),n}function co(e){if("function"!=typeof e)throw new it(u);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)}}uo.Cache=Sr;var lo=Yi((function(e,t){var n=(t=1==t.length&&bo(t[0])?en(t[0],bn(Na())):en(zr(t,1),bn(Na()))).length;return Fi((function(r){for(var i=-1,a=Wn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return zt(e,this,r)}))})),ho=Fi((function(e,t){var n=In(t,ja(ho));return Ca(e,E,a,t,n)})),fo=Fi((function(e,t){var n=In(t,ja(fo));return Ca(e,A,a,t,n)})),po=Ta((function(e,t){return Ca(e,C,a,a,a,t)}));function go(e,t){return e===t||e!=e&&t!=t}var mo=xa(ti),vo=xa((function(e,t){return e>=t})),yo=si(function(){return arguments}())?si:function(e){return Io(e)&&lt.call(e,"callee")&&!_t.call(e,"callee")},bo=r.isArray,wo=Lt?bn(Lt):function(e){return Io(e)&&ei(e)==ce};function xo(e){return null!=e&&Ro(e.length)&&!Co(e)}function So(e){return Io(e)&&xo(e)}var Eo=Vn||Ku,Ao=Mt?bn(Mt):function(e){return Io(e)&&ei(e)==z};function Fo(e){if(!Io(e))return!1;var t=ei(e);return t==W||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!_o(e)}function Co(e){if(!$o(e))return!1;var t=ei(e);return t==Y||t==X||t==q||t==te}function Do(e){return"number"==typeof e&&e==Vo(e)}function Ro(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function $o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Io(e){return null!=e&&"object"==typeof e}var To=Ut?bn(Ut):function(e){return Io(e)&&Va(e)==J};function Po(e){return"number"==typeof e||Io(e)&&ei(e)==Q}function _o(e){if(!Io(e)||ei(e)!=ee)return!1;var t=$t(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var ko=Vt?bn(Vt):function(e){return Io(e)&&ei(e)==ne};var Oo=qt?bn(qt):function(e){return Io(e)&&Va(e)==re};function jo(e){return"string"==typeof e||!bo(e)&&Io(e)&&ei(e)==ie}function No(e){return"symbol"==typeof e||Io(e)&&ei(e)==ae}var Ho=Kt?bn(Kt):function(e){return Io(e)&&Ro(e.length)&&!!Dt[ei(e)]};var Bo=xa(pi),Lo=xa((function(e,t){return e<=t}));function Mo(e){if(!e)return[];if(xo(e))return jo(e)?kn(e):ia(e);if(Ht&&e[Ht])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ht]());var t=Va(e);return(t==J?Rn:t==re?Tn:gu)(e)}function Uo(e){return e?(e=Ko(e))===k||e===-k?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Vo(e){var t=Uo(e),n=t%1;return t==t?n?t-n:t:0}function qo(e){return e?jr(Vo(e),0,H):0}function Ko(e){if("number"==typeof e)return e;if(No(e))return N;if($o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=ze.test(e);return n||We.test(e)?Tt(e.slice(2),n?2:8):Ke.test(e)?N:+e}function zo(e){return aa(e,ou(e))}function Go(e){return null==e?"":Hi(e)}var Wo=oa((function(e,t){if(Qa(t)||xo(t))aa(t,su(t),e);else for(var n in t)lt.call(t,n)&&Ir(e,n,t[n])})),Yo=oa((function(e,t){aa(t,ou(t),e)})),Xo=oa((function(e,t,n,r){aa(t,ou(t),e,r)})),Jo=oa((function(e,t,n,r){aa(t,su(t),e,r)})),Qo=Ta(Or);var Zo=Fi((function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&Wa(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],o=ou(s),u=-1,c=o.length;++u<c;){var l=o[u],h=e[l];(h===a||go(h,ot[l])&&!lt.call(e,l))&&(e[l]=s[l])}return e})),eu=Fi((function(e){return e.push(a,Ra),zt(cu,a,e)}));function tu(e,t,n){var r=null==e?a:Qr(e,t);return r===a?n:r}function nu(e,t){return null!=e&&qa(e,t,ri)}var ru=ma((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),$u(Pu)),iu=ma((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),lt.call(e,t)?e[t].push(n):e[t]=[n]}),Na),au=Fi(ai);function su(e){return xo(e)?Fr(e):hi(e)}function ou(e){return xo(e)?Fr(e,!0):fi(e)}var uu=oa((function(e,t,n){vi(e,t,n)})),cu=oa((function(e,t,n,r){vi(e,t,n,r)})),lu=Ta((function(e,t){var n={};if(null==e)return n;var r=!1;t=en(t,(function(t){return t=Wi(t,e),r||(r=t.length>1),t})),aa(e,_a(e),n),r&&(n=Nr(n,p|d|g,$a));for(var i=t.length;i--;)Li(n,t[i]);return n}));var hu=Ta((function(e,t){return null==e?{}:function(e,t){return wi(e,t,(function(t,n){return nu(e,n)}))}(e,t)}));function fu(e,t){if(null==e)return{};var n=en(_a(e),(function(e){return[e]}));return t=Na(t),wi(e,n,(function(e,n){return t(e,n[0])}))}var pu=Fa(su),du=Fa(ou);function gu(e){return null==e?[]:wn(e,su(e))}var mu=ha((function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)}));function vu(e){return Fu(Go(e).toLowerCase())}function yu(e){return(e=Go(e))&&e.replace(Xe,An).replace(wt,"")}var bu=ha((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),wu=ha((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),xu=la("toLowerCase");var Su=ha((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Eu=ha((function(e,t,n){return e+(n?" ":"")+Fu(t)}));var Au=ha((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fu=la("toUpperCase");function Cu(e,t,n){return e=Go(e),(t=n?a:t)===a?function(e){return At.test(e)}(e)?function(e){return e.match(St)||[]}(e):function(e){return e.match(Le)||[]}(e):e.match(t)||[]}var Du=Fi((function(e,t){try{return zt(e,a,t)}catch(e){return Fo(e)?e:new je(e)}})),Ru=Ta((function(e,t){return Wt(t,(function(t){t=hs(t),kr(e,t,ro(e[t],e))})),e}));function $u(e){return function(){return e}}var Iu=da(),Tu=da(!0);function Pu(e){return e}function _u(e){return li("function"==typeof e?e:Nr(e,p))}var ku=Fi((function(e,t){return function(n){return ai(n,e,t)}})),Ou=Fi((function(e,t){return function(n){return ai(e,n,t)}}));function ju(e,t,n){var r=su(t),i=Jr(t,r);null!=n||$o(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Jr(t,su(t)));var a=!($o(n)&&"chain"in n&&!n.chain),s=Co(e);return Wt(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})})),e}function Nu(){}var Hu=ya(en),Bu=ya(Xt),Lu=ya(an);function Mu(e){return Ya(e)?pn(hs(e)):function(e){return function(t){return Qr(t,e)}}(e)}var Uu=wa(),Vu=wa(!0);function qu(){return[]}function Ku(){return!1}var zu=va((function(e,t){return e+t}),0),Gu=Ea("ceil"),Wu=va((function(e,t){return e/t}),1),Yu=Ea("floor");var Xu,Ju=va((function(e,t){return e*t}),1),Qu=Ea("round"),Zu=va((function(e,t){return e-t}),0);return gr.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Vo(e),function(){if(--e<1)return t.apply(this,arguments)}},gr.ary=to,gr.assign=Wo,gr.assignIn=Yo,gr.assignInWith=Xo,gr.assignWith=Jo,gr.at=Qo,gr.before=no,gr.bind=ro,gr.bindAll=Ru,gr.bindKey=io,gr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bo(e)?e:[e]},gr.chain=Ls,gr.chunk=function(e,t,n){t=(n?Wa(e,t,n):t===a)?1:Gn(Vo(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,o=0,u=r(Ln(i/t));s<i;)u[o++]=Pi(e,s,s+=t);return u},gr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},gr.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 tn(bo(n)?ia(n):[n],zr(t,1))},gr.cond=function(e){var t=null==e?0:e.length,n=Na();return e=t?en(e,(function(e){if("function"!=typeof e[1])throw new it(u);return[n(e[0]),e[1]]})):[],Fi((function(n){for(var r=-1;++r<t;){var i=e[r];if(zt(i[0],this,n))return zt(i[1],this,n)}}))},gr.conforms=function(e){return function(e){var t=su(e);return function(n){return Hr(n,e,t)}}(Nr(e,p))},gr.constant=$u,gr.countBy=Vs,gr.create=function(e,t){var n=mr(e);return null==t?n:_r(n,t)},gr.curry=function e(t,n,r){var i=Ca(t,x,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},gr.curryRight=function e(t,n,r){var i=Ca(t,S,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},gr.debounce=ao,gr.defaults=Zo,gr.defaultsDeep=eu,gr.defer=so,gr.delay=oo,gr.difference=ds,gr.differenceBy=gs,gr.differenceWith=ms,gr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Pi(e,(t=n||t===a?1:Vo(t))<0?0:t,r):[]},gr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Pi(e,0,(t=r-(t=n||t===a?1:Vo(t)))<0?0:t):[]},gr.dropRightWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!0,!0):[]},gr.dropWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!0):[]},gr.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Wa(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=Vo(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:Vo(r))<0&&(r+=i),r=n>r?0:qo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},gr.filter=function(e,t){return(bo(e)?Jt:Kr)(e,Na(t,3))},gr.flatMap=function(e,t){return zr(Js(e,t),1)},gr.flatMapDeep=function(e,t){return zr(Js(e,t),k)},gr.flatMapDepth=function(e,t,n){return n=n===a?1:Vo(n),zr(Js(e,t),n)},gr.flatten=bs,gr.flattenDeep=function(e){return(null==e?0:e.length)?zr(e,k):[]},gr.flattenDepth=function(e,t){return(null==e?0:e.length)?zr(e,t=t===a?1:Vo(t)):[]},gr.flip=function(e){return Ca(e,D)},gr.flow=Iu,gr.flowRight=Tu,gr.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},gr.functions=function(e){return null==e?[]:Jr(e,su(e))},gr.functionsIn=function(e){return null==e?[]:Jr(e,ou(e))},gr.groupBy=Ws,gr.initial=function(e){return(null==e?0:e.length)?Pi(e,0,-1):[]},gr.intersection=xs,gr.intersectionBy=Ss,gr.intersectionWith=Es,gr.invert=ru,gr.invertBy=iu,gr.invokeMap=Ys,gr.iteratee=_u,gr.keyBy=Xs,gr.keys=su,gr.keysIn=ou,gr.map=Js,gr.mapKeys=function(e,t){var n={};return t=Na(t,3),Yr(e,(function(e,r,i){kr(n,t(e,r,i),e)})),n},gr.mapValues=function(e,t){var n={};return t=Na(t,3),Yr(e,(function(e,r,i){kr(n,r,t(e,r,i))})),n},gr.matches=function(e){return gi(Nr(e,p))},gr.matchesProperty=function(e,t){return mi(e,Nr(t,p))},gr.memoize=uo,gr.merge=uu,gr.mergeWith=cu,gr.method=ku,gr.methodOf=Ou,gr.mixin=ju,gr.negate=co,gr.nthArg=function(e){return e=Vo(e),Fi((function(t){return yi(t,e)}))},gr.omit=lu,gr.omitBy=function(e,t){return fu(e,co(Na(t)))},gr.once=function(e){return no(2,e)},gr.orderBy=function(e,t,n,r){return null==e?[]:(bo(t)||(t=null==t?[]:[t]),bo(n=r?a:n)||(n=null==n?[]:[n]),bi(e,t,n))},gr.over=Hu,gr.overArgs=lo,gr.overEvery=Bu,gr.overSome=Lu,gr.partial=ho,gr.partialRight=fo,gr.partition=Qs,gr.pick=hu,gr.pickBy=fu,gr.property=Mu,gr.propertyOf=function(e){return function(t){return null==e?a:Qr(e,t)}},gr.pull=Fs,gr.pullAll=Cs,gr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?xi(e,t,Na(n,2)):e},gr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?xi(e,t,a,n):e},gr.pullAt=Ds,gr.range=Uu,gr.rangeRight=Vu,gr.rearg=po,gr.reject=function(e,t){return(bo(e)?Jt:Kr)(e,co(Na(t,3)))},gr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=Na(t,3);++r<a;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Si(e,i),n},gr.rest=function(e,t){if("function"!=typeof e)throw new it(u);return Fi(e,t=t===a?t:Vo(t))},gr.reverse=Rs,gr.sampleSize=function(e,t,n){return t=(n?Wa(e,t,n):t===a)?1:Vo(t),(bo(e)?Dr:Di)(e,t)},gr.set=function(e,t,n){return null==e?e:Ri(e,t,n)},gr.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Ri(e,t,n,r)},gr.shuffle=function(e){return(bo(e)?Rr:Ti)(e)},gr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Wa(e,t,n)?(t=0,n=r):(t=null==t?0:Vo(t),n=n===a?r:Vo(n)),Pi(e,t,n)):[]},gr.sortBy=Zs,gr.sortedUniq=function(e){return e&&e.length?ji(e):[]},gr.sortedUniqBy=function(e,t){return e&&e.length?ji(e,Na(t,2)):[]},gr.split=function(e,t,n){return n&&"number"!=typeof n&&Wa(e,t,n)&&(t=n=a),(n=n===a?H:n>>>0)?(e=Go(e))&&("string"==typeof t||null!=t&&!ko(t))&&!(t=Hi(t))&&Dn(e)?Xi(kn(e),0,n):e.split(t,n):[]},gr.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:Gn(Vo(t),0),Fi((function(n){var r=n[t],i=Xi(n,0,t);return r&&tn(i,r),zt(e,this,i)}))},gr.tail=function(e){var t=null==e?0:e.length;return t?Pi(e,1,t):[]},gr.take=function(e,t,n){return e&&e.length?Pi(e,0,(t=n||t===a?1:Vo(t))<0?0:t):[]},gr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Pi(e,(t=r-(t=n||t===a?1:Vo(t)))<0?0:t,r):[]},gr.takeRightWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!1,!0):[]},gr.takeWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3)):[]},gr.tap=function(e,t){return t(e),e},gr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(u);return $o(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ao(e,t,{leading:r,maxWait:t,trailing:i})},gr.thru=Ms,gr.toArray=Mo,gr.toPairs=pu,gr.toPairsIn=du,gr.toPath=function(e){return bo(e)?en(e,hs):No(e)?[e]:ia(ls(Go(e)))},gr.toPlainObject=zo,gr.transform=function(e,t,n){var r=bo(e),i=r||Eo(e)||Ho(e);if(t=Na(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:$o(e)&&Co(a)?mr($t(e)):{}}return(i?Wt:Yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},gr.unary=function(e){return to(e,1)},gr.union=$s,gr.unionBy=Is,gr.unionWith=Ts,gr.uniq=function(e){return e&&e.length?Bi(e):[]},gr.uniqBy=function(e,t){return e&&e.length?Bi(e,Na(t,2)):[]},gr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Bi(e,a,t):[]},gr.unset=function(e,t){return null==e||Li(e,t)},gr.unzip=Ps,gr.unzipWith=_s,gr.update=function(e,t,n){return null==e?e:Mi(e,t,Gi(n))},gr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Mi(e,t,Gi(n),r)},gr.values=gu,gr.valuesIn=function(e){return null==e?[]:wn(e,ou(e))},gr.without=ks,gr.words=Cu,gr.wrap=function(e,t){return ho(Gi(t),e)},gr.xor=Os,gr.xorBy=js,gr.xorWith=Ns,gr.zip=Hs,gr.zipObject=function(e,t){return Ki(e||[],t||[],Ir)},gr.zipObjectDeep=function(e,t){return Ki(e||[],t||[],Ri)},gr.zipWith=Bs,gr.entries=pu,gr.entriesIn=du,gr.extend=Yo,gr.extendWith=Xo,ju(gr,gr),gr.add=zu,gr.attempt=Du,gr.camelCase=mu,gr.capitalize=vu,gr.ceil=Gu,gr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Ko(n))==n?n:0),t!==a&&(t=(t=Ko(t))==t?t:0),jr(Ko(e),t,n)},gr.clone=function(e){return Nr(e,g)},gr.cloneDeep=function(e){return Nr(e,p|g)},gr.cloneDeepWith=function(e,t){return Nr(e,p|g,t="function"==typeof t?t:a)},gr.cloneWith=function(e,t){return Nr(e,g,t="function"==typeof t?t:a)},gr.conformsTo=function(e,t){return null==t||Hr(e,t,su(t))},gr.deburr=yu,gr.defaultTo=function(e,t){return null==e||e!=e?t:e},gr.divide=Wu,gr.endsWith=function(e,t,n){e=Go(e),t=Hi(t);var r=e.length,i=n=n===a?r:jr(Vo(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},gr.eq=go,gr.escape=function(e){return(e=Go(e))&&Ce.test(e)?e.replace(Ae,Fn):e},gr.escapeRegExp=function(e){return(e=Go(e))&&ke.test(e)?e.replace(_e,"\\$&"):e},gr.every=function(e,t,n){var r=bo(e)?Xt:Vr;return n&&Wa(e,t,n)&&(t=a),r(e,Na(t,3))},gr.find=qs,gr.findIndex=vs,gr.findKey=function(e,t){return on(e,Na(t,3),Yr)},gr.findLast=Ks,gr.findLastIndex=ys,gr.findLastKey=function(e,t){return on(e,Na(t,3),Xr)},gr.floor=Yu,gr.forEach=zs,gr.forEachRight=Gs,gr.forIn=function(e,t){return null==e?e:Gr(e,Na(t,3),ou)},gr.forInRight=function(e,t){return null==e?e:Wr(e,Na(t,3),ou)},gr.forOwn=function(e,t){return e&&Yr(e,Na(t,3))},gr.forOwnRight=function(e,t){return e&&Xr(e,Na(t,3))},gr.get=tu,gr.gt=mo,gr.gte=vo,gr.has=function(e,t){return null!=e&&qa(e,t,ni)},gr.hasIn=nu,gr.head=ws,gr.identity=Pu,gr.includes=function(e,t,n,r){e=xo(e)?e:gu(e),n=n&&!r?Vo(n):0;var i=e.length;return n<0&&(n=Gn(i+n,0)),jo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&cn(e,t,n)>-1},gr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Vo(n);return i<0&&(i=Gn(r+i,0)),cn(e,t,i)},gr.inRange=function(e,t,n){return t=Uo(t),n===a?(n=t,t=0):n=Uo(n),function(e,t,n){return e>=Wn(t,n)&&e<Gn(t,n)}(e=Ko(e),t,n)},gr.invoke=au,gr.isArguments=yo,gr.isArray=bo,gr.isArrayBuffer=wo,gr.isArrayLike=xo,gr.isArrayLikeObject=So,gr.isBoolean=function(e){return!0===e||!1===e||Io(e)&&ei(e)==K},gr.isBuffer=Eo,gr.isDate=Ao,gr.isElement=function(e){return Io(e)&&1===e.nodeType&&!_o(e)},gr.isEmpty=function(e){if(null==e)return!0;if(xo(e)&&(bo(e)||"string"==typeof e||"function"==typeof e.splice||Eo(e)||Ho(e)||yo(e)))return!e.length;var t=Va(e);if(t==J||t==re)return!e.size;if(Qa(e))return!hi(e).length;for(var n in e)if(lt.call(e,n))return!1;return!0},gr.isEqual=function(e,t){return oi(e,t)},gr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?oi(e,t,a,n):!!r},gr.isError=Fo,gr.isFinite=function(e){return"number"==typeof e&&qn(e)},gr.isFunction=Co,gr.isInteger=Do,gr.isLength=Ro,gr.isMap=To,gr.isMatch=function(e,t){return e===t||ui(e,t,Ba(t))},gr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,ui(e,t,Ba(t),n)},gr.isNaN=function(e){return Po(e)&&e!=+e},gr.isNative=function(e){if(Ja(e))throw new je(o);return ci(e)},gr.isNil=function(e){return null==e},gr.isNull=function(e){return null===e},gr.isNumber=Po,gr.isObject=$o,gr.isObjectLike=Io,gr.isPlainObject=_o,gr.isRegExp=ko,gr.isSafeInteger=function(e){return Do(e)&&e>=-O&&e<=O},gr.isSet=Oo,gr.isString=jo,gr.isSymbol=No,gr.isTypedArray=Ho,gr.isUndefined=function(e){return e===a},gr.isWeakMap=function(e){return Io(e)&&Va(e)==oe},gr.isWeakSet=function(e){return Io(e)&&ei(e)==ue},gr.join=function(e,t){return null==e?"":Kn.call(e,t)},gr.kebabCase=bu,gr.last=As,gr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=Vo(n))<0?Gn(r+i,0):Wn(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):un(e,hn,i,!0)},gr.lowerCase=wu,gr.lowerFirst=xu,gr.lt=Bo,gr.lte=Lo,gr.max=function(e){return e&&e.length?qr(e,Pu,ti):a},gr.maxBy=function(e,t){return e&&e.length?qr(e,Na(t,2),ti):a},gr.mean=function(e){return fn(e,Pu)},gr.meanBy=function(e,t){return fn(e,Na(t,2))},gr.min=function(e){return e&&e.length?qr(e,Pu,pi):a},gr.minBy=function(e,t){return e&&e.length?qr(e,Na(t,2),pi):a},gr.stubArray=qu,gr.stubFalse=Ku,gr.stubObject=function(){return{}},gr.stubString=function(){return""},gr.stubTrue=function(){return!0},gr.multiply=Ju,gr.nth=function(e,t){return e&&e.length?yi(e,Vo(t)):a},gr.noConflict=function(){return kt._===this&&(kt._=gt),this},gr.noop=Nu,gr.now=eo,gr.pad=function(e,t,n){e=Go(e);var r=(t=Vo(t))?_n(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ba(Mn(i),n)+e+ba(Ln(i),n)},gr.padEnd=function(e,t,n){e=Go(e);var r=(t=Vo(t))?_n(e):0;return t&&r<t?e+ba(t-r,n):e},gr.padStart=function(e,t,n){e=Go(e);var r=(t=Vo(t))?_n(e):0;return t&&r<t?ba(t-r,n)+e:e},gr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Xn(Go(e).replace(Oe,""),t||0)},gr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Wa(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=Uo(e),t===a?(t=e,e=0):t=Uo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Jn();return Wn(e+i*(t-e+It("1e-"+((i+"").length-1))),t)}return Ei(e,t)},gr.reduce=function(e,t,n){var r=bo(e)?nn:gn,i=arguments.length<3;return r(e,Na(t,4),n,i,Mr)},gr.reduceRight=function(e,t,n){var r=bo(e)?rn:gn,i=arguments.length<3;return r(e,Na(t,4),n,i,Ur)},gr.repeat=function(e,t,n){return t=(n?Wa(e,t,n):t===a)?1:Vo(t),Ai(Go(e),t)},gr.replace=function(){var e=arguments,t=Go(e[0]);return e.length<3?t:t.replace(e[1],e[2])},gr.result=function(e,t,n){var r=-1,i=(t=Wi(t,e)).length;for(i||(i=1,e=a);++r<i;){var s=null==e?a:e[hs(t[r])];s===a&&(r=i,s=n),e=Co(s)?s.call(e):s}return e},gr.round=Qu,gr.runInContext=e,gr.sample=function(e){return(bo(e)?Cr:Ci)(e)},gr.size=function(e){if(null==e)return 0;if(xo(e))return jo(e)?_n(e):e.length;var t=Va(e);return t==J||t==re?e.size:hi(e).length},gr.snakeCase=Su,gr.some=function(e,t,n){var r=bo(e)?an:_i;return n&&Wa(e,t,n)&&(t=a),r(e,Na(t,3))},gr.sortedIndex=function(e,t){return ki(e,t)},gr.sortedIndexBy=function(e,t,n){return Oi(e,t,Na(n,2))},gr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ki(e,t);if(r<n&&go(e[r],t))return r}return-1},gr.sortedLastIndex=function(e,t){return ki(e,t,!0)},gr.sortedLastIndexBy=function(e,t,n){return Oi(e,t,Na(n,2),!0)},gr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ki(e,t,!0)-1;if(go(e[n],t))return n}return-1},gr.startCase=Eu,gr.startsWith=function(e,t,n){return e=Go(e),n=null==n?0:jr(Vo(n),0,e.length),t=Hi(t),e.slice(n,n+t.length)==t},gr.subtract=Zu,gr.sum=function(e){return e&&e.length?mn(e,Pu):0},gr.sumBy=function(e,t){return e&&e.length?mn(e,Na(t,2)):0},gr.template=function(e,t,n){var r=gr.templateSettings;n&&Wa(e,t,n)&&(t=a),e=Go(e),t=Xo({},t,r,Da);var i,s,o=Xo({},t.imports,r.imports,Da),u=su(o),l=wn(o,u),h=0,f=t.interpolate||Je,p="__p += '",d=nt((t.escape||Je).source+"|"+f.source+"|"+(f===$e?Ve:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),g="//# sourceURL="+(lt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ct+"]")+"\n";e.replace(d,(function(t,n,r,a,o,u){return r||(r=a),p+=e.slice(h,u).replace(Qe,Cn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),o&&(s=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=u+t.length,t})),p+="';\n";var m=lt.call(t,"variable")&&t.variable;if(m){if(Me.test(m))throw new je(c)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(we,""):p).replace(xe,"$1").replace(Se,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Du((function(){return Ze(u,g+"return "+p).apply(a,l)}));if(v.source=p,Fo(v))throw v;return v},gr.times=function(e,t){if((e=Vo(e))<1||e>O)return[];var n=H,r=Wn(e,H);t=Na(t),e-=H;for(var i=vn(r,t);++n<e;)t(n);return i},gr.toFinite=Uo,gr.toInteger=Vo,gr.toLength=qo,gr.toLower=function(e){return Go(e).toLowerCase()},gr.toNumber=Ko,gr.toSafeInteger=function(e){return e?jr(Vo(e),-O,O):0===e?e:0},gr.toString=Go,gr.toUpper=function(e){return Go(e).toUpperCase()},gr.trim=function(e,t,n){if((e=Go(e))&&(n||t===a))return yn(e);if(!e||!(t=Hi(t)))return e;var r=kn(e),i=kn(t);return Xi(r,Sn(r,i),En(r,i)+1).join("")},gr.trimEnd=function(e,t,n){if((e=Go(e))&&(n||t===a))return e.slice(0,On(e)+1);if(!e||!(t=Hi(t)))return e;var r=kn(e);return Xi(r,0,En(r,kn(t))+1).join("")},gr.trimStart=function(e,t,n){if((e=Go(e))&&(n||t===a))return e.replace(Oe,"");if(!e||!(t=Hi(t)))return e;var r=kn(e);return Xi(r,Sn(r,kn(t))).join("")},gr.truncate=function(e,t){var n=R,r=$;if($o(t)){var i="separator"in t?t.separator:i;n="length"in t?Vo(t.length):n,r="omission"in t?Hi(t.omission):r}var s=(e=Go(e)).length;if(Dn(e)){var o=kn(e);s=o.length}if(n>=s)return e;var u=n-_n(r);if(u<1)return r;var c=o?Xi(o,0,u).join(""):e.slice(0,u);if(i===a)return c+r;if(o&&(u+=c.length-u),ko(i)){if(e.slice(u).search(i)){var l,h=c;for(i.global||(i=nt(i.source,Go(qe.exec(i))+"g")),i.lastIndex=0;l=i.exec(h);)var f=l.index;c=c.slice(0,f===a?u:f)}}else if(e.indexOf(Hi(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},gr.unescape=function(e){return(e=Go(e))&&Fe.test(e)?e.replace(Ee,jn):e},gr.uniqueId=function(e){var t=++ht;return Go(e)+t},gr.upperCase=Au,gr.upperFirst=Fu,gr.each=zs,gr.eachRight=Gs,gr.first=ws,ju(gr,(Xu={},Yr(gr,(function(e,t){lt.call(gr.prototype,t)||(Xu[t]=e)})),Xu),{chain:!1}),gr.VERSION="4.17.21",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){gr[e].placeholder=gr})),Wt(["drop","take"],(function(e,t){br.prototype[e]=function(n){n=n===a?1:Gn(Vo(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Wn(n,r.__takeCount__):r.__views__.push({size:Wn(n,H),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Wt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==P||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Na(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Wt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}})),Wt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}})),br.prototype.compact=function(){return this.filter(Pu)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Fi((function(e,t){return"function"==typeof e?new br(this):this.map((function(n){return ai(n,e,t)}))})),br.prototype.reject=function(e){return this.filter(co(Na(e)))},br.prototype.slice=function(e,t){e=Vo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Vo(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(H)},Yr(br.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=gr[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(gr.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,u=t instanceof br,c=o[0],l=u||bo(t),h=function(e){var t=i.apply(gr,tn([e],o));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,g=u&&!p;if(!s&&l){t=g?t:new br(this);var m=e.apply(t,o);return m.__actions__.push({func:Ms,args:[h],thisArg:a}),new yr(m,f)}return d&&g?e.apply(this,o):(m=this.thru(h),d?r?m.value()[0]:m.value():m)})})),Wt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);gr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(bo(i)?i:[],e)}return this[n]((function(n){return t.apply(bo(n)?n:[],e)}))}})),Yr(br.prototype,(function(e,t){var n=gr[t];if(n){var r=n.name+"";lt.call(sr,r)||(sr[r]=[]),sr[r].push({name:t,func:n})}})),sr[ga(a,b).name]=[{name:"wrapper",func:a}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Wn(t,e+s);break;case"takeRight":e=Gn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=a.start,o=a.end,u=o-s,c=r?o:s-1,l=this.__iteratees__,h=l.length,f=0,p=Wn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return Vi(e,this.__actions__);var d=[];e:for(;u--&&f<p;){for(var g=-1,m=e[c+=t];++g<h;){var v=l[g],y=v.iteratee,b=v.type,w=y(m);if(b==_)m=w;else if(!w){if(b==P)continue e;break e}}d[f++]=m}return d},gr.prototype.at=Us,gr.prototype.chain=function(){return Ls(this)},gr.prototype.commit=function(){return new yr(this.value(),this.__chain__)},gr.prototype.next=function(){this.__values__===a&&(this.__values__=Mo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},gr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=ps(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},gr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:Ms,args:[Rs],thisArg:a}),new yr(t,this.__chain__)}return this.thru(Rs)},gr.prototype.toJSON=gr.prototype.valueOf=gr.prototype.value=function(){return Vi(this.__wrapped__,this.__actions__)},gr.prototype.first=gr.prototype.head,Ht&&(gr.prototype[Ht]=function(){return this}),gr}();kt._=Nn,(i=function(){return Nn}.call(t,n,t,r))===a||(r.exports=i)}).call(this)}).call(this,n(5),n(158)(e))},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}},function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","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.transition","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-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.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("collapse",["$animate",function(e){return{link:function(t,n,r){function i(){n.removeClass("collapse").addClass("collapsing"),e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing"),n.css({height:"auto"})}function s(){n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing"),e.removeClass(n,"in",{to:{height:"0"}}).then(o)}function o(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}t.$watch(r.collapse,(function(e){e?s():i()}))}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",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(){t.removeGroup(e)}))},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",(function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}})).directive("accordionGroup",(function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,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.$watch("isOpen",(function(t){t&&r.closeOthers(e)})),e.toggleOpen=function(){e.isDisabled||(e.isOpen=!e.isOpen)}}}})).directive("accordionHeading",(function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}})).directive("accordionTransclude",(function(){return{require:"^accordionGroup",link:function(e,t,n,r){e.$watch((function(){return r[n.accordionTransclude]}),(function(e){e&&(t.html(""),t.append(e))}))}}})),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable="close"in t,this.close=e.close}]).directive("alert",(function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}})).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,r,i){e((function(){i.close()}),parseInt(r.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",(function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),e.$watch(n.bindHtmlUnsafe,(function(e){t.html(e||"")}))}})),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",(function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){var i=r[0],a=r[1];a.$render=function(){t.toggleClass(i.activeClass,angular.equals(a.$modelValue,e.$eval(n.btnRadio)))},t.bind(i.toggleEvent,(function(){var r=t.hasClass(i.activeClass);(!r||angular.isDefined(n.uncheckable))&&e.$apply((function(){a.$setViewValue(r?null:e.$eval(n.btnRadio)),a.$render()}))}))}}})).directive("btnCheckbox",(function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){function i(){return a(n.btnCheckboxTrue,!0)}function a(t,n){var r=e.$eval(t);return angular.isDefined(r)?r:n}var s=r[0],o=r[1];o.$render=function(){t.toggleClass(s.activeClass,angular.equals(o.$modelValue,i()))},t.bind(s.toggleEvent,(function(){e.$apply((function(){o.$setViewValue(t.hasClass(s.activeClass)?a(n.btnCheckboxFalse,!1):i()),o.$render()}))}))}}})),angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$interval","$animate",function(e,t,n){function r(e){if(angular.isUndefined(l[e].index))return l[e];var t;for(l.length,t=0;t<l.length;++t)if(l[t].index==e)return l[t]}function i(){a();var n=+e.interval;!isNaN(n)&&n>0&&(o=t(s,n))}function a(){o&&(t.cancel(o),o=null)}function s(){var t=+e.interval;u&&!isNaN(t)&&t>0?e.next():e.pause()}var o,u,c=this,l=c.slides=e.slides=[],h=-1;c.currentSlide=null;var f=!1;c.select=e.select=function(t,r){var a=c.indexOfSlide(t);void 0===r&&(r=a>c.getCurrentIndex()?"next":"prev"),t&&t!==c.currentSlide&&(f||(angular.extend(t,{direction:r,active:!0}),angular.extend(c.currentSlide||{},{direction:r,active:!1}),n.enabled()&&!e.noTransition&&t.$element&&(e.$currentTransition=!0,t.$element.one("$animate:close",(function(){e.$currentTransition=null}))),c.currentSlide=t,h=a,i()))},e.$on("$destroy",(function(){f=!0})),c.getCurrentIndex=function(){return c.currentSlide&&angular.isDefined(c.currentSlide.index)?+c.currentSlide.index:h},c.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:l.indexOf(e)},e.next=function(){var t=(c.getCurrentIndex()+1)%l.length;return e.$currentTransition?void 0:c.select(r(t),"next")},e.prev=function(){var t=c.getCurrentIndex()-1<0?l.length-1:c.getCurrentIndex()-1;return e.$currentTransition?void 0:c.select(r(t),"prev")},e.isActive=function(e){return c.currentSlide===e},e.$watch("interval",i),e.$on("$destroy",a),e.play=function(){u||(u=!0,i())},e.pause=function(){e.noPause||(u=!1,a())},c.addSlide=function(t,n){t.$element=n,l.push(t),1===l.length||t.active?(c.select(l[l.length-1]),1==l.length&&e.play()):t.active=!1},c.removeSlide=function(e){angular.isDefined(e.index)&&l.sort((function(e,t){return+e.index>+t.index}));var t=l.indexOf(e);l.splice(t,1),l.length>0&&e.active?c.select(t>=l.length?l[t-1]:l[t]):h>t&&h--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",(function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?",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",["$animate",function(e){return{beforeAddClass:function(t,n,r){if("active"==n&&t.parent()&&!t.parent().scope().noTransition){var i=!1,a=t.isolateScope().direction,s="next"==a?"left":"right";return t.addClass(a),e.addClass(t,s).then((function(){i||t.removeClass(s+" "+a),r()})),function(){i=!0}}r()},beforeRemoveClass:function(t,n,r){if("active"==n&&t.parent()&&!t.parent().scope().noTransition){var i=!1,a="next"==t.isolateScope().direction?"left":"right";return e.addClass(t,a).then((function(){i||t.removeClass(a),r()})),function(){i=!0}}r()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(e,t){function n(e){var n=[],r=e.split("");return angular.forEach(i,(function(t,i){var a=e.indexOf(i);if(a>-1){e=e.split(""),r[a]="("+t.regex+")",e[a]="$";for(var s=a+1,o=a+i.length;o>s;s++)r[s]="",e[s]="$";e=e.join(""),n.push({index:a,apply:t.apply})}})),{regex:new RegExp("^"+r.join("")+"$"),map:t(n,"index")}}var r=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.parsers={};var i={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:e.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:e.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},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:e.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:e.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",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}}};this.parse=function(t,i,a){if(!angular.isString(t)||!i)return t;i=(i=e.DATETIME_FORMATS[i]||i).replace(r,"\\$&"),this.parsers[i]||(this.parsers[i]=n(i));var s=this.parsers[i],o=s.regex,u=s.map,c=t.match(o);if(c&&c.length){var l,h;l=a?{year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),milliseconds:a.getMilliseconds()}:{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0};for(var f=1,p=c.length;p>f;f++){var d=u[f-1];d.apply&&d.apply.call(l,c[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)}(l.year,l.month,l.date)&&(h=new Date(l.year,l.month,l.date,l.hours,l.minutes,l.seconds,l.milliseconds||0)),h}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$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},a=r(t[0]);a!=e[0]&&((i=this.offset(angular.element(a))).top+=a.clientTop-a.scrollTop,i.left+=a.clientLeft-a.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,a,s,o,u=n.split("-"),c=u[0],l=u[1]||"center";i=r?this.offset(e):this.position(e),a=t.prop("offsetWidth"),s=t.prop("offsetHeight");var h={center:function(){return i.left+i.width/2-a/2},left:function(){return i.left},right:function(){return i.left+i.width}},f={center:function(){return i.top+i.height/2-s/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(c){case"right":o={top:f[l](),left:h[c]()};break;case"left":o={top:f[l](),left:i.left-a};break;case"bottom":o={top:f[c](),left:h[l]()};break;default:o={top:i.top-s,left:h[l]()}}return o}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{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("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(e,t,n,r,i,a,s,o){var u=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){u[n]=angular.isDefined(t[n])?8>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):o[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]=o[r]?new Date(o[r]):null})),e.datepickerMode=e.datepickerMode||o.datepickerMode,e.maxMode=u.maxMode,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),t=!isNaN(e);t?this.activeDate=e:a.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.'),c.$setValidity("date",t)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=c.$viewValue?new Date(c.$viewValue):null;c.$setValidity("date-disabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=c.$viewValue?new Date(c.$viewValue):null;return{date:e,label:s(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===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"};var l=function(){i((function(){u.element[0].focus()}),0,!1)};e.$on("datepicker.focus",l),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),l()}else!t.ctrlKey||"up"!==n&&"down"!==n?(u.handleKeyDown(n,t),u.refreshView()):(e.toggleMode("up"===n?1:-1),l())}}]).directive("datepicker",(function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(e,t,n,r){var i=r[0],a=r[1];a&&i.init(a)}}})).directive("daypicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,n,r,i){function a(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?o[t]:29}function s(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}t.showWeeks=i.showWeeks,i.step={months:1},i.element=n;var o=[31,28,31,30,31,30,31,31,30,31,30,31];i._refreshView=function(){var n=i.activeDate.getFullYear(),r=i.activeDate.getMonth(),a=new Date(n,r,1),o=i.startingDay-a.getDay(),u=o>0?7-o:-o,c=new Date(a);u>0&&c.setDate(1-u);for(var l=function(e,t){var n=new Array(t),r=new Date(e),i=0;for(r.setHours(12);t>i;)n[i++]=new Date(r),r.setDate(r.getDate()+1);return n}(c,42),h=0;42>h;h++)l[h]=angular.extend(i.createDateObject(l[h],i.formatDay),{secondary:l[h].getMonth()!==r,uid:t.uniqueId+"-"+h});t.labels=new Array(7);for(var f=0;7>f;f++)t.labels[f]={abbr:e(l[f].date,i.formatDayHeader),full:e(l[f].date,"EEEE")};if(t.title=e(i.activeDate,i.formatDayTitle),t.rows=i.split(l,7),t.showWeeks){t.weekNumbers=[];for(var p=(11-i.startingDay)%7,d=t.rows.length,g=0;d>g;g++)t.weekNumbers.push(s(t.rows[g][p].date))}},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},i.handleKeyDown=function(e){var t=i.activeDate.getDate();if("left"===e)t-=1;else if("up"===e)t-=7;else if("right"===e)t+=1;else if("down"===e)t+=7;else if("pageup"===e||"pagedown"===e){var n=i.activeDate.getMonth()+("pageup"===e?-1:1);i.activeDate.setMonth(n,1),t=Math.min(a(i.activeDate.getFullYear(),i.activeDate.getMonth()),t)}else"home"===e?t=1:"end"===e&&(t=a(i.activeDate.getFullYear(),i.activeDate.getMonth()));i.activeDate.setDate(t)},i.refreshView()}}}]).directive("monthpicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,n,r,i){i.step={years:1},i.element=n,i._refreshView=function(){for(var n=new Array(12),r=i.activeDate.getFullYear(),a=0;12>a;a++)n[a]=angular.extend(i.createDateObject(new Date(r,a,1),i.formatMonth),{uid:t.uniqueId+"-"+a});t.title=e(i.activeDate,i.formatMonthTitle),t.rows=i.split(n,3)},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},i.handleKeyDown=function(e){var t=i.activeDate.getMonth();if("left"===e)t-=1;else if("up"===e)t-=3;else if("right"===e)t+=1;else if("down"===e)t+=3;else if("pageup"===e||"pagedown"===e){var n=i.activeDate.getFullYear()+("pageup"===e?-1:1);i.activeDate.setFullYear(n)}else"home"===e?t=0:"end"===e&&(t=11);i.activeDate.setMonth(t)},i.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(e,t,n,r){function i(e){return parseInt((e-1)/a,10)*a+1}var a=r.yearRange;r.step={years:a},r.element=t,r._refreshView=function(){for(var t=new Array(a),n=0,s=i(r.activeDate.getFullYear());a>n;n++)t[n]=angular.extend(r.createDateObject(new Date(s+n,0,1),r.formatYear),{uid:e.uniqueId+"-"+n});e.title=[t[0].label,t[a-1].label].join(" - "),e.rows=r.split(t,5)},r.compare=function(e,t){return e.getFullYear()-t.getFullYear()},r.handleKeyDown=function(e){var t=r.activeDate.getFullYear();"left"===e?t-=1:"up"===e?t-=5:"right"===e?t+=1:"down"===e?t+=5:"pageup"===e||"pagedown"===e?t+=("pageup"===e?-1:1)*r.step.years:"home"===e?t=i(r.activeDate.getFullYear()):"end"===e&&(t=i(r.activeDate.getFullYear())+a-1),r.activeDate.setFullYear(t)},r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",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}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(e,t,n,r,i,a,s){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(o,u,c,l){function h(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}var f,p=angular.isDefined(c.closeOnDateSelection)?o.$parent.$eval(c.closeOnDateSelection):s.closeOnDateSelection,d=angular.isDefined(c.datepickerAppendToBody)?o.$parent.$eval(c.datepickerAppendToBody):s.appendToBody;o.showButtonBar=angular.isDefined(c.showButtonBar)?o.$parent.$eval(c.showButtonBar):s.showButtonBar,o.getText=function(e){return o[e+"Text"]||s[e+"Text"]};var g=!1;if(s.html5Types[c.type]?(f=s.html5Types[c.type],g=!0):(f=c.datepickerPopup||s.datepickerPopup,c.$observe("datepickerPopup",(function(e){var t=e||s.datepickerPopup;if(t!==f&&(f=t,l.$modelValue=null,!f))throw new Error("datepickerPopup must have a date format specified.")}))),!f)throw new Error("datepickerPopup must have a date format specified.");if(g&&c.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");var m=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");m.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(m.children()[0]);if(g&&"month"==c.type&&(v.attr("datepicker-mode",'"month"'),v.attr("min-mode","month")),c.datepickerOptions){var y=o.$parent.$eval(c.datepickerOptions);y.initDate&&(o.initDate=y.initDate,v.attr("init-date","initDate"),delete y.initDate),angular.forEach(y,(function(e,t){v.attr(h(t),e)}))}o.watchData={},angular.forEach(["minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],(function(e){if(c[e]){var n=t(c[e]);if(o.$parent.$watch(n,(function(t){o.watchData[e]=t})),v.attr(h(e),"watchData."+e),"datepickerMode"===e){var r=n.assign;o.$watch("watchData."+e,(function(e,t){e!==t&&r(o.$parent,e)}))}}})),c.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),c.showWeeks&&v.attr("show-weeks",c.showWeeks),c.customClass&&v.attr("custom-class","customClass({ date: date, mode: mode })"),g?l.$formatters.push((function(e){return o.date=e,e})):(l.$$parserName="date",l.$validators.date=function(e,t){var n=e||t;if(angular.isNumber(n)&&(n=new Date(n)),n){if(angular.isDate(n)&&!isNaN(n))return!0;if(angular.isString(n)){var r=a.parse(n,f)||new Date(n);return!isNaN(r)}return!1}return!0},l.$parsers.unshift((function(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=a.parse(e,f,o.date)||new Date(e);return isNaN(t)?void 0:t}})),l.$formatters.push((function(e){return o.date=e,l.$isEmpty(e)?e:i(e,f)}))),o.dateSelection=function(e){angular.isDefined(e)&&(o.date=e);var t=o.date?i(o.date,f):"";u.val(t),l.$setViewValue(t),p&&(o.isOpen=!1,u[0].focus())},l.$viewChangeListeners.push((function(){o.date=a.parse(l.$viewValue,f,o.date)||new Date(l.$viewValue)}));var b=function(e){o.isOpen&&e.target!==u[0]&&o.$apply((function(){o.isOpen=!1}))},w=function(e){o.keydown(e)};u.bind("keydown",w),o.keydown=function(e){27===e.which?(e.preventDefault(),o.isOpen&&e.stopPropagation(),o.close()):40!==e.which||o.isOpen||(o.isOpen=!0)},o.$watch("isOpen",(function(e){e?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(u):r.position(u),o.position.top=o.position.top+u.prop("offsetHeight"),n.bind("click",b)):n.unbind("click",b)})),o.select=function(e){if("today"===e){var t=new Date;angular.isDate(o.date)?(e=new Date(o.date)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):e=new Date(t.setHours(0,0,0,0))}o.dateSelection(e)},o.close=function(){o.isOpen=!1,u[0].focus()};var x=e(m)(o);m.remove(),d?n.find("body").append(x):u.after(x),o.$on("$destroy",(function(){x.remove(),u.unbind("keydown",w),n.unbind("click",b)}))}}}]).directive("datepickerPopupWrap",(function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(e,t){t.bind("click",(function(e){e.preventDefault(),e.stopPropagation()}))}}})),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$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.getElement();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())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document",function(e,t,n,r,i,a,s,o){var u,c=this,l=e.$new(),h=r.openClass,f=angular.noop,p=t.onToggle?n(t.onToggle):angular.noop,d=!1;this.init=function(r){c.$element=r,t.isOpen&&(u=n(t.isOpen),f=u.assign,e.$watch(u,(function(e){l.isOpen=!!e}))),(d=angular.isDefined(t.dropdownAppendToBody))&&c.dropdownMenu&&(o.find("body").append(c.dropdownMenu),r.on("$destroy",(function(){c.dropdownMenu.remove()})))},this.toggle=function(e){return l.isOpen=arguments.length?!!e:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return c.toggleElement},l.getAutoClose=function(){return t.autoClose||"always"},l.getElement=function(){return c.$element},l.focusToggleElement=function(){c.toggleElement&&c.toggleElement[0].focus()},l.$watch("isOpen",(function(t,n){if(d&&c.dropdownMenu){var r=s.positionElements(c.$element,c.dropdownMenu,"bottom-left",!0);c.dropdownMenu.css({top:r.top+"px",left:r.left+"px",display:t?"block":"none"})}a[t?"addClass":"removeClass"](c.$element,h),t?(l.focusToggleElement(),i.open(l)):i.close(l),f(e,t),angular.isDefined(t)&&t!==n&&p(e,{open:!!t})})),e.$on("$locationChangeSuccess",(function(){l.isOpen=!1})),e.$on("$destroy",(function(){l.$destroy()}))}]).directive("dropdown",(function(){return{controller:"DropdownController",link:function(e,t,n,r){r.init(t)}}})).directive("dropdownMenu",(function(){return{restrict:"AC",require:"?^dropdown",link:function(e,t,n,r){r&&(r.dropdownMenu=t)}}})).directive("dropdownToggle",(function(){return{require:"?^dropdown",link:function(e,t,n,r){if(r){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.modal",[]).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}}}}})).directive("modalBackdrop",["$timeout",function(e){function t(t){t.animate=!1,e((function(){t.animate=!0}))}return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,n){return e.addClass(n.backdropClass),t}}}]).directive("modalWindow",["$modalStack","$q",function(e,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(n,r,i){r.addClass(i.windowClass||""),n.size=i.size,n.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"))},n.$isRendered=!0;var a=t.defer();i.$observe("modalRender",(function(e){"true"==e&&a.resolve()})),a.promise.then((function(){n.animate=!0;var t=r[0].querySelectorAll("[autofocus]");t.length?t[0].focus():r[0].focus();var i=e.getTop();i&&e.modalRendered(i.key)}))}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.modalAnimationClass)}}}]).directive("modalTransclude",(function(){return{link:function(e,t,n,r,i){i(e.$parent,(function(e){t.empty(),t.append(e)}))}}})).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$$stackedMap",function(e,t,n,r,i,a){function s(){for(var e=-1,t=p.keys(),n=0;n<t.length;n++)p.get(t[n]).value.backdrop&&(e=n);return e}function o(e){var t=n.find("body").eq(0),r=p.get(e).value;p.remove(e),u(r.modalDomEl,r.modalScope,(function(){t.toggleClass(f,p.length()>0),function(){if(l&&-1==s()){u(l,h,(function(){null})),l=void 0,h=void 0}}()}))}function u(n,r,a){function s(){s.done||(s.done=!0,n.remove(),r.$destroy(),a&&a())}r.animate=!1,n.attr("modal-animation")&&e.enabled()?n.one("$animate:close",(function(){i.$evalAsync(s)})):t(s)}function c(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var l,h,f="modal-open",p=a.createNew(),d={};return i.$watch(s,(function(e){h&&(h.index=e)})),n.bind("keydown",(function(e){var t;27===e.which&&((t=p.top())&&t.value.keyboard&&(e.preventDefault(),i.$apply((function(){d.dismiss(t.key,"escape key press")}))))})),d.open=function(e,t){var a=n[0].activeElement;p.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});var o=n.find("body").eq(0),u=s();if(u>=0&&!l){(h=i.$new(!0)).index=u;var c=angular.element('<div modal-backdrop="modal-backdrop"></div>');c.attr("backdrop-class",t.backdropClass),t.animation&&c.attr("modal-animation","true"),l=r(c)(h),o.append(l)}var d=angular.element('<div modal-window="modal-window"></div>');d.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:p.length()-1,animate:"animate"}).html(t.content),t.animation&&d.attr("modal-animation","true");var g=r(d)(t.scope);p.top().value.modalDomEl=g,p.top().value.modalOpener=a,o.append(g),o.addClass(f)},d.close=function(e,t){var n=p.get(e);return n&&c(n,t,!0)?(n.value.deferred.resolve(t),o(e),n.value.modalOpener.focus(),!0):!n},d.dismiss=function(e,t){var n=p.get(e);return n&&c(n,t,!1)?(n.value.deferred.reject(t),o(e),n.value.modalOpener.focus(),!0):!n},d.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},d.getTop=function(){return p.top()},d.modalRendered=function(e){var t=p.get(e);t&&t.value.renderDeferred.resolve()},d}]).provider("$modal",(function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,r,i,a,s){function o(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function u(e){var n=[];return angular.forEach(e,(function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(r.when(t.invoke(e)))})),n}var c={open:function(t){var i=r.defer(),c=r.defer(),l=r.defer(),h={result:i.promise,opened:c.promise,rendered:l.promise,close:function(e){return s.close(h,e)},dismiss:function(e){return s.dismiss(h,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 f=r.all([o(t)].concat(u(t.resolve)));return f.then((function(e){var r=(t.scope||n).$new();r.$close=h.close,r.$dismiss=h.dismiss;var o,u={},c=1;t.controller&&(u.$scope=r,u.$modalInstance=h,angular.forEach(t.resolve,(function(t,n){u[n]=e[c++]})),o=a(t.controller,u),t.controllerAs&&(r[t.controllerAs]=o)),s.open(h,{scope:r,deferred:i,renderDeferred:l,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})}),(function(e){i.reject(e)})),f.then((function(){c.resolve(!0)}),(function(e){c.reject(e)})),h}};return c}]};return e})),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},a=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(s,o){i=s,this.config=o,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=o.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=r.calculateTotalPages()})),e.$watch("totalPages",(function(t){a(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){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("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,r,i,a){function s(e,t,n){return{number:e,text:t,active:n}}var o=a[0],u=a[1];if(u){var c=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,l=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,o.init(u,t),i.maxSize&&n.$parent.$watch(e(i.maxSize),(function(e){c=parseInt(e,10),o.render()}));var h=o.render;o.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=function(e,t){var n=[],r=1,i=t,a=angular.isDefined(c)&&t>c;a&&(l?(i=(r=Math.max(e-Math.floor(c/2),1))+c-1)>t&&(r=(i=t)-c+1):(r=(Math.ceil(e/c)-1)*c+1,i=Math.min(r+c-1,t)));for(var o=r;i>=o;o++){var u=s(o,o,o===e);n.push(u)}if(a&&!l){if(r>1){var h=s(r-1,"...",!1);n.unshift(h)}if(t>i){var f=s(i+1,"...",!1);n.push(f)}}return n}(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,n,r,i){var a=i[0],s=i[1];s&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align,a.init(s,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",(function(){var e={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",focus:"blur"},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(r,i,a,s,o,u){return function(r,c,l,h){function f(e){var n=e||h.trigger||l;return{show:n,hide:t[n]||n}}h=angular.extend({},e,n,h);var p=function(e){return e.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()}))}(r),d=u.startSymbol(),g=u.endSymbol(),m="<div "+p+'-popup title="'+d+"title"+g+'" '+(h.useContentExp?'content-exp="contentExp()" ':'content="'+d+"content"+g+'" ')+'placement="'+d+"placement"+g+'" popup-class="'+d+"popupClass"+g+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(){var e=i(m);return function(t,n,i){function u(){A.isOpen?p():l()}function l(){(!E||t.$eval(i[c+"Enable"]))&&(A.popupClass=i[c+"Class"],function(){var e=i[c+"Placement"];A.placement=angular.isDefined(e)?e:h.placement}(),function(){var e=i[c+"PopupDelay"],t=parseInt(e,10);A.popupDelay=isNaN(t)?h.popupDelay:t}(),A.popupDelay?w||(w=a(d,A.popupDelay,!1)).then((function(e){e()})):d()())}function p(){t.$apply((function(){g()}))}function d(){return w=null,b&&(a.cancel(b),b=null),(h.useContentExp?A.contentExp():A.content)?(v&&m(),y=A.$new(),v=e(y,(function(e){x?s.find("body").append(e):n.after(e)})),y.$watch((function(){a(F,0,!1)})),h.useContentExp&&y.$watch("contentExp()",(function(e){!e&&A.isOpen&&g()})),v.css({top:0,left:0,display:"block"}),A.$digest(),F(),A.isOpen=!0,A.$apply(),F):angular.noop}function g(){A.isOpen=!1,a.cancel(w),w=null,A.animation?b||(b=a(m,500)):m()}function m(){b=null,v&&(v.remove(),v=null),y&&(y.$destroy(),y=null)}var v,y,b,w,x=!!angular.isDefined(h.appendToBody)&&h.appendToBody,S=f(void 0),E=angular.isDefined(i[c+"Enable"]),A=t.$new(!0),F=function(){if(v){var e=o.positionElements(n,v,A.placement,x);e.top+="px",e.left+="px",v.css(e)}};A.origScope=t,A.isOpen=!1,A.contentExp=function(){return t.$eval(i[r])},h.useContentExp||i.$observe(r,(function(e){A.content=e,!e&&A.isOpen&&g()})),i.$observe("disabled",(function(e){e&&A.isOpen&&g()})),i.$observe(c+"Title",(function(e){A.title=e}));var C=function(){n.unbind(S.show,l),n.unbind(S.hide,p)};!function(){var e=i[c+"Trigger"];C(),(S=f(e)).show===S.hide?n.bind(S.show,u):(n.bind(S.show,l),n.bind(S.hide,p))}();var D=t.$eval(i[c+"Animation"]);A.animation=angular.isDefined(D)?!!D:h.animation;var R=t.$eval(i[c+"AppendToBody"]);(x=angular.isDefined(R)?R:x)&&t.$on("$locationChangeSuccess",(function(){A.isOpen&&g()})),t.$on("$destroy",(function(){a.cancel(b),a.cancel(w),C(),m(),A=null}))}}}}}]})).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,a,s){var o,u,c,l=i.$eval(s.tooltipTemplateTranscludeScope),h=0,f=function(){u&&(u.remove(),u=null),o&&(o.$destroy(),o=null),c&&(e.leave(c).then((function(){u=null})),u=c,c=null)};i.$watch(t.parseAsResourceUrl(s.tooltipTemplateTransclude),(function(t){var s=++h;t?(r(t,!0).then((function(r){if(s===h){var i=l.$new(),u=n(r)(i,(function(t){f(),e.enter(t,a)}));c=u,(o=i).$emit("$includeContentLoaded",t)}}),(function(){s===h&&(f(),i.$emit("$includeContentError",t))})),i.$emit("$includeContentRequested",t)):f()})),i.$on("$destroy",f)}}}]).directive("tooltipClasses",(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("tooltipPopup",(function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}})).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",(function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}})).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",(function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}})).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",(function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}})).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){return t||n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverTemplatePopup",(function(){return{restrict:"EA",replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html"}})).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverPopup",(function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}})).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",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){i||n.css({transition:"none"}),this.bars.push(t),t.$watch("value",(function(n){t.percent=+(100*n/e.max).toFixed(2)})),t.$on("$destroy",(function(){n=null,r.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)}}]).directive("progress",(function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}})).directive("bar",(function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t)}}})).directive("progressbar",(function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]))}}})),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",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 a=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(a)},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},e[t]);return e},e.rate=function(t){!e.readonly&&t>=0&&t<=e.range.length&&(r.$setViewValue(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("rating",(function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}})),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$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.active=!0,e.onSelect()},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 a=i==r.length-1?i-1:i+1;n.select(r[a])}r.splice(i,1)},e.$on("$destroy",(function(){t=!0}))}]).directive("tabset",(function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",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("tab",["$parse","$log",function(e,t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(n,r,i){return function(n,r,a,s){n.$watch("active",(function(e){e&&s.select(n)})),n.disabled=!1,a.disable&&n.$parent.$watch(e(a.disable),(function(e){n.disabled=!!e})),a.disabled&&(t.warn('Use of "disabled" attribute has been deprecated, please use "disable"'),n.$parent.$watch(e(a.disabled),(function(e){n.disabled=!!e}))),n.select=function(){n.disabled||(n.active=!0)},s.addTab(n),n.$on("$destroy",(function(){s.removeTab(n)})),n.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(e,t){e.$watch("headingElement",(function(e){e&&(t.html(""),t.append(e))}))}}}]).directive("tabContentTransclude",(function(){return{restrict:"A",require:"^tabset",link:function(e,t,n){var r=e.$eval(n.tabContentTransclude);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")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):r.headingElement=e}))}))}}})),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(e,t,n,r,i,a){function s(){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===g[1]&&(t+=12)),t):void 0}function o(){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){l(),d.$setViewValue(new Date(p)),h(e)}function l(){d.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1}function h(t){var n=p.getHours(),r=p.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=p.getHours()<12?g[0]:g[1]}function f(e){var t=new Date(p.getTime()+6e4*e);p.setHours(t.getHours(),t.getMinutes()),c()}var p=new Date,d={$setViewValue:angular.noop},g=angular.isDefined(t.meridians)?e.$parent.$eval(t.meridians):a.meridians||i.DATETIME_FORMATS.AMPMS;this.init=function(n,r){(d=n).$render=this.render,d.$formatters.unshift((function(e){return e?new Date(e):null}));var i=r.eq(0),s=r.eq(1);(angular.isDefined(t.mousewheel)?e.$parent.$eval(t.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(i,s),(angular.isDefined(t.arrowkeys)?e.$parent.$eval(t.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(i,s),e.readonlyInput=angular.isDefined(t.readonlyInput)?e.$parent.$eval(t.readonlyInput):a.readonlyInput,this.setupInputEvents(i,s)};var m=a.hourStep;t.hourStep&&e.$parent.$watch(n(t.hourStep),(function(e){m=parseInt(e,10)}));var v=a.minuteStep;t.minuteStep&&e.$parent.$watch(n(t.minuteStep),(function(e){v=parseInt(e,10)})),e.showMeridian=a.showMeridian,t.showMeridian&&e.$parent.$watch(n(t.showMeridian),(function(t){if(e.showMeridian=!!t,d.$error.time){var n=s(),r=o();angular.isDefined(n)&&angular.isDefined(r)&&(p.setHours(n),c())}else h()})),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){d.$setViewValue(null),d.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n)};e.updateHours=function(){var e=s();angular.isDefined(e)?(p.setHours(e),c("h")):r(!0)},t.bind("blur",(function(){!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=u(e.hours)}))})),e.updateMinutes=function(){var e=o();angular.isDefined(e)?(p.setMinutes(e),c("m")):r(void 0,!0)},n.bind("blur",(function(){!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=u(e.minutes)}))}))},this.render=function(){var e=d.$viewValue;isNaN(e)?(d.$setValidity("time",!1),r.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.')):(e&&(p=e),l(),h())},e.incrementHours=function(){f(60*m)},e.decrementHours=function(){f(60*-m)},e.incrementMinutes=function(){f(v)},e.decrementMinutes=function(){f(-v)},e.toggleMeridian=function(){f(720*(p.getHours()<12?1:-1))}}]).directive("timepicker",(function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(e,t,n,r){var i=r[0],a=r[1];a&&i.init(a,t.find("input"))}}})),angular.module("ui.bootstrap.transition",[]).value("$transitionSuppressDeprecated",!1).factory("$transition",["$q","$timeout","$rootScope","$log","$transitionSuppressDeprecated",function(e,t,n,r,i){function a(e){for(var t in e)if(void 0!==o.style[t])return e[t]}i||r.warn("$transition is now deprecated. Use $animate from ngAnimate instead.");var s=function(r,i,a){a=a||{};var o=e.defer(),u=s[a.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply((function(){r.unbind(u,c),o.resolve(r)}))};return u&&r.bind(u,c),t((function(){angular.isString(i)?r.addClass(i):angular.isFunction(i)?i(r):angular.isObject(i)&&r.css(i),u||o.resolve(r)})),o.promise.cancel=function(){u&&r.unbind(u,c),o.reject("Transition cancelled")},o.promise},o=document.createElement("trans");return s.transitionEndEventName=a({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),s.animationEndEventName=a({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),s}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$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])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(e,t,n,r,i,a,s){var o=[9,13,27,38,40];return{require:"ngModel",link:function(u,c,l,h){var f,p=u.$eval(l.typeaheadMinLength)||1,d=u.$eval(l.typeaheadWaitMs)||0,g=!1!==u.$eval(l.typeaheadEditable),m=t(l.typeaheadLoading).assign||angular.noop,v=t(l.typeaheadOnSelect),y=l.typeaheadInputFormatter?t(l.typeaheadInputFormatter):void 0,b=!!l.typeaheadAppendToBody&&u.$eval(l.typeaheadAppendToBody),w=!1!==u.$eval(l.typeaheadFocusFirst),x=t(l.ngModel).assign,S=s.parse(l.typeahead),E=u.$new();u.$on("$destroy",(function(){E.$destroy()}));var A="typeahead-"+E.$id+"-"+Math.floor(1e4*Math.random());c.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":A});var F=angular.element("<div typeahead-popup></div>");F.attr({id:A,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(l.typeaheadTemplateUrl)&&F.attr("template-url",l.typeaheadTemplateUrl);var C=function(){E.matches=[],E.activeIdx=-1,c.attr("aria-expanded",!1)},D=function(e){return A+"-option-"+e};E.$watch("activeIdx",(function(e){0>e?c.removeAttr("aria-activedescendant"):c.attr("aria-activedescendant",D(e))}));var R=function(e){var t={$viewValue:e};m(u,!0),n.when(S.source(u,t)).then((function(n){var r=e===h.$viewValue;if(r&&f)if(n&&n.length>0){E.activeIdx=w?0:-1,E.matches.length=0;for(var i=0;i<n.length;i++)t[S.itemName]=n[i],E.matches.push({id:D(i),label:S.viewMapper(E,t),model:n[i]});E.query=e,E.position=b?a.offset(c):a.position(c),E.position.top=E.position.top+c.prop("offsetHeight"),c.attr("aria-expanded",!0)}else C();r&&m(u,!1)}),(function(){C(),m(u,!1)}))};C(),E.query=void 0;var $,I=function(){$&&r.cancel($)};h.$parsers.unshift((function(e){return f=!0,e&&e.length>=p?d>0?(I(),function(e){$=r((function(){R(e)}),d)}(e)):R(e):(m(u,!1),I(),C()),g?e:e?void h.$setValidity("editable",!1):(h.$setValidity("editable",!0),e)})),h.$formatters.push((function(e){var t,n={};return g||h.$setValidity("editable",!0),y?(n.$model=e,y(u,n)):(n[S.itemName]=e,t=S.viewMapper(u,n),n[S.itemName]=void 0,t!==S.viewMapper(u,n)?t:e)})),E.select=function(e){var t,n,i={};i[S.itemName]=n=E.matches[e].model,t=S.modelMapper(u,i),x(u,t),h.$setValidity("editable",!0),h.$setValidity("parse",!0),v(u,{$item:n,$model:t,$label:S.viewMapper(u,i)}),C(),r((function(){c[0].focus()}),0,!1)},c.bind("keydown",(function(e){0!==E.matches.length&&-1!==o.indexOf(e.which)&&(-1!=E.activeIdx||13!==e.which&&9!==e.which)&&(e.preventDefault(),40===e.which?(E.activeIdx=(E.activeIdx+1)%E.matches.length,E.$digest()):38===e.which?(E.activeIdx=(E.activeIdx>0?E.activeIdx:E.matches.length)-1,E.$digest()):13===e.which||9===e.which?E.$apply((function(){E.select(E.activeIdx)})):27===e.which&&(e.stopPropagation(),C(),E.$digest()))})),c.bind("blur",(function(){f=!1}));var T=function(e){c[0]!==e.target&&(C(),E.$digest())};i.bind("click",T),u.$on("$destroy",(function(){i.unbind("click",T),b&&P.remove(),F.remove()}));var P=e(F)(E);b?i.find("body").append(P):c.after(P)}}}]).directive("typeaheadPopup",(function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"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("typeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,i,a){var s=n(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(s).then((function(e){t(e.trim())(r,(function(e){i.replaceWith(e)}))}))}}}]).filter("typeaheadHighlight",(function(){return function(e,t){return t?(""+e).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi"),"<strong>$&</strong>"):e}})),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n <div class="panel-heading">\n <h4 class="panel-title">\n <a href="javascript:void(0)" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" 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-dismissable\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close()">\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 <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:\'index\' track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n </ol>\n <div class="carousel-inner" ng-transclude></div>\n <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),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 <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n <yearpicker ng-switch-when="year" tabindex="0"></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-show="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-show="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}}" aria-disabled="{{!!dt.disabled}}" ng-class="dt.customClass">\n <button type="button" style="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}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="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" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\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\')">{{ 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}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="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 class="modal-backdrop"\n modal-animation-class="fade"\n ng-class="{in: animate}"\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 modal-animation-class="fade"\n\tng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" 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(), previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1, $event)">{{getText(\'next\')}}</a></li>\n</ul>')}]),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()}"><a href ng-click="selectPage(1, $event)">{{getText(\'first\')}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><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}"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1, $event)">{{getText(\'next\')}}</a></li>\n <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages, $event)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n 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-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n 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 class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n 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 tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-window.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-window.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen, fade: animation }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n <div class="popover-content" tooltip-template-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n 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}}%" 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></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}}%" 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 <i ng-repeat="r in range track by $index" 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\')">\n <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n </i>\n</span>')}]),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()" 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 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\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td>:</td>\n\t\t\t<td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n\t\t</tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),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()" 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 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>')},function(e,t,n){var r,i,a;a=function(){angular.module("jlareau.bowser",[]).factory("bowser",(function(){
63
- /*!
64
- * Bowser - a browser detector
65
- * https://github.com/ded/bowser
66
- * MIT License | (c) Dustin Diaz 2015
67
- */
68
- var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}var r,i,a,s=n(/(ipod|iphone|ipad)/i).toLowerCase(),o=!/like android/i.test(t)&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),c=!u&&/nexus\s*[0-9]+/i.test(t),l=/CrOS/.test(t),h=/silk/i.test(t),f=/sailfish/i.test(t),p=/tizen/i.test(t),d=/(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=!o&&!f&&!p&&!d&&/linux/i.test(t),b=n(/edge\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t),S=!x&&/[^-]mobi/i.test(t),E=/xbox/i.test(t);/opera|opr|opios/i.test(t)?r={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?r={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:e,version:w||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)}:l?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)||w}:f?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:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(r={name:"WebOS",webos:e,version:w||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)}:p?r={name:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?r={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?r={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?r={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?r={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(r={name:"Safari",safari:e},w&&(r.version=w)):s?(r={name:"iphone"==s?"iPhone":"ipad"==s?"iPad":"iPod"},w&&(r.version=w)):r=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:{name:n(/^(.*)\/(.*) /),version:(i=/^(.*)\/(.*) /,a=t.match(i),a&&a.length>1&&a[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&&w&&(r.version=w)):!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||!o&&!r.silk?s?(r[s]=e,r.ios=e):v?r.mac=e:E?r.xbox=e:m?r.windows=e:y&&(r.linux=e):r.android=e;var A="";r.windowsphone?A=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):s?A=(A=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):o?A=n(/android[ \/-](\d+(\.\d+)*)/i):r.webos?A=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?A=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?A=n(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(A=n(/tizen[\/\s](\d+(\.\d+)*)/i)),A&&(r.osversion=A);var F=A.split(".")[0];return x||c||"ipad"==s||o&&(3==F||F>=4&&!S)||r.silk?r.tablet=e:(S||"iphone"==s||"ipod"==s||o||u||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=a():void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t){!function(e){var t,n,r,i=e.jQuery||e.angular.element,a=e.document.documentElement,s=i(a);return c("change",u),t=u,n=(e.jQuery||e.angular.element).prototype,r=n.val,n.val=function(e){var n=r.apply(this,arguments);return arguments.length>0&&l(this,(function(n){t(n,e)})),n},i.prototype.checkAndTriggerAutoFillEvent=function(){var e,t;for(e=0;e<this.length;e++)o(t=this[e])||(u(t),h(t))},c("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(){l(document.getElementsByTagName("input"),u),e.setTimeout((function(){s.find("input").checkAndTriggerAutoFillEvent()}),200)}),!1);function o(e){"$$currentValue"in e||(e.$$currentValue=e.getAttribute("value"));var t=e.value,n=e.$$currentValue;return!t&&!n||t===n}function u(e){e.$$currentValue=e.value}function c(e,t){a.addEventListener(e,(function(e){var n=e.target;t(n)}),!0)}function l(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)},function(e,t,n){"use strict";(function(e){
69
- /*!
70
- * The buffer module from node.js, for the browser.
71
- *
72
- * @author Feross Aboukhadijeh <http://feross.org>
73
- * @license MIT
74
- */
75
- var r=n(163),i=n(164),a=n(165);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 c(this,e,t,n)}function c(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);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),i=(e=o(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=o(e,n)).length?e:(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?o(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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(l(t),e=o(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.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 M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return M(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 I(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return $(this,t,n);case"base64":return F(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.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 a,s=1,o=e.length,u=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,o/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(a=n;a<o;a++)if(c(e,a)===c(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*s}else-1!==l&&(a-=a-l),l=-1}else for(n+u>o&&(n=o-u),a=n;a>=0;a--){for(var h=!0,f=0;f<u;f++)if(c(e,a+f)!==c(t,f)){h=!1;break}if(h)return a}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 a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var s=0;s<r;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[n+s]=o}return s}function w(e,t,n,r){return V(M(t,e.length-n),e,n,r)}function x(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function E(e,t,n,r){return V(U(t),e,n,r)}function A(e,t,n,r){return V(function(e,t){for(var n,r,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function F(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,s,o,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.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},u.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},u.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},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.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 a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(r,i),l=e.slice(t,n),h=0;h<o;++h)if(c[h]!==l[h]){a=c[h],s=l[h];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.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 a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function R(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 $(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 I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=L(e[a]);return i}function T(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function P(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 _(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++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,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function j(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,a){return a||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.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),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||_(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||_(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),u.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},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),u.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},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);_(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);_(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),u.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},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.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},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},u.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,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},u.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&&!u.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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=u.isBuffer(e)?e:M(new u(e,r).toString()),o=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function M(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(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(5))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),s=r[0],o=r[1],u=new a(function(e,t,n){return 3*(t+n)/4-n}(0,s,o)),l=0,h=o>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)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===o&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===o&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(l(e,s,s+16383>o?o:s+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=s.length;o<u;++o)r[o]=s[o],i[s.charCodeAt(o)]=o;function c(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 l(e,t,n){for(var i,a,s=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,u=(1<<o)-1,c=u>>1,l=-7,h=n?i-1:0,f=n?-1:1,p=e[t+h];for(h+=f,a=p&(1<<-l)-1,p>>=-l,l+=o;l>0;a=256*a+e[t+h],h+=f,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=r;l>0;s=256*s+e[t+h],h+=f,l-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),a-=c}return(p?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,u,c=8*a-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(t*u-1)*Math.pow(2,i),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&o,p+=d,o/=256,i-=8);for(s=s<<i|o,c+=i;c>0;e[n+p]=255&s,p+=d,s/=256,c-=8);e[n+p-d]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){
76
- /**
77
- * oclazyload - Load modules on demand (lazy load) with angularJS
78
- * @version v1.0.10
79
- * @link https://github.com/ocombe/ocLazyLoad
80
- * @license MIT
81
- * @author Olivier Combe <olivier.combe@gmail.com>
82
- */
83
- !function(n,r){"use strict";var i=["ng","oc.lazyLoad"],a={},s=[],o=[],u=[],c=[],l=n.noop,h={},f=[];n.module("oc.lazyLoad",["ng"]).provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(e,t,p,m,v,y){var b={},w={$controllerProvider:e,$compileProvider:p,$filterProvider:m,$provide:t,$injector:v,$animateProvider:y},x=!1,S=!1,E=[],A={};E.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)&&(x=e.debug),n.isDefined(e.events)&&(S=e.events)},this._init=function(e){if(0===o.length){var t=[e],a=["ng:app","ng-app","x-ng-app","data-ng-app"],s=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,u=function(e){return e&&t.push(e)};n.forEach(a,(function(t){a[t]=!0,u(document.getElementById(t)),t=t.replace(":","\\:"),void 0!==e[0]&&e[0].querySelectorAll&&(n.forEach(e[0].querySelectorAll("."+t),u),n.forEach(e[0].querySelectorAll("."+t+"\\:"),u),n.forEach(e[0].querySelectorAll("["+t+"]"),u))})),n.forEach(t,(function(t){if(0===o.length){var r=" "+e.className+" ",i=s.exec(r);i?o.push((i[2]||"").replace(/\s+/g,",")):n.forEach(t.attributes,(function(e){0===o.length&&a[e.name]&&o.push(e.value)}))}}))}0!==o.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(o,(function(e){!function e(t){if(-1===i.indexOf(t)){i.push(t);var r=n.module(t);$(null,r._invokeQueue,t),$(null,r._configBlocks,t),n.forEach(r.requires,e)}}(e)})),o=[],c.pop()};var F=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}))}},C=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 D(e,t,r){if(t){var a,s,o,c=[];for(a=t.length-1;a>=0;a--)if(s=t[a],n.isString(s)||(s=I(s)),s&&-1===f.indexOf(s)&&(!b[s]||-1!==u.indexOf(s))){var p=-1===i.indexOf(s);if(o=g(s),p&&(i.push(s),D(e,o.requires,r)),o._runBlocks.length>0)for(h[s]=[];o._runBlocks.length>0;)h[s].push(o._runBlocks.shift());n.isDefined(h[s])&&(p||r.rerun)&&(c=c.concat(h[s])),$(e,o._invokeQueue,s,r.reconfig),$(e,o._configBlocks,s,r.reconfig),l(p?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",s),t.pop(),f.push(s)}var d=e.getInstanceInjector();n.forEach(c,(function(e){d.invoke(e)}))}}function R(e,t){var r=e[2][0],i=e[1],s=!1;n.isUndefined(a[t])&&(a[t]={}),n.isUndefined(a[t][i])&&(a[t][i]={});var o=function(e,r){a[t][i].hasOwnProperty(e)||(a[t][i][e]=[]),function(e,t){var r,i=!0;t.length&&(r=u(e),n.forEach(t,(function(e){i=i&&u(e)!==r})));return i}(r,a[t][i][e])&&(s=!0,a[t][i][e].push(r),l("ocLazyLoad.componentLoaded",[t,i,e]))};function u(e){return n.isArray(e)?C(e.toString()):n.isObject(e)?C(F(e)):n.isDefined(e)&&null!==e?C(e.toString()):e}if(n.isString(r))o(r,e[2][1]);else{if(!n.isObject(r))return!1;n.forEach(r,(function(e,t){n.isString(e)?o(e,r[1]):o(t,e)}))}return s}function $(e,t,r,i){var a,o,u,c;if(t)for(a=0,o=t.length;a<o;a++)if(u=t[a],n.isArray(u)){if(null!==e){if(!e.hasOwnProperty(u[0]))throw new Error("unsupported provider "+u[0]);c=e[u[0]]}var l=R(u,r);if("invoke"!==u[1])l&&n.isDefined(c)&&c[u[1]].apply(c,u[2]);else{var h=function(e){var t=s.indexOf(r+"-"+e);(-1===t||i)&&(-1===t&&s.push(r+"-"+e),n.isDefined(c)&&c[u[1]].apply(c,u[2]))};if(n.isFunction(u[2][0]))h(u[2][0]);else if(n.isArray(u[2][0]))for(var f=0,p=u[2][0].length;f<p;f++)n.isFunction(u[2][0][f])&&h(u[2][0][f])}}}function I(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 T(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,u){var h,p=s("ocLazyLoad");function m(t){var n=u.defer();return e.error(t.message),n.reject(t),n.promise}return x||((e={}).error=n.noop,e.warn=n.noop,e.info=n.noop),w.getInstanceInjector=function(){return h||(h=t.data("$injector")||n.injector())},{_broadcast:l=function(t,n){S&&r.$broadcast(t,n),x&&e.info(t,n)},_$log:e,_getFilesCache:function(){return p},toggleWatch:function(e){e?c.push(!0):c.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=!!T(e)),t};if(n.isString(e)&&(e=[e]),n.isArray(e)){var r,a;for(r=0,a=e.length;r<a;r++)if(!t(e[r]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:I,_getModule:function(e){try{return g(e)}catch(t){throw(/No module/.test(t)||t.message.indexOf("$injector:nomod")>-1)&&(t.message='The module "'+F(e)+'" that you are trying to load does not exist. '+t.message),t}},moduleExists:T,_loadDependencies:function(e,t){var r,i,a,s=[],o=this;if(null===(e=o._getModuleName(e)))return u.when();try{r=o._getModule(e)}catch(e){return m(e)}return i=o.getRequires(r),n.forEach(i,(function(r){if(n.isString(r)){var i=o.getModuleConfig(r);if(null===i)return void E.push(r);r=i,i.name=void 0}if(o.moduleExists(r.name))return 0!==(a=r.files.filter((function(e){return o.getModuleConfig(r.name).files.indexOf(e)<0}))).length&&o._$log.warn('Module "',e,'" attempted to redefine configuration for dependency. "',r.name,'"\n Additional Files Loaded:',a),n.isDefined(o.filesLoader)?void s.push(o.filesLoader(r,t).then((function(){return o._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 u=[];n.forEach(r,(function(e){var t=o.getModuleConfig(e);null===t?u.push(e):t.files&&(u=u.concat(t.files))})),u.length>0&&(r={files:u})}else n.isObject(r)&&r.hasOwnProperty("name")&&r.name&&(o.setModuleConfig(r),E.push(r.name));if(n.isDefined(r.files)&&0!==r.files.length){if(!n.isDefined(o.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(o.filesLoader(r,t).then((function(){return o._loadDependencies(r)})))}})),u.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,a=u.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))})),u.all(s)}i._addToLoadList(i._getModuleName(e),!0,r)}if(o.length>0){var c=o.slice(),l=function e(n){E.push(n),A[n]=a.promise,i._loadDependencies(n,t).then((function(){try{f=[],D(w,E,t)}catch(e){return i._$log.error(e.message),void a.reject(e)}o.length>0?e(o.shift()):a.resolve(c)}),(function(e){a.reject(e)}))};l(o.shift())}else{if(t&&t.name&&A[t.name])return A[t.name];a.resolve()}return a.promise},getRequires:function(e){var t=[];return n.forEach(e.requires,(function(e){-1===i.indexOf(e)&&t.push(e)})),t},_invokeQueue:$,_registerInvokeList:R,_register:D,_addToLoadList:d,_unregister:function(e){n.isDefined(e)&&n.isArray(e)&&n.forEach(e,(function(e){a[e]=void 0}))}}}],this._init(n.element(r.document))}]);var p=n.bootstrap;n.bootstrap=function(e,t,r){return i=["ng","oc.lazyLoad"],a={},s=[],o=[],u=[],c=[],l=n.noop,h={},f=[],n.forEach(t.slice(),(function(e){d(e,!0,!0)})),p(e,t,r)};var d=function(e,t,r){(c.length>0||t)&&n.isString(e)&&-1===o.indexOf(e)&&(o.push(e),r&&u.push(e))},g=n.module;n.module=function(e,t,n){return d(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,a){return{restrict:"A",terminal:!0,priority:1e3,compile:function(a,s){var o=a[0].innerHTML;return a.html(""),function(a,s,u){var c=i(u.ocLazyLoad);a.$watch((function(){return c(a)||u.ocLazyLoad}),(function(i){e.isDefined(i)&&t.load(i).then((function(){r.enter(o,s),n(s.contents())(a)}))}),!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 a=!1,s=r.document.getElementsByTagName("head")[0]||r.document.getElementsByTagName("body")[0];return t.buildElement=function(o,u,c){var l,h,f=n.defer(),p=t._getFilesCache(),d=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(p.get(u))&&p.put(u,f.promise),o){case"css":(l=r.document.createElement("link")).type="text/css",l.rel="stylesheet",l.href=!1===c.cache?d(u):u;break;case"js":(l=r.document.createElement("script")).src=!1===c.cache?d(u):u;break;default:p.remove(u),f.reject(new Error('Requested type "'+o+'" is not known. Could not inject "'+u+'"'))}l.onload=l.onreadystatechange=function(e){l.readyState&&!/^c|loade/.test(l.readyState)||h||(l.onload=l.onreadystatechange=null,h=1,t._broadcast("ocLazyLoad.fileLoaded",u),f.resolve(l))},l.onerror=function(){p.remove(u),f.reject(new Error("Unable to load "+u))},l.async=c.serie?0:1;var g=s.lastChild;if(c.insertBefore){var m=e.element(e.isDefined(window.jQuery)?c.insertBefore:document.querySelector(c.insertBefore));m&&m.length>0&&(g=m[0])}if(g.parentNode.insertBefore(l,g),"css"==o){var v=r.navigator.userAgent.toLowerCase();if(v.indexOf("phantomjs/1.9")>-1)a=!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("."));a=b<6}else if(v.indexOf("android")>-1){var w=parseFloat(v.slice(v.indexOf("android")+8));a=w<4.4}else if(v.indexOf("safari")>-1){var x=v.match(/version\/([\.\d]+)/i);a=x&&x[1]&&parseFloat(x[1])<6}if(a)var S=1e3,E=i((function(){try{l.sheet.cssRules,i.cancel(E),l.onload()}catch(e){--S<=0&&l.onerror()}}),20)}return f.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],a=[],s=[],o=[],u=[],c=null,l=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),c=l.get(n),e.isUndefined(c)||!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!==a.indexOf(n)?"html"!==h&&"htm"!==h||-1!==s.indexOf(n)?"js"===h||-1===o.indexOf(n)?o.push(n):t._$log.error("File type is not valid. "+n):s.push(n):a.push(n)}else c&&u.push(c)};if(i.serie?h(i.files.shift()):e.forEach(i.files,(function(e){h(e)})),a.length>0){var f=n.defer();t.cssLoader(a,(function(n){e.isDefined(n)&&t.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),f.reject(n)):f.resolve()}),i),u.push(f.promise)}if(s.length>0){var p=n.defer();t.templatesLoader(s,(function(n){e.isDefined(n)&&t.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),p.reject(n)):p.resolve()}),i),u.push(p.promise)}if(o.length>0){var d=n.defer();t.jsLoader(o,(function(n){e.isDefined(n)&&(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||t.jsLoader.hasOwnProperty("requirejs"))?(t._$log.error(n),d.reject(n)):d.resolve()}),i),u.push(d.promise)}if(0===u.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(u).then((function(){return t.filesLoader(r,i)})):n.all(u).finally((function(e){return t.toggleWatch(!1),e}))},t.load=function(r){var i,a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=this,o=null,u=[],c=n.defer(),l=e.copy(r),h=e.copy(a);if(e.isArray(l))return e.forEach(l,(function(e){u.push(s.load(e,h))})),n.all(u).then((function(e){c.resolve(e)}),(function(e){c.reject(e)})),c.promise;if(e.isString(l)?(o=s.getModuleConfig(l))||(o={files:[l]}):e.isObject(l)&&(o=e.isDefined(l.path)&&e.isDefined(l.type)?{files:[l]}:s.setModuleConfig(l)),null===o){var f=s._getModuleName(l);return i='Module "'+(f||"unknown")+'" is not configured, cannot load.',t._$log.error(i),c.reject(new Error(i)),c.promise}e.isDefined(o.template)&&(e.isUndefined(o.files)&&(o.files=[]),e.isString(o.template)?o.files.push(o.template):e.isArray(o.template)&&o.files.concat(o.template));var p=e.extend({},h,o);return e.isUndefined(o.files)&&e.isDefined(o.name)&&t.moduleExists(o.name)?t.inject(o.name,p,!0):(t.filesLoader(o,p).then((function(){t.inject(null,p).then((function(e){c.resolve(e)}),(function(e){c.reject(e)}))}),(function(e){c.reject(e)})),c.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,a){var s=[];e.forEach(r,(function(e){s.push(t.buildElement("css",e,a))})),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,a){var s=[];e.forEach(r,(function(e){s.push(t.buildElement("js",e,a))})),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(a,s,o){var u=[],c=t._getFilesCache();return e.forEach(a,(function(t){var a=r.defer();u.push(a.promise),i.get(t,o).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(c.get(t))&&c.put(t,!0),a.resolve()})).catch((function(e){a.reject(new Error('Unable to load template file "'+t+'": '+e.data))}))})),r.all(u).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 a=+t||0;if(Math.abs(a)===1/0&&(a=0),a>=i)return-1;for(n=Math.max(a>=0?a:i-Math.abs(a),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1})},function(e,t,n){var r;
84
- /*!
85
- * angular-translate - v2.19.0 - 2021-09-02
86
- *
87
- * Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
88
- */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=[],a=n.files.length,s=0;s<a;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)},function(e,t,n){var r={"./autocomplete/app":[91,9,30],"./autocomplete/app.js":[91,9,30],"./autocomplete/controllers":[48,9,44],"./autocomplete/controllers.js":[48,9,44],"./autocomplete/plugin":[92,7,45],"./autocomplete/plugin.js":[92,7,45],"./autocomplete/templates/modal/add-label.html":[169,7,110],"./clustermanagement/app":[93,9,6,2,9,26],"./clustermanagement/app.js":[93,9,6,2,9,26],"./clustermanagement/controllers":[49,9,31],"./clustermanagement/controllers.js":[49,9,31],"./clustermanagement/directives":[87,9,9],"./clustermanagement/directives.js":[87,9,9],"./clustermanagement/plugin":[94,7,46],"./clustermanagement/plugin.js":[94,7,46],"./clustermanagement/templates/modal/clone-modal.html":[170,7,111],"./clustermanagement/templates/modal/cluster-delete-dialog.html":[171,7,112],"./controllers":[22,9],"./controllers.js":[22,9],"./core/angularCancelOnNavigateModule":[26,7],"./core/angularCancelOnNavigateModule.js":[26,7],"./core/controllers":[14,7],"./core/controllers.js":[14,7],"./core/directives":[9,9],"./core/directives.js":[9,9],"./core/directives/fit-text.directive":[50,7,47],"./core/directives/fit-text.directive.js":[50,7,47],"./core/directives/languageselector/language-selector.directive":[28,9],"./core/directives/languageselector/language-selector.directive.js":[28,9],"./core/directives/languageselector/templates/languageSelector.html":[172,7,113],"./core/directives/paginations":[43,7,48],"./core/directives/paginations.js":[43,7,48],"./core/directives/queryeditor/query-editor.controller":[35,9,49],"./core/directives/queryeditor/query-editor.controller.js":[35,9,49],"./core/directives/queryeditor/query-editor.directive":[40,9,0,1],"./core/directives/queryeditor/query-editor.directive.js":[40,9,0,1],"./core/directives/queryeditor/sparql-tab.directive":[36,9,50],"./core/directives/queryeditor/sparql-tab.directive.js":[36,9,50],"./core/directives/queryeditor/templates/query-editor.html":[173,7,114],"./core/directives/queryeditor/templates/query-sample.html":[174,7,115],"./core/directives/rdfresourcesearch/rdf-resource-search.directive":[27,9],"./core/directives/rdfresourcesearch/rdf-resource-search.directive.js":[27,9],"./core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html":[175,7,116],"./core/interceptors/unauthorized.interceptor":[17,9],"./core/interceptors/unauthorized.interceptor.js":[17,9],"./core/loading-hint":[18,7,51],"./core/loading-hint.js":[18,7,51],"./core/services":[3,9],"./core/services.js":[3,9],"./core/services/autocomplete-status.service":[25,7],"./core/services/autocomplete-status.service.js":[25,7],"./core/services/jwt-auth.service":[10,9],"./core/services/jwt-auth.service.js":[10,9],"./core/services/license.service":[24,7],"./core/services/license.service.js":[24,7],"./core/services/openid-auth.service":[19,9],"./core/services/openid-auth.service.js":[19,9],"./core/services/repositories.service":[8,9],"./core/services/repositories.service.js":[8,9],"./core/templates/core-errors.html":[176,7,117],"./core/templates/inactive-plugin-warning-page.html":[177,7,118],"./core/templates/modal/copy-to-clipboard-modal.html":[178,7,119],"./core/templates/modal/modal-simple.html":[179,7,120],"./core/templates/modal/modal-warning.html":[180,7,121],"./core/templates/search-resource-input.html":[181,7,122],"./explore/app":[95,9,5,0,7,16],"./explore/app.js":[95,9,5,0,7,16],"./explore/controllers":[88,9,0,7],"./explore/controllers.js":[88,9,0,7],"./explore/directives":[52,9,32],"./explore/directives.js":[52,9,32],"./explore/plugin":[96,7,52],"./explore/plugin.js":[96,7,52],"./explore/statements.service":[51,7,53],"./explore/statements.service.js":[51,7,53],"./explore/templates/viewTrig.html":[182,7,123],"./export/app":[97,9,14],"./export/app.js":[97,9,14],"./export/controllers":[53,9,33],"./export/controllers.js":[53,9,33],"./export/plugin":[98,7,54],"./export/plugin.js":[98,7,54],"./externalsync/app":[99,9,24],"./externalsync/app.js":[99,9,24],"./externalsync/controllers":[44,9,34],"./externalsync/controllers.js":[44,9,34],"./externalsync/directives":[54,9,55],"./externalsync/directives.js":[54,9,55],"./externalsync/plugin":[100,7,56],"./externalsync/plugin.js":[100,7,56],"./externalsync/templates/deleteConnector.html":[183,7,124],"./graphexplore/app":[101,9,6,13,0,1,12],"./graphexplore/app.js":[101,9,6,13,0,1,12],"./graphexplore/controllers/dependencies-chord.controller":[61,7,57],"./graphexplore/controllers/dependencies-chord.controller.js":[61,7,57],"./graphexplore/controllers/domain-range-graph.controller":[60,9,58],"./graphexplore/controllers/domain-range-graph.controller.js":[60,9,58],"./graphexplore/controllers/graphs-config.controller":[63,9,35],"./graphexplore/controllers/graphs-config.controller.js":[63,9,35],"./graphexplore/controllers/graphs-visualizations.controller":[62,9,25],"./graphexplore/controllers/graphs-visualizations.controller.js":[62,9,25],"./graphexplore/controllers/rdf-class-hierarchy.controller":[59,9,59],"./graphexplore/controllers/rdf-class-hierarchy.controller.js":[59,9,59],"./graphexplore/directives/dependencies-chord.directive":[68,9,27],"./graphexplore/directives/dependencies-chord.directive.js":[68,9,27],"./graphexplore/directives/domain-range-graph.directive":[65,9,28],"./graphexplore/directives/domain-range-graph.directive.js":[65,9,28],"./graphexplore/directives/list-items-search-filter.directive":[69,7,60],"./graphexplore/directives/list-items-search-filter.directive.js":[69,7,60],"./graphexplore/directives/rdf-class-hierarchy.directive":[64,9,20],"./graphexplore/directives/rdf-class-hierarchy.directive.js":[64,9,20],"./graphexplore/directives/rdfs-comment-label.directive":[67,7,61],"./graphexplore/directives/rdfs-comment-label.directive.js":[67,7,61],"./graphexplore/directives/search-icon-input.directive":[70,7,62],"./graphexplore/directives/search-icon-input.directive.js":[70,7,62],"./graphexplore/directives/system-repo-warning.directive":[66,7,63],"./graphexplore/directives/system-repo-warning.directive.js":[66,7,63],"./graphexplore/plugin":[102,7,64],"./graphexplore/plugin.js":[102,7,64],"./graphexplore/services/rdfs-label-comment.service":[56,7,65],"./graphexplore/services/rdfs-label-comment.service.js":[56,7,65],"./graphexplore/services/ui-scroll.service":[55,7,66],"./graphexplore/services/ui-scroll.service.js":[55,7,66],"./graphexplore/templates/listItemsSearchFilterTemplate.html":[184,7,125],"./graphexplore/templates/modal/save-graph.html":[185,7,126],"./graphexplore/templates/rdfClassHierarchyClassCountSliderHelpTemplate.html":[186,7,127],"./graphexplore/templates/rdfsCommentLabelTemplate.html":[187,7,128],"./graphexplore/templates/searchIconInputTemplate.html":[188,7,129],"./graphexplore/templates/systemRepoWarningTemplate.html":[189,7,130],"./import/app":[103,9,8,36],"./import/app.js":[103,9,8,36],"./import/controllers":[89,9,8],"./import/controllers.js":[89,9,8],"./import/directives":[71,9,37],"./import/directives.js":[71,9,37],"./import/plugin":[104,7,67],"./import/plugin.js":[104,7,67],"./import/templates/commonInfo.html":[190,7,131],"./import/templates/filesTable.html":[191,7,132],"./import/templates/importInfo.html":[192,7,133],"./import/templates/settingsModal.html":[193,7,134],"./import/templates/textSnippet.html":[194,7,135],"./import/templates/uploadInfo.html":[195,7,136],"./import/templates/urlImport.html":[196,7,137],"./jdbc/app":[105,9,0,1,2,3,17],"./jdbc/app.js":[105,9,0,1,2,3,17],"./jdbc/controllers":[72,9,38],"./jdbc/controllers.js":[72,9,38],"./jdbc/plugin":[106,7,68],"./jdbc/plugin.js":[106,7,68],"./namespaces/app":[107,9,5,23],"./namespaces/app.js":[107,9,5,23],"./namespaces/controllers":[74,9,69],"./namespaces/controllers.js":[74,9,69],"./namespaces/directives":[75,7,70],"./namespaces/directives.js":[75,7,70],"./namespaces/plugin":[108,7,71],"./namespaces/plugin.js":[108,7,71],"./plugin":[110,7,73],"./plugin-registry":[109,7,72],"./plugin-registry.js":[109,7,72],"./plugin.js":[110,7,73],"./plugins/app":[111,9,39],"./plugins/app.js":[111,9,39],"./plugins/controllers":[76,9,74],"./plugins/controllers.js":[76,9,74],"./plugins/plugin":[112,7,75],"./plugins/plugin.js":[112,7,75],"./queries/app":[113,9,40],"./queries/app.js":[113,9,40],"./queries/controllers":[77,9,76],"./queries/controllers.js":[77,9,76],"./queries/plugin":[114,7,77],"./queries/plugin.js":[114,7,77],"./rdfrank/app":[115,9,22],"./rdfrank/app.js":[115,9,22],"./rdfrank/plugin":[116,7,78],"./rdfrank/plugin.js":[116,7,78],"./rdfrank/templates/filter-list.html":[197,7,138],"./repositories/app":[117,9,4,21],"./repositories/app.js":[117,9,4,21],"./repositories/controllers":[47,9,4],"./repositories/controllers.js":[47,9,4],"./repositories/fedx-repo.directive":[80,7,79],"./repositories/fedx-repo.directive.js":[80,7,79],"./repositories/ontop-repo.directive":[79,9,4,80],"./repositories/ontop-repo.directive.js":[79,9,4,80],"./repositories/plugin":[118,7,81],"./repositories/plugin.js":[118,7,81],"./repositories/repository.constants":[39,9,82],"./repositories/repository.constants.js":[39,9,82],"./repositories/templates/fedx-repo.html":[198,7,139],"./repositories/templates/ontop-repo.html":[199,7,140],"./resources/app":[119,9,6,2,3,41],"./resources/app.js":[119,9,6,2,3,41],"./resources/controllers":[46,9,2,3],"./resources/controllers.js":[46,9,2,3],"./resources/plugin":[120,7,83],"./resources/plugin.js":[120,7,83],"./rest/autocomplete.rest.service":[15,7],"./rest/autocomplete.rest.service.js":[15,7],"./rest/cluster.rest.service":[42,7,84],"./rest/cluster.rest.service.js":[42,7,84],"./rest/connectors.rest.service":[37,7,85],"./rest/connectors.rest.service.js":[37,7,85],"./rest/graph-config.rest.service":[58,7,86],"./rest/graph-config.rest.service.js":[58,7,86],"./rest/graph-data.rest.service":[41,7,87],"./rest/graph-data.rest.service.js":[41,7,87],"./rest/jdbc.rest.service":[73,7,88],"./rest/jdbc.rest.service.js":[73,7,88],"./rest/license.rest.service":[6,7],"./rest/license.rest.service.js":[6,7],"./rest/locations.rest.service":[23,7],"./rest/locations.rest.service.js":[23,7],"./rest/monitoring.rest.service":[11,7],"./rest/monitoring.rest.service.js":[11,7],"./rest/plugins.rest.service":[16,7],"./rest/plugins.rest.service.js":[16,7],"./rest/rdf4j.repositories.rest.service":[13,7],"./rest/rdf4j.repositories.rest.service.js":[13,7],"./rest/rdfrank.rest.service":[78,7,89],"./rest/rdfrank.rest.service.js":[78,7,89],"./rest/repositories.rest.service":[7,7],"./rest/repositories.rest.service.js":[7,7],"./rest/saved-graphs.rest.service":[57,7,90],"./rest/saved-graphs.rest.service.js":[57,7,90],"./rest/security.rest.service":[20,7],"./rest/security.rest.service.js":[20,7],"./rest/similarity.rest.service":[82,7,91],"./rest/similarity.rest.service.js":[82,7,91],"./rest/sparql-templates.rest.service":[83,7,92],"./rest/sparql-templates.rest.service.js":[83,7,92],"./rest/sparql.rest.service":[12,7],"./rest/sparql.rest.service.js":[12,7],"./security/app":[121,9,11,93],"./security/app.js":[121,9,11,93],"./security/controllers":[90,9,11],"./security/controllers.js":[90,9,11],"./security/plugin":[122,7,94],"./security/plugin.js":[122,7,94],"./security/templates/modal/default-authorities.html":[200,7,141],"./security/templates/roles.html":[201,7,142],"./security/templates/user.html":[202,7,143],"./security/templates/users.html":[203,7,144],"./settings/app":[81,9,42],"./settings/app.js":[81,9,42],"./settings/controllers":[45,9,95],"./settings/controllers.js":[45,9,95],"./settings/modal/location-settings.html":[204,7,145],"./settings/modal/validate-license.html":[205,7,146],"./settings/plugin":[123,7,96],"./settings/plugin.js":[123,7,96],"./similarity/app":[124,9,0,1,10,18],"./similarity/app.js":[124,9,0,1,10,18],"./similarity/controllers/create-index.controller":[85,9,43],"./similarity/controllers/create-index.controller.js":[85,9,43],"./similarity/controllers/similarity-list.controller":[84,9,0,97],"./similarity/controllers/similarity-list.controller.js":[84,9,0,97],"./similarity/plugin":[125,7,98],"./similarity/plugin.js":[125,7,98],"./sparql-template/app":[128,9,0,1,2,3,15],"./sparql-template/app.js":[128,9,0,1,2,3,15],"./sparql-template/controllers":[86,9,29],"./sparql-template/controllers.js":[86,9,29],"./sparql-template/plugin":[129,7,99],"./sparql-template/plugin.js":[129,7,99],"./sparql/app":[126,9,5,0,1,10,19],"./sparql/app.js":[126,9,5,0,1,10,19],"./sparql/plugin":[127,7,100],"./sparql/plugin.js":[127,7,100],"./stats/app":[130,9,101],"./stats/app.js":[130,9,101],"./stats/plugin":[131,7,102],"./stats/plugin.js":[131,7,102],"./templates/graphdb-small.svg":[206,7,154],"./templates/loader/ot-loader.svg":[207,7,155],"./templates/modal/add-fedx-remote-repo.html":[208,7,147],"./templates/modal/add-location.html":[209,7,148],"./templates/modal/edit-location.html":[210,7,149],"./templates/modal/editRepoFile.html":[211,7,150],"./templates/modal/upload-repository-config.html":[212,7,151],"./templates/repositorySize.html":[213,7,152],"./templates/titlePopoverTemplate.html":[214,7,153],"./treeview/ng-tree":[132,7,103],"./treeview/ng-tree.js":[132,7,103],"./utils/error-utils":[21,7],"./utils/error-utils.js":[21,7],"./utils/file-types":[38,7,104],"./utils/file-types.js":[38,7,104],"./utils/local-storage-adapter":[4,7],"./utils/local-storage-adapter.js":[4,7],"./utils/notifications":[34,7,105],"./utils/notifications.js":[34,7,105],"./utils/uri-utils":[33,7,106],"./utils/uri-utils.js":[33,7,106],"./utils/user-utils":[1,9],"./utils/user-utils.js":[1,9]};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=168,e.exports=i}]);
89
- //# sourceMappingURL=bundle.5eeff901b77240e58d27.bundle.js.map