graphdb-workbench 2.6.2-TR3 → 2.7.0-TR2

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 (435) hide show
  1. package/README.md +1 -1
  2. package/dist/0.3fe87e2ea3aa29d6db1e.bundle.js +25 -0
  3. package/dist/1.23139eab64515193f536.bundle.js +1 -0
  4. package/dist/10.4c31c40f69c2f6c74d0d.bundle.js +1 -0
  5. package/dist/{104.30887712ab9f944ce3b5.bundle.js → 100.8ebdc718508a75625958.bundle.js} +1 -1
  6. package/dist/{105.8e0d511b2790a2c7a1f5.bundle.js → 101.3c86dcb1aeb57a9099e8.bundle.js} +1 -1
  7. package/dist/{106.dfa270c46faceb444b3a.bundle.js → 102.daa849565cb029c50517.bundle.js} +1 -1
  8. package/dist/{107.7e47259d1a1e92cc684a.bundle.js → 103.211a0829293120e86e00.bundle.js} +1 -1
  9. package/dist/{108.9d2fca01799579fd246a.bundle.js → 104.eabcf881086d7f647cca.bundle.js} +1 -1
  10. package/dist/{109.41cc535019ec49b7a449.bundle.js → 105.8e6343f525a280c5aeed.bundle.js} +1 -1
  11. package/dist/{110.087f1045498ced6386ac.bundle.js → 106.4c53a32658d3e29f4e1c.bundle.js} +1 -1
  12. package/dist/{111.d77e3e60f2db63fcd713.bundle.js → 107.a96e7569dc18a062f88e.bundle.js} +1 -1
  13. package/dist/{112.6b5fac36fea6ec10ccf7.bundle.js → 108.da33abfa964006e04f9a.bundle.js} +1 -1
  14. package/dist/{113.85c3c663f3681b21e49d.bundle.js → 109.c5aa32758d0fccfb6686.bundle.js} +1 -1
  15. package/dist/11.a2fa8380f5efcd1a7e20.bundle.js +1 -0
  16. package/dist/{114.635dc2e74009c95bf91e.bundle.js → 110.2706af2e8e42904975b4.bundle.js} +1 -1
  17. package/dist/{115.47fe6316b11ce761e8d3.bundle.js → 111.2485d6d8923cc667fb16.bundle.js} +1 -1
  18. package/dist/{116.511ed0fc7766ce1c5dbe.bundle.js → 112.18b05d0817181d9f978c.bundle.js} +1 -1
  19. package/dist/{117.ff4f162729afc19137ca.bundle.js → 113.009f170422a0b791a959.bundle.js} +1 -1
  20. package/dist/{118.ce4cb2610bcae2cec5b4.bundle.js → 114.022df6326a5f0578aebb.bundle.js} +1 -1
  21. package/dist/115.40d3f1ef4d65fdf1db10.bundle.js +1 -0
  22. package/dist/{120.3be53a400b5e5d0b8bbf.bundle.js → 116.fcb1ee8901c1e264f533.bundle.js} +1 -1
  23. package/dist/{121.4493eca5616735378bb8.bundle.js → 117.d92f679b67f489cdab77.bundle.js} +1 -1
  24. package/dist/118.1971730266597b5dfa03.bundle.js +1 -0
  25. package/dist/119.51e139bbb8b169e6a93a.bundle.js +1 -0
  26. package/dist/{13.6e2d206f55eeb2c58b2b.bundle.js → 12.51c6b286ec23c49ea671.bundle.js} +1 -1
  27. package/dist/{124.66c3ddc58390694a3a98.bundle.js → 120.1d1884e3ae352c0d3885.bundle.js} +1 -1
  28. package/dist/121.907f912632a5e7fc91f7.bundle.js +1 -0
  29. package/dist/122.5b1e05b8a07364c98202.bundle.js +1 -0
  30. package/dist/123.9e620dbf7bafaf1592f8.bundle.js +1 -0
  31. package/dist/124.cbd9dbca9ccd1ab62fc3.bundle.js +1 -0
  32. package/dist/{129.c8071eddb4e6ac450d14.bundle.js → 125.66737ba6382a9a842c1a.bundle.js} +1 -1
  33. package/dist/{130.4ef543acc845d7dfcc8d.bundle.js → 126.dc06b45b9515e9641411.bundle.js} +1 -1
  34. package/dist/{131.f41a0b6b9036447b1077.bundle.js → 127.22916e11935f67689e5b.bundle.js} +1 -1
  35. package/dist/{132.3666a6511534abe54b6a.bundle.js → 128.118ea266d7d18378afd8.bundle.js} +1 -1
  36. package/dist/{133.cb22542677a1fde54231.bundle.js → 129.6a3b19eb6e28e8f8c4ae.bundle.js} +1 -1
  37. package/dist/{14.77134ed08934f63cbe92.bundle.js → 13.1093802746af3b98d353.bundle.js} +1 -1
  38. package/dist/{134.16abd209e3e07d89821b.bundle.js → 130.64cdfec875e9c0683007.bundle.js} +1 -1
  39. package/dist/{135.e71755f6f0278b2943d0.bundle.js → 131.35880456e3a444b3d768.bundle.js} +1 -1
  40. package/dist/{136.81439d8a1b2d7dfed6c7.bundle.js → 132.0ec00b234ad6b6aeb71b.bundle.js} +1 -1
  41. package/dist/{137.ae6fae38c2b6fd89a566.bundle.js → 133.630b4ce388a9e5f0ac65.bundle.js} +1 -1
  42. package/dist/{138.8885afc315c221adb64b.bundle.js → 134.6bda989d14007ab62663.bundle.js} +1 -1
  43. package/dist/{139.f02901e6087085176dc7.bundle.js → 135.2fbb1c423cfe2fb9c274.bundle.js} +1 -1
  44. package/dist/{140.f0e54b9511ca99865d9d.bundle.js → 136.93af56a84db38c2ad23f.bundle.js} +1 -1
  45. package/dist/{141.46aad99634d1bfe2b58a.bundle.js → 137.c7caf8868a12dfceea33.bundle.js} +1 -1
  46. package/dist/{142.d2aaa85171c7449f2f85.bundle.js → 138.9605c015337ad6c6dd41.bundle.js} +1 -1
  47. package/dist/{143.802e7b37a5e69e8637a2.bundle.js → 139.a4d5d439a7822c306663.bundle.js} +1 -1
  48. package/dist/{15.81ca8fb02469ee14c5e4.bundle.js → 14.d1506d8b0490a09928e8.bundle.js} +1 -1
  49. package/dist/{144.5f21450a9ba89abcb82f.bundle.js → 140.290e64783bc7f49eeffd.bundle.js} +1 -1
  50. package/dist/{145.2ea88cbccd93fc9fa454.bundle.js → 141.42702d44b378792d7e0e.bundle.js} +1 -1
  51. package/dist/{146.e7b99166958dc75f43e7.bundle.js → 142.e499075090fc84e47987.bundle.js} +1 -1
  52. package/dist/{147.7abb3c6ae63a13eb61a5.bundle.js → 143.552f1378561e74e2df29.bundle.js} +1 -1
  53. package/dist/{148.b9aa2392ff5063d92341.bundle.js → 144.371a2fb0bc93443a86c7.bundle.js} +1 -1
  54. package/dist/145.eececa1f6cc327ee1e61.bundle.js +1 -0
  55. package/dist/{150.c1303d8109786b40d21a.bundle.js → 146.9999b073c87c824ebc55.bundle.js} +1 -1
  56. package/dist/{152.20fec292fccfef232845.bundle.js → 147.c6435ff0c5d067da1884.bundle.js} +1 -1
  57. package/dist/{153.7413dfe6871e27f43788.bundle.js → 148.429c12d89cd4950ea6bd.bundle.js} +1 -1
  58. package/dist/149.59f147f2114d51c1e608.bundle.js +1 -0
  59. package/dist/15.4200ff292070e63662c2.bundle.js +3 -0
  60. package/dist/150.e718af32d1fa3c94b293.bundle.js +1 -0
  61. package/dist/{156.258d084f62fa73d45ded.bundle.js → 151.fc8518811654e03c9b9b.bundle.js} +1 -1
  62. package/dist/152.e0caf2e2a52e1c69f630.bundle.js +1 -0
  63. package/dist/153.14a230b6676d2d30b1c0.bundle.js +1 -0
  64. package/dist/{159.41a2a6b6b485989a9412.bundle.js → 154.59a7df3088912b121852.bundle.js} +1 -1
  65. package/dist/155.93cb317580a98a3aae3f.bundle.js +1 -0
  66. package/dist/156.f553c5062f1157cecf0f.bundle.js +1 -0
  67. package/dist/{161.cc79ca9a079e616ba9e6.bundle.js → 157.b46598b8e6e36bc1ab7f.bundle.js} +1 -1
  68. package/dist/158.7afa2f09936dbea981f6.bundle.js +1 -0
  69. package/dist/159.492297b5ae703dcbc3a9.bundle.js +1 -0
  70. package/dist/16.ce07bfa77c13aadf8cac.bundle.js +1 -0
  71. package/dist/160.30cd0050b38c424d23dc.bundle.js +1 -0
  72. package/dist/161.b0d6c24448dc9bdb0c2a.bundle.js +1 -0
  73. package/dist/162.a481aa01ab8e5ef7ef4b.bundle.js +1 -0
  74. package/dist/{166.92928a8fa8ec48d00349.bundle.js → 163.78ca396ed2b783545270.bundle.js} +1 -1
  75. package/dist/{167.b38a507dbcfd6329cf8c.bundle.js → 164.9b78f47d6766149da5e7.bundle.js} +1 -1
  76. package/dist/165.916f1058106713ba65de.bundle.js +1 -0
  77. package/dist/166.99a3fb6caecff8edc3e5.bundle.js +1 -0
  78. package/dist/{170.8baf5e20de2271caf978.bundle.js → 167.5210503d93ad2a3a2efa.bundle.js} +1 -1
  79. package/dist/{171.a46d6b00949dbdbbc38e.bundle.js → 168.ee23165504bc3e4e4c3a.bundle.js} +1 -1
  80. package/dist/169.ca9027c26fdfd3992b4c.bundle.js +1 -0
  81. package/dist/17.030807dd7060be77c6de.bundle.js +1 -0
  82. package/dist/{173.d3bbff40e6f45969410d.bundle.js → 170.58ca5156480e7a88f504.bundle.js} +1 -1
  83. package/dist/{174.6d17f7732045b6f182a0.bundle.js → 171.66c5d4d996949ee3940a.bundle.js} +1 -1
  84. package/dist/{175.7bc87231bd4677800c77.bundle.js → 172.7a3922d3323d410b6a8d.bundle.js} +1 -1
  85. package/dist/{176.f7a1a4fdd12ad86f3d08.bundle.js → 173.c61ba9981b410900a82c.bundle.js} +1 -1
  86. package/dist/174.36c85d76fe62d0650de2.bundle.js +1 -0
  87. package/dist/{178.cb8324bb00103fb26cfb.bundle.js → 175.39cf3cde5374de5752da.bundle.js} +1 -1
  88. package/dist/{179.e4bea06f7e407436dce7.bundle.js → 176.264f87befedab2e8b302.bundle.js} +1 -1
  89. package/dist/{180.bd3f5149f861a2586ffb.bundle.js → 177.0122c2835a55245e66fc.bundle.js} +1 -1
  90. package/dist/178.deb1d99cfb26a5c124ac.bundle.js +1 -0
  91. package/dist/179.31d81e993a5c97f49135.bundle.js +1 -0
  92. package/dist/18.5cd82edf1f1eb43d9970.bundle.js +1 -0
  93. package/dist/{183.2f7def34c47fd1bc38b3.bundle.js → 180.3c2ae8ba6d0aa932f316.bundle.js} +1 -1
  94. package/dist/{184.a71cd41118f14e2c123f.bundle.js → 181.2eb1e0df10ae537bcd8b.bundle.js} +1 -1
  95. package/dist/182.075edc352b67e34a2986.bundle.js +1 -0
  96. package/dist/{186.daffd5d0823f56ba3c54.bundle.js → 183.e1da1510932d14b92855.bundle.js} +1 -1
  97. package/dist/{187.4b22405c17194851a1e1.bundle.js → 184.f67183714e811f697abb.bundle.js} +1 -1
  98. package/dist/{188.bce7651d7bd1e88d7689.bundle.js → 185.ec3be1f1c25760092ff6.bundle.js} +1 -1
  99. package/dist/186.8e319cc51faf2f18eb05.bundle.js +1 -0
  100. package/dist/{190.d758ca3d4a14b7273bab.bundle.js → 187.a4652748ff6bb9328d51.bundle.js} +1 -1
  101. package/dist/188.8e878e981fd219d2dba1.bundle.js +1 -0
  102. package/dist/{191.8c31e698a482ba52ca82.bundle.js → 189.181e63547567e92848c3.bundle.js} +1 -1
  103. package/dist/19.da026de53fff1dd219d2.bundle.js +1 -0
  104. package/dist/{192.944cc89f4d31c0fd8f79.bundle.js → 190.b8f9db06795332a42cc7.bundle.js} +1 -1
  105. package/dist/{193.fad67143e7b911118459.bundle.js → 191.af624673b174880f5c1a.bundle.js} +1 -1
  106. package/dist/192.f48a7a67ae49a3573b7f.bundle.js +1 -0
  107. package/dist/193.e654a65991d049fc4e2d.bundle.js +1 -0
  108. package/dist/{195.7f8774fd8da98c5897a1.bundle.js → 194.50d8832409521f785dba.bundle.js} +1 -1
  109. package/dist/{196.3ab76ea57aaa91d34511.bundle.js → 195.c515e0f31a5fa47d7c99.bundle.js} +1 -1
  110. package/dist/{197.9bbab0d7f35c2b58914f.bundle.js → 196.89bbff8921c9dd266352.bundle.js} +1 -1
  111. package/dist/{198.813986f24f2f7887e738.bundle.js → 197.2e5d602b6bb99c57d180.bundle.js} +1 -1
  112. package/dist/{199.246f0549d7bdf7c18215.bundle.js → 198.cf3cc5d595f1ca83e0c9.bundle.js} +1 -1
  113. package/dist/{200.20f4846b9ed97b60def3.bundle.js → 199.6d2de3a4aa885f228620.bundle.js} +1 -1
  114. package/dist/2.437406d424ea1afc79fe.bundle.js +1 -0
  115. package/dist/20.b773fc94530de758df6c.bundle.js +1 -0
  116. package/dist/{201.768937613e43caedd9fc.bundle.js → 200.08e92074fd7f96cac249.bundle.js} +1 -1
  117. package/dist/{202.0d38d4ec1e39e8ca91b7.bundle.js → 201.2850aa176825f6d9b832.bundle.js} +1 -1
  118. package/dist/{203.a78dd70f65b08ecb58d2.bundle.js → 202.acf731121207f12a41c8.bundle.js} +1 -1
  119. package/dist/{204.e1f61ba757fbc813e6d4.bundle.js → 203.a6e8a58f2e4a3a548330.bundle.js} +1 -1
  120. package/dist/{205.cc2c5786dff7bf31b08c.bundle.js → 204.a7a3e142156af80fd8fe.bundle.js} +1 -1
  121. package/dist/{206.dadf18fb31b0533b1696.bundle.js → 205.18401f3396864fa21ecd.bundle.js} +1 -1
  122. package/dist/{207.44dbc18bb4c8fa07cc66.bundle.js → 206.b3a75637a7b1d8c88ac0.bundle.js} +1 -1
  123. package/dist/{208.dda72c8e3795ba716704.bundle.js → 207.536de74415fed80504c5.bundle.js} +1 -1
  124. package/dist/{209.7f8b6e8e2869b51c554c.bundle.js → 208.d7642656ff24688f12a6.bundle.js} +1 -1
  125. package/dist/{210.6d601b172d76d9bc2c98.bundle.js → 209.f240b6a52ca71a1b752f.bundle.js} +1 -1
  126. package/dist/21.7330ce3d87e11826e153.bundle.js +2 -0
  127. package/dist/{211.ad09e493e9be031887e9.bundle.js → 210.a8f667e6f71dd4248d83.bundle.js} +1 -1
  128. package/dist/{212.364965f963bcd6331e6f.bundle.js → 211.0ec643f55b948a8f9f48.bundle.js} +1 -1
  129. package/dist/{213.6c5b540986e7b24a338a.bundle.js → 212.8a6b507a5c76a9bae3e4.bundle.js} +1 -1
  130. package/dist/{214.3c333d59839d2bcd183e.bundle.js → 213.46ce1137634a57afa651.bundle.js} +1 -1
  131. package/dist/214.c20673e52cde7b753082.bundle.js +1 -0
  132. package/dist/{216.acdd4ee62af663ab18a1.bundle.js → 215.94a0953c0b1b0bf80cc1.bundle.js} +1 -1
  133. package/dist/{217.38ab6d3450c36fe8104f.bundle.js → 216.36293224b7361ab864c4.bundle.js} +1 -1
  134. package/dist/{218.66399da8a64421df67c1.bundle.js → 217.eb8302f3691232dbc9c0.bundle.js} +1 -1
  135. package/dist/{219.05c3d5e61c9bb4752e5f.bundle.js → 218.60b272428f9c21e70823.bundle.js} +1 -1
  136. package/dist/{220.069190d187dfc576daed.bundle.js → 219.4c9931fb0c82c80df582.bundle.js} +1 -1
  137. package/dist/22.fa5970daa830742d4559.bundle.js +1 -0
  138. package/dist/{221.3553362f556124c787a8.bundle.js → 220.92282a2a9cd1727e617e.bundle.js} +1 -1
  139. package/dist/{222.5ec7607217a3cb97b293.bundle.js → 221.bb9f9dd84a31a11684e5.bundle.js} +1 -1
  140. package/dist/{223.37d133ce14e20b0efe2d.bundle.js → 222.d80a9e41fc3a928b14f1.bundle.js} +1 -1
  141. package/dist/{224.acc9afbc9e926356519a.bundle.js → 223.60273ed05893102d19d4.bundle.js} +1 -1
  142. package/dist/{225.ba9860341f9eba2c1f2d.bundle.js → 224.e5bd33a0ba3990f912ed.bundle.js} +1 -1
  143. package/dist/225.c6f6cdd0140eb3ef64eb.bundle.js +1 -0
  144. package/dist/226.3c14070972ab3d71ee77.bundle.js +1 -0
  145. package/dist/{228.21cb62126a898299b993.bundle.js → 227.22674f567944755f066d.bundle.js} +1 -1
  146. package/dist/{229.227a956358ad27627e2c.bundle.js → 228.da31b2b771592fceb1c7.bundle.js} +1 -1
  147. package/dist/{230.215c4242d4a205df5b8e.bundle.js → 229.20dabf3538276390b450.bundle.js} +1 -1
  148. package/dist/23.f67376e295c1345b857a.bundle.js +1 -0
  149. package/dist/{231.fd7222ca89363294fe39.bundle.js → 230.df9ea709a659a7815635.bundle.js} +1 -1
  150. package/dist/231.19bf59f28167a8e46bd4.bundle.js +1 -0
  151. package/dist/{233.007908cb7a913f1554ed.bundle.js → 232.dfe3222488b2028e9b00.bundle.js} +1 -1
  152. package/dist/{234.de1618094d091408fd6d.bundle.js → 233.9a433ea68d7144f8c004.bundle.js} +1 -1
  153. package/dist/234.d79c646a4c067962a38a.bundle.js +1 -0
  154. package/dist/{236.ec2ada8b5f2aec3204f5.bundle.js → 235.4b724573813c2be518b7.bundle.js} +1 -1
  155. package/dist/24.58791644e7315c280f11.bundle.js +1 -0
  156. package/dist/241.f3de87bfe9a934369d30.bundle.js +1 -0
  157. package/dist/242.d8a0f9078ec4eb7a836e.bundle.js +1 -0
  158. package/dist/{244.526affae61c05ae944d3.bundle.js → 243.74aca46da36331782e48.bundle.js} +1 -1
  159. package/dist/{245.feedc08d977143faa08e.bundle.js → 244.3c8a9ed95c2ec4cf231a.bundle.js} +1 -1
  160. package/dist/{246.136fac3b1ce27662490d.bundle.js → 245.b9702f1a87921da59411.bundle.js} +1 -1
  161. package/dist/{247.71aeac059bcf9ed9b392.bundle.js → 246.50ef6d4cd608e7be39de.bundle.js} +1 -1
  162. package/dist/{248.94d8fea9b5ce15519623.bundle.js → 247.6dfcf3e18fd39e0c2be5.bundle.js} +1 -1
  163. package/dist/{249.234cb407b6a647179cf2.bundle.js → 248.bc4ddac95cdb9c2a7199.bundle.js} +1 -1
  164. package/dist/{250.3ed03b7e55905888d992.bundle.js → 249.7960f3bcf180eb7ba846.bundle.js} +1 -1
  165. package/dist/25.5c1a618c65e57d27d9e7.bundle.js +1 -0
  166. package/dist/{251.efa949bd1ee44f4290ed.bundle.js → 250.7aed4dc9f2957b49b2f3.bundle.js} +1 -1
  167. package/dist/{252.5705d631c738e4d8e996.bundle.js → 251.79b12a8496a7ac3738fb.bundle.js} +1 -1
  168. package/dist/{253.8752156b82db62eb4c92.bundle.js → 252.1f2e616593555da1801d.bundle.js} +1 -1
  169. package/dist/{254.986c95170a74cc76c5e5.bundle.js → 253.42009acd0067d3e4d41e.bundle.js} +1 -1
  170. package/dist/{255.53ff457cdf06dc0de427.bundle.js → 254.776d841374add2766c7b.bundle.js} +1 -1
  171. package/dist/{256.52e7acbbd3e7dde0df9f.bundle.js → 255.f2b397a0744b7559820c.bundle.js} +1 -1
  172. package/dist/{257.943f597bddc0d65103c5.bundle.js → 256.ffd6b241e836c8c16b08.bundle.js} +1 -1
  173. package/dist/{258.db5554df6956ecfc7dec.bundle.js → 257.cc65d24e2c02b63df82a.bundle.js} +1 -1
  174. package/dist/{259.2c88332b7f1b47935a47.bundle.js → 258.ce2dd58799a667638563.bundle.js} +1 -1
  175. package/dist/{260.d745422c537bdd9647bb.bundle.js → 259.68bc6d4bb87def7c9f7c.bundle.js} +1 -1
  176. package/dist/{28.2e0277168c8f14f9c085.bundle.js → 26.8ce09a3a28acfca0b5b1.bundle.js} +1 -1
  177. package/dist/{261.7efff7f93f61f061f5ca.bundle.js → 260.d361717fdb3707e5b70d.bundle.js} +1 -1
  178. package/dist/{262.3b9c687ab8c9b9282f5a.bundle.js → 261.83f843a631d7ac76ee08.bundle.js} +1 -1
  179. package/dist/{263.9c4ce329ffd095c5d1c6.bundle.js → 262.60e1d35b7e86f2c1c60d.bundle.js} +1 -1
  180. package/dist/{264.0504ff98a1b50e9d2486.bundle.js → 263.54ed5820e6e735bf76fa.bundle.js} +1 -1
  181. package/dist/{265.a0af2676b1495c6231cc.bundle.js → 264.52bc860bbb360579c45f.bundle.js} +1 -1
  182. package/dist/{266.31dcc9c203106832e08a.bundle.js → 265.e0330feda67eded8696e.bundle.js} +1 -1
  183. package/dist/{267.3befe4deb9b75cd5d7ba.bundle.js → 266.3755c8921e962e577343.bundle.js} +1 -1
  184. package/dist/{268.c7dc883261346f81be82.bundle.js → 267.6e4d12b6b5c279f40331.bundle.js} +1 -1
  185. package/dist/{269.601d4fc4300f4553d75c.bundle.js → 268.0ab800f7cb54bfec5951.bundle.js} +1 -1
  186. package/dist/{270.e9d338a5cf954fbc1f4c.bundle.js → 269.bc76343ee8e51d963ca9.bundle.js} +1 -1
  187. package/dist/27.d3a8565b3ca67ffa1c39.bundle.js +1 -0
  188. package/dist/{271.a88eeff63bbc87791af0.bundle.js → 270.1cd9becd05a7c7f6015a.bundle.js} +1 -1
  189. package/dist/{272.ddacc590a66bdb0fa651.bundle.js → 271.6aebf7b1cec728af713f.bundle.js} +1 -1
  190. package/dist/{273.d45db281162abbe864ae.bundle.js → 272.ae20712a21b0bdbfe55b.bundle.js} +1 -1
  191. package/dist/{274.eca3da80ab4f0b4a3263.bundle.js → 273.6c77ea73fc38bb7ad547.bundle.js} +1 -1
  192. package/dist/{275.509ea766eda3bbcf1562.bundle.js → 274.f80fb03bb874a6c05889.bundle.js} +1 -1
  193. package/dist/{276.f816f19aaa4522373a5f.bundle.js → 275.7835514eb5af4cb8e525.bundle.js} +1 -1
  194. package/dist/{277.6c6b5259fa26936adf41.bundle.js → 276.6b35da3ca6bc7afa9434.bundle.js} +1 -1
  195. package/dist/{278.bfc453e4fdb94806e6fc.bundle.js → 277.b74b0623fcbe407a9c0d.bundle.js} +1 -1
  196. package/dist/{279.855b2c767116d91fdc3b.bundle.js → 278.614a7cd8d5b219e0e944.bundle.js} +1 -1
  197. package/dist/{280.95394d461866b83c32b7.bundle.js → 279.b288dc60960f6c484605.bundle.js} +1 -1
  198. package/dist/28.776f09d4f04778925db3.bundle.js +1 -0
  199. package/dist/{281.fcaf9deb44f93c85ef68.bundle.js → 280.4d25148be840fb483f8d.bundle.js} +1 -1
  200. package/dist/{282.bede8a18d3e678b7895d.bundle.js → 281.655080d14efb6d9f3768.bundle.js} +1 -1
  201. package/dist/{283.bf3ea5f6f6b8406e5401.bundle.js → 282.127fc0e420a022c20e69.bundle.js} +1 -1
  202. package/dist/{284.3f34606cfbcefb0a1a47.bundle.js → 283.e32a3e17ed6ac78eff67.bundle.js} +1 -1
  203. package/dist/{285.4e95ca9e283ddd26fcbf.bundle.js → 284.d95686781a6e287e1f84.bundle.js} +1 -1
  204. package/dist/{286.8c8f50e9844881f0b028.bundle.js → 285.4264530601a6051ebf4d.bundle.js} +1 -1
  205. package/dist/{287.23b580771ee0d5e65d41.bundle.js → 286.8baeed62a20d65a15ca9.bundle.js} +1 -1
  206. package/dist/{288.6cef162ec3cec3cde603.bundle.js → 287.6dc20adab60a30a71bc9.bundle.js} +1 -1
  207. package/dist/{289.c47fa5cd7d5468dce45f.bundle.js → 288.4beadc344b6f3900402a.bundle.js} +1 -1
  208. package/dist/{290.b9baf8eed99b4447f086.bundle.js → 289.cad2247027fbb2f023f8.bundle.js} +1 -1
  209. package/dist/29.4db1109f7c81541ea4d2.bundle.js +1 -0
  210. package/dist/{291.1e7bf6b667f7698ac645.bundle.js → 290.fb3c19733911877b2121.bundle.js} +1 -1
  211. package/dist/{292.44bcf6642bd3fac703b4.bundle.js → 291.441c2840d13ef5acf556.bundle.js} +1 -1
  212. package/dist/{293.184eb39d3229ef066269.bundle.js → 292.c93071e99e2358457fa5.bundle.js} +1 -1
  213. package/dist/{294.338c276decc123976f73.bundle.js → 293.ce01777cd74475c6e71a.bundle.js} +1 -1
  214. package/dist/{295.72eea8b2cf594acd85e6.bundle.js → 294.7f7708cb30bddd201cad.bundle.js} +1 -1
  215. package/dist/{296.8f11a500bce671ed75db.bundle.js → 295.0b9c71fda58bdf302bc7.bundle.js} +1 -1
  216. package/dist/{297.71b96380e1103cd792d9.bundle.js → 296.25448833464359d99dd8.bundle.js} +1 -1
  217. package/dist/{298.39626a266f47903126bf.bundle.js → 297.1988f0fdac8c861f0f3b.bundle.js} +1 -1
  218. package/dist/298.613343b5196a048b4fab.bundle.js +1 -0
  219. package/dist/299.75d6c060832882d33ed6.bundle.js +1 -0
  220. package/dist/3.11f9512de97f9eb21918.bundle.js +1 -0
  221. package/dist/30.7d0b9fb0340873cca385.bundle.js +1 -0
  222. package/dist/{301.e9495589c306b342c312.bundle.js → 300.71b96ffcbf961d1395c7.bundle.js} +1 -1
  223. package/dist/{302.d16e044e23278bf1e922.bundle.js → 301.0e68c4deb42f32566737.bundle.js} +1 -1
  224. package/dist/{303.85715cdc00dfd6ef1521.bundle.js → 302.797a897fef662b6dac1a.bundle.js} +1 -1
  225. package/dist/{304.e055e669c9bad5898984.bundle.js → 303.e8d9bf4c580b233623fe.bundle.js} +1 -1
  226. package/dist/31.7a70319dec5bb0a571fd.bundle.js +1 -0
  227. package/dist/{34.b03038da5530dcb82c85.bundle.js → 32.290a635467be77913715.bundle.js} +1 -1
  228. package/dist/{36.780bcf12c8d8b5742eac.bundle.js → 33.c36af70713ffc2afc152.bundle.js} +2 -2
  229. package/dist/{37.2204724b4ae08556283e.bundle.js → 34.3e47af5de0293453c606.bundle.js} +1 -1
  230. package/dist/{38.0edff4c7b76c9652f664.bundle.js → 35.76d3032389164310315f.bundle.js} +1 -1
  231. package/dist/36.6d95c8494d0626626f30.bundle.js +1 -0
  232. package/dist/{40.53352fda81f370182e99.bundle.js → 37.bb61f70881d4b4e1a5d9.bundle.js} +1 -1
  233. package/dist/38.47c7df25578b645e2b0c.bundle.js +1 -0
  234. package/dist/39.c54f5be5080c8e6d6c4f.bundle.js +2 -0
  235. package/dist/4.4e3e96fc1e310e228595.bundle.js +1 -0
  236. package/dist/{42.6a677110f335d516813b.bundle.js → 40.a52342b65e67ceccd421.bundle.js} +1 -1
  237. package/dist/{43.bcf30fa642d63c585962.bundle.js → 41.0c7691ef780383ba65fd.bundle.js} +1 -1
  238. package/dist/{44.f3060f0a04c90bc70a36.bundle.js → 42.0e393da2a06cf80deb3f.bundle.js} +1 -1
  239. package/dist/{45.001b1bcbff1d7c9b3288.bundle.js → 43.9decb4b23696d47578b6.bundle.js} +1 -1
  240. package/dist/44.09b7460bde6db49a83a0.bundle.js +1 -0
  241. package/dist/{47.7e030d52af57062c6527.bundle.js → 45.293ae36535994809535f.bundle.js} +1 -1
  242. package/dist/46.ebb4ec0e53a11b886169.bundle.js +1 -0
  243. package/dist/{49.319507fd2417a71a157e.bundle.js → 47.4ee0abccc1a428d90bd3.bundle.js} +1 -1
  244. package/dist/{50.91efd0f7c94e635eb31b.bundle.js → 48.b573c97dc3325f08495e.bundle.js} +1 -1
  245. package/dist/49.9c3afbbfa8ec4e770d29.bundle.js +1 -0
  246. package/dist/5.c8d38f8fdd00b27c26a4.bundle.js +1 -0
  247. package/dist/{52.37332ab2c0675e0a802c.bundle.js → 50.5a24bd878442467a5522.bundle.js} +1 -1
  248. package/dist/{53.967c8f3d2a9f33fcfc27.bundle.js → 51.fa2bb92349cbf24315ef.bundle.js} +1 -1
  249. package/dist/{54.07a064723a033340c51b.bundle.js → 52.f14e3efeba836d452c71.bundle.js} +1 -1
  250. package/dist/53.824e0c1ae7d727433275.bundle.js +1 -0
  251. package/dist/{56.0bfd1ac12b2c5f9116e5.bundle.js → 54.b7c6ab3aa12a83d07b4c.bundle.js} +1 -1
  252. package/dist/{57.19a0ece12b6fb894221d.bundle.js → 55.855fac250d2407a6b148.bundle.js} +1 -1
  253. package/dist/{58.b741d32027a50f883617.bundle.js → 56.b3d8b2ad2196d6205220.bundle.js} +1 -1
  254. package/dist/{59.01fd6bb0dea0e31b8c98.bundle.js → 57.d36c71b4376dc2ec9aca.bundle.js} +1 -1
  255. package/dist/{60.dd84d15683316fe6c548.bundle.js → 58.a9a3c5ffe7f97301a2ec.bundle.js} +1 -1
  256. package/dist/59.a867612cd279920fc9fc.bundle.js +1 -0
  257. package/dist/6.4754c355e587189fe086.bundle.js +1 -0
  258. package/dist/{62.3cda5cf1c8a74f8bccc6.bundle.js → 60.c7a8864b2dbfd0969734.bundle.js} +1 -1
  259. package/dist/{63.dbce2c16115eac52fed2.bundle.js → 61.8987c24fd9ab648c404f.bundle.js} +1 -1
  260. package/dist/{64.0b46f2876921c15c0f4d.bundle.js → 62.5e8249547c1977cf7b1d.bundle.js} +1 -1
  261. package/dist/{65.4c044f55fb8e826c87a0.bundle.js → 63.c859ba43a87349531ebb.bundle.js} +1 -1
  262. package/dist/{68.b4bf34276a3cab5e48bf.bundle.js → 64.4a4ec6b0336af2209a71.bundle.js} +1 -1
  263. package/dist/{69.68337b9a2e3104600ff6.bundle.js → 65.1cf1c483099ced1dc179.bundle.js} +1 -1
  264. package/dist/{70.e04eced6ee3b7d712377.bundle.js → 66.b320ca7853f6134a8aa1.bundle.js} +1 -1
  265. package/dist/{71.0fbdedcc573e4e38ff6a.bundle.js → 67.147f07e9471240618835.bundle.js} +1 -1
  266. package/dist/{72.e71caf5330e0c1cece04.bundle.js → 68.6ceeb3e5e025bfdd4ae6.bundle.js} +1 -1
  267. package/dist/{73.298162fe9ad207efe8a5.bundle.js → 69.c768cfe2e49ea72a0ec2.bundle.js} +1 -1
  268. package/dist/7.d510605035abba69c3fa.bundle.js +1 -0
  269. package/dist/{74.b57c202b34d9d8effbcb.bundle.js → 70.0513a81e36fcea72a0c7.bundle.js} +1 -1
  270. package/dist/{75.8be72a221b92aa667da7.bundle.js → 71.45b226c3c008edeb41c2.bundle.js} +1 -1
  271. package/dist/{76.0f45a150d03cf8aeeb9d.bundle.js → 72.e34805716251eea43dfc.bundle.js} +1 -1
  272. package/dist/{77.257e393d86a8fb9f2102.bundle.js → 73.4634552502775151750f.bundle.js} +1 -1
  273. package/dist/{78.83432ef1cff39b57aa50.bundle.js → 74.d2d40e9e2d7b272bb4e1.bundle.js} +1 -1
  274. package/dist/{79.74e2421bfb8f6c563a99.bundle.js → 75.75fb0506d867aabb8fe6.bundle.js} +1 -1
  275. package/dist/{80.53a2f5637376be338bb5.bundle.js → 76.0e3a00bbf1e1f35c5d4e.bundle.js} +1 -1
  276. package/dist/77.45bdda33d66e12cfe94e.bundle.js +1 -0
  277. package/dist/{82.bde6d42f833167581069.bundle.js → 78.3e3d5101dfaec1f754e1.bundle.js} +1 -1
  278. package/dist/{83.4bb7fb45433f0902ba64.bundle.js → 79.2539a254cc3673f2b5c5.bundle.js} +1 -1
  279. package/dist/8.66639426d97b9fce145d.bundle.js +2 -0
  280. package/dist/{84.3fe74c343dd811256a58.bundle.js → 80.4bdac3aec5d1bf8154b3.bundle.js} +1 -1
  281. package/dist/81.ed07d5d34306221e4122.bundle.js +1 -0
  282. package/dist/{86.b6a6584bb48c2eba7793.bundle.js → 82.f17a9797e02d6b78f877.bundle.js} +1 -1
  283. package/dist/{87.66c82919414d84bf1c91.bundle.js → 83.311902a2a88d77513693.bundle.js} +1 -1
  284. package/dist/{88.a54c809c84dbef177321.bundle.js → 84.42bc089e61c202973dec.bundle.js} +1 -1
  285. package/dist/{89.08dc723465581d17e18c.bundle.js → 85.754e6445c184fbd816a9.bundle.js} +1 -1
  286. package/dist/{90.82bdd586c3a8e362fd99.bundle.js → 86.744890c7770872cb0d02.bundle.js} +1 -1
  287. package/dist/{91.743cdf86c0680be894c9.bundle.js → 87.9db85e89906d690a43ad.bundle.js} +1 -1
  288. package/dist/{92.c68c7391efc7d3b46a0d.bundle.js → 88.ebf8e8f31d0f2d7f546c.bundle.js} +1 -1
  289. package/dist/{93.daf27be7933412f1637f.bundle.js → 89.a925259fb5786fd5170a.bundle.js} +1 -1
  290. package/dist/9.1af152b5733bd454d2bd.bundle.js +1 -0
  291. package/dist/{94.e7ab23159456b757afa9.bundle.js → 90.ba7993cc79211ac53778.bundle.js} +1 -1
  292. package/dist/{95.522b5e309c1f6989ec42.bundle.js → 91.07033246e6467d390650.bundle.js} +1 -1
  293. package/dist/92.adabdc2c0d2db714872f.bundle.js +1 -0
  294. package/dist/{97.f221163ec5e99caa0668.bundle.js → 93.312d80c70d239224b3e9.bundle.js} +1 -1
  295. package/dist/{98.1f20ae086eeefbf60b9f.bundle.js → 94.b336a5724008c5007f53.bundle.js} +1 -1
  296. package/dist/{99.c4df74a95a465a7bc7e6.bundle.js → 95.56ec2313b6c7c236f7a4.bundle.js} +1 -1
  297. package/dist/96.e368f323c3017cccf781.bundle.js +1 -0
  298. package/dist/{101.d85136c82944d96009d8.bundle.js → 97.cc8fcfda5df84a73221a.bundle.js} +1 -1
  299. package/dist/98.d80c4f030907d2fe5e52.bundle.js +1 -0
  300. package/dist/99.0f5807f6f662074bf120.bundle.js +1 -0
  301. package/dist/bundle.3d0d792263b41f188356.bundle.js +95 -0
  302. package/dist/css/bootstrap-graphdb-theme-dark-auto.css +4 -0
  303. package/dist/css/clustermanagement.css +5 -1
  304. package/dist/css/lib/ontotext-yasgui-web-component.css +4 -0
  305. package/dist/css/ux-test1.css +29 -0
  306. package/dist/i18n/locale-en.json +26 -12
  307. package/dist/i18n/locale-fr.json +31 -10
  308. package/dist/index.html +4 -4
  309. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  310. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  311. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  312. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  313. package/dist/js/angular/security/templates/user.html +1 -1
  314. package/dist/license-checker.json +28 -28
  315. package/dist/{main.d3e9ca1041e746ba3275.bundle.js → main.77429baffbbe53e4ea0f.bundle.js} +1 -1
  316. package/dist/{main.cd9080d130335332d006.css → main.b830c2fc237abd684f41.css} +1 -1
  317. package/dist/pages/aclmanagement.html +2 -2
  318. package/dist/pages/autocomplete.html +1 -1
  319. package/dist/pages/choose-repository-type.html +1 -1
  320. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  321. package/dist/pages/create-index.html +1 -1
  322. package/dist/pages/dependencies.html +1 -1
  323. package/dist/pages/domainRangeInfo.html +2 -2
  324. package/dist/pages/edit.html +1 -1
  325. package/dist/pages/explore.html +1 -1
  326. package/dist/pages/export.html +1 -1
  327. package/dist/pages/find.html +1 -1
  328. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  329. package/dist/pages/graphs-visualizations.html +7 -7
  330. package/dist/pages/guides.html +1 -1
  331. package/dist/pages/import.html +1 -1
  332. package/dist/pages/jdbc-create.html +1 -1
  333. package/dist/pages/monitor/backup-and-restore.html +1 -1
  334. package/dist/pages/monitor/queries.html +2 -2
  335. package/dist/pages/monitor/resources.html +1 -1
  336. package/dist/pages/namespaces.html +2 -2
  337. package/dist/pages/plugins.html +1 -1
  338. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  339. package/dist/pages/rdfrank.html +2 -2
  340. package/dist/pages/repositories.html +1 -1
  341. package/dist/pages/repository.html +1 -1
  342. package/dist/pages/similarity-indexes.html +15 -14
  343. package/dist/pages/sparql-editor.html +1 -1
  344. package/dist/pages/sparql-template-create.html +1 -1
  345. package/dist/pages/ux-test1.html +366 -7
  346. package/dist/pages/webapi.html +2 -2
  347. package/dist/plugins.js +168 -240
  348. package/dist/{polyfills-dom.e5e420bcb04603449d09.bundle.js → polyfills-dom.b66f1632aefc2c699c15.bundle.js} +1 -1
  349. package/dist/res/swagger/index.html +27 -27
  350. package/dist/{vendor.32f2a17d79d66db88bba.bundle.js → vendor.5b5276e6b4db255baf01.bundle.js} +4 -4
  351. package/dist/{vendors~polyfills-core-js.efe4b0ec258663b8b247.bundle.js → vendors~polyfills-core-js.a96d447658742b371375.bundle.js} +1 -1
  352. package/package.json +3 -3
  353. package/dist/0.a3b3bef411c35bdc8be5.bundle.js +0 -25
  354. package/dist/1.aab0f9b3a664ffdd46a3.bundle.js +0 -1
  355. package/dist/10.c86a39a390b36ec08b90.bundle.js +0 -1
  356. package/dist/100.534f37dd58edf9a6d699.bundle.js +0 -1
  357. package/dist/102.a57d02f54d23e39ab220.bundle.js +0 -1
  358. package/dist/103.6edf5a9611097aac7b0e.bundle.js +0 -1
  359. package/dist/11.5146ccccd430bce59f6c.bundle.js +0 -7
  360. package/dist/119.e2a1ccb260af6cddd91c.bundle.js +0 -1
  361. package/dist/12.75466fc44ea53c351a67.bundle.js +0 -1
  362. package/dist/122.d5d3e1f5e5c8f632795f.bundle.js +0 -1
  363. package/dist/123.eb8114707f15749a90ae.bundle.js +0 -1
  364. package/dist/125.48215e946747137bf6c8.bundle.js +0 -1
  365. package/dist/126.119b23fe77d130cd15f2.bundle.js +0 -1
  366. package/dist/127.8e57d1e19372e120aeba.bundle.js +0 -1
  367. package/dist/128.96d9076518cacd42230d.bundle.js +0 -1
  368. package/dist/149.c2b7461cdb7018d8a7ac.bundle.js +0 -1
  369. package/dist/151.b909ba9cb2419e0f91dd.bundle.js +0 -1
  370. package/dist/154.19d1b00bfc1e419adc42.bundle.js +0 -1
  371. package/dist/155.dd57193f58cc7d5262b8.bundle.js +0 -1
  372. package/dist/157.60074b591e62c10a77ed.bundle.js +0 -1
  373. package/dist/158.742c03d8e739b04df049.bundle.js +0 -1
  374. package/dist/16.af6bc53be819045291bd.bundle.js +0 -3
  375. package/dist/160.7616cb8b729cfbe229fb.bundle.js +0 -1
  376. package/dist/162.78a734f7eb6bd4583f17.bundle.js +0 -1
  377. package/dist/163.5dbf48d936a3c831c9b5.bundle.js +0 -1
  378. package/dist/164.d3220f317e31f573b335.bundle.js +0 -1
  379. package/dist/165.4b88e7b3b3a273cb4ed1.bundle.js +0 -1
  380. package/dist/168.c52d0bbbd4224ddadd7c.bundle.js +0 -1
  381. package/dist/169.f6823be6839682f8586c.bundle.js +0 -1
  382. package/dist/17.31f5971e39936437eda8.bundle.js +0 -1
  383. package/dist/172.9b5d17e5c772c53243e9.bundle.js +0 -1
  384. package/dist/177.1023531c905d87b8a4ac.bundle.js +0 -1
  385. package/dist/18.a18e024d172531f968fa.bundle.js +0 -1
  386. package/dist/181.393af0e6c19d537f775b.bundle.js +0 -1
  387. package/dist/182.9b7c235aa984ad81ab02.bundle.js +0 -1
  388. package/dist/185.31a5c2ddc3afdffdc9e5.bundle.js +0 -1
  389. package/dist/189.4456ac2b4559c9c4e808.bundle.js +0 -1
  390. package/dist/19.ec4fc8946a6edb7dc7c9.bundle.js +0 -1
  391. package/dist/194.a4f892be39e071e2552a.bundle.js +0 -1
  392. package/dist/2.907f954e4f9e0697612c.bundle.js +0 -1
  393. package/dist/20.b6d679aabf452ffe8369.bundle.js +0 -1
  394. package/dist/21.72126081137288bb650e.bundle.js +0 -1
  395. package/dist/215.a95cf561d38004eff071.bundle.js +0 -1
  396. package/dist/22.8ee5985085ab2c4b99f1.bundle.js +0 -2
  397. package/dist/226.0a305eb2e34c9d3fb3ce.bundle.js +0 -1
  398. package/dist/227.357506866df2e0ba1ae1.bundle.js +0 -1
  399. package/dist/23.a5165fa6e171a8db712b.bundle.js +0 -1
  400. package/dist/232.ddae678620e7c15b8ec4.bundle.js +0 -1
  401. package/dist/235.97d46a9b6277079ae6cc.bundle.js +0 -1
  402. package/dist/24.498f1aefa71ceb33d2f8.bundle.js +0 -1
  403. package/dist/242.3b1c3384513df758e880.bundle.js +0 -1
  404. package/dist/243.36fbc0c96d0a35048949.bundle.js +0 -1
  405. package/dist/25.5a98f7b1bf5b195fa51f.bundle.js +0 -1
  406. package/dist/26.8bd9dc57add455291ab8.bundle.js +0 -1
  407. package/dist/27.92bfb161b420732902a3.bundle.js +0 -1
  408. package/dist/29.128101fabb544e88e448.bundle.js +0 -1
  409. package/dist/299.d3636e77b768f4300e8c.bundle.js +0 -1
  410. package/dist/3.e877f5e49ef930b8b905.bundle.js +0 -1
  411. package/dist/30.1ffda412dea3c5f55c24.bundle.js +0 -1
  412. package/dist/300.c9844b95b03ac7295e4f.bundle.js +0 -1
  413. package/dist/31.1e6ed4b31ac8c0dc44cd.bundle.js +0 -1
  414. package/dist/32.08cc7807b71cf869e6e2.bundle.js +0 -1
  415. package/dist/33.601eab9a8c9d80755599.bundle.js +0 -1
  416. package/dist/35.d337b2f1aeac7bab3100.bundle.js +0 -2
  417. package/dist/39.f691f87a4527e58da4a2.bundle.js +0 -1
  418. package/dist/4.fe432ceb2b88c03018b3.bundle.js +0 -1
  419. package/dist/41.5a0ecbdf78c48ddce365.bundle.js +0 -1
  420. package/dist/46.7682ca54e79000d992ab.bundle.js +0 -1
  421. package/dist/48.669aedf81599ca0aee35.bundle.js +0 -1
  422. package/dist/5.f58f4e96c07a6a7a0e06.bundle.js +0 -1
  423. package/dist/51.9696bc200e07cfc15860.bundle.js +0 -1
  424. package/dist/55.1f556c49966d089af28e.bundle.js +0 -1
  425. package/dist/6.0685b09a3646005a1521.bundle.js +0 -1
  426. package/dist/61.2fdefec6b0e4f2f01dc9.bundle.js +0 -1
  427. package/dist/66.c8b9472b02654a17b61c.bundle.js +0 -1
  428. package/dist/67.958136cd17ad37887b60.bundle.js +0 -1
  429. package/dist/7.112cbad7864c8da551d3.bundle.js +0 -1
  430. package/dist/8.df1e59fdf8864051f4b0.bundle.js +0 -2
  431. package/dist/81.a48e2d16edd121965d2f.bundle.js +0 -1
  432. package/dist/85.e34e2854ea217304bf69.bundle.js +0 -1
  433. package/dist/9.3890e642c0ae619d2c59.bundle.js +0 -1
  434. package/dist/96.e01346a08ab153a02364.bundle.js +0 -1
  435. package/dist/bundle.4ff8ba3c9d9d1eac7a29.bundle.js +0 -89
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[35],{418:function(t,e){
2
- /*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var t=8,e=9,i=13,n=27,s=32,o=38,r=40,a=37,l=39,h=46,u=188,c=9007199254740991,p=["text","email","url"],d=angular.module("ngTagsInput",[]);d.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(e,n,o,r,d,g){function f(t,e,i,n){var s,o,a,l,h={};return s=function(e){return g.safeToString(e[t.displayProperty])},o=function(e,i){e[t.displayProperty]=i},a=function(e){var n=s(e),o=n&&n.length>=t.minLength&&n.length<=t.maxLength&&t.allowedTagsPattern.test(n)&&!g.findInObjectArray(h.items,e,t.keyProperty||t.displayProperty);return r.when(o&&i({$tag:e})).then(g.promisifyValue)},l=function(t){return r.when(n({$tag:t})).then(g.promisifyValue)},h.items=[],h.addText=function(t){var e={};return o(e,t),h.add(e)},h.add=function(i){var n=s(i);return t.replaceSpacesWithDashes&&(n=g.replaceSpacesWithDashes(n)),o(i,n),a(i).then((function(){h.items.push(i),e.trigger("tag-added",{$tag:i})})).catch((function(){n&&e.trigger("invalid-tag",{$tag:i})}))},h.remove=function(t){var i=h.items[t];return l(i).then((function(){return h.items.splice(t,1),h.clearSelection(),e.trigger("tag-removed",{$tag:i}),i}))},h.select=function(t){0>t?t=h.items.length-1:t>=h.items.length&&(t=0),h.index=t,h.selected=h.items[t]},h.selectPrior=function(){h.select(--h.index)},h.selectNext=function(){h.select(++h.index)},h.removeSelected=function(){return h.remove(h.index)},h.clearSelection=function(){h.selected=null,h.index=-1},h.getItems=function(){return t.useStrings?h.items.map(s):h.items},h.clearSelection(),h}function m(t){return-1!==p.indexOf(t)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(t,e,i){t.events=g.simplePubSub(),d.load("tagsInput",t,e,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",m],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,c],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,c],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),t.tagList=new f(t.options,t.events,g.handleUndefinedResult(t.onTagAdding,!0),g.handleUndefinedResult(t.onTagRemoving,!0)),this.registerAutocomplete=function(){return i.find("input"),{addTag:function(e){return t.tagList.add(e)},getTags:function(){return t.tagList.items},getCurrentTagText:function(){return t.newTag.text()},getOptions:function(){return t.options},getTemplateScope:function(){return t.templateScope},on:function(e,i){return t.events.on(e,i,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return t.options},removeTag:function(e){t.disabled||t.tagList.remove(e)}}}}],link:function(r,c,p,d){var f,m,b=[i,u,s,t,h,a,l],v=r.tagList,y=r.events,x=r.options,w=c.find("input"),S=["minTags","maxTags","allowLeftoverText"];f=function(){d.$setValidity("maxTags",v.items.length<=x.maxTags),d.$setValidity("minTags",v.items.length>=x.minTags),d.$setValidity("leftoverText",!(!r.hasFocus&&!x.allowLeftoverText)||!r.newTag.text())},m=function(){e((function(){w[0].focus()}))},d.$isEmpty=function(t){return!t||!t.length},r.newTag={text:function(t){return angular.isDefined(t)?(r.text=t,void y.trigger("input-change",t)):r.text||""},invalid:null},r.track=function(t){return t[x.keyProperty||x.displayProperty]},r.getTagClass=function(t,e){var i=t===v.selected;return[r.tagClass({$tag:t,$index:e,$selected:i}),{selected:i}]},r.$watch("tags",(function(t){if(t){if(v.items=g.makeObjectArray(t,x.displayProperty),x.useStrings)return;r.tags=v.items}else v.items=[]})),r.$watch("tags.length",(function(){f(),d.$validate()})),p.$observe("disabled",(function(t){r.disabled=t})),r.eventHandlers={input:{keydown:function(t){y.trigger("input-keydown",t)},focus:function(){r.hasFocus||(r.hasFocus=!0,y.trigger("input-focus"))},blur:function(){e((function(){var t=n.prop("activeElement"),e=t===w[0],i=c[0].contains(t);(e||!i)&&(r.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(t){t.getTextData=function(){var e=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData;return e?e.getData("text/plain"):o.clipboardData.getData("Text")},y.trigger("input-paste",t)}},host:{click:function(){r.disabled||m()}},tag:{click:function(t){y.trigger("tag-clicked",{$tag:t})}}},y.on("tag-added",r.onTagAdded).on("invalid-tag",r.onInvalidTag).on("tag-removed",r.onTagRemoved).on("tag-clicked",r.onTagClicked).on("tag-added",(function(){r.newTag.text("")})).on("tag-added tag-removed",(function(){r.tags=v.getItems(),d.$setDirty(),m()})).on("invalid-tag",(function(){r.newTag.invalid=!0})).on("option-change",(function(t){-1!==S.indexOf(t.name)&&f()})).on("input-change",(function(){v.clearSelection(),r.newTag.invalid=null})).on("input-focus",(function(){c.triggerHandler("focus"),d.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&v.addText(r.newTag.text()),c.triggerHandler("blur"),f()})).on("input-keydown",(function(e){var n,o,c,p,d=e.keyCode,f={};g.isModifierOn(e)||-1===b.indexOf(d)||(f[i]=x.addOnEnter,f[u]=x.addOnComma,f[s]=x.addOnSpace,n=!x.addFromAutocompleteOnly&&f[d],o=(d===t||d===h)&&v.selected,p=d===t&&0===r.newTag.text().length&&x.enableEditingLastTag,c=(d===t||d===a||d===l)&&0===r.newTag.text().length&&!x.enableEditingLastTag,n?v.addText(r.newTag.text()):p?(v.selectPrior(),v.removeSelected().then((function(t){t&&r.newTag.text(t[x.displayProperty])}))):o?v.removeSelected():c&&(d===a||d===t?v.selectPrior():d===l&&v.selectNext()),(n||c||o||p)&&e.preventDefault())})).on("input-paste",(function(t){if(x.addOnPaste){var e=t.getTextData().split(x.pasteSplitPattern);e.length>1&&(e.forEach((function(t){v.addText(t)})),t.preventDefault())}}))}}}]),d.directive("tiTagItem",["tiUtil",function(t){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(e,i,n,s){var o=s.registerTagItem(),r=o.getOptions();e.$$template=r.template,e.$$removeTagSymbol=r.removeTagSymbol,e.$getDisplayText=function(){return t.safeToString(e.data[r.displayProperty])},e.$removeTag=function(){o.removeTag(e.$index)},e.$watch("$parent.$index",(function(t){e.$index=t}))}}}]),d.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,s,a,l,h,u){function c(t,e,i){var n,s,o,r={};return o=function(){return e.tagsInput.keyProperty||e.tagsInput.displayProperty},n=function(t,i){return t.filter((function(t){return!u.findInObjectArray(i,t,o(),(function(t,i){return e.tagsInput.replaceSpacesWithDashes&&(t=u.replaceSpacesWithDashes(t),i=u.replaceSpacesWithDashes(i)),u.defaultComparer(t,i)}))}))},r.reset=function(){s=null,r.items=[],r.visible=!1,r.index=-1,r.selected=null,r.query=null},r.show=function(){e.selectFirstMatch?r.select(0):r.selected=null,r.visible=!0},r.load=u.debounce((function(i,a){r.query=i;var h=l.when(t({$query:i}));s=h,h.then((function(t){h===s&&(t=u.makeObjectArray(t.data||t,o()),t=n(t,a),r.items=t.slice(0,e.maxResultsToShow),r.items.length>0?r.show():r.reset())}))}),e.debounceDelay),r.selectNext=function(){r.select(++r.index)},r.selectPrior=function(){r.select(--r.index)},r.select=function(t){0>t?t=r.items.length-1:t>=r.items.length&&(t=0),r.index=t,r.selected=r.items[t],i.trigger("suggestion-selected",t)},r.reset(),r}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(t,e,i){t.events=u.simplePubSub(),h.load("autoComplete",t,i,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),t.suggestionList=new c(t.source,t.options,t.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return t.options},getQuery:function(){return t.suggestionList.query}}}}],link:function(t,s,a,l){var h,c=[i,e,n,o,r],p=t.suggestionList,d=l.registerAutocomplete(),g=t.options,f=t.events;g.tagsInput=d.getOptions(),h=function(t){return t&&t.length>=g.minLength||!t&&g.loadOnEmpty},t.templateScope=d.getTemplateScope(),t.addSuggestionByIndex=function(e){p.select(e),t.addSuggestion()},t.addSuggestion=function(){var t=!1;return p.selected&&(d.addTag(angular.copy(p.selected)),p.reset(),t=!0),t},t.track=function(t){return t[g.tagsInput.keyProperty||g.tagsInput.displayProperty]},t.getSuggestionClass=function(e,i){var n=e===p.selected;return[t.matchClass({$match:e,$index:i,$selected:n}),{selected:n}]},d.on("tag-added tag-removed invalid-tag input-blur",(function(){p.reset()})).on("input-change",(function(t){h(t)?p.load(t,d.getTags()):p.reset()})).on("input-focus",(function(){var t=d.getCurrentTagText();g.loadOnFocus&&h(t)&&p.load(t,d.getTags())})).on("input-keydown",(function(s){var a=s.keyCode,l=!1;if(!u.isModifierOn(s)&&-1!==c.indexOf(a))return p.visible?a===r?(p.selectNext(),l=!0):a===o?(p.selectPrior(),l=!0):a===n?(p.reset(),l=!0):(a===i||a===e)&&(l=t.addSuggestion()):a===r&&t.options.loadOnDownArrow&&(p.load(d.getCurrentTagText(),d.getTags()),l=!0),l?(s.preventDefault(),s.stopImmediatePropagation(),!1):void 0})),f.on("suggestion-selected",(function(t){!function(t,e){var i=t.find("li").eq(e),n=i.parent(),s=i.prop("offsetTop"),o=i.prop("offsetHeight"),r=n.prop("clientHeight"),a=n.prop("scrollTop");a>s?n.prop("scrollTop",s):s+o>r+a&&n.prop("scrollTop",s+o-r)}(s,t)}))}}}]),d.directive("tiAutocompleteMatch",["$sce","tiUtil",function(t,e){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(i,n,s,o){var r=o.registerAutocompleteMatch(),a=r.getOptions();i.$$template=a.template,i.$index=i.$parent.$index,i.$highlight=function(i){return a.highlightMatchedText&&(i=e.safeHighlight(i,r.getQuery())),t.trustAsHtml(i)},i.$getDisplayText=function(){return e.safeToString(i.data[a.displayProperty||a.tagsInput.displayProperty])}}}}]),d.directive("tiTranscludeAppend",(function(){return function(t,e,i,n,s){s((function(t){e.append(t)}))}})),d.directive("tiAutosize",["tagsInputConfig",function(t){return{restrict:"A",require:"ngModel",link:function(e,i,n,s){var o,r,a=t.getTextAutosizeThreshold();(o=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),i.parent().append(o),r=function(t){var e,s=t;return angular.isString(s)&&0===s.length&&(s=n.placeholder),s&&(o.text(s),o.css("display",""),e=o.prop("offsetWidth"),o.css("display","none")),i.css("width",e?e+a+"px":""),t},s.$parsers.unshift(r),s.$formatters.unshift(r),n.$observe("placeholder",(function(t){s.$modelValue||r(t)}))}}}]),d.directive("tiBindAttrs",(function(){return function(t,e,i){t.$watch(i.tiBindAttrs,(function(t){angular.forEach(t,(function(t,e){i.$set(e,t)}))}),!0)}})),d.provider("tagsInputConfig",(function(){var t={},e={},i=3;this.setDefaults=function(e,i){return t[e]=i,this},this.setActiveInterpolation=function(t,i){return e[t]=i,this},this.setTextAutosizeThreshold=function(t){return i=t,this},this.$get=["$interpolate",function(n){var s={};return s[String]=function(t){return t},s[Number]=function(t){return parseInt(t,10)},s[Boolean]=function(t){return"true"===t.toLowerCase()},s[RegExp]=function(t){return new RegExp(t)},{load:function(i,o,r,a){var l=function(){return!0};o.options={},angular.forEach(a,(function(a,h){var u,c,p,d,g,f;u=a[0],c=a[1],p=a[2]||l,d=s[u],g=function(){var e=t[i]&&t[i][h];return angular.isDefined(e)?e:c},f=function(t){o.options[h]=t&&p(t)?d(t):g()},e[i]&&e[i][h]?r.$observe(h,(function(t){f(t),o.events.trigger("option-change",{name:h,newValue:t})})):f(r[h]&&n(r[h])(o.$parent))}))},getTextAutosizeThreshold:function(){return i}}}]})),d.factory("tiUtil",["$timeout","$q",function(t,e){var i={debounce:function(e,i){var n;return function(){var s=arguments;t.cancel(n),n=t((function(){e.apply(null,s)}),i)}},makeObjectArray:function(t,e){if(!angular.isArray(t)||0===t.length||angular.isObject(t[0]))return t;var i=[];return t.forEach((function(t){var n={};n[e]=t,i.push(n)})),i},findInObjectArray:function(t,e,n,s){var o=null;return s=s||i.defaultComparer,t.some((function(t){return s(t[n],e[n])?(o=t,!0):void 0})),o},defaultComparer:function(t,e){return i.safeToString(t).toLowerCase()===i.safeToString(e).toLowerCase()},safeHighlight:function(t,e){if(t=i.encodeHTML(t),!(e=i.encodeHTML(e)))return t;var n=new RegExp("&[^;]+;|"+function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(e),"gi");return t.replace(n,(function(t){return t.toLowerCase()===e.toLowerCase()?"<em>"+t+"</em>":t}))},safeToString:function(t){return angular.isUndefined(t)||null==t?"":t.toString().trim()},encodeHTML:function(t){return i.safeToString(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},handleUndefinedResult:function(t,e){return function(){var i=t.apply(null,arguments);return angular.isUndefined(i)?e:i}},replaceSpacesWithDashes:function(t){return i.safeToString(t).replace(/\s/g,"-")},isModifierOn:function(t){return t.shiftKey||t.ctrlKey||t.altKey||t.metaKey},promisifyValue:function(t){return t=!!angular.isUndefined(t)||t,e[t?"when":"reject"]()},simplePubSub:function(){var t={};return{on:function(e,i,n){return e.split(" ").forEach((function(e){t[e]||(t[e]=[]),(n?[].unshift:[].push).call(t[e],i)})),this},trigger:function(e,n){return(t[e]||[]).every((function(t){return i.handleUndefinedResult(t,!0)(n)})),this}}}};return i}]),d.run(["$templateCache",function(t){t.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),t.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),t.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),t.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},610:function(t,e){!function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,o,r,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){h=!0,s=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(h)throw s}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(e,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,(void 0,o=function(e,i){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,i);if("object"!==t(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(s.key,"string"),"symbol"===t(o)?o:String(o)),s)}var o}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,s;return i=t,(s=[{key:"registerFor",value:function(t){var i,n,s,o;function r(t,i,n){var s=t[0],r=e({top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[i],3),a=r[0],l=r[1],h=r[2],u=void 0!==n;return o(s)?u?s.scrollTo(t[h].call(t),n):l in s?s[l]:s.document.documentElement[a]:(u&&(s[a]=n),s[a])}function a(t,n,r){var a,l=function(t,n){var r,a,l,h,u,c,p,d,g,f;if(o(t))return{base:r=document.documentElement[{height:"clientHeight",width:"clientWidth"}[n]],padding:0,border:0,margin:0};var m=e({width:[t.offsetWidth,"Left","Right"],height:[t.offsetHeight,"Top","Bottom"]}[n],3);return r=m[0],p=m[1],d=m[2],c=s(t),g=i(t,c["padding"+p])||0,f=i(t,c["padding"+d])||0,a=i(t,c["border"+p+"Width"])||0,l=i(t,c["border"+d+"Width"])||0,h=c["margin"+p],u=c["margin"+d],{base:r,padding:g+f,border:a+l,margin:(i(t,h)||0)+(i(t,u)||0)}}(t,n);return l.base>0?{base:l.base-l.padding-l.border,outer:l.base,outerfull:l.base+l.margin}[r]:(((a=s(t)[n])<0||null===a)&&(a=t.style[n]||0),{base:(a=parseFloat(a)||0)-l.padding-l.border,outer:a,outerfull:a+l.padding+l.border+l.margin}[r])}return n=angular.element.prototype.css,t.prototype.css=function(t,e){var i=this[0];if(i&&3!==i.nodeType&&8!==i.nodeType&&i.style)return n.call(this,t,e)},o=function(t){return t&&t.document&&t.location&&t.alert&&t.setInterval},window.getComputedStyle?(s=function(t){return window.getComputedStyle(t,null)},i=function(t,e){return parseFloat(e)}):(s=function(t){return t.currentStyle},i=function(t,e){var i,n,s,o,r;return new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i").test(e)?(i=(r=t.style).left,o=(s=t.runtimeStyle)&&s.left,s&&(s.left=r.left),r.left=e,n=r.pixelLeft,r.left=i,o&&(s.left=o),n):parseFloat(e)}),angular.forEach({before:function(t){var e,i,n,s,o,r;if(i=this[0],(e=(o=this.parent()).contents())[0]===i)return o.prepend(t);for(n=s=1,r=e.length-1;1<=r?s<=r:s>=r;n=1<=r?++s:--s)if(e[n]===i)return void angular.element(e[n-1]).after(t);throw new Error("invalid DOM structure "+i.outerHTML)},height:function(t){return void 0!==t?(angular.isNumber(t)&&(t+="px"),n.call(this,"height",t)):a(this[0],"height","base")},outerHeight:function(t){return a(this[0],"height",t?"outerfull":"outer")},outerWidth:function(t){return a(this[0],"width",t?"outerfull":"outer")},offset:function(t){var e,i,n={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(arguments.length){if(void 0===t)return this;throw new Error("offset setter method is not implemented")}if(o)return e=o.documentElement,null!=s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=o.defaultView||o.parentWindow,{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},scrollTop:function(t){return r(this,"top",t)},scrollLeft:function(t){return r(this,"left",t)}},(function(e,i){if(!t.prototype[i])return t.prototype[i]=e}))}}])&&n(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),t}();function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===o(s)?s:String(s)),n)}var s}var a="ng-ui-scroll-hide",l=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$animate=e.has&&e.has("$animate")?e.get("$animate"):null,this.isAngularVersionLessThen1_3=1===angular.version.major&&angular.version.minor<3,this.$q=i}var e,i,n;return e=t,n=[{key:"addCSSRules",value:function(){var t,e="."+a,i="display: none",n=document.styleSheets[0];try{t=n.cssRules.length}catch(e){t=0}"insertRule"in n?n.insertRule(e+"{"+i+"}",t):"addRule"in n&&n.addRule(e,i,t)}}],(i=[{key:"hideElement",value:function(t){t.element.addClass(a)}},{key:"showElement",value:function(t){t.element.removeClass(a)}},{key:"insertElement",value:function(t,e){return e.after(t),[]}},{key:"removeElement",value:function(t){return t.element.remove(),t.scope.$destroy(),[]}},{key:"insertElementAnimated",value:function(t,e){if(!this.$animate)return this.insertElement(t,e);if(this.isAngularVersionLessThen1_3){var i=this.$q.defer();return this.$animate.enter(t,null,e,(function(){return i.resolve()})),[i.promise]}return[this.$animate.enter(t,null,e)]}},{key:"removeElementAnimated",value:function(t){if(!this.$animate)return this.removeElement(t);if(this.isAngularVersionLessThen1_3){var e=this.$q.defer();return this.$animate.leave(t.element,(function(){return t.scope.$destroy(),e.resolve()})),[e.promise]}return[this.$animate.leave(t.element).then((function(){return t.scope.$destroy()}))]}}])&&r(e.prototype,i),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h="prepend",u="append",c="insert",p="remove",d="none";function g(t,e,i){var n=Object.create(Array.prototype);return angular.extend(n,{size:e,reset:function(t){n.remove(0,n.length),n.eof=!1,n.bof=!1,n.first=t,n.next=t,n.minIndex=t,n.maxIndex=t,n.minIndexUser=null,n.maxIndexUser=null},append:function(t){t.forEach((function(t){++n.next,n.insert(u,t)})),n.maxIndex=n.eof?n.next-1:Math.max(n.next-1,n.maxIndex)},prepend:function(t,e){t.reverse().forEach((function(t){e?++n.next:--n.first,n.insert(h,t)})),n.minIndex=n.bof?n.minIndex=n.first:Math.min(n.first,n.minIndex)},insert:function(t,e,i){var s={item:e};if(t%1==0)s.op=c,n.splice(t,0,s),i?n.first--:n.next++;else switch(s.op=t,t){case u:n.push(s);break;case h:n.unshift(s)}},remove:function(e,i){if(angular.isNumber(e)){for(var s=e;s<i;s++)t.removeElement(n[s]);return n.splice(e,i-e)}return n.splice(n.indexOf(e),1),e.shiftTop&&n.first===this.getAbsMinIndex()?this.incrementMinIndex():this.decrementMaxIndex(),e.shiftTop?n.first++:n.next--,n.length||(n.minIndex=Math.min(n.maxIndex,n.minIndex)),t.removeElementAnimated(e)},incrementMinIndex:function(){if(null!==n.minIndexUser){if(n.minIndex>n.minIndexUser)return void n.minIndexUser++;n.minIndex===n.minIndexUser&&n.minIndexUser++}n.minIndex++},decrementMaxIndex:function(){null!==n.maxIndexUser&&n.maxIndex<=n.maxIndexUser&&n.maxIndexUser--,n.maxIndex--},getAbsMinIndex:function(){return null!==n.minIndexUser?Math.min(n.minIndexUser,n.minIndex):n.minIndex},getAbsMaxIndex:function(){return null!==n.maxIndexUser?Math.max(n.maxIndexUser,n.maxIndex):n.maxIndex},effectiveHeight:function(t){if(!t.length)return 0;var e=Number.MAX_VALUE,i=Number.NEGATIVE_INFINITY;return t.forEach((function(t){t.element[0].offsetParent&&(e=Math.min(e,t.element.offset().top),i=Math.max(i,t.element.offset().top+t.element.outerHeight(!0)))})),Math.max(0,i-e)},getItems:function(){return n.filter((function(t){return t.op===d}))},getFirstItem:function(){var t=n.getItems();return t.length?t[0].item:null},getLastItem:function(){var t=n.getItems();return t.length?t[t.length-1].item:null}}),n.reset(i),n}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==f(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===f(s)?s:String(s)),n)}var s}function v(t,e,i){return e&&b(t.prototype,e),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y=function(){function t(){m(this,t)}return v(t,[{key:"add",value:function(t){for(var e=this.length-1;e>=0;e--)if(this[e].index===t.scope.$index)return void(this[e].height=t.element.outerHeight());this.push({index:t.scope.$index,height:t.element.outerHeight()}),this.sort((function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}))}},{key:"remove",value:function(t,e){for(var i=t%1==0?t:t.scope.$index,n=t%1==0?e:t.shiftTop,s=this.length-1;s>=0;s--)if(this[s].index===i){this.splice(s,1);break}if(!n)for(var o=this.length-1;o>=0;o--)this[o].index>i&&this[o].index--}},{key:"clear",value:function(){this.length=0}}]),t}();function x(){var t=[];return t.push.apply(t,arguments),Object.setPrototypeOf(t,x.prototype),t}x.prototype=Object.create(Array.prototype),Object.getOwnPropertyNames(y.prototype).forEach((function(t){return x.prototype[t]=y.prototype[t]}));var w=function(){function t(e){m(this,t),this.element=function(t){if(t.nodeType!==Node.ELEMENT_NODE)throw new Error("ui-scroll directive requires an Element node for templating the view");var e;switch(t.tagName.toLowerCase()){case"dl":throw new Error("ui-scroll directive does not support <".concat(t.tagName,"> as a repeating tag: ").concat(t.outerHTML));case"tr":e=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":e=angular.element("<li></li>");break;default:e=angular.element("<div></div>")}return e}(e),this.cache=new x}return v(t,[{key:"height",value:function(){return this.element.height.apply(this.element,arguments)}}]),t}();function S(t,e,i,n,s,o){var r=null,a=null,l=n&&n.viewport?n.viewport:angular.element(window),h=n&&n.container?n.container:void 0,u=n&&n.scope?n.scope:s;function c(){return l.outerHeight()*o}return l.css({"overflow-anchor":"none","overflow-y":"auto",display:"block"}),angular.extend(l,{getScope:function(){return u},createPaddingElements:function(t){r=new w(t),a=new w(t),i.before(r.element),i.after(a.element),r.height(0),a.height(0)},applyContainerStyle:function(){return!h||(h!==l&&l.css("height",window.getComputedStyle(h[0]).height),l.height()>0)},bottomDataPos:function(){var t=l[0].scrollHeight;return(t=null!=t?t:l[0].document.documentElement.scrollHeight)-a.height()},topDataPos:function(){return r.height()},bottomVisiblePos:function(){return l.scrollTop()+l.outerHeight()},topVisiblePos:function(){return l.scrollTop()},insertElement:function(e,i){return t.insertElement(e,i||r.element)},insertElementAnimated:function(e,i){return t.insertElementAnimated(e,i||r.element)},shouldLoadBottom:function(){return!e.eof&&l.bottomDataPos()<l.bottomVisiblePos()+c()},clipBottom:function(){for(var t=0,i=0,n=0,s=l.bottomDataPos()-l.bottomVisiblePos()-c(),o=e.length-1;o>=0&&!(i+(n=e[o].element.outerHeight(!0))>s);o--)a.cache.add(e[o]),i+=n,t++;t>0&&(e.eof=!1,e.remove(e.length-t,e.length),e.next-=t,l.adjustPaddings())},shouldLoadTop:function(){return!e.bof&&l.topDataPos()>l.topVisiblePos()-c()},clipTop:function(){for(var t=0,i=0,n=0,s=l.topVisiblePos()-l.topDataPos()-c(),o=0;o<e.length&&!(i+(n=e[o].element.outerHeight(!0))>s);o++)r.cache.add(e[o]),i+=n,t++;t>0&&(r.height(r.height()+i),e.bof=!1,e.remove(0,t),e.first+=t)},adjustPaddings:function(){if(e.length){var t=e.reduce((function(t,e){return t+e.element.outerHeight(!0)}),0),i=0,n=0;r.cache.forEach((function(t){t.index<e.first&&(i+=t.height,n++)}));var s=0,o=0;a.cache.forEach((function(t){t.index>=e.next&&(s+=t.height,o++)}));var l=(t+i+s)/(n+o+e.length),h=null!==e.minIndexUser&&e.minIndex>e.minIndexUser,u=null!==e.maxIndexUser&&e.maxIndex<e.maxIndexUser,c=h?(e.minIndex-e.minIndexUser)*l:0,p=u?(e.maxIndexUser-e.maxIndex)*l:0;r.height(i+c),a.height(s+p)}},onAfterMinIndexSet:function(t){if(null!==e.minIndexUser&&e.minIndex>e.minIndexUser){var i=r.height()-t;for(l.scrollTop(l.scrollTop()+i);(i-=l.scrollTop())>0;)a.height(a.height()+i),l.scrollTop(l.scrollTop()+i)}},onAfterPrepend:function(t){if(t.prepended.length){var i=e.effectiveHeight(t.prepended),n=r.height()-i;if(n>=0)r.height(n);else{var s=l.scrollTop(),o=s-n;l.synthetic={previous:s,next:o},r.height(0),l.scrollTop(o)}}},resetTopPadding:function(){r.height(0),r.cache.clear()},resetBottomPadding:function(){a.height(0),a.cache.clear()},removeCacheItem:function(t,e){r.cache.remove(t,e),a.cache.remove(t,e)},removeItem:function(t){return this.removeCacheItem(t),e.remove(t)}}),l}function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==T(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===T(s)?s:String(s)),n)}var s}var V=function(){function t(e,i,n,s,o,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$parse=i,this.$attr=n,this.viewport=s,this.buffer=o,this.doAdjust=r,this.reload=a,this.isLoading=!1,this.disabled=!1;var l=s.getScope();this.startScope=l.$parent?l:e,this.publicContext={},this.assignAdapter(n.adapter),this.generatePublicContext()}var e,i;return e=t,(i=[{key:"assignAdapter",value:function(t){if(t&&(t=t.replace(/^\s+|\s+$/gm,""))){var e;try{this.$parse(t).assign(this.startScope,{}),e=this.$parse(t)(this.startScope)}catch(e){throw e.message="Angular ui-scroll Adapter assignment exception.\n"+"Can't parse \"".concat(t,'" expression.\n')+e.message,e}angular.extend(e,this.publicContext),this.publicContext=e}}},{key:"generatePublicContext",value:function(){for(var t=this,e=["reload","applyUpdates","append","prepend","isBOF","isEOF","isEmpty"],i=e.length-1;i>=0;i--)this.publicContext[e[i]]=this[e[i]].bind(this);for(var n=["isLoading","topVisible","topVisibleElement","topVisibleScope","bottomVisible","bottomVisibleElement","bottomVisibleScope"],s=function(e){var i,s=t.$attr[n[e]];Object.defineProperty(t,n[e],{get:function(){return i},set:function(o){i=o,t.publicContext[n[e]]=o,s&&t.$parse(s).assign(t.startScope,o)}})},o=n.length-1;o>=0;o--)s(o);for(var r=["bufferFirst","bufferLast","bufferLength"],a=function(e){Object.defineProperty(t.publicContext,r[e],{get:function(){return t[r[e]]}})},l=r.length-1;l>=0;l--)a(l);Object.defineProperty(this.publicContext,"disabled",{get:function(){return t.disabled},set:function(e){return(t.disabled=e)?null:t.doAdjust()}})}},{key:"loading",value:function(t){this.isLoading=t}},{key:"isBOF",value:function(){return this.buffer.bof}},{key:"isEOF",value:function(){return this.buffer.eof}},{key:"isEmpty",value:function(){return!this.buffer.length}},{key:"bufferLength",get:function(){return this.buffer.getItems().length}},{key:"bufferFirst",get:function(){return this.buffer.getFirstItem()}},{key:"bufferLast",get:function(){return this.buffer.getLastItem()}},{key:"append",value:function(t){this.buffer.append(t),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"prepend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.prepend(t,e.immutableTop),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"applyUpdates",value:function(t,e,i){"function"==typeof t?this.applyUpdatesFunc(t,e):this.applyUpdatesIndex(t,e,i),this.doAdjust()}},{key:"applyUpdatesFunc",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.slice(0).forEach((function(n){e.applyUpdate(n,t(n.item,n.scope,n.element),i)}))}},{key:"applyUpdatesIndex",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t%1!=0)throw new Error("applyUpdates - "+t+" is not a valid index (should be an integer)");var n=t-this.buffer.first;n>=0&&n<this.buffer.length?this.applyUpdate(this.buffer[n],e,i):t>=this.buffer.getAbsMinIndex()&&t<=this.buffer.getAbsMaxIndex()&&angular.isArray(e)&&!e.length&&(this.viewport.removeCacheItem(t,!i.immutableTop&&t===this.buffer.minIndex),i.immutableTop||t!==this.buffer.getAbsMinIndex()?this.buffer.decrementMaxIndex():this.buffer.incrementMinIndex())}},{key:"applyUpdate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(angular.isArray(e)){var s=this.buffer.indexOf(t);e.reverse().some((function(e){return e===t.item}))||(t.op=p,n.immutableTop||e.length||(0===s&&this.buffer.bof||0!==s&&this.buffer[s-1].shiftTop)&&(t.shiftTop=!0)),e.forEach((function(e){e===t.item?s--:i.buffer.insert(s+1,e,!n.immutableTop&&-1===s)}))}}},{key:"calculateProperties",value:function(){for(var t=null,e=0,i=!1,n=!1,s=this.buffer.length,o=0;o<s;o++){var r=this.buffer[o],a=r.element.offset().top;if(t!==a){var l=r.element.outerHeight(!0),h=this.viewport.topDataPos()+e+l;!i&&h>this.viewport.topVisiblePos()&&(i=!0,this.topVisible=r.item,this.topVisibleElement=r.element,this.topVisibleScope=r.scope),!n&&(h>=this.viewport.bottomVisiblePos()||o===s-1&&this.isEOF())&&(n=!0,this.bottomVisible=r.item,this.bottomVisibleElement=r.element,this.bottomVisibleScope=r.scope),e+=l}if(t=a,i&&n)break}}}])&&L(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();angular.module("ui.scroll",[]).constant("JQLiteExtras",s).run(["JQLiteExtras",function(t){var e=angular.element;!(window.jQuery&&e.fn&&e.fn.jquery)&&(new t).registerFor(e),l.addCSSRules()}]).directive("uiScrollViewport",(function(){return{restrict:"A",controller:["$scope","$element",function(t,e){var i=this;return this.container=e,this.viewport=e,this.scope=t,angular.forEach(e.children(),(function(t){"tbody"===t.tagName.toLowerCase()&&(i.viewport=angular.element(t))})),this}]}})).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$interval","$q","$parse",function(t,e,i,n,s,o,r){return{require:["?^uiScrollViewport"],restrict:"A",transclude:"element",priority:1e3,terminal:!0,link:function(t,a,f,m,b){var v=f.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);if(!v)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+f.uiScroll+"'");function y(t,e,i){return i||(t=null===t?e:Math.floor(t)),isNaN(t)?e:t}function x(e,i,n){return y(r(e)(t),i,n)}var w,T,L=null,H=v[1],k=v[2],E=m[0],P=Math.max(3,x(f.bufferSize,10)),z=Math.max(.3,x(f.padding,.5,!0)),A=(w=f.handleInertia,!0,"boolean"!=typeof(T=r(w)(t))||T),$=x(f.startIndex,1),B=0,I=[],C=new l(e,o),O=new g(C,P,$),R=new S(C,O,a,E,i,z),M=new V(t,r,f,R,O,Z,(function(){K(),R.resetTopPadding(),R.resetBottomPadding(),arguments.length&&($=y(arguments[0],1,!1)),O.reset($),j(L,"minIndex"),j(L,"maxIndex"),Z()}));E&&(E.adapter=M);var D=function(){return"[object Object]"===Object.prototype.toString.call(L)&&"function"==typeof L.get};if(L=r(k)(t),!D()&&(L=e.get(k),!D()))throw new Error(k+" is not a valid datasource");var F=[];function j(t,e){var i;angular.isNumber(t[e])&&(i=t[e],angular.isNumber(i)&&(F=F.filter((function(t){return t.id!==e}))).push({id:e,run:function(){return t[e]=i}}))}function U(t,e,i){var n,s=Object.getOwnPropertyDescriptor(t,e);s&&(s.set||s.get)||(j(t,e),Object.defineProperty(t,e,{set:function(s){if(n=s,!I.length||O.length){O[i]=s;var o=R.topDataPos();R.adjustPaddings(),"minIndex"===e&&R.onAfterMinIndexSet(o)}else j(t,e)},get:function(){return n}}))}U(L,"minIndex","minIndexUser"),U(L,"maxIndex","maxIndexUser");var N=2!==L.get.length?function(t){return L.get(O.next,P,t)}:function(t){L.get({index:O.next,append:O.length?O[O.length-1].item:void 0,count:P},t)},W=2!==L.get.length?function(t){return L.get(O.first-P,P,t)}:function(t){L.get({index:O.first-P,prepend:O.length?O[0].item:void 0,count:P},t)};function q(e){return e&&e!==B||t.$$destroyed}function K(){R.off("resize",it),R.off("scroll",it)}function G(t){return t.element.height()&&t.element[0].offsetParent}function _(t,e){X(t,e,R.insertElement),G(t)||(t.unregisterVisibilityWatcher=t.scope.$watch((function(){return function(t){G(t)&&(O.forEach((function(t){"function"==typeof t.unregisterVisibilityWatcher&&(t.unregisterVisibilityWatcher(),delete t.unregisterVisibilityWatcher)})),I.length||n((function(){return Z()})))}(t)}))),C.hideElement(t)}function X(t,e,i){var n=null,s=e>0?O[e-1].element:void 0;if(b((function(e,o){n=i(e,s),t.element=e,t.scope=o,o[H]=t.item})),M.transform){var o=t.scope.uiScrollTdInitializer;o&&o.linking?M.transform(t.scope,t.element):t.scope.uiScrollTdInitializer={onLink:function(){return M.transform(t.scope,t.element)},scope:t.scope}}return n}function Y(t,e){e.animated.length?o.all(e.animated).then((function(){R.adjustPaddings(),Z(t)})):R.adjustPaddings()}function Q(t,e){R.shouldLoadBottom()?(!e||O.effectiveHeight(e.inserted)>0)&&1===I.push(!0)&&(M.loading(!0),et(t)):R.shouldLoadTop()&&(!e||O.effectiveHeight(e.prepended)>0||I[0])&&1===I.push(!1)&&(M.loading(!0),et(t))}function J(){var e,n,s,o,r=(e=[],n=[],s=[],o=[],O.forEach((function(t,i){switch(t.op){case h:n.unshift(t);break;case u:_(t,i),t.op=d,o.push(t);break;case c:e=e.concat(X(t,i,R.insertElementAnimated)),t.op=d,o.push(t);break;case p:s.push(t)}})),s.forEach((function(t){return e=e.concat(R.removeItem(t))})),n.length&&n.forEach((function(t){_(t),t.op=d})),O.forEach((function(t,e){return t.scope.$index=O.first+e})),{prepended:n,removed:s,inserted:o,animated:e});return!t.$$phase&&!i.$$phase&&t.$digest(),r.inserted.forEach((function(t){return C.showElement(t)})),r.prepended.forEach((function(t){return C.showElement(t)})),r}function Z(t){t||(I=[],t=++B);var e=J();q(t)||(Y(t,e),Q(t),I.length||M.calculateProperties())}function tt(t){var e=J();R.onAfterPrepend(e),q(t)||(Y(t,e),F.forEach((function(t){return t.run()})),F=[],Q(t,e),I.shift(),I.length?et(t):(M.loading(!1),R.on("resize",it),R.on("scroll",it),M.calculateProperties()))}function et(t){I[0]?O.length&&!R.shouldLoadBottom()?tt(t):N((function(e){q(t)||(e.length<P&&(O.eof=!0),e.length>0&&(R.clipTop(),O.append(e)),tt(t))})):O.length&&!R.shouldLoadTop()?tt(t):W((function(e){q(t)||(e.length<P&&(O.bof=!0),e.length>0&&(O.length&&R.clipBottom(),O.prepend(e)),tt(t))}))}function it(){A&&function(){if(R.synthetic){var t=R.synthetic.previous,e=R.synthetic.next;if(R.scrollTop()!==e)return requestAnimationFrame((function(){var i=R.scrollTop(),n=t-i;n>0?R.scrollTop(e-n):R.scrollTop(e),R.synthetic=null})),!0;R.synthetic=null}}()||i.$$phase||M.isLoading||M.disabled||(Q(B),I.length?K():(M.calculateProperties(),!t.$$phase&&t.$digest()))}function nt(t){if(!M.disabled){var e=R[0].scrollTop,i=R[0].scrollHeight-R[0].clientHeight;(0===e&&!O.bof||e===i&&!O.eof)&&t.preventDefault()}}b((function(t,e){R.createPaddingElements(t[0]),e.$destroy(),t.remove()})),t.$on("$destroy",(function(){K(),R.off("mousewheel",nt)})),R.on("mousewheel",nt),function(){var t=0;if(R.applyContainerStyle())Z();else var e=s((function(){if(t++,R.applyContainerStyle()&&(s.cancel(e),Z()),50*t>=500)throw s.cancel(e),Error("ui-scroll directive requires a viewport with non-zero height in ".concat(500,"ms"))}),50)}()}}}])}()},611:function(t,e){!function(){"use strict";angular.module("ui.scroll.jqlite",[])}()},612:function(t,e,i){var n,s,o;/*! angularjs-slider - v7.1.0 - (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> - https://github.com/angular-slider/angularjs-slider - 2022-05-26 */!function(r,a){"use strict";s=[i(450)],void 0===(o="function"==typeof(n=function(t){var e=t.module("rzSlider",[]).factory("RzSliderOptions",(function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},i={},n={options:function(e){t.extend(i,e)},getOptions:function(n){return t.extend({},e,i,n)}};return n})).factory("rzThrottle",["$timeout",function(t){return function(e,i,n){var s,o,r,a=Date.now||function(){return(new Date).getTime()},l=null,h=0;n=n||{};var u=function(){h=a(),l=null,r=e.apply(s,o),s=o=null};return function(){var c=a(),p=i-(c-h);return s=this,o=arguments,0>=p?(t.cancel(l),l=null,h=c,r=e.apply(s,o),s=o=null):l||!1===n.trailing||(l=t(u,p)),r}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,i,n,s,o,r){var a=function(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return a.prototype={init:function(){var e,i,s=this,o=function(){s.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),t.element(n).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),e=r((function(){s.onLowHandleChange()}),s.options.interval),i=r((function(){s.onHighHandleChange()}),s.options.interval),this.scope.$on("rzSliderForceRender",(function(){s.resetLabelsValue(),e(),s.range&&i(),s.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(t,e){t!==e&&(s.applyOptions(),s.syncLowValue(),s.range&&s.syncHighValue(),s.resetSlider())})),this.scope.$watch("rzSliderModel",(function(t,i){s.internalChange||t!==i&&e()})),this.scope.$watch("rzSliderHigh",(function(t,e){s.internalChange||t!==e&&(null!=t&&i(),(s.range&&null==t||!s.range&&null!=t)&&(s.applyOptions(),s.resetSlider()))})),this.scope.$on("$destroy",(function(){s.unbindEvents(),t.element(n).off("resize",o),s.currentFocusElement=null}))},findStepIndex:function(e){for(var i=0,n=0;n<this.options.stepsArray.length;n++){var s=this.options.stepsArray[n];if(s===e){i=n;break}if(t.isDate(s)){if(s.getTime()===e.getTime()){i=n;break}}else if(t.isObject(s)&&(t.isDate(s.value)&&s.value.getTime()===e.getTime()||s.value===e)){i=n;break}}return i},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(e){var i=this.options.stepsArray[e];return t.isDate(i)?i:t.isObject(i)?i.value:i},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var e;e=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(e),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(t.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(e){var i=this.options.stepsArray[e];return t.isObject(i)?i.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(e){var i=t.element(e);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=i;for(var n=e.parentElement,s=1;s<this.options.restrictedRange.length;s++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',n.appendChild(o),this.restrictedBar[s]=t.element(o)}}else e.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){t.forEach(this.sliderElem.children(),(function(e,i){var n=t.element(e);switch(i){case 0:this.leftOutSelBar=n;break;case 1:this.rightOutSelBar=n;break;case 2:this.fullBar=n;break;case 3:this.selBar=n;break;case 4:this.ensureRestrictedBarIsArray(e);break;case 5:this.minH=n;break;case 6:this.maxH=n;break;case 7:this.flrLab=n;break;case 8:this.ceilLab=n;break;case 9:this.minLab=n;break;case 10:this.maxLab=n;break;case 11:this.cmbLab=n;break;case 12:this.ticks=n}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;for(var e in this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.restrictedBar)this.restrictedBar[e]&&this.alwaysHide(this.restrictedBar[e],!this.options.restrictedRange[e]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){t.rzAlwaysHide=e,e?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,i,n){n=void 0===n||n;var s="",o=!1,r=e.hasClass("no-label-injection");n?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),s=String(this.customTrFn(t,this.options.id,i))):s=String(t),(void 0===e.rzsv||e.rzsv.length!==s.length||e.rzsv.length>0&&0===e.rzsd)&&(o=!0,e.rzsv=s),r||e.html(s),this.scope[i+"Label"]=s,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t=this.getDimension(this.minH);if(this.handleHalfDim=t/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-t,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var i=this;e((function(){i.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var e=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&e.reverse(),this.scope.ticks=e.map((function(e){var s=null;t.isObject(e)&&(s=e.legend,e=e.value);var o=n.valueToPosition(e);n.options.vertical&&(o=n.maxPos-o);var r=i+"("+Math.round(o)+"px)",a={legend:s,selected:n.isTickSelected(e),style:{"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r}};return a.selected&&n.options.getSelectionBarColor&&(a.style["background-color"]=n.getSelectionBarColor()),!a.selected&&n.options.getTickColor&&(a.style["background-color"]=n.getTickColor(e)),n.options.ticksTooltip&&(a.tooltip=n.options.ticksTooltip(e),a.tooltipPlacement=n.options.vertical?"right":"top"),(!0===n.options.showTicksValues||e%n.options.showTicksValues==0)&&(a.value=n.getDisplayValue(e,"tick-value"),n.options.ticksValuesTooltip&&(a.valueTooltip=n.options.ticksValuesTooltip(e),a.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend&&((s=n.getLegend(e,n.options.id))&&(a.legend=s)),a}))}},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var i=this.minValue;i<=this.maxValue;i+=t)e.push(i);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&t>=e&&t<=this.lowValue)return!0;if(this.lowValue<e&&e>=t&&t>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var i=this[t].rzsd,n=e-i/2+this.handleHalfDim,s=this.barDimension-i;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(n,s):Math.min(Math.max(n,0),s):n},updateLowHandle:function(t){if(this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor){var e=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){if(this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor){var e=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLab(this.minLab),n=this.isLabelAboveCeilLab(this.minLab),s=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),r=this.isLabelAboveCeilLab(this.cmbLab);if(i?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),n?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range){var a=this.cmbLabelShown?r:s,l=this.cmbLabelShown?o:i;a?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.flrLab.rzsp,o=this.flrLab.rzsd;return e?i+n>=s-2:s+o+2>=i},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return e?s+o+2>=i:i+n>=s-2},updateRestrictionBar:function(){var t=0,e=0;if(this.options.restrictedRange)for(var i in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var n=this.valueToPosition(this.options.restrictedRange[i].from),s=this.valueToPosition(this.options.restrictedRange[i].to);e=Math.abs(s-n),t=this.options.rightToLeft?s+this.handleHalfDim:n+this.handleHalfDim,this.setDimension(this.restrictedBar[i],e),this.setPosition(this.restrictedBar[i],t)}},updateSelectionBar:function(){var t=0,e=0,i=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,n=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)e=Math.abs(this.maxH.rzsp-this.minH.rzsp),t=n;else if(null!==this.options.showSelectionBarFromValue){var s=this.options.showSelectionBarFromValue,o=this.valueToPosition(s);(this.options.rightToLeft?this.lowValue<=s:this.lowValue>s)?(e=this.minH.rzsp-o,t=o+this.handleHalfDim):(e=o-this.minH.rzsp,t=this.minH.rzsp+this.handleHalfDim)}else i?(e=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,t=this.minH.rzsp+this.handleHalfDim):(e=this.minH.rzsp+this.handleHalfDim,t=0);if(this.setDimension(this.selBar,e),this.setPosition(this.selBar,t),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,t),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.leftOutSelBar,t+e)):(this.setDimension(this.leftOutSelBar,t),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.rightOutSelBar,t+e))),this.options.getSelectionBarColor){var r=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:r}}else if(this.options.selectionBarGradient){var a=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=a-t>0^i,h=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+h+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(a+e+t+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=a-t+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var t,e=this.getDisplayValue(this.lowValue,"model"),i=this.getDisplayValue(this.highValue,"high");t=this.options.mergeRangeLabelsIfSame&&e===i?e:this.options.rightToLeft?i+this.options.labelOverlapSeparator+e:e+this.options.labelOverlapSeparator+i,this.translateFn(t,this.cmbLab,"cmb",!1);var n=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,n),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){var i=e||this.step,n=parseFloat((t-this.minValue)/i).toPrecision(12);return n=Math.round(+n)*i,+(this.minValue+n).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var i={};return i[this.positionProperty]=Math.round(e)+"px",t.css(i),e},resetPosition:function(t){t.css({left:null,bottom:null})},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var i={};return i[this.dimensionProperty]=Math.round(e)+"px",t.css(i),e},sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition;this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition);var i=e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(i=1-i),i*this.maxPos},linearValueToPosition:function(t,e,i){return(t-e)/(i-e)},logValueToPosition:function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},positionToValue:function(t){var e=t/this.maxPos;this.options.rightToLeft&&(e=1-e);var i=this.linearPositionToValue;return this.options.customPositionToValue?i=this.options.customPositionToValue:this.options.logScale&&(i=this.logPositionToValue),i(e,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,i){return t*(i-e)+e},logPositionToValue:function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},getEventAttr:function(t,e){return void 0===t.originalEvent?t[e]:t.originalEvent[e]},getEventXY:function(t,e){var i=this.options.vertical?"clientY":"clientX";if(void 0!==t[i])return t[i];var n=this.getEventAttr(t,"touches");if(void 0!==e)for(var s=0;s<n.length;s++)if(n[s].identifier===e)return n[s][i];return n[0][i]},getEventPosition:function(t,e){var i=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+i:this.getEventXY(t,e)-i)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){if(!this.range)return this.minH;var e=this.getEventPosition(t),i=Math.abs(e-this.minH.rzsp),n=Math.abs(e-this.maxH.rzsp);return n>i?this.minH:i>n?this.maxH:this.options.rightToLeft?e>this.minH.rzsp?this.minH:this.maxH:e<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var e,i,n;this.options.draggableRange?(e="rzSliderDrag",i=this.onDragStart,n=this.onDragMove):(e="lowValue",i=this.onStart,n=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",t.bind(this,i,null,e)),this.selBar.on("mousedown",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",t.bind(this,i,null,e)),this.maxH.on("mousedown",t.bind(this,i,null,e))):(this.minH.on("mousedown",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",t.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",t.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",t.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",t.bind(this,i,null,e)),this.selBar.on("touchstart",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",t.bind(this,i,null,e)),this.maxH.on("touchstart",t.bind(this,i,null,e))):(this.minH.on("touchstart",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",t.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",t.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",t.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",t.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",t.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(e,n,s){var o,r,a=this.getEventNames(s);s.stopPropagation(),s.preventDefault(),this.calcViewDimensions(),e?this.tracking=n:(e=this.getNearestHandle(s),this.tracking=e===this.minH?"lowValue":"highValue"),e.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(e),o=t.bind(this,this.dragging.active?this.onDragMove:this.onMove,e),r=t.bind(this,this.onEnd,o),i.on(a.moveEvent,o),i.on(a.endEvent,r),this.endHandlerToBeRemovedOnEnd=r,this.callOnStart();var l=this.getEventAttr(s,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(e,i,n){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var s,o=this.getEventAttr(i,"changedTouches");if(o)for(var r=0;r<o.length;r++)if(o[r].identifier===this.touchId){s=o[r];break}if(!o||s){var a,l=this.getEventPosition(i,s?s.identifier:void 0),h=this.options.rightToLeft?this.minValue:this.maxValue,u=this.options.rightToLeft?this.maxValue:this.minValue;0>=l?a=u:l>=this.maxPos?a=h:(a=this.positionToValue(l),a=n&&t.isNumber(this.options.showTicks)?this.roundStep(a,this.options.showTicks):this.roundStep(a)),this.positionTrackingHandle(a)}},onEnd:function(t,e){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var n=this.getEventAttr(e,"changedTouches");if(!n||n[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var s=this.getEventNames(e);i.off(s.moveEvent,t),i.off(s.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(e,i){this.tracking=i,e.one("blur",t.bind(this,this.onPointerBlur,e)),e.on("keydown",t.bind(this,this.onKeyboardEvent)),e.on("keyup",t.bind(this,this.onKeyUp)),this.firstKeyDown=!0,e.addClass("rz-active"),this.currentFocusElement={pointer:e,ref:i}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(t,e){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var i in this.options.restrictedRange){var n=this.options.restrictedRange[i];if(0===n.from&&0===e&&[37,40].includes(t)||n.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&e>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(t))return e;n.to>e&&e>n.from&&(e=Math.abs(n.to-e)>Math.abs(n.from-e)?n.to:n.from)}return e},getKeyActions:function(t){var e=t+this.step,i=t-this.step,n=t+this.valueRange/10,s=t-this.valueRange/10;this.options.reversedControls&&(e=t-this.step,i=t+this.step,n=t-this.valueRange/10,s=t+this.valueRange/10);var o={UP:e,DOWN:i,LEFT:i,RIGHT:e,PAGEUP:n,PAGEDOWN:s,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=e,o.RIGHT=i,this.options.vertical&&(o.UP=i,o.DOWN=e)),o},onKeyboardEvent:function(t){var i=t.keyCode||t.which,n=this[this.tracking],s=this.getKeyActions(n)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(null!=s&&""!==this.tracking){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;e((function(){var t=o.roundStep(o.sanitizeValue(s));if(t=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(i,t):t,o.options.draggableRangeOnly){var e,n,r=o.highValue-o.lowValue;"lowValue"===o.tracking?(e=t,(n=t+r)>o.maxValue&&(e=(n=o.maxValue)-r)):(n=t,(e=t-r)<o.minValue&&(n=(e=o.minValue)+r)),o.positionTrackingBar(e,n)}else o.positionTrackingHandle(t)}))}},onDragStart:function(t,e,i){var n=this.getEventPosition(i);this.dragging={active:!0,value:this.positionToValue(n),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-n:n-this.minH.rzsp,highLimit:this.options.rightToLeft?n-this.maxH.rzsp:this.maxH.rzsp-n},this.onStart(t,e,i)},getValue:function(t,e,i,n){var s,o=this.options.rightToLeft;return s="min"===t?i?n?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):i?n?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)},onDragMove:function(t,e){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,n,s,o,r,a,l,h,u=this.getEventPosition(e);if(this.options.rightToLeft?(s=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,h=this.minH):(s=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,h=this.maxH),r=o>=u,a=u>=this.maxPos-s,r){if(0===l.rzsp)return;i=this.getValue("min",u,!0,!1),n=this.getValue("max",u,!0,!1)}else if(a){if(h.rzsp===this.maxPos)return;n=this.getValue("max",u,!0,!0),i=this.getValue("min",u,!0,!0)}else i=this.getValue("min",u,!1),n=this.getValue("max",u,!1);this.positionTrackingBar(i,n)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),t=this.applyRestrictedRange(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,i=Math.abs(t-e);return null!=this.options.minRange&&i<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&i>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyRestrictedRange:function(t){for(var e in this.options.restrictedRange)if(null!=this.options.restrictedRange[e]&&t>this.options.restrictedRange[e].from&&t<this.options.restrictedRange[e].to){var i=(this.options.restrictedRange[e].to-this.options.restrictedRange[e].from)/2;if("lowValue"===this.tracking)return t>this.options.restrictedRange[e].from+i?this.options.restrictedRange[e].to:this.options.restrictedRange[e].from;if("highValue"===this.tracking)return t<this.options.restrictedRange[e].to-i?this.options.restrictedRange[e].from:this.options.restrictedRange[e].to}return t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,i=null!==this.options.minRange?this.options.minRange:this.options.step,n=this.options.maxRange;return i>e?("lowValue"===this.tracking?(this.highValue=Math.min(t+i,this.maxValue),t=this.highValue-i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-i,this.minValue),t=this.lowValue+i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==n&&e>n&&("lowValue"===this.tracking?(this.highValue=t+n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnChange:function(){if(this.options.onChange){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnEnd:function(){if(this.options.onEnd){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}this.scope.$emit("slideEnded")}},a}]).directive("rzslider",["RzSlider",function(t){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(e,i){e.slider=new t(e,i)}}}]);return e.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),e.name})?n.apply(e,s):n)||(t.exports=o)}()}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[39,215],{105:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},163:function(e,t,n){"use strict";n.r(t);var r=n(401);n(105);function a(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(n){n.$watch("dependenciesData",(function(){if(n.dependenciesData){const a=n.dependenciesData;!function(a,s){if(function(){let e=!0;for(const t of a){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),i=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){i.style("opacity",0)}));const c=Math.min(800,800)/2.8,d=c-24,p=d3.arc().innerRadius(d).outerRadius(c),l=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),u=d3.ribbon().radius(d),g=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");g.append("circle").attr("r",c).style("fill","none");const f=l(a),h=g.selectAll(".group").data(f.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=h.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));h.append("title").text((function(e,t){return s[t]})),h.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",p).style("fill",(function(e,t){return o(t)})),h.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(d+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return s[e.index]}));const m=g.selectAll(".chord").data(f).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",u);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,r){const a=s[r.source.index],o=s[r.target.index],c=e.pageX,d=e.pageY;t.getPredicates(a,o,n.selectedGraph&&n.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+a+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",i.html(t).style("left",c+"px").style("top",d+"px")})),i.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){g.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=r.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(a.matrix,a.nodes,a.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",a),a.$inject=["$repositories","GraphDataRestService"]},393:function(e,t,n){var r,a;r=[n(398)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(398)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},401:function(e,t,n){"use strict";n(393);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[4,48,73,74,75,76,77,78,79,80,81,208,212],{106:function(e,t,a){"use strict";a.r(t),a.d(t,"HeapMemoryChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.hasSelectedSeries()?s.formatBytesValue(e,this.dataHolder,this.selectedSeries):s.formatBytesValue(e,this.dataHolder)},min:0},tooltip:{valueFormatter:e=>s.formatBytesValue(e,null,this.selectedSeries)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.memory.committed"),t.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(e,t,a){const[r,s]=e,o=this.parseData(a);this.latestData={committed:o.committed,used:o.used,max:o.max},r.data.push({value:[t,o.committed]}),s.data.push({value:[t,o.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.heapMemoryUsage}updateRange(e,t,a){super.updateRange(e,t,a)}}},126:function(e,t,a){"use strict";a.r(t);a(7),a(24),a(28),a(65);var r=a(168),s=a(106),o=a(169),i=a(170),n=a(171),l=a(172),c=a(173),u=a(174),h=a(175),d=a(176);angular.module("graphdb.framework.jmx.resources.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.cluster.service"]).controller("ResourcesCtrl",["$scope","$timeout","MonitoringRestService","$translate","$repositories","$q","ClusterRestService","$filter",function(e,t,a,m,p,f,S,g){e.AVAILABLE_TABS=Object.freeze({RESOURCE_MONITOR:"resource",PERFORMANCE_MONITOR:"performance",CLUSTER_HEALTH:"cluster"});const y=window.location.hash.slice(1),v=Object.keys(e.AVAILABLE_TABS).find(t=>e.AVAILABLE_TABS[t]===y);e.activeTab=e.AVAILABLE_TABS[v]||e.AVAILABLE_TABS.RESOURCE_MONITOR,e.resourceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{cpuLoad:new i.CpuLoadChart(m),fileDescriptors:new r.FileDescriptorsChart(m,g),heapMemory:new s.HeapMemoryChart(m),offHeapMemory:new o.NonHeapMemoryChart(m),diskStorage:new n.DiskStorageChart(m)}},e.performanceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{connectionsChart:new u.ConnectionsChart(m),epoolChart:new d.EpoolChart(m),queriesChart:new l.QueriesChart(m)}},e.structuresMonitorData={error:{hasError:!1,message:"",retries:0},charts:{globalCacheChart:new c.GlobalCacheChart(m,g)}},e.clusterHealthData={error:{hasError:!1,message:"",retries:0},charts:{clusterHealthChart:new h.ClusterHealthChart(m)}},e.hasCluster=!1;e.loader=!0,e.switchTab=t=>{e.activeTab=t,window.location.hash=t},e.getActiveRepository=function(){return p.getActiveRepository()};const D=function(e){return a.monitorQueryTransactionStatistics(e).then((function(e){return e.data}))},b=function(e){return a.monitorQuery(e).then((function(e){return e.data}))},C=function(){return a.monitorCluster()},w=e=>{if(e.chartsHolder.error.hasError){if(3===e.chartsHolder.error.retries)return e.poll&&t.cancel(e.poll),Promise.resolve();e.chartsHolder.error.retries++}return e.fetchFn().then((function(t){x(t,e)})).then(()=>{O(e)}).catch(t=>{A(e,t)}).finally(()=>{e.poll&&t.cancel(e.poll),e.poll=t(()=>w(e),2e3)})},x=(e,t,a)=>{const r=e.data;r&&H(r,t,a)},H=(e,t,a)=>{const r=new Date;a?a(r,e):Object.values(t.chartsHolder.charts).forEach(t=>{t.addData(r,e)})},A=(e,t)=>{e.chartsHolder.error.hasError=!!t,e.chartsHolder.error.hasError&&(e.chartsHolder.error.message=getError(t))},O=e=>{e.chartsHolder.error.hasError=!1,e.chartsHolder.error.message=""};e.monitors=[],e.monitors.push({chartsHolder:e.resourceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){return a.monitorResources()},poll:null}),e.monitors.push({chartsHolder:e.structuresMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?a.monitorStructures(t):Promise.resolve({})},poll:null}),e.monitors.push({chartsHolder:e.performanceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?f.all([D(t),b(t)]).then(e=>{const[t,a]=e;return{data:{performanceData:t,activeQueryData:a}}}):Promise.resolve({})},poll:null}),S.getNodeStatus().then(()=>{e.hasCluster=!0;const t={chartsHolder:e.clusterHealthData,fetchFn:C,poll:null};e.monitors.push(t),w(t)}).catch(()=>{e.hasCluster=!1});let R=null;f.all(e.monitors.map(e=>w(e))).finally(()=>{e.loader&&(R&&t.cancel(R),R=t((function(){e.loader=!1}),500))}),e.$on("$destroy",(function(){R&&t.cancel(R);for(const a of e.monitors)a.poll&&t.cancel(a.poll)}))}])},168:function(e,t,a){"use strict";a.r(t),a.d(t,"FileDescriptorsChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},min:0},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.file_descriptors.open"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,color:r.ChartData.COLORS[1],data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.file_descriptors.open"),this.configureSubtitle()}addNewData(e,t,a){this.latestData={maxFileDescriptors:a.maxFileDescriptors,openFileDescriptors:a.openFileDescriptors},this.configureSubtitle(),a.openFileDescriptors&&e[0].data.push({value:[t,a.openFileDescriptors]})}configureSubtitle(){let e;e=this.latestData.openFileDescriptors?[{label:this.translateService.instant("resource.system.file_descriptors.max"),value:this.formatNumber(this.latestData.maxFileDescriptors)}]:[{label:this.translateService.instant("resource.system.file_descriptors.only_unix")}],this.setSubTitle(e)}updateRange(e){super.updateRange(e,2)}}},169:function(e,t,a){"use strict";a.r(t),a.d(t,"NonHeapMemoryChart",(function(){return s}));var r=a(106);class s extends r.HeapMemoryChart{constructor(e){super(e,!1,!1)}parseData(e){return e.nonHeapMemoryUsage}}},170:function(e,t,a){"use strict";a.r(t),a.d(t,"CpuLoadChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>e+"%"},min:0,max:function(e){return Math.round(e.max>50?100:2*e.max)}},tooltip:{valueFormatter:function(e){return e+"%"}}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.cpu_load.label"),type:"line",smoothMonotone:"x",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.cpu_load.label")}addNewData(e,t,a){e[0].data.push({value:[t,this.formatValue(a.cpuLoad)]})}formatValue(e){return+parseFloat(e).toFixed(4)}updateRange(e){}}},171:function(e,t,a){"use strict";a.r(t),a.d(t,"DiskStorageChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!0,!0)}chartSetup(e){const t={height:250,tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:null},valueFormatter:function(e){return(100*e).toFixed(2)+"%"}},xAxis:{type:"value",min:0,max:1,splitNumber:2,axisLabel:{formatter:function(e){return(100*e).toFixed(2)+"%"}}},yAxis:{type:"category",data:[this.translateService.instant("resource.storage.logs"),this.translateService.instant("resource.storage.work"),this.translateService.instant("resource.storage.data")]},legend:{itemStyle:{opacity:1}}};_.merge(e,t)}createDataHolder(){return[this.createDataHolderForItem("resource.storage.used",r.ChartData.COLORS[1]),this.createDataHolderForItem("resource.storage.free",r.ChartData.COLORS[0])]}createDataHolderForItem(e,t){return{name:this.translateService.instant(e),type:"bar",stack:!0,showSymbol:!1,smooth:!0,barCategoryGap:"10%",color:t,itemStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},label:{show:!0,color:"black",opacity:1,formatter:function({value:e}){return(100*e).toFixed(2)+"%"}},emphasis:{itemStyle:{color:t,opacity:1},label:{color:"white"}},data:[]}}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.storage.used"),t.name=this.translateService.instant("resource.storage.free"),this.chartSetup(this.chartOptions),this.configureSubtitle()}addNewData(e,t,a,r){const s=a.storageMemory,[o,i]=e;this.latestData={data:{used:s.dataDirUsed,free:s.dataDirFree},work:{used:s.workDirUsed,free:s.workDirFree},logs:{used:s.logsDirUsed,free:s.logsDirFree}},this.configureSubtitle();const n=s.dataDirUsed+s.dataDirFree,l=s.workDirUsed+s.workDirFree,c=s.logsDirUsed+s.logsDirFree,u=s.dataDirUsed/n,h=s.workDirUsed/l,d=s.logsDirUsed/c,m=s.dataDirFree/n,p=s.workDirFree/l,f=s.logsDirFree/c;o.data.push(d,h,u),i.data.push(f,p,m)}configureSubtitle(){const e=[{label:this.translateService.instant("resource.storage.subtitle.data"),value:[s.formatBytesValue(this.latestData.data.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.data.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.work"),value:[s.formatBytesValue(this.latestData.work.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.work.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.logs"),value:[s.formatBytesValue(this.latestData.logs.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.logs.free,null,this.selectedSeries)]}];this.setSubTitle(e)}}},172:function(e,t,a){"use strict";a.r(t),a.d(t,"QueriesChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.queries.running"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.queries.running"),this.configureSubtitle()}addNewData(e,t,a){const{activeQueryData:r,performanceData:s}=a;this.latestData={slowQueries:s.queries.slow,suboptimal:s.queries.suboptimal,activeQueryData:r,performanceData:s},e[0].data.push({value:[t,r.length]}),this.configureSubtitle()}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}configureSubtitle(){const e=[{label:this.translateService.instant("resource.queries.slow"),value:this.latestData.slowQueries},{label:this.translateService.instant("resource.queries.suboptimal"),value:this.latestData.suboptimal}];this.setSubTitle(e)}}},173:function(e,t,a){"use strict";a.r(t),a.d(t,"GlobalCacheChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},minInterval:1},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resources.global_cache.hits"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resources.global_cache.miss"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resources.global_cache.hits"),t.name=this.translateService.instant("resources.global_cache.miss")}addNewData(e,t,a){const[r,s]=e;r.data.push({value:[t,a.cacheHit]}),s.data.push({value:[t,a.cacheMiss]})}}},174:function(e,t,a){"use strict";a.r(t),a.d(t,"ConnectionsChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.connections.active"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.connections.open"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.connections.active"),t.name=this.translateService.instant("resource.connections.open")}addNewData(e,t,a){const[r,s]=e,{activeTransactions:o,openConnections:i}=a.performanceData;r.data.push({value:[t,o]}),s.data.push({value:[t,i]})}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}}},175:function(e,t,a){"use strict";a.r(t),a.d(t,"ClusterHealthChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!0,!1),this.nodesCount=0}createDataHolder(){const[e,t,a,r]=s.COLORS;return[{name:this.translateService.instant("resources.cluster_health.in_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:e,data:[]},{name:this.translateService.instant("resources.cluster_health.syncing"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:a,data:[]},{name:this.translateService.instant("resources.cluster_health.out_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:t,data:[]},{name:this.translateService.instant("resources.cluster_health.disconnected"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:r,data:[]}]}addNewData(e,t,a){const r=a.nodesStats;this.nodesCount=r.nodesInCluster;const[s,o,i,n]=e;this.latestData={nodesInSync:r.nodesInCluster,nodesOutOfSync:r.nodesOutOfSync,nodesDisconnected:r.nodesDisconnected,nodesSyncing:r.nodesSyncing,term:a.term,failureRecoveriesCount:a.failureRecoveriesCount,failedTransactionsCount:a.failedTransactionsCount},s.data.push({value:[t,r.nodesInSync]}),i.data.push({value:[t,r.nodesOutOfSync]}),n.data.push({value:[t,r.nodesDisconnected]}),o.data.push({value:[t,r.nodesSyncing]}),this.configureSubtitle()}translateLabels(){const[e,t,a,r]=this.dataHolder;e.name=this.translateService.instant("resources.cluster_health.in_sync"),t.name=this.translateService.instant("resources.cluster_health.syncing"),a.name=this.translateService.instant("resources.cluster_health.out_sync"),r.name=this.translateService.instant("resources.cluster_health.disconnected"),this.configureSubtitle()}updateRange(e,t){this.chartOptions.yAxis.max=this.nodesCount,this.chartOptions.yAxis.splitNumber=this.nodesCount}configureSubtitle(){const e=[{label:this.translateService.instant("resource.cluster_health.leader_elections"),value:this.latestData.term},{label:this.translateService.instant("resource.cluster_health.recoveries"),value:this.latestData.failureRecoveriesCount},{label:this.translateService.instant("resource.cluster_health.failed_transactions"),value:this.latestData.failedTransactionsCount}];this.setSubTitle(e)}}},176:function(e,t,a){"use strict";a.r(t),a.d(t,"EpoolChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={grid:{containLabel:!0,left:40},yAxis:[{name:this.translateService.instant("resource.epool.reads"),nameLocation:"middle",type:"value",nameGap:40},{name:this.translateService.instant("resource.epool.writes"),nameLocation:"middle",type:"value",nameGap:40}]};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.epool.reads"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:0,data:[]},{name:this.translateService.instant("resource.epool.writes"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:1,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.epool.reads"),t.name=this.translateService.instant("resource.epool.writes"),this.chartSetup(this.chartOptions)}addNewData(e,t,a,r){const s=a.performanceData,[o,i]=e;let n=0,l=0;const c=s.entityPool.epoolReads,u=s.entityPool.epoolWrites;r||(n=c-this.lastestData.reads,l=u-this.lastestData.writes),this.lastestData={reads:c,writes:u},o.data.push({value:[t,n]}),i.data.push({value:[t,l]})}updateRange(e){e.forEach((e,t)=>{const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis[t].max=a,this.chartOptions.yAxis[t].minInterval=s})}}},60:function(e,t,a){"use strict";a.r(t),a.d(t,"ChartData",(function(){return s}));var r=a(394);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}constructor(e,t,a,r){this.filter=r,this.disableRangeUpdate=t,this.disableOldDataRemoval=a,this.translateService=e,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(e){this.refreshHandlers.push(e)}unregisterRefreshHandler(e){const t=this.refreshHandlers.indexOf(e);t>-1&&this.refreshHandlers.splice(t,1)}initialChartSetup(e=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),e&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(e=!1){e||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(e=>e(this.chartOptions))}setSubTitle(e,t=0){this.chartOptions.title.show=!0;let a="";e.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const o=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==o&&(a+=`{b|${o}}`),s+1<e.length&&(a+=t>0&&(s+1)%t==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(e){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(e,t){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,e,t,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(e=>!0===e)}removeOldData(e,t){this.disableOldDataRemoval||e[0].data.length>t&&e.forEach(e=>e.data.shift())}addNewData(e,t,a,r){}setSelectedSeries(e){this.selectedSeries=e}updateRange(e,t){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(e){return r.b.format(e.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(e,t){const a=e.filter(e=>!t||angular.isUndefined(t[e.name])||!0===t[e.name]).map(e=>s.getMaxValueForDataSeries(e));return Math.max(1,...a)}static getMaxValueForDataSeries(e){return Math.max(...e.data.map(e=>e.value[1]))}static calculateMaxChartValueAndDivisions(e,t,a){let r;r=Array.isArray(e)?s.getMaxValueFromDataHolder(e,a):s.getMaxValueForDataSeries(e);const o=Math.ceil(r*(t||s.DEFAULT_MULTIPLIER))||1;return[o,Math.ceil(o/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(e,t,a){const[r,o]=s.calculateMaxChartValueAndDivisions(e,t,a);return[r,o]}static formatBytesValue(e,t,a){let r=e;t&&(r=s.getMaxValueFromDataHolder(t,a));const o=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(e)/Math.pow(1024,o)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}formatNumber(e){if(!angular.isUndefined(e)&&this.filter)return this.filter("currency")(e,"",0)}}},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",a),a.$inject=["$http"];function a(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const a=$.param({force:t});return e.delete("rest/cluster/config?"+a)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[41,47,183,184],{108:function(t,i,s){"use strict";s.r(i),s.d(i,"mapIndexesResponseToSimilarityIndex",(function(){return a}));var e=s(74);const a=t=>t.map(t=>{const i=new e.SimilarityIndex;return i.type=t.type,i.stopList=t.stopList,i.status=t.status,i.selectQuery=t.selectQuery,i.searchQuery=t.searchQuery,i.sameAs=t.sameAs,i.options=t.options,i.name=t.name,i.infer=t.infer,i.analyzer=t.analyzer,i.analogicalQuery=t.analogicalQuery,i})},67:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndexType",(function(){return e}));const e={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:t=>e.TEXT===t,isTextLiteralType:t=>e.TEXT_LITERAL===t,isPredicationType:t=>e.PREDICATION===t}},68:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndexStatus",(function(){return e}));const e={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:t=>e.CREATING===t,isBuildingStatus:t=>e.BUILDING===t,isBuiltStatus:t=>e.BUILT===t,isRebuildingStatus:t=>e.REBUILDING===t,isOutdatedStatus:t=>e.OUTDATED===t,isInterruptedStatus:t=>e.INTERRUPTED===t,isObsoleteStatus:t=>e.OBSOLETE===t,isFailedStatus:t=>e.FAILED===t}},74:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndex",(function(){return u}));var e=s(67),a=s(68);class u{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=e.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return e.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return e.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return e.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return a.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return a.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return a.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return a.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return a.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return a.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return a.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return a.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[46,177,178],{104:function(t,i,e){"use strict";e.r(i),e.d(i,"ContextType",(function(){return s})),e.d(i,"ContextTypes",(function(){return n}));class s{constructor(t,i){this.id=t,this.labelKey=i}static getAllType(){return[n.ALL,n.EXPLICIT,n.IMPLICIT]}static getContextType(t){return this.getAllType().find(i=>i.id===t)}}const n={ALL:new s("all","explore.explicit.implicit"),EXPLICIT:new s("explicit","explore.explicit"),IMPLICIT:new s("implicit","explore.implicit")}},111:function(t,i,e){"use strict";e.r(i),e.d(i,"ResourceDetails",(function(){return s}));class s{constructor(){this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}}},145:function(t,i,e){"use strict";e.r(i),e.d(i,"ResourceInfo",(function(){return o}));var s=e(111),n=e(104);class o{constructor(){this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=n.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new s.ResourceDetails,this.blanks=!0}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[48,81,208],{106:function(t,e,a){"use strict";a.r(e),a.d(e,"HeapMemoryChart",(function(){return s}));var r=a(60);class s extends r.ChartData{constructor(t){super(t,!1,!1)}chartSetup(t){const e={yAxis:{axisLabel:{formatter:t=>this.hasSelectedSeries()?s.formatBytesValue(t,this.dataHolder,this.selectedSeries):s.formatBytesValue(t,this.dataHolder)},min:0},tooltip:{valueFormatter:t=>s.formatBytesValue(t,null,this.selectedSeries)}};_.merge(t,e)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[t,e]=this.dataHolder;t.name=this.translateService.instant("resource.memory.committed"),e.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(t,e,a){const[r,s]=t,i=this.parseData(a);this.latestData={committed:i.committed,used:i.used,max:i.max},r.data.push({value:[e,i.committed]}),s.data.push({value:[e,i.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const t=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(t)}}parseData(t){return t.heapMemoryUsage}updateRange(t,e,a){super.updateRange(t,e,a)}}},169:function(t,e,a){"use strict";a.r(e),a.d(e,"NonHeapMemoryChart",(function(){return s}));var r=a(106);class s extends r.HeapMemoryChart{constructor(t){super(t,!1,!1)}parseData(t){return t.nonHeapMemoryUsage}}},60:function(t,e,a){"use strict";a.r(e),a.d(e,"ChartData",(function(){return s}));var r=a(394);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}constructor(t,e,a,r){this.filter=r,this.disableRangeUpdate=e,this.disableOldDataRemoval=a,this.translateService=t,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(t){this.refreshHandlers.push(t)}unregisterRefreshHandler(t){const e=this.refreshHandlers.indexOf(t);e>-1&&this.refreshHandlers.splice(e,1)}initialChartSetup(t=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),t&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(t=!1){t||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(t=>t(this.chartOptions))}setSubTitle(t,e=0){this.chartOptions.title.show=!0;let a="";t.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const i=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==i&&(a+=`{b|${i}}`),s+1<t.length&&(a+=e>0&&(s+1)%e==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(t){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(t,e){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,t,e,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(t=>!0===t)}removeOldData(t,e){this.disableOldDataRemoval||t[0].data.length>e&&t.forEach(t=>t.data.shift())}addNewData(t,e,a,r){}setSelectedSeries(t){this.selectedSeries=t}updateRange(t,e){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(t,e,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(t){return r.b.format(t.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(t,e){const a=t.filter(t=>!e||angular.isUndefined(e[t.name])||!0===e[t.name]).map(t=>s.getMaxValueForDataSeries(t));return Math.max(1,...a)}static getMaxValueForDataSeries(t){return Math.max(...t.data.map(t=>t.value[1]))}static calculateMaxChartValueAndDivisions(t,e,a){let r;r=Array.isArray(t)?s.getMaxValueFromDataHolder(t,a):s.getMaxValueForDataSeries(t);const i=Math.ceil(r*(e||s.DEFAULT_MULTIPLIER))||1;return[i,Math.ceil(i/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(t,e,a){const[r,i]=s.calculateMaxChartValueAndDivisions(t,e,a);return[r,i]}static formatBytesValue(t,e,a){let r=t;e&&(r=s.getMaxValueFromDataHolder(e,a));const i=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(t)/Math.pow(1024,i)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}`}formatNumber(t){if(!angular.isUndefined(t)&&this.filter)return this.filter("currency")(t,"",0)}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[5,43,56,57,58,92,93,94,97,212],{110:function(e,t,o){"use strict";o.r(t),o.d(t,"NodeState",(function(){return r})),o.d(t,"RecoveryState",(function(){return s})),o.d(t,"LinkState",(function(){return a}));o(65),o(76),o(134),o(135),o(136),o(137),o(138),o(139),o(140);var n=o(63);angular.module("graphdb.framework.clustermanagement.controllers.cluster-management",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.repositories.service","graphdb.framework.rest.cluster.service","graphdb.framework.clustermanagement.services.remote-locations","graphdb.framework.clustermanagement.controllers.remove-nodes","graphdb.framework.clustermanagement.controllers.create-cluster","graphdb.framework.clustermanagement.controllers.edit-cluster","graphdb.framework.clustermanagement.controllers.delete-cluster","graphdb.framework.clustermanagement.controllers.add-location","graphdb.framework.clustermanagement.controllers.add-nodes","graphdb.framework.clustermanagement.controllers.replace-nodes","toastr","pageslide-directive"]).controller("ClusterManagementCtrl",l);const r={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC:"OUT_OF_SYNC",NO_CONNECTION:"NO_CONNECTION",READ_ONLY:"READ_ONLY",RESTRICTED:"RESTRICTED",NO_CLUSTER:"NO_CLUSTER"},s={SEARCHING_FOR_NODE:"SEARCHING_FOR_NODE",WAITING_FOR_SNAPSHOT:"WAITING_FOR_SNAPSHOT",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT",APPLYING_SNAPSHOT:"APPLYING_SNAPSHOT",BUILDING_SNAPSHOT:"BUILDING_SNAPSHOT",SENDING_SNAPSHOT:"SENDING_SNAPSHOT"},a={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION"};function l(e,t,o,s,l,c,i,d,u,g,m,f,p,h,C,N,_){e.loader=!0,e.isLeader=!1,e.currentNode=null,e.clusterModel={},e.NodeState=r,e.leaderChanged=!1,e.currentLeader=null,e.isAdmin=function(){return d.isAuthenticated()&&d.isAdmin()},e.childContext={},e.shouldShowClusterSettingsPanel=!1;let L;function S(t){L||(L=e.getClusterStatus().then(()=>{if(t||!e.clusterConfiguration)return e.getClusterConfiguration()}).then(()=>{if(!e.currentNode||e.leaderChanged)return e.getCurrentNodeStatus()}).finally(()=>{L=null,e.childContext.redraw()}))}function $(){return N.getLocationsWithRpcAddresses().then(t=>{const o=t.find(e=>e.isLocal);o&&(o.endpoint=e.currentNode.endpoint,o.rpcAddress=e.currentNode.address),e.clusterModel.locations=t})}e.onopen=e.onclose=()=>angular.noop(),e.toggleSidePanel=()=>{e.shouldShowClusterSettingsPanel=!e.shouldShowClusterSettingsPanel},e.toggleLegend=()=>{e.childContext.toggleLegend&&e.childContext.toggleLegend()},e.setLoader=function(t,o){f.cancel(e.loaderTimeout),t?(e.loaderMessage=o,e.loaderTimeout=f((function(){e.loader=t}),50)):e.loader=!1},e.childContext.selectNode=function(t){e.selectedNode!==t?e.selectedNode=t:e.selectedNode=null,e.$apply()},e.getLoaderMessage=function(){return e.loaderMessage||C.instant("common.loading")},e.getClusterConfiguration=()=>p.getClusterConfig().then(t=>{if(e.clusterConfiguration=t.data,!e.currentNode)return e.getCurrentNodeStatus()}).catch(()=>{e.clusterConfiguration=null}),e.getClusterStatus=function(){return p.getClusterStatus().then((function(t){const o=t.data.slice(),n=o.find(e=>e.nodeState===r.LEADER);var s,l;s=e.currentLeader,(l=n)&&s&&s.address===l.address||(e.currentLeader=n,e.leaderChanged=!0),e.currentNode=o.find(t=>t.address===e.currentNode.address);const c=[];n&&Object.keys(n.syncStatus).forEach(e=>{const t=n.syncStatus[e];t!==a.NO_CONNECTION&&c.push({id:`${n.address}-${e}`,source:n.address,target:e,status:t})}),e.clusterModel.hasCluster=!0,e.clusterModel.nodes=o,e.clusterModel.links=c})).catch((function(t){404===t.status&&(e.clusterModel.hasCluster=!1,e.clusterModel.nodes=[],e.clusterModel.links=[],e.clusterConfiguration=null)}))},e.showCreateClusterDialog=function(){c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-create-dialog.html",controller:"CreateClusterCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel}}}}).result.finally((function(){$(),S(!0)}))},e.showDeleteDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then((function(t){const o=C.instant("cluster_management.delete_cluster_dialog.loader_message");e.setLoader(!0,o),p.deleteCluster(t).then(t=>{if(Object.values(t.data).every(e=>"Cluster was deleted on this node."===e)){const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete");s.success(e)}else{const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete_partial"),o=Object.keys(t.data).reduce((e,o)=>e+`<div>${o} - ${t.data[o]}</div>`,"");s.warning(o,e,{allowHtml:!0})}e.getClusterConfiguration()}).catch(e=>{const t=C.instant("cluster_management.delete_cluster_dialog.notifications.fail_delete");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0),_.$broadcast("reloadLocations")})}))},e.showEditConfigurationDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:function(){return{clusterConfiguration:e.clusterConfiguration}}}}).result.finally((function(){S(!0)}))},e.getCurrentNodeStatus=()=>p.getNodeStatus().then(t=>{e.leaderChanged=!1,e.currentNode=t.data}).catch(t=>{e.currentNode=t.data,e.clusterModel.hasCluster=!1}).then(()=>$());const v=function(e){return m.openSimpleModal({title:C.instant("location.confirm.detach"),message:C.instant("location.confirm.detach.warning",{uri:e.endpoint}),warning:!0}).result.then(()=>l.deleteLocation(e.endpoint))};function w(t){s.success(t),e.getClusterConfiguration()}function T(e,t,o){let r=e.message||e;400===t&&Array.isArray(e)?r=e.reduce((e,t)=>e+`<div>${t}</div>`,""):412!==t||Object(n.isString)(e)||(r=Object.keys(e).reduce((t,o)=>t+`<div>${o} - ${e[o]}</div>`,"")),s.error(r,o,{allowHtml:!0})}e.showAddNodeToClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/add-nodes-dialog.html",controller:"AddNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.add_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.rpcAddress);p.addNodesToCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.add_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.add_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})})).finally(()=>$())},e.showReplaceNodesDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html",controller:"ReplaceNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then(t=>{const o=C.instant("cluster_management.cluster_page.replace_nodes_loader");e.setLoader(!0,o);const n={addNodes:t.newNodes.map(e=>e.rpcAddress),removeNodes:t.oldNodes.map(e=>e.rpcAddress)};p.replaceNodesInCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.replace_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.replace_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}).finally(()=>$())},e.showRemoveNodesFromClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html",controller:"RemoveNodesDialogCtrl",size:"lg",resolve:{data:function(){return{clusterModel:e.clusterModel}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.remove_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.address);p.removeNodesFromCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.remove_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.remove_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}))},(e.loader=!0,e.getCurrentNodeStatus().then(()=>e.getClusterConfiguration()).then(()=>e.getClusterStatus()).finally(()=>{e.setLoader(!1)})).finally(()=>{const t=g((function(){S()}),1e3);e.$on("$destroy",(function(){g.cancel(t)}))});const R=angular.element(u),A=function(){e.childContext.resize()};R.bind("resize",A);const O=function(t){const o=t.target,n=document.getElementById("nodeTooltip");e.selectedNode&&n!==o&&!n.contains(o)&&e.childContext.selectNode(null)};R.bind("mousedown",O),e.$on("$destroy",(function(){R.unbind("resize",A),R.unbind("mousedown",O)}))}l.$inject=["$scope","$http","$q","toastr","$repositories","$uibModal","$sce","$jwtAuth","$window","$interval","ModalService","$timeout","ClusterRestService","$location","$translate","RemoteLocationsService","$rootScope"]},134:function(e,t){function o(e,t,o){const n=_.cloneDeep(o.clusterModel);e.clusterNodes=n.nodes,e.clusterNodes.forEach(e=>e.shouldRemove=!1),e.nodesToRemoveCount=0,e.leftNodesLessThanTwo=!1,e.toggleNode=function(t,o){o.shouldRemove=!o.shouldRemove,o.shouldRemove?e.nodesToRemoveCount++:e.nodesToRemoveCount--,e.leftNodesLessThanTwo=e.clusterNodes.length-e.nodesToRemoveCount<2},e.ok=function(){const o=e.clusterNodes.filter(e=>e.shouldRemove);t.close(o)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.remove-nodes",[]).controller("RemoveNodesDialogCtrl",o),o.$inject=["$scope","$uibModalInstance","data"]},135:function(e,t,o){"use strict";o.r(t);o(65);angular.module("graphdb.framework.clustermanagement.controllers.create-cluster",[]).controller("CreateClusterCtrl",r);const n=function(){const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"};function r(e,t,o,r,s,a,l,c,i,d){e.pageTitle=a.instant("cluster_management.cluster_page.create_page_title"),e.autofocusId="autofocus",e.errors=[],e.clusterConfiguration={electionMinTimeout:8e3,electionRangeTimeout:6e3,heartbeatInterval:2e3,messageSizeKB:64,verificationTimeout:1500,transactionLogMaximumSizeGB:50,nodes:[]},e.locations=l.clusterModel.locations.filter(e=>!e.isLocal),e.selectedLocations=l.clusterModel.locations.filter(e=>e.isLocal),e.loader=!1,e.deleteLocation=function(t,o){t.preventDefault(),t.stopPropagation(),l.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.getAdvancedOptionsClass=n,e.createCluster=function(){return e.setLoader(!0,a.instant("cluster_management.cluster_page.creating_cluster_loader")),e.clusterConfiguration.nodes=e.selectedLocations.map(e=>e.rpcAddress),r.createCluster(e.clusterConfiguration).then(()=>{s.success(a.instant("cluster_management.cluster_page.notifications.create_success")),t.close()}).catch((function(t){!function(t,o){let n;delete e.preconditionErrors,e.errors.splice(0),412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o?e.errors.push(...t):409===o?e.errors.push(t):(t.message||"string"==typeof t)&&(n=t.message||t);s.error(n,a.instant("cluster_management.cluster_page.notifications.create_failed"))}(t.data,t.status)})).finally(()=>{e.setLoader(!1),d.$broadcast("reloadLocations")})},e.isClusterConfigurationValid=()=>{const t=!e.clusterConfigurationForm.$invalid,o=e.selectedLocations&&e.selectedLocations.length>=2;return t&&o},e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.addNodeToList=function(t){t.rpcAddress&&(e.selectedLocations.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){o.isLocal||(e.selectedLocations.splice(t,1),e.locations.push(o))},e.addLocation=function(){i.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){e.isClusterConfigurationValid()?e.createCluster():s.warning(a.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}r.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data","$uibModal","RemoteLocationsService","$rootScope"]},136:function(e,t,o){"use strict";o.r(t);o(65);function n(e,t,o,n,r,s,a){e.pageTitle=s.instant("cluster_management.cluster_page.edit_page_title"),e.errors=[],e.clusterConfiguration=_.cloneDeep(a.clusterConfiguration),e.loader=!1,e.updateCluster=function(){return e.setLoader(!0,s.instant("cluster_management.cluster_page.updating_cluster_loader")),n.updateCluster(e.clusterConfiguration).then(()=>{r.success(s.instant("cluster_management.cluster_page.notifications.update_success")),t.close()}).catch((function(t){!function(t,o){delete e.preconditionErrors,r.error(s.instant("cluster_management.cluster_page.notifications.update_failed")),e.errors.splice(0),409===o||"string"==typeof t?e.errors.push(t):412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o&&e.errors.push(...t)}(t.data,t.status)})).finally(()=>e.setLoader(!1))},e.isClusterConfigurationValid=()=>!e.clusterConfigurationForm.$invalid,e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.ok=function(){e.isClusterConfigurationValid()?e.updateCluster():r.warning(s.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.edit-cluster",[]).controller("EditClusterCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data"]},137:function(e,t){function o(e,t){e.forceDelete=!1,e.ok=function(){t.close(e.forceDelete)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.delete-cluster",[]).controller("DeleteClusterCtrl",o),o.$inject=["$scope","$uibModalInstance"]},138:function(e,t){angular.module("graphdb.framework.clustermanagement.controllers.add-location",[]).controller("AddLocationFromClusterCtrl",o),o.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"];function o(e,t,o,n,r){e.newLocation={uri:"",authType:"signature",username:"",password:"",active:!1},e.docBase=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion}(n),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(r.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}},139:function(e,t,o){"use strict";o.r(t);o(76);function n(e,t,o,n,r){const s=_.cloneDeep(o.clusterConfiguration),a=_.cloneDeep(o.clusterModel);e.nodes=[],e.clusterNodes=a.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint})),e.locations=a.locations.filter(e=>!s.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),o.deleteLocation(n).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==n.endpoint))},e.addNodeToList=function(t){t.rpcAddress&&(e.nodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){e.nodes.splice(t,1),e.locations.push(o)},e.addLocation=function(){r.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){t.close(e.nodes)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-nodes",[]).controller("AddNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","data","$uibModal","RemoteLocationsService"]},140:function(e,t,o){"use strict";o.r(t);o(65),o(76);function n(e,t,o,n,r,s,a,l,c){const i=_.cloneDeep(s.clusterConfiguration),d=_.cloneDeep(s.clusterModel);e.replacementNodes=[],e.nodesToReplace=[],e.nodesToReplaceCount=0,e.leftNodesMajority=!1,e.clusterNodes=d.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint,shouldReplace:!1})),e.locations=d.locations.filter(e=>!i.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.addLocation=()=>{c.addLocation().then(t=>{t&&e.locations.push(t)})},e.toggleNode=(t,o)=>{if(o.shouldReplace=!o.shouldReplace,o.shouldReplace)e.nodesToReplaceCount++,e.nodesToReplace.push(o);else{e.nodesToReplaceCount--;const t=e.nodesToReplace.findIndex(e=>e.rpcAddress===o.rpcAddress);e.nodesToReplace.splice(t,1)}e.leftNodesMajority=u()+e.nodesToReplaceCount>e.clusterNodes.length},e.permitNodesReplace=()=>!e.leftNodesMajority&&(e.nodesToReplace.length>0||e.replacementNodes.length>0),e.addNodeToList=t=>{t.rpcAddress&&(e.replacementNodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.deleteLocation=(t,o)=>{t.preventDefault(),t.stopPropagation(),s.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.removeNodeFromList=(t,o)=>{e.replacementNodes.splice(t,1),e.locations.push(o)},e.ok=()=>{t.close({newNodes:e.replacementNodes,oldNodes:e.nodesToReplace})},e.cancel=()=>{t.dismiss("cancel")};const u=()=>Math.floor(e.clusterNodes.length/2)+1}angular.module("graphdb.framework.clustermanagement.controllers.replace-nodes",[]).controller("ReplaceNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","toastr","$translate","data","$uibModal","$rootScope","RemoteLocationsService"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",o),o.$inject=["$http"];function o(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const o=$.param({force:t});return e.delete("rest/cluster/config?"+o)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}},76:function(e,t,o){"use strict";o.r(t);o(33);function n(e,t,o,n,r){return{addLocation:function(){let e;return o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(o=>(e=o,e.isLocal=!1,e.endpoint=e.uri,function(e){let o;return n.addLocation(e).catch(e=>{const o=getError(e.data,e.status);return t.error(o,r.instant("common.error")),!1}).then(e=>!!e&&s()).then(t=>{if(!1!==t)return o=t.find(t=>t.endpoint===e.uri),o})}(e)))},getLocationsWithRpcAddresses:s};function s(){return n.getLocations().then((function(e){return e.data.map(e=>({isLocal:e.local,endpoint:e.uri,rpcAddress:e.rpcAddress||"",error:e.errorMsg}))})).catch((function(e){const o=getError(e.data,e.status);t.error(o,r.instant("common.error"))})).then(e=>{if(e)return function(e){const t=e.filter(e=>!e.isLocal&&!e.error).map(e=>function(e){return n.getLocationRpcAddress(e.endpoint)}(e).then(t=>(e.rpcAddress=t.data,e.isAvailable=!0,e)).catch(t=>{e.isAvailable=!1,e.error=getError(t.data,t.status)}));return Promise.allSettled(t).then(()=>e)}(e)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[51,85],{103:function(e,t,s){"use strict";s.r(t),s.d(t,"ACListModel",(function(){return i})),s.d(t,"ACRuleModel",(function(){return l})),s.d(t,"StatementACRuleModel",(function(){return r})),s.d(t,"PluginACRuleModel",(function(){return n})),s.d(t,"ClearGraphACRuleModel",(function(){return c})),s.d(t,"SystemACRuleModel",(function(){return u})),s.d(t,"ACL_POLICY",(function(){return p})),s.d(t,"ACL_OPERATION",(function(){return h})),s.d(t,"ACL_SCOPE",(function(){return _})),s.d(t,"DEFAULT_CONTEXT_VALUES",(function(){return d})),s.d(t,"DEFAULT_CLEAR_GRAPH_CONTEXT_VALUES",(function(){return R})),s.d(t,"DEFAULT_URI_VALUES",(function(){return g}));var o=s(63);class i{constructor(e=[]){this._aclRules=new Map,e.forEach(e=>{const t=e.scope;this._aclRules.has(t)||this._aclRules.set(t,[]),this._aclRules.get(t).push(e)})}size(e){return this._aclRules.get(e)&&this._aclRules.get(e).length}appendNewRule(e,t,s,o,i,l,r,n,c){const u=a.createRule(e,t,s,o,i,l,r,n,c);this._aclRules.has(e)||this._aclRules.set(e,[]),this._aclRules.get(e).push(u)}addRule(e,t){const s=this._aclRules.get(e);s?s.splice(t,0,a.createRule(e)):this._aclRules.set(e,[a.createRule(e)])}removeRule(e,t){const s=this._aclRules.get(e);s&&s.splice(t,1)}replaceRule(e,t,s){const o=this._aclRules.get(e);o&&o.splice(t,1,s)}getRule(e,t){const s=this._aclRules.get(e);return s?s[t]:null}isRuleDuplicated(e,t){const s=this.getRule(e,t);return!!s&&this._aclRules.get(e).some((e,i)=>i!==t&&Object(o.isEqual)(s,e))}getRuleCopy(e,t){const s=this.getRule(e,t);return a.createRule(s.scope,s.policy,s.role,s.operation,s.subject,s.predicate,s.object,s.context,s.plugin)}moveUp(e,t){const s=this._aclRules.get(e),o=s[t-1];s[t-1]=s[t],s[t]=o}moveDown(e,t){const s=this._aclRules.get(e),o=s[t+1];s[t+1]=s[t],s[t]=o}toJSON(){const e=[];return this._aclRules.forEach(t=>{t.forEach(t=>e.push(t.toJSON()))}),e}get aclRules(){return this._aclRules}set aclRules(e){this._aclRules=e}getRulesByScope(e){return this._aclRules.get(e)||[]}getRuleKeysByScope(e){return Object.keys(this.getRulesByScope(e)[0]||{})}}class l{constructor(e,t,s=p.ALLOW){this._scope=e,this._role=t,this._policy=s}get scope(){return this._scope}set scope(e){this._scope=e}get roleWithoutCustomPrefix(){return this._role.startsWith("!")?this._role.replace("CUSTOM_"," "):this._role.replace("CUSTOM_","")}get role(){return this._role}set role(e){this._role=e}get policy(){return this._policy}set policy(e){this._policy=e}toJSON(){}}class r extends l{constructor(e,t,s,o,i,l,r){super(_.STATEMENT,e,t),this._subject=s||"*",this._predicate=o||"*",this._object=i||"*",this._context=l||"*",this._operation=r||h.ALL}get subject(){return this._subject}set subject(e){this._subject=e}get predicate(){return this._predicate}set predicate(e){this._predicate=e}get object(){return this._object}set object(e){this._object=e}get context(){return this._context}set context(e){this._context=e}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,subject:this.subject,predicate:this.predicate,object:this.object,context:this.context}}}class n extends l{constructor(e,t,s,o){super(_.PLUGIN,e,t),this._plugin=s||"*",this._operation=o||h.ALL}get plugin(){return this._plugin}set plugin(e){this._plugin=e}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,plugin:this.plugin}}}class c extends l{constructor(e,t,s,o){super(_.CLEAR_GRAPH,e,t),this._context=s||"*",this._defaultResults=o||["*","default","custom"]}get context(){return this._context}set context(e){this._context=e}get defaultResults(){return this._defaultResults}set defaultResults(e){this._defaultResults=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,context:this.context}}}class u extends l{constructor(e,t,s){super(_.SYSTEM,e,t),this._operation=s||h.ALL}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation}}}class a{static createRule(e,t,s,o,i,l,a,p,h){switch(e){case _.STATEMENT:return new r(s,t,i,l,a,p,o);case _.PLUGIN:return new n(s,t,h,o);case _.CLEAR_GRAPH:return new c(s,t,p);case _.SYSTEM:return new u(s,t,o);default:throw new Error("Invalid scope: "+e+" provided")}}}const p={ALLOW:"allow",DENY:"deny"},h={READ:"read",WRITE:"write",ALL:"*"},_={STATEMENT:"statement",CLEAR_GRAPH:"clear_graph",PLUGIN:"plugin",SYSTEM:"system"},d=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"},{type:"default",value:"default",description:"acl_management.defaults.default"},{type:"default",value:"named",description:"acl_management.defaults.named"}],R=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"},{type:"default",value:"all",description:"acl_management.defaults.all"},{type:"default",value:"default",description:"acl_management.defaults.default"},{type:"default",value:"named",description:"acl_management.defaults.named"}],g=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"}]},129:function(e,t,s){"use strict";s.r(t),s.d(t,"mapAclRulesResponse",(function(){return i}));var o=s(103);const i=e=>{const t=new o.ACListModel;return e&&e.data&&e.data.forEach(e=>{t.appendNewRule(e.scope,e.policy,e.role,e.operation,e.subject,e.predicate,e.object,e.context,e.plugin)}),t}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{215:function(t,e,n){"use strict";n.r(e);n(7),n(25),n(110),n(200),n(24),n(393),n(449);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives"])},393:function(t,e,n){var r,o;r=[n(398)],void 0===(o=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),n=select(this);for(var r in t)n.attr(r,t[r])}))}function e(t,e){for(var n in e)t.attr(n,e[n]);return t}return"undefined"==typeof d3&&(d3=n(398)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?t:e)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,r))||(t.exports=o)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[6,207],{109:function(e,t,o){"use strict";o.r(t),o.d(t,"getFileName",(function(){return r}));var i=o(94),n=o(0);const r=function(e){let t=e.lastIndexOf("/");-1===t&&(t=e.lastIndexOf("\\"));let o=e;return-1!==t&&(o=o.substring(t+1)),o},a=function(e){e&&(e.queryTimeout&&(e.queryTimeout.value=parseInt(e.queryTimeout.value)),e.queryLimitResults&&e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint?(e.queryLimitResults.value=parseInt(e.queryLimitResults.value),e.validationResultsLimitTotal.value=parseInt(e.validationResultsLimitTotal.value),e.validationResultsLimitPerConstraint.value=parseInt(e.validationResultsLimitPerConstraint.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(e.leftJoinWorkerThreads.value=parseInt(e.leftJoinWorkerThreads.value),e.boundJoinBlockSize.value=parseInt(e.boundJoinBlockSize.value),e.joinWorkerThreads.value=parseInt(e.joinWorkerThreads.value),e.unionWorkerThreads.value=parseInt(e.unionWorkerThreads.value)))},s=function(){const e=document.getElementById("shaclOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},l=function(e,t){e.queryTimeout&&(t.isInvalidQueryTimeout=!i.NUMBER_PATTERN.test(e.queryTimeout.value)),e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint&&e.queryLimitResults?(t.isInvalidValidationResultsLimitTotal=!i.NUMBER_PATTERN.test(e.validationResultsLimitTotal.value),t.isInvalidValidationResultsLimitPerConstraint=!i.NUMBER_PATTERN.test(e.validationResultsLimitPerConstraint.value),t.isInvalidQueryLimit=!i.NUMBER_PATTERN.test(e.queryLimitResults.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(t.isInvalidLeftJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.leftJoinWorkerThreads.value),t.isInvalidBoundJoinBlockSize=!i.NUMBER_PATTERN.test(e.boundJoinBlockSize.value),t.isInvalidJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.joinWorkerThreads.value),t.isInvalidUnionWorkerThreads=!i.NUMBER_PATTERN.test(e.unionWorkerThreads.value))},c=function(e,t){return"isInvalidQueryLimit"===e?t.instant("invalid.query.limit"):"isInvalidQueryTimeout"===e?t.instant("invalid.query.timeout"):"isInvalidValidationResultsLimitTotal"===e?t.instant("invalid.validation.results.limit.total"):"isInvalidValidationResultsLimitPerConstraint"===e?t.instant("invalid.validation.results.limit.per.constraint"):"isInvalidJoinWorkerThreads"===e?t.instant("invalid.join.worker.threads"):"isInvalidLeftJoinWorkerThreads"===e?t.instant("invalid.left.join.worker.threads"):"isInvalidUnionWorkerThreads"===e?t.instant("invalid.union.worker.threads"):"isInvalidBoundJoinBlockSize"===e?t.instant("invalid.bound.join.block.size"):void 0},d=function(e,t){const o=Object.keys(e),i=Object.values(e);for(let e=0;e<o.length;e++)if(i[e])return c(o[e],t);return""},u=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion},p=function(e){return e.getLocations().then(e=>e.filter(e=>!e.errorMsg&&!e.degradedReason))};function f(e,t,o,r,a,s,l,c,d,u,p,f,m){e.loader=!0,e.isLocationInactive=function(t){return!t.active||!e.hasActiveLocation()};const v=f.defer();function y(){return a.getLocations(v).then(t=>(e.locations=t,t)).finally(()=>e.loader=!1)}e.hasActiveLocation=function(){return a.hasActiveLocation()},e.getActiveLocation=function(){return a.getActiveLocation()},e.getLocationError=function(){return a.getLocationError()},e.getDegradedReason=function(){return a.getDegradedReason()},e.getRepositories=function(){return a.getRepositories()},e.isRepoActive=function(e){return a.isRepoActive(e)},e.deleteLocation=function(t){s.openSimpleModal({title:p.instant("location.confirm.detach"),message:p.instant("location.confirm.detach.warning",{uri:t}),warning:!0}).result.then((function(){e.loader=!0,a.deleteLocation(t).finally(()=>y())}))},e.addLocationHttp=function(t){e.loader=!0,c.addLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.addLocation=function(){o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationCtrl"}).result.then((function(t){e.addLocationHttp(t)}))},e.editLocationHttp=function(t){e.loader=!0,c.editLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.editLocation=function(t){o.open({templateUrl:"js/angular/templates/modal/edit-location.html",controller:"EditLocationCtrl",resolve:{location:function(){return t}}}).result.then((function(t){e.editLocationHttp(t)}),(function(){}))},e.setRepository=function(e){a.setRepository(e)},e.deleteRepository=function(t){s.openSimpleModal({title:p.instant("common.confirm.delete"),message:Object(n.decodeHTML)(p.instant("delete.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.deleteRepository(t).finally(()=>{y(),e.loader=!1}),function(e){const t="dependencies-selectedGraph-"+e.id,o="classHierarchy-selectedGraph-"+e.id;angular.forEach(d.keys(),(function(e){(e.startsWith(o)||e.startsWith(t))&&d.remove(e)}))}(t)}))},e.restartRepository=function(t){s.openSimpleModal({title:p.instant("confirm.restart.repo"),message:Object(n.decodeHTML)(p.instant("confirm.restart.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.restartRepository(t).finally(()=>y())}))},e.toggleDefaultRepository=function(t){e.getDefaultRepository()===t?a.setDefaultRepository(null):a.setDefaultRepository(t)},e.getDefaultRepository=function(){return a.getDefaultRepository()},e.getRepositoryDownloadLink=function(e){let t=`rest/repositories/${e.id}${e.type===i.REPOSITORY_TYPES.ontop?"/download-zip":"/download-ttl"}?location=${e.location}`;const o=l.getAuthToken();return o&&(t=`${t}&authToken=${encodeURIComponent(o)}`),t},e.copyToClipboard=function(e){s.openCopyToClipboardModal(e)},e.fromFile=function(){o.open({templateUrl:"js/angular/templates/modal/upload-repository-config.html",controller:"UploadRepositoryConfigCtrl"}).result.then((function(){a.init()}))},e.openActiveLocationSettings=function(){o.open({templateUrl:"js/angular/settings/modal/location-settings.html",controller:"ActiveLocationSettingsCtrl"})},y();const R=u((function(){m.isActive()&&!t.guidePaused||(a.initQuick(),y())}),5e3);e.$on("$destroy",(function(){u.cancel(R),v&&v.resolve()})),e.getRepositoriesFromLocation=function(e){return a.getRepositoriesFromLocation(e)}}function m(e,t,o,i,n){e.upload=function(t){t&&t.length&&(e.uploadFile=t[0])},e.ok=function(){e.uploadFile&&(e.uploadFileLoader=!0,o.upload({url:"rest/repositories",method:"POST",data:{config:e.uploadFile}}).success((function(){e.uploadFileLoader=!1,t.close()})).error((function(t){const o=getError(t);i.error(o,n.instant("common.error")),e.uploadFileLoader=!1})))},e.cancel=function(){t.dismiss("cancel")}}function v(e,t,o,i,n){e.newLocation={uri:"",authType:"none",username:"",password:"",active:!1},e.docBase=u(i),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(n.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}function y(e,t,o,i){e.editedLocation=_.cloneDeep(o),e.docBase=u(i),e.ok=function(){t.close(e.editedLocation)},e.cancel=function(){t.dismiss("cancel")}}function R(e,t){e.repositoryTypes=i.REPOSITORY_TYPES,e.chooseRepositoryType=function(e){t.path(`${t.path()}/${e}`)}}function T(e,t,o,n,r,c,u,f,m,v){function y(e){switch(e){case i.REPOSITORY_TYPES.graphdbRepo:t.pageTitle=v.instant("view.create.repo.title",{repoType:"GraphDB"});break;case i.REPOSITORY_TYPES.ontop:t.pageTitle=v.instant("view.create.repo.title",{repoType:"Ontop Virtual SPARQL"});break;case i.REPOSITORY_TYPES.fedx:t.pageTitle=v.instant("view.create.repo.title",{repoType:"FedX Virtual SPARQL"})}}var R;t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.params=f,t.repositoryType=f.repositoryType,t.enable=!0,t.loader=!0,t.pageTitle=v.instant("view.create.repo.title"),t.repositoryInfo={id:"",params:{},title:"",type:"",location:""},t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},p(n).then(e=>{t.locations=e}),t.changedLocation=function(){t.$broadcast("changedLocation")},t.getConfig=function(e){m.getRepositoryConfiguration(e).then((function(e){const o=e.data;var i;t.repositoryInfo.params=o.params,t.repositoryInfo.type=o.type,a(t.repositoryInfo.params),(i=t.repositoryInfo.params)&&i.member&&(i.member.value=[]),t.loader=!1,c((function(){angular.element(document).find("#id").focus()}),50)})).catch((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.loader=!1}))},t.repositoryType&&(function(e){return t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R=t.repositoryType)||function(e){return!t.isFreeEdition()&&!t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return t.isFreeEdition()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return e===i.REPOSITORY_TYPES.ontop}(R)||function(e){return e===i.REPOSITORY_TYPES.fedx}(R))?(t.repositoryInfo.type=t.repositoryType,t.getConfig(t.repositoryType),y(t.repositoryType)):r.path("/repository/create"),t.hasActiveLocation=function(){return n.hasActiveLocation()},t.activeLocation=function(){return n.getActiveLocation()};let T=!1;t.uploadRuleset=function(e){e&&e.length&&(t.uploadFile=e[0],t.uploadFileLoader=!0,u.upload({url:"rest/repositories/ruleset/upload",data:{ruleset:t.uploadFile,location:t.repositoryInfo.location}}).progress((function(e){})).success((function(e){if(e.success){const o=t.uploadFile.name,i={id:e.fileLocation,name:"Custom: "+o};t.rulesetPie?t.rulesets[0]=i:t.rulesets.unshift(i),t.rulesetPie=e.fileLocation,t.rulesetPieFile=o,t.repositoryInfo.params.ruleset.value=t.rulesetPie}else o.error(e.errorMessage),T=!0;t.uploadFileLoader=!1})).error((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.uploadFile="",t.uploadFileLoader=!1})))},t.noMembersError=function(){o.error(v.instant("fedx.create.repo.no.members.warning"))},t.goBackToPreviousLocation=function(){angular.isDefined(f.previous)?(delete r.$$search.previous,r.path("/")):r.path("/repository")},t.createRepoHttp=function(){t.loader=!0,m.createRepository(t.repositoryInfo).then((function(){return o.success(v.instant("created.repo.success.msg",{repoId:t.repositoryInfo.id})),n.init()})).then(()=>t.goBackToPreviousLocation()).catch((function(e){const t=getError(e.data);o.error(t,v.instant("common.error"))})).finally(()=>{t.loader=!1})},t.createRepo=function(){if(!t.repositoryInfo.id)return void o.error(v.instant("empty.repoid.warning"));t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,v);T?o.error(v.instant("invalid.ruleset.file.error")):t.isInvalidRepoName?o.error(v.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?o.error(e):t.createRepoHttp()},t.rulesetWarning=function(){const e=t.repositoryInfo.params;return void 0===e||void 0===e.ruleset||void 0===e.disableSameAs?"":0===e.ruleset.value.indexOf("owl")&&"true"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.needsSameAs"):0===e.ruleset.value.indexOf("rdfs")&&"false"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.doesntNeedSameAs"):e.ruleset.value===t.rulesetPie?v.instant("repoTooltips.rulesetWarnings.customRuleset"):""},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()},t.autofocusId="autofocus";const g=e.$on("$translateChangeSuccess",()=>{y(t.repositoryType)});t.$on("$destroy",()=>{g()})}function g(e,t,o,i,n,r,a){e.dialogTitle=a||r.instant("update.file.content.header"),i&&o.getRepositoryFileContent(i).success((function(t){e.fileContent=t})).error((function(e){const t=getError(e);n.error(t,r.instant("common.error"))})),e.ok=function(){t.close({content:e.fileContent,fileLocation:i})},e.cancel=function(){t.dismiss("cancel")}}function I(e,t,o,c,u,f,m,v,y,R){t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.editRepoPage=!0,t.canEditRepoId=!1,t.isRepoInCluster=!0,t.params=o,t.loader=!0,t.repositoryInfo={},t.repositoryInfo.id=t.params.repositoryId,t.repositoryInfo.location=t.params.location,t.repositoryInfo.restartRequested=!1,t.repositoryType="",t.saveRepoId=t.params.repositoryId,t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId}),t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},t.hasActiveLocation=function(){return u.hasActiveLocation()};t.$watch(t.hasActiveLocation,(function(){if(t.hasActiveLocation){let e;p(u).then(e=>(t.locations=e,v.getRepository(t.repositoryInfo))).then(o=>(e=o,R.monitorActiveOperations(t.repositoryInfo.id))).then(e=>{t.isRepoInCluster=e.hasClusterOperation()}).catch(o=>e?Promise.resolve():(t.repositoryInfo=void 0,Promise.reject(o))).then(()=>{(e=>{const o=e.data;if(angular.isDefined(o.params.ruleset)){let e=!1;if(angular.forEach(t.rulesets,(function(t){t.id===o.params.ruleset.value&&(e=!0)})),o.params.ruleset&&!e){const e=r(o.params.ruleset.value);t.rulesets.unshift({id:o.params.ruleset.value,name:"Custom: "+e})}}t.repositoryInfo=o,t.setRepositoryType(o.type),a(t.repositoryInfo.params),t.repositoryInfo.saveId=t.saveRepoId,t.loader=!1})(e)}).catch(e=>{const i=e.data,r=e.status,a=o.repositoryId;let s;s=404===r&&"system"!==a?Object(n.decodeHTML)(y.instant("edit.repo.error.not.exists",{repositoryId:a})):404===r&&"system"===a?Object(n.decodeHTML)(y.instant("edit.system.repo.warning")):getError(i),c.error(s,y.instant("common.error"),{allowHtml:!0}),404===r?setTimeout((function(){t.loader=!1,f.path("repository")}),1e3):t.loader=!1})}})),t.setRepositoryType=function(e){t.repositoryType=e},t.noMembersError=function(){c.error(y.instant("fedx.create.repo.no.members.warning"))},t.editRepoHttp=function(){t.loader=!0,v.editRepository(t.repositoryInfo.saveId,t.repositoryInfo).success((function(){c.success(y.instant("edit.repo.success.msg",{saveId:t.repositoryInfo.saveId})),u.init().finally(()=>t.goBackToPreviousLocation()),t.repositoryInfo.saveId===t.repositoryInfo.id&&t.repositoryInfo.restartRequested&&u.restartRepository(t.repositoryInfo)})).error((function(e){const o=getError(e);c.error(o,y.instant("common.error")),t.loader=!1}))},t.editRepository=function(){t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,y);let o=Object(n.decodeHTML)(y.instant("edit.repo.save.changes.msg",{repoId:t.repositoryInfo.id}));t.repositoryInfo.saveId!==t.repositoryInfo.id?o+=Object(n.decodeHTML)(y.instant("edit.repo.rename.changes.msg")):t.repositoryInfo.restartRequested?o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.requested.msg")):o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.needed.msg")),t.isInvalidRepoName?c.error(y.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?c.error(e):m.openSimpleModal({title:y.instant("common.confirm.save"),message:o,warning:!0}).result.then((function(){t.editRepoHttp()}))},t.editRepositoryId=function(){if(t.isRepoInCluster)return;let e=Object(n.decodeHTML)(y.instant("edit.repo.id.warning.msg"));t.isEnterprise()&&(e+=Object(n.decodeHTML)(y.instant("edit.repo.id.cluster.warning.msg"))),m.openSimpleModal({title:y.instant("confirm.enable.edit"),message:e,warning:!0}).result.then((function(){t.canEditRepoId=!0}))},t.goBackToPreviousLocation=function(){angular.isDefined(o.previous)?(delete f.$$search.previous,f.path("/")):f.path("/repository")},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()};const T=e.$on("$translateChangeSuccess",()=>{t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId})});t.$on("$destroy",()=>{T()})}angular.module("graphdb.framework.repositories.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","toastr","ngFileUpload"]).controller("LocationsAndRepositoriesCtrl",f).controller("AddLocationCtrl",v).controller("EditLocationCtrl",y).controller("ChooseRepositoryCtrl",R).controller("AddRepositoryCtrl",T).controller("EditRepositoryCtrl",I).controller("EditRepositoryFileCtrl",g).controller("UploadRepositoryConfigCtrl",m),f.$inject=["$scope","$rootScope","$uibModal","toastr","$repositories","ModalService","AuthTokenService","LocationsRestService","LocalStorageAdapter","$interval","$translate","$q","GuidesService"],m.$inject=["$scope","$uibModalInstance","Upload","toastr","$translate"],v.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"],y.$inject=["$scope","$uibModalInstance","location","productInfo"],R.$inject=["$scope","$location"],T.$inject=["$rootScope","$scope","toastr","$repositories","$location","$timeout","Upload","$routeParams","RepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","RepositoriesRestService","file","toastr","$translate","dialogTitle"],I.$inject=["$rootScope","$scope","$routeParams","toastr","$repositories","$location","ModalService","RepositoriesRestService","$translate","MonitoringRestService"]},94:function(e,t,o){"use strict";o.r(t),o.d(t,"STATIC_RULESETS",(function(){return i})),o.d(t,"REPOSITORY_TYPES",(function(){return n})),o.d(t,"FILENAME_PATTERN",(function(){return r})),o.d(t,"NUMBER_PATTERN",(function(){return a}));const i=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],n={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},r=new RegExp("^[a-zA-Z0-9-_]+$"),a=new RegExp("^[0-9]+$")}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[61,232],{101:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",type:"application/ld+json",extension:".jsonld"},{name:"RDF-XML",type:"application/rdf+xml",extension:".rdf"},{name:"N3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",type:"text/plain",extension:".nt"},{name:"N-Quads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",type:"application/trix",extension:".trix"},{name:"TriG",type:"application/x-trig",extension:".trig"},{name:"TriG*",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",type:"application/x-binary-rdf",extension:".brf"}])},148:function(e,t,n){"use strict";n.r(t);n(7),n(24),n(26),n(101);var o=n(0),r=n(63);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService",function(e,t,n,a,i,s,p,l,c,g,d,u){e.getActiveRepository=function(){return p.getActiveRepository()},e.exportFormats=g,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return p.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,a((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,c.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(r.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(p.setRepository(""),l.error(o,d.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=u.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);a((function(){"about:blank"!==r.document.location.href&&(r.close(),l.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(a((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),a((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?i.openSimpleModal({title:d.instant("common.warning"),message:Object(o.decodeHTML)(d.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.startDownload=function(t,n){let o;const r=p.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const r=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?i.openSimpleModal({title:d.instant("common.warning"),message:Object(o.decodeHTML)(d.instant("export.format.warning.msg")),warning:!0}).result.then((function(){r()})):r()}else i.openSimpleModal({title:d.instant("export.multiple.graph"),message:d.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=s(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.msg"),message:d.instant("export.warning.clear.repo.msg",{repo:p.getActiveRepository()}),warning:!0}).result.then((function(){a((function(){c.addStatements(p.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,l.success(d.instant("export.cleared.repo",{repo:p.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?l.error(d.instant("export.clearing.statements.warning")):l.error(d.instant("export.cleared.repo.failed.msg",{repo:p.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.graph"),message:d.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){a((function(){const o="update=CLEAR "+t.contextID.clearUri;c.addStatements(p.getActiveRepository(),o).then((function(){e.deleting[t]=!1,l.success(d.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,l.error(d.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.graph"),message:d.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){a((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;c.addStatements(p.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),l.success(d.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;l.error(d.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[66,162,163,164],{61:function(E,n,e){"use strict";e.r(n),e.d(n,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},71:function(E,n,e){"use strict";e.r(n),e.d(n,"QueryType",(function(){return o}));const o={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[67,163,164],{61:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return s}));var o=n(14);n(61);class s{constructor(e=o.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")){this.yasguiComponent=e}changeRenderMode(e){return this.yasguiComponent.changeRenderMode(e)}setQuery(e){return this.yasguiComponent.setQuery(e)}query(e){return this.yasguiComponent.query(e)}getQuery(){return this.yasguiComponent.getQuery()}isQueryValid(){return this.yasguiComponent.isQueryValid()}openTab(e){return this.yasguiComponent.openTab(e)}getQueryMode(){return this.yasguiComponent.getQueryMode()}getQueryType(){return this.yasguiComponent.getQueryType()}getEmbeddedResultAsJson(){return this.yasguiComponent.getEmbeddedResultAsJson()}getEmbeddedResultAsCSV(){return this.yasguiComponent.getEmbeddedResultAsCSV()}hideYasqeActionButton(e){return this.yasguiComponent.hideYasqeActionButton(e)}showYasqeActionButton(e){return this.yasguiComponent.showYasqeActionButton(e)}abortQuery(){return this.yasguiComponent.abortQuery()}abortAllCountQuery(){return this.yasguiComponent.abortAllCountQuery()}resetYasrResults(){return this.yasguiComponent.resetResults()}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[7,41,47,170,182,183,184,185,188,233],{107:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return r}));const r={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},108:function(e,i,t){"use strict";t.r(i),t.d(i,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=t(74);const n=e=>e.map(e=>{const i=new r.SimilarityIndex;return i.type=e.type,i.stopList=e.stopList,i.status=e.status,i.selectQuery=e.selectQuery,i.searchQuery=e.searchQuery,i.sameAs=e.sameAs,i.options=e.options,i.name=e.name,i.infer=e.infer,i.analyzer=e.analyzer,i.analogicalQuery=e.analogicalQuery,i})},183:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexError",(function(){return r}));class r extends Error{}},184:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var r=t(74),n=t(107),s=t(61);const a=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new r.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=n.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=s.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case n.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case n.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case n.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return n.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return n.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return n.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return a.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return s.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return s.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},185:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityViewMode",(function(){return r}));const r={CREATE:"CREATE",EDIT:"EDIT",CLONE:"CLONE"}},204:function(e,i,t){"use strict";t.r(i);t(64),t(10),t(32);var r=t(108),n=t(14),s=t(61),a=t(62),y=t(185),l=t(107),o=t(67),d=t(183),u=t(71),c=t(184);function I(e,i,t,I,m,S,p,h,T,x,g,Q,E,A,f,v){e.productInfo=h,e.SimilarityQueryType=l.SimilarityQueryType,e.SimilarityIndexType=o.SimilarityIndexType,e.similarityIndexInfo=void 0,e.samples=void 0,e.yasguiConfig=void 0,e.saveOrUpdateExecuted=!1,e.loadingControllerResources=!1,e.helpHidden=1===g.get(Q.HIDE_SIMILARITY_HELP);let R=!1,L=void 0,w=void 0,C=void 0,D=y.SimilarityViewMode.CREATE;e.changeSimilarityIndexType=(i,t=l.SimilarityQueryType.DATA)=>{e.similarityIndexInfo.setType(i),e.similarityIndexInfo.isPredicationType()?e.samples=w[o.SimilarityIndexType.PREDICATION]:e.samples=w[o.SimilarityIndexType.TEXT],e.changeQueryTab(t).then(i=>{P(e.similarityIndexInfo),e.setEditorQuery(e.similarityIndexInfo.getQuery())})},e.changeQueryTab=i=>{const t=e.similarityIndexInfo.getSelectedQueryType();return t===i?Promise.resolve():(e.similarityIndexInfo.setSelectedQueryType(i),M(e.similarityIndexInfo,t).then(e=>Z(e,t)).then(e=>K(e,t)).catch(e=>{e instanceof d.SimilarityIndexError||console.log(e)}).finally(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode()),e.similarityIndexInfo.isDataQueryTypeSelected()?i.showYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]):i.hideYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]),i.setQuery(e.similarityIndexInfo.getQuery())}))},e.createSimilarityIndex=()=>{e.saveOrUpdateExecuted=!0,M(e.similarityIndexInfo).then(Z).then(K).then(z).then(k).then(e=>_(e.getSimilarityIndex())).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.could.not.get.indexes.error"))})},e.viewQuery=()=>{M(e.similarityIndexInfo).then(z).then(N).then(O).catch(e=>i.error(getError(e)))},e.preview=()=>{M(e.similarityIndexInfo).then(K).then(Z).then(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASR),i.query(e.similarityIndexInfo.getSelectedYasguiRenderMode())})},e.saveSearchQuery=function(){e.saveOrUpdateExecuted=!0,R||V(),e.saveOrUpdateExecuted=!0,M(e.similarityIndexInfo).then(F).then(Z).then(K).then(X).then(J).then(U).then(b).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.change.query.error"))})},e.setEditorQuery=i=>{e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1),e.yasguiConfig?H().setQuery(i):q({initialQuery:i||" "})},e.similarityIndexNameChanged=()=>{e.setDirty(),e.similarityIndexInfo.isNameExist=!1},e.queryChanged=()=>{e.setDirty(),e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1)},e.isCloneViewMode=()=>y.SimilarityViewMode.CLONE===D,e.isEditViewMode=()=>y.SimilarityViewMode.EDIT===D,e.isCreateViewMode=()=>y.SimilarityViewMode.CREATE===D,e.setDirty=()=>{R=!0},e.isYasqeShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasqeRenderMode(),e.isYasrShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasrRenderMode(),e.showEditor=()=>{const i=H();i.abortQuery().then(()=>i.setQuery(e.similarityIndexInfo.getQuery())).then(()=>(e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode())))},e.toggleHelp=i=>{void 0===i&&(i=g.get(Q.HIDE_SIMILARITY_HELP)),1!==i?(g.set(Q.HIDE_SIMILARITY_HELP,1),e.helpHidden=!0):(g.set(Q.HIDE_SIMILARITY_HELP,0),e.helpHidden=!1)},e.getCloseBtnMsg=function(){let i=e.editSearchQuery?E.instant("similarity.query.edition.msg"):E.instant("similarity.index.creation.msg");return E.instant("similarity.close.btn.msg",{operation:i})},e.hasQueryError=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();return l.SimilarityQueryType.DATA===i?e.hasSelectQueryError():l.SimilarityQueryType.SEARCH===i?e.hasSearchQueryError():l.SimilarityQueryType.ANALOGICAL===i&&e.hasAnalogicalQueryError()},e.hasSelectQueryError=()=>!e.similarityIndexInfo.hasSelectQuery()||e.similarityIndexInfo.invalidSelectQuery||e.similarityIndexInfo.invalidSelectQueryType,e.hasSearchQueryError=()=>!e.similarityIndexInfo.hasSearchQuery()||e.similarityIndexInfo.invalidSearchQuery||e.similarityIndexInfo.invalidSearchQueryType,e.hasAnalogicalQueryError=()=>!e.similarityIndexInfo.hasAnalogicalQuery()||e.similarityIndexInfo.invalidAnalogicalQuery||e.similarityIndexInfo.invalidAnalogicalQueryType,e.getQueryErrorMessage=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();let t=!1,r=!1,n=!1;l.SimilarityQueryType.DATA===i?(t=!e.similarityIndexInfo.hasSelectQuery(),r=e.similarityIndexInfo.invalidSelectQueryType,n=e.similarityIndexInfo.invalidSelectQuery):l.SimilarityQueryType.SEARCH===i?(t=!e.similarityIndexInfo.hasSearchQuery(),r=e.similarityIndexInfo.invalidSearchQueryType,n=e.similarityIndexInfo.invalidSearchQuery):l.SimilarityQueryType.ANALOGICAL===i&&(t=!e.similarityIndexInfo.hasAnalogicalQuery(),r=e.similarityIndexInfo.invalidAnalogicalQueryType,n=e.similarityIndexInfo.invalidAnalogicalQuery);const s={queryType:E.instant(`similarity.query.type.${i}.name`)};return t?E.instant("similarity.error.query.empty",s):n?E.instant("similarity.error.query.invalid",s):r?E.instant("similarity.error.query.invalid_type",s):""};const M=(e,i)=>H().getQuery().then(t=>e.setQuery(t,i)).then(()=>e),N=e=>m.getQuery({indexName:e.getName(),indexOptions:e.getOptions(),query:e.getQuery(),indexStopList:e.getStopList(),queryInference:e.getInference(),querySameAs:e.getSameAs(),viewType:e.getSelectedQueryType(),indexAnalyzer:e.getAnalyzer()}).then(e=>e.data),O=e=>{e&&t.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})},P=i=>{const t=i.getType();if(!e.isEditViewMode()&&L&&(i.setQuery(L[t],l.SimilarityQueryType.SEARCH),i.setQuery(L.analogical,l.SimilarityQueryType.ANALOGICAL)),w)if(o.SimilarityIndexType.PREDICATION===t){const e=w[o.SimilarityIndexType.PREDICATION].predication;i.setQuery(e,l.SimilarityQueryType.DATA)}else{const e=w[o.SimilarityIndexType.TEXT].literals;i.setQuery(e,l.SimilarityQueryType.DATA)}},Y=()=>{const t=new c.SimilarityIndexInfo;t.setName(G()),t.setType(j()),t.setSelectedQueryType(e.isEditViewMode()?l.SimilarityQueryType.SEARCH:l.SimilarityQueryType.DATA);const n=p.search().options;n?t.setOptions(n):t.setOptions(t.isTextType()?"-termweight idf":""),P(t);const s=p.search().searchQuery;s&&t.setQuery(s,l.SimilarityQueryType.SEARCH);const a=p.search().selectQuery;a&&t.setQuery(a,l.SimilarityQueryType.DATA);const y=p.search().analogicalQuery;if(y&&t.setQuery(y,l.SimilarityQueryType.ANALOGICAL),t.isTextType()){t.setStopList(p.search().stopList),t.setAnalyzer(p.search().analyzer);const e=$(t.getSimilarityIndex(),"-literal_index");void 0!==e&&t.setLiteralIndex(e)}return t.isPredicationType()?m.getIndexes().then(i=>{const n=Object(r.mapIndexesResponseToSimilarityIndex)(i.data).filter(e=>e.isTextLiteralType()&&(e.isBuiltStatus()||e.isOutdatedStatus())).map(e=>e.name);if(e.literalIndexes=["no-index"].concat(n),void 0===t.getInputIndex()){const i=$(t.getSimilarityIndex(),"-input_index");if(void 0!==i)for(let r=0;r<e.literalIndexes.length;r++)i===e.literalIndexes[r]&&t.setInputIndex(e.literalIndexes[r])}return void 0===t.getInputIndex()&&t.setInputIndex(e.literalIndexes[0]),t}).catch((function(e){const t=getError(e);i.error(t,E.instant("similarity.could.not.get.indexes.error"))})):Promise.resolve(t)},q=i=>{const t={endpoint:B,componentId:"create-index",showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,showYasqeResizer:!1,pageSize:100,prefixes:C,render:e.similarityIndexInfo.getSelectedYasguiRenderMode(),yasqeActionButtons:e.isEditViewMode()||!e.similarityIndexInfo.isDataQueryTypeSelected()?n.DISABLE_YASQE_BUTTONS_CONFIGURATION:n.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,maxPersistentResponseSize:0,yasqeMode:e.canWriteActiveRepo()?a.YasqeMode.WRITE:a.YasqeMode.PROTECTED},r={};angular.extend(r,t,i),e.yasguiConfig=r},B=()=>"/repositories/"+A.getActiveRepository(),_=t=>{if(void 0!==e.literalIndexes){const i=t.inputIndex;i!==e.literalIndexes[0]&&(t.options=t.options+(""===t.options?"":" ")+"-input_index "+i)}return"true"===t.isLiteralIndex&&(t.options=t.options+(""===t.options?"":" ")+"-literal_index true",t.type=o.SimilarityIndexType.TEXT_LITERAL),V(),R=!1,m.createIndex("POST",t.name,t.options,t.selectQuery,t.searchQuery,t.isPredicationType()?t.analogicalQuery:"",t.stopList,t.infer,t.sameAs,t.type,t.analyzer).then(()=>(i.success(E.instant("similarity.create.index.successfully")),t)).catch((function(e){const t=getError(e);return i.error(t,E.instant("similarity.create.index.error")),console.log(t),Promise.reject(new d.SimilarityIndexError("Could not create index."))}))},b=async e=>{await T.showToastMessageWithDelay(e?"similarity.changed.search.query.msg":"similarity.changed.analogical.query.msg"),p.url("similarity")},U=e=>{const i=e.isSearchQueryTypeSelected();let t={name:e.getSimilarityIndex().name,changedQuery:e.getQuery(),isSearchQuery:i};return m.saveSearchQuery(JSON.stringify(t)).then(()=>(R=!1,i))},V=()=>{setTimeout(()=>p.url("similarity"),100)},H=()=>n.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),G=()=>{const i=p.search().name||"";return e.isCloneViewMode()?`${E.instant("similarity.copy_of.prefix")}_${i}`:i},j=()=>{const e=p.search().type;return void 0===e||e.startsWith("text")?o.SimilarityIndexType.TEXT:e},$=(e,i)=>{const t=e.options.split(" ");for(let r=0;r<t.length;r++)if(t[r]===i&&r+1<t.length){const i=t[r+1];return delete t[r],delete t[r+1],e.options=t.join(" "),i}},z=e=>Promise.all([F(e).then(W).then(X).then(J).then(K).then(Z)]).then(()=>e),k=e=>m.getIndexes().then(i=>i.data.some(i=>i.name===e.getName())?(e.isNameExist=!0,Promise.reject(new d.SimilarityIndexError("Similarity index name exists."))):e),F=e=>e.getSimilarityIndex().name?e.isNameValid()?Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Invalid similarity name.")):Promise.reject(new d.SimilarityIndexError("Missing similarity name.")),W=e=>e.hasSelectQuery()?e.invalidSelectQuery?Promise.reject(new d.SimilarityIndexError("Invalid select query")):e.invalidSelectQueryType?Promise.reject(new d.SimilarityIndexError("Invalid select query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing select query.")),X=e=>e.hasSearchQuery()?e.invalidSearchQuery?Promise.reject(new d.SimilarityIndexError("Invalid search query")):e.invalidSearchQueryType?Promise.reject(new d.SimilarityIndexError("Invalid search query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing search query.")),J=e=>e.isPredicationType()&&!e.hasAnalogicalQuery()?Promise.reject(new d.SimilarityIndexError("Missing analogical query.")):e.invalidAnalogicalQuery?Promise.reject(new d.SimilarityIndexError("Invalid analogical query")):e.invalidAnalogicalQueryType?Promise.reject(new d.SimilarityIndexError("Invalid analogical query type")):Promise.resolve(e),K=(e,i)=>H().getQueryType().then(t=>u.QueryType.SELECT!==t?(e.markInvalidQueryType(i),Promise.reject(new d.SimilarityIndexError("Query type is not valid."))):(e.markInvalidQueryType(i,!1),e)),Z=(e,i)=>H().isQueryValid().then(t=>t?(e.markInvalidQuery(i,!1),e):(e.markInvalidQuery(i),Promise.reject(new d.SimilarityIndexError("Query is not valid.")))),ee=(e,i,t,r)=>{v.openSimpleModal({title:e,message:i,warning:!0}).result.then((function(){angular.isFunction(t)&&t()}),(function(){angular.isFunction(r)&&r()}))},ie=()=>{e.isYasrShown()&&e.similarityIndexInfo.isDataQueryTypeSelected()&&e.showEditor(),e.canEditActiveRepo=e.canWriteActiveRepo();const i={...e.yasguiConfig,yasqeMode:e.canWriteActiveRepo()};q(i)},te=e=>{R&&(e.returnValue=!0)},re=()=>{window.removeEventListener("beforeunload",te),ne.forEach(e=>e())},ne=[];ne.push(f.subscribe("repositoryWillChangeEvent",i=>new Promise((function(t){if(e.isCreateViewMode()||e.isCloneViewMode())return void t(i);const r=()=>{R=!1,V(),t(i)};if(R){const e=()=>{i.cancel=!0,t(i)},n=E.instant("common.confirm"),s=E.instant("similarity.warning.unsaved.changes");ee(n,s,r,e)}else r()})))),ne.push(e.$on("$locationChangeStart",(e,i)=>{if(R){e.preventDefault();const t=E.instant("common.confirm"),r=E.instant("similarity.warning.unsaved.changes");ee(t,r,()=>{re();const e=p.absUrl().length-p.url().length,t=i.substring(e);p.path(t)})}else re()})),ne.push(e.$on("$destroy",re)),window.addEventListener("beforeunload",te),D=(()=>{if(void 0===p.search().name)return y.SimilarityViewMode.CREATE;const e=p.search().editSearchQuery;return void 0===e?y.SimilarityViewMode.CLONE:"string"==typeof e?"false"===e?y.SimilarityViewMode.CLONE:y.SimilarityViewMode.EDIT:e?y.SimilarityViewMode.EDIT:y.SimilarityViewMode.CLONE})();const se=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(i){i&&(e.loadingControllerResources=!0,Promise.all([m.getSearchQueries(),m.getSamples(),A.getPrefixes(i.id)]).then(([i,t,r])=>{e.canEditActiveRepo=e.canWriteActiveRepo(),L=i?i.data:[],w=t?t.data:[],C=r,Y().then(i=>{e.similarityIndexInfo=i;let t=l.SimilarityQueryType.DATA;e.isEditViewMode()&&(t=l.SimilarityQueryType.SEARCH),e.changeSimilarityIndexType(i.getType(),t)})}).catch(i=>{console.log(i),e.repositoryError=getError(i)}).finally(()=>{ne.push(e.$on("repositoryIsSet",ie)),se(),e.loadingControllerResources=!1}))}))}angular.module("graphdb.framework.similarity.controllers.create",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("CreateSimilarityIdxCtrl",I),I.$inject=["$scope","toastr","$uibModal","$timeout","SimilarityRestService","SparqlRestService","$location","productInfo","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","$repositories","EventEmitterService","ModalService"]},62:function(e,i,t){"use strict";t.r(i),t.d(i,"YasqeMode",(function(){return r}));const r={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64:function(e,i){function t(e,i){return{showToastMessageWithDelay:function(t){return new Promise(r=>{e.success(i.instant(t)),setTimeout(r,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",t),t.$inject=["toastr","$translate"]},67:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return r}));const r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>r.TEXT===e,isTextLiteralType:e=>r.TEXT_LITERAL===e,isPredicationType:e=>r.PREDICATION===e}},68:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return r}));const r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>r.CREATING===e,isBuildingStatus:e=>r.BUILDING===e,isBuiltStatus:e=>r.BUILT===e,isRebuildingStatus:e=>r.REBUILDING===e,isOutdatedStatus:e=>r.OUTDATED===e,isInterruptedStatus:e=>r.INTERRUPTED===e,isObsoleteStatus:e=>r.OBSOLETE===e,isFailedStatus:e=>r.FAILED===e}},74:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return s}));var r=t(67),n=t(68);class s{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return r.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return r.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return r.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);